[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[sc-users] soundfile weirdness



this code :

{{var w,a,sf;

w=Window.new("drag n drop utility",Rect(700,270,540,35)).front;
a=SCDragSink(w,Rect(20,0,450,20));
a.string="..drag a file here to output a string..";
a.receiveDragHandler={|i| sf=SoundFile.new; sf.openRead(SCView.currentDrag.asString); sf.path.postln; sf.numFrames.postln; sf.numChannels.postln; sf.sampleRate.postln;}}.value;}.defer(0.1);


gives obviously wrong results...
every file I drag upon the GUI results in correct path and sample name but nuFrames allways equals 0 and numChannels 1..

any ideas ?