summaryrefslogtreecommitdiff
path: root/src/mdaPianoVoice.h
diff options
context:
space:
mode:
authorrekado <rekado@elephly.net>2013-01-14 21:36:55 +0800
committerrekado <rekado@elephly.net>2013-01-14 21:42:14 +0800
commita05e7ee521b3273f67bfea530cbaadf1f1b0fa3d (patch)
tree901f5cd59c2346d7af4e79a8faf20d9d8c335136 /src/mdaPianoVoice.h
parenta5c1fa43261a7ce246a92c6ffd1c339b4cb1b613 (diff)
implement muffling setter
Diffstat (limited to 'src/mdaPianoVoice.h')
-rw-r--r--src/mdaPianoVoice.h3
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