mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-15 11:06:32 +01:00
- MIDI "recording" - rec region creation/drawing, actual MIDI region creation/view/pretty pictures/etc
- MIDI containing session saving and restoring (ie XML - Source, Region, Playlist; all but the actual .mid files) - Numerous little fixes for audio specific stuff to accomplish the above - Dirty hacks to accomplish the above - Profit!!! git-svn-id: svn://localhost/ardour2/branches/midi@821 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
parent
0b572cdd84
commit
d752986314
53 changed files with 940 additions and 640 deletions
|
|
@ -300,10 +300,10 @@ RouteUI::rec_enable_press(GdkEventButton* ev)
|
|||
|
||||
} else {
|
||||
|
||||
reversibly_apply_audio_track_boolean ("rec-enable change", &AudioTrack::set_record_enable, !audio_track()->record_enabled(), this);
|
||||
reversibly_apply_track_boolean ("rec-enable change", &Track::set_record_enable, !track()->record_enabled(), this);
|
||||
|
||||
ignore_toggle = true;
|
||||
rec_enable_button->set_active(audio_track()->record_enabled());
|
||||
rec_enable_button->set_active(track()->record_enabled());
|
||||
ignore_toggle = false;
|
||||
}
|
||||
|
||||
|
|
@ -592,6 +592,17 @@ RouteUI::reversibly_apply_audio_track_boolean (string name, void (AudioTrack::*f
|
|||
_session.commit_reversible_command ();
|
||||
}
|
||||
|
||||
void
|
||||
RouteUI::reversibly_apply_track_boolean (string name, void (Track::*func)(bool, void *), bool yn, void *arg)
|
||||
{
|
||||
_session.begin_reversible_command (name);
|
||||
XMLNode &before = track()->get_state();
|
||||
bind (mem_fun (*track(), func), yn, arg)();
|
||||
XMLNode &after = track()->get_state();
|
||||
_session.add_command (new MementoCommand<Track>(*track(), before, after));
|
||||
_session.commit_reversible_command ();
|
||||
}
|
||||
|
||||
void
|
||||
RouteUI::set_mix_group_mute(boost::shared_ptr<Route> route, bool yn)
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue