diff options
author | Robert Jonsson <spamatica@gmail.com> | 2011-03-01 16:11:57 +0000 |
---|---|---|
committer | Robert Jonsson <spamatica@gmail.com> | 2011-03-01 16:11:57 +0000 |
commit | e34cbdc31e42538b551025313ff97410ae24b1c7 (patch) | |
tree | f3af0df61e47798759493d1f3581eebd70f4fbbb /muse2/muse/synth.cpp | |
parent | 1645eee5c59ea72438d730a01add17e106b8c82f (diff) |
allow to show/hide track-types from arranger
Diffstat (limited to 'muse2/muse/synth.cpp')
-rw-r--r-- | muse2/muse/synth.cpp | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/muse2/muse/synth.cpp b/muse2/muse/synth.cpp index 72785c02..349707c9 100644 --- a/muse2/muse/synth.cpp +++ b/muse2/muse/synth.cpp @@ -39,6 +39,7 @@ std::vector<Synth*> synthis; // array of available synthis extern void connectNodes(AudioTrack*, AudioTrack*); +bool SynthI::_isVisible=true; /* //--------------------------------------------------------- @@ -242,6 +243,18 @@ SynthI::SynthI() setPan(0.0); } + +//--------------------------------------------------------- +// height in arranger +//--------------------------------------------------------- +int SynthI::height() const +{ + if (_isVisible) + return _height; + return 0; +} + + //--------------------------------------------------------- // open //--------------------------------------------------------- @@ -989,3 +1002,4 @@ bool MessSynthIF::putEvent(const MidiPlayEvent& ev) return _mess->processEvent(ev); return true; } + |