blakeAlbion
Well-known member
Hi Forum,
I have been searching through the threads on the subject of pitched playback of samples.
Probably my limited brain power, but I have not found a definitive answer.
So I am going to try to be specific here and state my requirements.
Using short samples like those you conveniently can obtain from wav2sketch, I would like to play it back at some arbitrary pitch.
Example: a short sample of a cowbell "played" either faster or slower than the rate it was recorded at.
That seems like a very ordinary requirement to me for an audio library.
From what I have read, there's no direct way to do this using the Teensy Audio Library. I could take a tiny snippet of my sample and put it into the waveform player. That's not what I want. I want a pitch parameter on the AudioPlayMemory interface. That is exactly what I want. I want changing pitch to be as easy and fast as changing volume. This is a basic requirement to map MIDI to samples by pitch and velocity.
I realize that's like asking to add BSP rendering to a 3D library just as an afterthought. But hey, it's also a fundamental building block.
Am I missing something? Sorry if I did.
(this is just a sign that I'm really excited about this library and this platform)
Ben
I have been searching through the threads on the subject of pitched playback of samples.
Probably my limited brain power, but I have not found a definitive answer.
So I am going to try to be specific here and state my requirements.
Using short samples like those you conveniently can obtain from wav2sketch, I would like to play it back at some arbitrary pitch.
Example: a short sample of a cowbell "played" either faster or slower than the rate it was recorded at.
That seems like a very ordinary requirement to me for an audio library.
From what I have read, there's no direct way to do this using the Teensy Audio Library. I could take a tiny snippet of my sample and put it into the waveform player. That's not what I want. I want a pitch parameter on the AudioPlayMemory interface. That is exactly what I want. I want changing pitch to be as easy and fast as changing volume. This is a basic requirement to map MIDI to samples by pitch and velocity.
I realize that's like asking to add BSP rendering to a 3D library just as an afterthought. But hey, it's also a fundamental building block.
Am I missing something? Sorry if I did.
(this is just a sign that I'm really excited about this library and this platform)
Ben