Drum Sampler with individual per-sample control over Pitch/Pan/Vol
-
I'm trying to make a basic drum machine plugin
It's not a big problem to put drum samples into a sampler and have them playable via midi, but I want to have1.) individual control over pitch, volume and panning per sample, with the midi note that triggers it staying the same
2.) individual effects dry/wet per sampleI recon I need to use an individual sampler module per voice, correct? Or will the AudioLoopPlayer be an easier solution?
How do I trigger a single sample with a button and have the button "flash" when the midi note triggers it? I only see a toggleButton option in the UI which for the love of it I can't seem to apply a custom laf to ...
Also a problem that occurs is the dragging of samples from the browser to the sampler does not work on my mac... Is there a way to import the samples another way? I miss the right click to chose samples option like the audioloopplayer has...
-
and most important of all, how do I even access/change the sample pitch volume and panning with a slider/knob.. the parameters don't seem to appear in the list of parameterID's
-
You might find this video helpful: https://youtu.be/5PmEgPVsGvA?si=3PXxy4gByUA8qbwg
@Morphoice said in Drum Sampler with individual per-sample control over Pitch/Pan/Vol:
I recon I need to use an individual sampler module per voice, correct?
Most likely, but depends on how many voices
@Morphoice said in Drum Sampler with individual per-sample control over Pitch/Pan/Vol:
How do I trigger a single sample with a button
Synth.playNote()
@Morphoice said in Drum Sampler with individual per-sample control over Pitch/Pan/Vol:
have the button "flash" when the midi note triggers it?
Using a timer:
Button.setValue(1);
Then some time later
Button.setValue(0);
@Morphoice said in Drum Sampler with individual per-sample control over Pitch/Pan/Vol:
which for the love of it I can't seem to apply a custom laf to
myButton.setLocalLookAndFeel(myLafObject);
@Morphoice said in Drum Sampler with individual per-sample control over Pitch/Pan/Vol:
I miss the right click to chose samples option
Check out the custom sample import example.
@Morphoice said in Drum Sampler with individual per-sample control over Pitch/Pan/Vol:
how do I even access/change the sample pitch volume and panning with a slider/knob.. the parameters don't seem to appear in the list of parameterID's
If you want to set the individual samples within the sampler then again look at the custom sample import example. But if you only have one sample per sampler then the simplest way is to use a simple gain effect for volume and panning, and a constant mod in the sampler's pitch chain for the pitch.
-
@d-healey thank you so much!
this seems to work fine, though the button is still a toggle rather than a trigger
inline function onSnareTrigger(component, value) { if (value) Synth.playNote(38, 127); else Engine.allNotesOff(); }; Content.getComponent("Snare").setControlCallback(onSnareTrigger);
I shall work through your awesome video and I'll probably figure it out
-
@Morphoice said in Drum Sampler with individual per-sample control over Pitch/Pan/Vol:
the button is still a toggle rather than a trigger
Change the
isMomentary
property. -
@d-healey yay! just got it from the video. In a million years I would never have found that LOL ;))) I can't thank you enough