followed wrong reply link, forwarding to list... ---------------------------- Original Message ---------------------------- Subject: Re: [haskell-art] Re: Creating .wav or .aiff with SuperCollider/HSC3 From: "Rohan Drape" <[EMAIL PROTECTED]> Date: Tue, July 24, 2007 9:52 am To: "Henning Thielemann" <[EMAIL PROTECTED]> --------------------------------------------------------------------------
On Tue, July 24, 2007 5:35 am, Henning Thielemann wrote: > I have used the TCP transport data type and derived a File data type from > it. However I got the error that the OSC message is longer than 8192 what gives that error? hosc or hsc3 or scsynth? > bytes. Thus I reversed the byte order in the length encoding: i doubt that was a good idea! > > let b = encodeOSC msg > n = fromIntegral (B.length b) > in B.hPut fd (B.append (B.reverse (encode_u32 n)) b) > > Now it seems that the times are not interpreted properly: try unreversed encode_i32 (osc tends to use sized integers, this is the case also for bundle sizes) > Maybe this is still an issue of byte ordering. Server-Architecture.rtf > states that values must be in network byte order. What is 'network byte > order' in the case of files? network order = big endian. there are a few simple score functions at: http://slavepianos.org/rd/sw/sw-76/Rhs/Score.hs i've not used these recently though! rd _______________________________________________ haskell-art mailing list haskell-art@lists.lurk.org http://lists.lurk.org/mailman/listinfo/haskell-art