I’m making a piano-like app, and I have a sound file. I want it to play at different pitches every time I press a key. I cant figure out how to change the pitch. How can I do this?
it seems like you can change the playback speed, which will change pitch by simply playing faster or slower (so the duration will change too)
note that (if I understand correctly) minim does not do audio processing. If you want to keep the playback duration, you need a technique called pitch shifting, which is not just playing faster or slower but some processing is involved, and minim doesn’t do it. If you want to go further in this direction I recommend looking into puredata / cycling max / supercollider and connect these tools to processing using OSC.
1 Like