summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--live_sampler.ck2
1 files changed, 1 insertions, 1 deletions
diff --git a/live_sampler.ck b/live_sampler.ck
index 67096f5..4d3dfc8 100644
--- a/live_sampler.ck
+++ b/live_sampler.ck
@@ -62,7 +62,7 @@ while (nanoev => now) {
} else if ("loopToggle" => nanoev.isControl) {
nanoev.getBool() => currentSample.loop;
} else if ("samplerVolumeKnob" => nanoev.isControl) {
- nanoev.getFloat(10) => amp.gain;
+ nanoev.getFloat(10) => currentSampler.gain;
} else if ("samplerPitchSlider" => nanoev.isControl) {
nanoev.getFloat(2) => currentSample.rate;
} else if (nanoev.CCId >= 23 && nanoev.CCId <= 29) {