buffer pattr and wave files

Mar 7, 2008 at 10:44am

buffer pattr and wave files

Hello World

I seem to be unable to load certain audio wave files into a buffer~
if I load a file via opendialog/pattr/sprintf replace %s 0 -1 2/buffer~
I constantly get an error message.

It works perfectly, though, if I use a message with replace 0 -1 2, and I open the file directly.

This happens only with certain wave files, NOT all of them.
Works perfectly with AIFF.

I tried changing location, file names, default program to open with, read/write preferences.

Nothing serious, but it is curious that it works one way and not the other, and that it happens only with a few wave files.

The files open regularly in any other audio app.

I want to use the replace %s 0 -1 2 message because I want to be able to keep 2 ch in the buffer.

I have not been able to trace a topic with a similar problem.

here is a little patch to explain:

max v2;
#N vpatcher 260 44 860 444;
#P window setfont “Sans Serif” 10.;
#P window linecount 6;
#P comment 358 226 100 196618 Happens only with certain wave files , not with others. Wave files open regularly in other Audio apps.;
#P window linecount 5;
#P comment 81 231 100 196618 error message: Macintosh HD:/Users/blablabla/file name.wav : can

#36241
Mar 7, 2008 at 5:25pm

Jabbo schrieb:
> This happens only with certain wave files, NOT all of them. Works
> perfectly with AIFF.

I bet the ones which don’t work have spaces in their name…

try this:

#P window setfont “Sans Serif” 9.;
#P window linecount 1;
#P newex 21 140 83 196617 prepend replace;
#P newex 21 117 50 196617 tosymbol;
#P newex 21 94 109 196617 pattr @autorestore 0;
#X prestore 1 0 0;
#P objectname u813000001;
#P message 163 170 75 196617 replace 0 -1 2;
#P button 21 42 15 0;
#P newex 21 170 136 196617 append 0 -1 2;
#P newex 21 65 84 196617 opendialog sound;
#P newex 21 208 109 196617 buffer~ Nando 2000 2;
#B color 8;
#P connect 7 0 2 0;
#P connect 2 0 0 0;
#P connect 6 0 7 0;
#P connect 5 0 6 0;
#P fasten 4 0 0 0 168 196 26 196;
#P connect 1 0 5 0;
#P connect 3 0 1 0;
#P window clipboard copycount 8;


Stefan Tiedje————x——-
–_____———–|————–
–(_|_ —-|—–|—–()——-
– _|_)—-|—–()————–
———-()——–www.ccmix.com

#124249
Mar 9, 2008 at 12:48pm

really curious, even renamed, without spaces, or anything.
No, I simply had to convert 134 loops from WAVE to AIFF.

Boring, but I had a box of Leibniz with dark chocolate to keep me up!

Thanks for the help!

#124250
Mar 11, 2008 at 9:44am

Jabbo schrieb:
> really curious, even renamed, without spaces, or anything.
> No, I simply had to convert 134 loops from WAVE to AIFF.

Its the path you have to be careful about, if there is a space in it
you’d still need to convert it with [tosymbol].
The other possibility is that you maybe didn’t take care of the correct
extension? On Mac and windows its possible to hide the extension. Then
if you have a MySound.wav.wav it looks as if you have the extension set
to be visible, but maybe its not…
It should not be necessary to convert the files, Max is happy with wave
and aiff…
I usually use a ubumenu filled with my sound files. Then ubumenu takes
care of the correct spelling…

Stefan


Stefan Tiedje————x——-
–_____———–|————–
–(_|_ —-|—–|—–()——-
– _|_)—-|—–()————–
———-()——–www.ccmix.com

#124251

You must be logged in to reply to this topic.