summaryrefslogtreecommitdiff
path: root/synth/channel.h
diff options
context:
space:
mode:
authorFlorian Jung <flo@thinkpad.(none)>2011-01-08 15:00:30 +0100
committerFlorian Jung <flo@thinkpad.(none)>2011-01-08 15:04:02 +0100
commit05a7031fceee31330ef0c82be67e143af090f981 (patch)
treea39ed20474f0c5c4f96d9030ff5138b4b3f14ea7 /synth/channel.h
parent43510e6fb436b7f4926c69e584861ec6f4936dc3 (diff)
Changed always_reattack (controller 3) to legato-pedal
When in monomode, not pressing the legato pedal will cause the note always being reattacked, while pressing it will cause it to be only reattacked if it's envelopes are done (i.e., past release phase) When in polymode, the legato pedal is ignored, notes will always be reattacked, because not doing so would cause interference between the two generated sounds.
Diffstat (limited to 'synth/channel.h')
-rw-r--r--synth/channel.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/synth/channel.h b/synth/channel.h
index 4ddcbb3..f673294 100644
--- a/synth/channel.h
+++ b/synth/channel.h
@@ -39,7 +39,7 @@ class Channel
void set_hold_pedal(bool newstate);
void set_sostenuto_pedal(bool newstate);
-
+ void set_legato_pedal(bool newstate);
float balL, balR;
private:
@@ -57,7 +57,6 @@ class Channel
std::list<Note*> notes;
- bool always_reattack;
bool do_portamento;
int n_voices;
@@ -70,6 +69,8 @@ class Channel
set<int> held_keys;
set<int> sostenuto_keys;
+
+ bool legato_pedal_pressed;
};
#endif