Code: Select all
string path = scriptFilePath;
WaveFileData waveFileData;
path = path.substr(0, path.findFirst("main.cxx", 0))
+ "PinkNoise44100.wav";
convertToUnix(path);
print(path);
if(waveFileData.loadFile(path))
setBuffer(waveFileData.interleavedSamples);
else
print("couldn't make some noise");