We closed this forum 18 June 2010. It has served us well since 2005 as the ALPHA forum did before it from 2002 to 2005. New discussions are ongoing at the new URL http://forum.processing.org. You'll need to sign up and get a new user account. We're sorry about that inconvenience, but we think it's better in the long run. The content on this forum will remain online.
IndexProgramming Questions & HelpSound,  Music Libraries › saveFile does nothing (Sonia)
Page Index Toggle Pages: 1
saveFile does nothing (Sonia) (Read 463 times)
saveFile does nothing (Sonia)
Apr 1st, 2009, 1:51pm
 
here the code that gives no error and no output either:

Code:
import pitaru.sonia_v2_9.*;



Sample input;



void setup() {//runs once

 Sonia.start(this);

 input = new Sample("123.wav");

 noLoop();

}



void draw() {// frame by frame

 input.saveFile("output.wav");

noLoop();

}

 

public void stop(){

 Sonia.stop();

 super.stop();

}


the 123.wav is in the data folder and a PCM (is PCM right? its no float... or whatever the less comon wavs are)
Page Index Toggle Pages: 1