13
0

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
This commit is contained in:
Carl Hetherington 2011-04-16 13:55:06 +00:00
parent cb643ab965
commit c437fe0f30

View File

@ -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);