diff options
author | rekado <rekado@elephly.net> | 2013-01-14 21:36:55 +0800 |
---|---|---|
committer | rekado <rekado@elephly.net> | 2013-01-14 21:42:14 +0800 |
commit | a05e7ee521b3273f67bfea530cbaadf1f1b0fa3d (patch) | |
tree | 901f5cd59c2346d7af4e79a8faf20d9d8c335136 /src/mdaPianoVoice.h | |
parent | a5c1fa43261a7ce246a92c6ffd1c339b4cb1b613 (diff) |
implement muffling setter
Diffstat (limited to 'src/mdaPianoVoice.h')
-rw-r--r-- | src/mdaPianoVoice.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/mdaPianoVoice.h b/src/mdaPianoVoice.h index dc87719..e38e7bc 100644 --- a/src/mdaPianoVoice.h +++ b/src/mdaPianoVoice.h @@ -21,7 +21,7 @@ class mdaPianoVoice : public LV2::Voice { short *waves; float default_preset[NPARAMS]; // contains the default preset short sustain; - float volume; + float volume, muff; // voice state uint32_t delta; //sample playback @@ -48,6 +48,7 @@ class mdaPianoVoice : public LV2::Voice { public: mdaPianoVoice(double, short*, KGRP*); void set_volume(float v) { volume = v; } + void set_muff(float v) { muff = v; } float p_helper(unsigned short, Param); void update(Param); // recalculates internal variables |