-
HeroOfSpielburg
Hello,
I am using libpd for Android, and being able to debug on the computer is proving to be most helpful. I have spent a couple weeks looking and trying stuff out, but I'm still learning so please forgive my ignorance.
What I want is a sampler that can play back multiple voices (positions/volumes/etc.) at the same time. Instead of loading a bunch of samples, I thought it would be elegant to use a pitch-shifted sampler (referencing the G09.pitchshift sample from the Pd-extended help browser).
So I am using a single piano note sample at C4, and shifting up and down at most an octave or so via semitones and it's a start. I use delwrite with phasor like in the G09 sample.
I am able to play and pitch shift, but I don't understand two things:
- how to reset the sample playhead to start when I trigger a note
- how I can have multiple instances shifted to different pitches and volumes running consequentively.
I've read the help files on the elements involved, but I still don't understand internally how Pd is making buffers for the playback (and what it keeps looping by default). My patches are more or less a cut up version of the pitchshift.pd sample, so I won't post them now.
If someone could explain what is wrong, or if there is a better way to go about this, I would be much obliged.
Thanks,
-
HeroOfSpielburg
Thank you for suggesting that, it seemed like some kind of parallel buffers were needed. I will take a look in the help browser again.