summaryrefslogtreecommitdiff
path: root/src/mdaPianoVoice.h
diff options
context:
space:
mode:
authorrekado <rekado@elephly.net>2013-01-14 21:35:09 +0800
committerrekado <rekado@elephly.net>2013-01-14 21:41:34 +0800
commita5c1fa43261a7ce246a92c6ffd1c339b4cb1b613 (patch)
tree5df938e4893f5d7c43e1ea523f7433d6267c04da /src/mdaPianoVoice.h
parentf4e5570ed047b2975321786cb3093bcad8a3224f (diff)
implement volume setter
Diffstat (limited to 'src/mdaPianoVoice.h')
-rw-r--r--src/mdaPianoVoice.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/mdaPianoVoice.h b/src/mdaPianoVoice.h
index 53d8d60..dc87719 100644
--- a/src/mdaPianoVoice.h
+++ b/src/mdaPianoVoice.h
@@ -21,6 +21,7 @@ class mdaPianoVoice : public LV2::Voice {
short *waves;
float default_preset[NPARAMS]; // contains the default preset
short sustain;
+ float volume;
// voice state
uint32_t delta; //sample playback
@@ -46,6 +47,7 @@ class mdaPianoVoice : public LV2::Voice {
public:
mdaPianoVoice(double, short*, KGRP*);
+ void set_volume(float v) { volume = v; }
float p_helper(unsigned short, Param);
void update(Param); // recalculates internal variables