Using external files as raw data to output sound in MAX/MSP

Koli's icon

Hi everyone,

I'm fairly new to MAX/MSP and I have been experimenting with importing raw data into Audacity and playing/editing the noise.

However I want to read these files in MAX from a specific directory (for example a floppy disk or a directory on the desktop) and play those files as raw audio, one after the other in a continuous loop

I'm guessing this is possible! Does any one have any ideas?

Many thanks, K

Roman Thilenius's icon

the audio objects in max do not support this "format" at all, but you could stick with audacity or soundhack and convert files from there.

in max itself you can of course use objects like [text] or [filein] to read any kind of data you wish, but you would need to convert it in order to write it in a buffer~ object via peek~ - and that is quite a slow process.

-110

11OLSEN's icon

I came up with this patcher a while ago after seeing the tom cosm video where he's opening any file as audio, with Audacity if i remember correctly.
I just listened to Max.exe, and it sounds as if there are more bugs that have to be fixed in this software. O.

open-as-audio.zip
zip
Floating Point's icon
Max Patch
Copy patch and select New From Clipboard in Max.

just modified 11olsen's patch so it doesn't blow your speakers, also scale object args were causing silence on my version (of max, operating system), so replaced with normalizing function: