Forums > MaxMSP

Creating smaller audio files or Mp3 in Max/MSP


CC
March 27, 2008 | 10:59 am

Hi,
A little off topic of max/msp but I’m trying to convert some sound files into the smallest possible to be used with max/msp.

The best compression format seems to be Mp3 although it won’t allow me to open this file type up in MP3. Only Wav.!! Is it possible to open mp3? or could I covert the Mp3 back into a Wav after and keep the file size?

Any Ideas? I don’t want to mess with the sample rate too much and doesn’t do that much good!.

I’ve got a deadline very soon so any help would be greatly apprieated since hardly anyone seems to help on here. lol

Cheers, Carl

P.s. I’ve attached a wav file which shouldnt need more then 10kb in therory!


March 27, 2008 | 11:43 am

Buffer~ and sfplay~ read lots of formats. Given you WAV fixation one would guess you’re on Windows.

1) Why don’t you tell us this instead of making us guess?

2) You can open MPEG files with buffer~, but there is fineprint to read in the MSP reference manual. Look at page 75, particularly the paragraph including the sentence "If you are using Max on Windows…"



CC
March 27, 2008 | 12:24 pm

Yes, I am using windows. When opening a file with the buffer the only files you can open are wav, snd, aif, aiff!



CC
March 27, 2008 | 12:27 pm

and Mpeg would not help my situation of trying to get the AUDIO files down to a minimum size! cheers anyways


March 27, 2008 | 1:10 pm

With patience and RAM, you can import Mp3 files to buffer~ with the import message.

You can try this too (a look at Max Objects Database is one of the time a good starting point when you search something) http://www.maxobjects.com/?v=objects&id_objet=3530&requested=MP3&operateur=AND&id_plateforme=0


March 27, 2008 | 1:23 pm

Forget about the second idea, it’s an Mp3 Encoder and not a Decoder.



kjg
March 27, 2008 | 10:28 pm

Quote: CC wrote on Thu, 27 March 2008 13:27
—————————————————-
> and Mpeg would not help my situation of trying to get the AUDIO files down to a minimum size! cheers anyways
—————————————————-

.mp3 is short for MPEG 1 layer 3



CC
March 28, 2008 | 8:27 am

thanks Bertrand,

Sorry, I am new to max/msp! what do you mean the import message?

Also, i’ve looked for mp3 encoders, but can’t seem to find any. i’ll keep trying tho.

Im gonna downsample them a little but converting into a smaller format like mp3 would be perfect if its possible

cheers lads


March 28, 2008 | 10:06 am

#P toggle 179 170 15 0;
#P window setfont "Sans Serif" 9.;
#P window linecount 1;
#P message 179 186 50 9109513 loop $1;
#P user ezdac~ 74 290 118 323 0;
#P button 32 131 15 0;
#P flonum 32 170 35 9 0 0 0 139 0 0 0 221 221 221 222 222 222 0 0 0;
#P newex 74 170 50 9109513 sig~ 1;
#P newex 74 228 79 9109513 groove~ un 2;
#P comment 141 78 256 9109513 Change this number if you want an other size.;
#P message 57 31 34 9109513 import;
#P newex 57 61 83 9109513 buffer~ un 5000 2;
#P comment 92 32 249 9109513 Click here and choose an mp3 file to import in the buffer.;
#P comment 141 62 256 9109513 5000 means it will import only 5000 milliseconds of the file.;
#P comment 48 131 147 9109513 Click here to read the 5 seconds.;
#P comment 154 230 261 9109513 Note that you can use other ways to read data from buffer~;
#P comment 195 170 73 9109513 Loop ON / OFF;
#P connect 14 0 13 0;
#P fasten 13 0 8 0 184 215 79 215;
#P connect 8 1 12 1;
#P connect 10 0 8 0;
#P connect 9 0 8 0;
#P connect 8 0 12 0;
#P connect 6 0 5 0;
#P connect 11 0 10 0;
#P window clipboard copycount 15;

But this method needs to be very patient…


Viewing 9 posts - 1 through 9 (of 9 total)