[Sc-devel] [bug?]: SoundFile.normalize(newSampleFormat:"int8");
Joshua Parmenter
josh at realizedsound.net
Sun Oct 14 11:48:54 PDT 2007
Same thing here... not sure why.
svn info will tell you where you are at version wise
Best,
Josh
On Oct 14, 2007, at 9:26 AM, Tom Hall wrote:
> Hello List
>
> SoundFile should be able to convert to 8-bit files?
> (you just never know when you might need them)
>
> a = "sounds/a11wlk01.wav"
> b = "sounds/houston.wav"
>
> SoundFile.normalize(a, b, newSampleFormat:"float"); // works
>
> SoundFile.normalize(a, b, newSampleFormat:"int8"); // fails
>
> Error msg below
>
> Can anyone reproduce this error?
>
> I am on a recent svc build
> (BTW, how to I get svn to tell me which build I am using?)
>
>
> Regards
>
> Tom
>
>
> ERROR: Unable to write soundfile at: sounds/houston.wav
> RECEIVER:
> Instance of SoundFile { (0533EC50, gc=8C, fmt=00, flg=00, set=03)
> instance variables [7]
> fileptr : nil
> headerFormat : "WAV"
> sampleFormat : "int16"
> numFrames : Integer 188893
> numChannels : Integer 1
> sampleRate : Integer 44100
> path : "sounds/a11wlk01.wav"
> }
> CALL STACK:
> MethodError:reportError 0533B4D0
> arg this = <instance of MethodError>
> Nil:handleError 0533C130
> arg this = nil
> arg error = <instance of MethodError>
> Thread:handleError 0533DDB0
> arg this = <instance of Thread>
> arg error = <instance of MethodError>
> Object:throw 0533DF30
> arg this = <instance of MethodError>
> Function:protect 0533EDD0
> arg this = <instance of Function>
> arg handler = <instance of Function>
> var result = <instance of MethodError>
> Meta_SoundFile:normalize 07216DD0
> arg this = class SoundFile
> arg path = "sounds/a11wlk01.wav"
> arg outPath = "sounds/houston.wav"
> arg newHeaderFormat = nil
> arg newSampleFormat = "int8"
> arg startFrame = 0
> arg numFrames = nil
> arg maxAmp = 1.0
> arg linkChannels = true
> arg chunkSize = 4194304
> var file = <instance of SoundFile>
> var outFile = nil
> Interpreter:interpretPrintCmdLine 053408D0
> arg this = <instance of Interpreter>
> var res = nil
> var func = <instance of Function>
> Process:interpretPrintCmdLine 05340A50
> arg this = <instance of Main>
>
>
> _______________________________________________
> Sc-devel mailing list
> Sc-devel at create.ucsb.edu
> http://www.create.ucsb.edu/mailman/listinfo/sc-devel
******************************************
/* Joshua D. Parmenter
http://www.realizedsound.net/josh/
“Every composer – at all times and in all cases – gives his own
interpretation of how modern society is structured: whether actively
or passively, consciously or unconsciously, he makes choices in this
regard. He may be conservative or he may subject himself to continual
renewal; or he may strive for a revolutionary, historical or social
palingenesis." - Luigi Nono
*/
More information about the Sc-devel
mailing list