summaryrefslogtreecommitdiff
path: root/gtk2_ardour/step_entry.cc
diff options
context:
space:
mode:
authorCarl Hetherington <carl@carlh.net>2011-04-16 13:55:06 +0000
committerCarl Hetherington <carl@carlh.net>2011-04-16 13:55:06 +0000
commitc437fe0f302ac0b4ccb29545cac2aa6a52e68933 (patch)
treedfdfdcf5d8a649f66a39ca286749d1c20c9d6e3c /gtk2_ardour/step_entry.cc
parentcb643ab9652d08a85802ce2a94c5bd57ca31256e (diff)
Fix step editor note lengths and default to crotchet / mf in the dialogue (#3963).
git-svn-id: svn://localhost/ardour2/branches/3.0@9358 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'gtk2_ardour/step_entry.cc')
-rw-r--r--gtk2_ardour/step_entry.cc14
1 files changed, 13 insertions, 1 deletions
diff --git a/gtk2_ardour/step_entry.cc b/gtk2_ardour/step_entry.cc
index 0ac281b877..f71bd56305 100644
--- a/gtk2_ardour/step_entry.cc
+++ b/gtk2_ardour/step_entry.cc
@@ -459,6 +459,18 @@ StepEntry::StepEntry (StepEditor& seditor)
packer.show_all ();
get_vbox()->add (packer);
+
+ /* initial settings: quarter note and mezzo forte */
+
+ act = myactions.find_action ("StepEditing/note-length-quarter");
+ RefPtr<RadioAction> r = RefPtr<RadioAction>::cast_dynamic (act);
+ assert (r);
+ r->set_active (true);
+
+ act = myactions.find_action ("StepEditing/note-velocity-mf");
+ r = RefPtr<RadioAction>::cast_dynamic (act);
+ assert (r);
+ r->set_active (true);
}
StepEntry::~StepEntry()
@@ -520,7 +532,7 @@ StepEntry::rest_event_handler ()
Evoral::MusicalTime
StepEntry::note_length ()
{
- Evoral::MusicalTime base_time = 1.0 / (Evoral::MusicalTime) length_divisor_adjustment.get_value();
+ Evoral::MusicalTime base_time = 4.0 / (Evoral::MusicalTime) length_divisor_adjustment.get_value();
RefPtr<Action> act = myactions.find_action ("StepEditing/toggle-triplet");
RefPtr<ToggleAction> tact = RefPtr<ToggleAction>::cast_dynamic (act);