Quantcast
Channel: Library Questions - Processing 2.x and 3.x Forum
Viewing all articles
Browse latest Browse all 2896

Minim - how do I pitch shift a sample?

$
0
0

I have a sound. I want it to play 1.5x as fast. How do I do that? Is there anything like this?:

import ddf.minim.*;
Minim minim=new Minim(this);
AudioPlayer test;
void setup(){
  test=minim.loadFile("test.wav");
  test.play();
  test.setPitch(1.5);  //<<<<fake command
}
void draw(){}

Even with any synonyms of "pitch" that I could think of(frequency, tune, height, deepness), Google gives either stuff completely unrelated or a trillion of questions of how to detect the frequency instead. Minim documentation doesn't help either.


Viewing all articles
Browse latest Browse all 2896

Trending Articles