diff options
author | Robin Haberkorn <robin.haberkorn@googlemail.com> | 2012-09-05 03:03:14 +0200 |
---|---|---|
committer | Robin Haberkorn <robin.haberkorn@googlemail.com> | 2012-09-05 03:03:14 +0200 |
commit | 9a25e0e5c9568a485c348dac580fa5daf2622d82 (patch) | |
tree | 17994b1a3d94113fa8fe1c16e7eb40c1465711da | |
parent | 7dcff71b4b5028681b18b89451fd6e11734d60d8 (diff) | |
download | digitale-debutanten-9a25e0e5c9568a485c348dac580fa5daf2622d82.tar.gz |
live sampler volume controls current sample's volume
-rw-r--r-- | live_sampler.ck | 2 |
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) { |