Tom wrote:
What I want(and need) is an object that translates a complete Mp3 into Pure-data compatible samples stored in the object (so a 3MB mp3 would
fill
up around 32Mb of sample data in an array inside of the object). Now the advantage of this aproach is that the data could be accessed as
tabread4~
accesses array data (fast-forward, rewing would all be accessed by
sendind a CK wrote:
the advantage would be none, if you want to 'access as tabread4~' then put it in a table, and keep in mind that pd's internal sample format is 32bit floats so a 1minute stereo file will be 60*srate*2*4 bytes.
and CK wrote:
if you can wait for even longer (and you have enough ram to waste) you
could
record it into [a] table[s] using readanyfs~ or mp3play~ or whatever.
That's why I do not want to put it in a pd table. The conversion has to be done as fast as possible with a thread (not normal play speed... why take 3 min when you can take 10 seconds). The audio samples must be in a smaller format than 32bit floats and therefore stored in the object. Had not thought about 32bit samples, thanks for the warning, that is a lot of wasted memory. But I still think decoding all of the mp3 in advance would permit easy seeking, reverse, nudging and even changing speed more smoothly because you would have a lot more precision on the samples being played.
Anyways, I think I am going to switch over to linux : more pd objects and more support(!)... also, some nice dj programs on linux, I think, cauze I have not tried them out yet... http://gdam.ffem.org/ http://www.terminatorx.cx/ ...see you on the other side.
Tom
----- Original Messages ----- From: "CK" x@meta.lo-res.org To: "Thomas Fredericks" iamonthebeach@hotmail.com Cc: pd-list@iem.at Sent: Friday, July 04, 2003 4:25 AM Subject: Re: [PD] mp3 proxy
hi thomas,
I read:
- Has anyone done a port of readanysf~ for win32? And did anyone make
an
external capable of running mp3s backward?
- dunno
1.5) I used alsaplayer for that (on linux, with jack), and I have the feeling that readanyfs~ will do it one day. august are you in vienna ? we could meet at the pure date and that would make up a nice afternoon project ;)
What I want(and need) is an object that translates a complete Mp3 into Pure-data compatible samples stored in the object (so a 3MB mp3 would
fill
up around 32Mb of sample data in an array inside of the object). Now the advantage of this aproach is that the data could be accessed as
tabread4~
accesses array data (fast-forward, rewing would all be accessed by
sendind a
the advantage would be none, if you want to 'access as tabread4~' then put it in a table, and keep in mind that pd's internal sample format is 32bit floats so a 1minute stereo file will be 60*srate*2*4 bytes.
signal of index values). The disadvange is the loading time (around 10
secs
on a fast computer, that's why it needs to be threaded).
if you can wait for even longer (and you have enough ram to waste) you
could
record it into [a] table[s] using readanyfs~ or mp3play~ or whatever.
regards,
x
-- chris@lo-res.org Postmodernism is german romanticism with better http://pilot.fm/ special effects. (Jeff Keuss / via ctheory.com)