I guess this is something for Topher ;-)
In everyday’s max world, loading mp3 files is still a pain in the ass
because it uses QT to import it into a buffer~, and it takes so
looooooooooooooooong time for. As i’m able to read and write mp3 (and
ogg too) in my Java externals for max, i wonder what’s the best way to
import an mp3 file from an mxj, then poke it into an msp buffer~. My
Java buffer seems to have size expressed in frames, and seems to be an
Array of Bytes.
1 – Do i have to use a Java MSPBuffer ? In this case, how do i fill it ?
2 – Or do i have to directly poke into an msp buffer~ outside ? How ?
Signal outlet, remote send ?
thanks in advance
In fact, all this would be a problem of converting a Byte array to
floats ?! But how do we do this
On 13 Apr 2006, at 11:52, f.e wrote:
> In fact, all this would be a problem of converting a Byte array to
> floats ?! But how do we do this
Depending on the underlying representation, you could look at
DataInputStream and DataOutputStream. (I use these for marshalling
OSC messages – they work fine.)
nick rothwell — composition, systems, performance — http://
C74 RSS Feed | © Copyright Cycling '74