diff options
author | rekado <rekado@elephly.net> | 2013-01-14 21:35:09 +0800 |
---|---|---|
committer | rekado <rekado@elephly.net> | 2013-01-14 21:41:34 +0800 |
commit | a5c1fa43261a7ce246a92c6ffd1c339b4cb1b613 (patch) | |
tree | 5df938e4893f5d7c43e1ea523f7433d6267c04da /src/mdaPianoVoice.h | |
parent | f4e5570ed047b2975321786cb3093bcad8a3224f (diff) |
implement volume setter
Diffstat (limited to 'src/mdaPianoVoice.h')
-rw-r--r-- | src/mdaPianoVoice.h | 2 |
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 |