[scilab users] wav file has to be in root directory

Gary Nelson gnelson at quantasonics.com
Tue Apr 27 23:27:13 CEST 2010


This works:

file="/WavefunctionProject/VanaquaShorterAFTOS"
save(file,aftos);

from comsole
clear aftos
aftos
...get undefined variable error
load(file,aftos)
aftos
...shows the data correctly

Above works and clearly proves that the matrix aftos is written out and then read back and it does not have to be in the root directory

However

this does not work

file1="/WavefunctionProject/VanaquaShorter.wav"
[porp1,yze]=loadwave(file1); 

generates this--
 !--error 10000 
loadwave: Cannot open file /VanaquaShorter.wav.
at line      22 of function loadwave called by :  
[porp1,yze]=loadwave(file1); 
at line     124 of exec file called by :    
exec('/WavefunctionProject/ Scilab PC/testOctvGen.sce', -1)

But this does work
 
file1="/VanaquaShorter.wav"
[porp1,yze]=loadwave(file1); 

I can't see what I am doing wrong. Can you help?


Gary Nelson
gnelson at quantasonics.com






More information about the users mailing list