diff options
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 |