summaryrefslogtreecommitdiff
path: root/gtk2_ardour/midi_region_view.cc
diff options
context:
space:
mode:
authorPaul Davis <paul@linuxaudiosystems.com>2011-12-07 14:23:32 +0000
committerPaul Davis <paul@linuxaudiosystems.com>2011-12-07 14:23:32 +0000
commit50aee542192e98016d44aa3f11f40bbe2e8367f6 (patch)
tree8a9d4c1d9c3d097b11ad61063f9c0d7de6efbe1d /gtk2_ardour/midi_region_view.cc
parent20aeb5af0abd50dc01db503d65897c7dfebf6467 (diff)
remove visible "sound notes" button,add Config parameter to control this (which then saves the state the user selected), add control to the prefs dialog
git-svn-id: svn://localhost/ardour2/branches/3.0@10934 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'gtk2_ardour/midi_region_view.cc')
-rw-r--r--gtk2_ardour/midi_region_view.cc6
1 files changed, 3 insertions, 3 deletions
diff --git a/gtk2_ardour/midi_region_view.cc b/gtk2_ardour/midi_region_view.cc
index 51e96e34b2..b295e55733 100644
--- a/gtk2_ardour/midi_region_view.cc
+++ b/gtk2_ardour/midi_region_view.cc
@@ -1541,7 +1541,7 @@ MidiRegionView::extend_active_notes()
void
MidiRegionView::play_midi_note(boost::shared_ptr<NoteType> note)
{
- if (_no_sound_notes || !trackview.editor().sound_notes()) {
+ if (_no_sound_notes || !Config->get_sound_midi_notes()) {
return;
}
@@ -1559,7 +1559,7 @@ MidiRegionView::play_midi_note(boost::shared_ptr<NoteType> note)
void
MidiRegionView::play_midi_chord (vector<boost::shared_ptr<NoteType> > notes)
{
- if (_no_sound_notes || !trackview.editor().sound_notes()) {
+ if (_no_sound_notes || !Config->get_sound_midi_notes()) {
return;
}
@@ -2341,7 +2341,7 @@ MidiRegionView::move_selection(double dx, double dy, double cumulative_dy)
(*i)->move_event(dx, dy);
}
- if (dy && !_selection.empty() && !_no_sound_notes && trackview.editor().sound_notes()) {
+ if (dy && !_selection.empty() && !_no_sound_notes && Config->get_sound_midi_notes()) {
if (to_play.size() > 1) {