Forums > MaxMSP

app. cant open sounds

May 13, 2006 | 10:15 pm

hello,

i recently put together few simple patches as application, everything
works fine but it wont open sound files from a chosen folder. all i
get is this message: cant open blblabla.aif

i dont get any error while building the application and i dont
understand why it does not work.

am i missing something??

the method i use to load files in the menu is the one below, if i use
different methods i get an error message when building the app.

thank you in advance for your help

j.

max v2;
#N vpatcher 51 114 813 514;
#P window setfont "Sans Serif" 9.;
#P window linecount 2;
#P newex 365 326 80 196617 buffer~ who 5000;
#P window linecount 1;
#P newex 323 113 44 196617 loadbang;
#P button 400 82 15 0;
#P user ubumenu 320 233 100 196617 0 1 1 0;
#X add cicale.aif;
#X add "bleeps confused.aif";
#X add "future train.aif";
#X add "breathing sound.aif";
#X add "old engine.aif";
#X add "up to.aif";
#X add engine3.aif;
#X add mechaniclow.aif;
#X add "was a bike.aif";
#X add ping.aif;
#X add "pu pu aiff.aif";
#X add tremoloboat.aif;
#X add tones.aif;
#X add 2fteq.aif;
#X add "hit modulated.aif";
#X add "camera loading.aif";
#X add "rhytmic camera.aif";
#X add "camera engine.aif";
#X add "camera engine2.aif";
#X add "dirty camera rythm.aif";
#X add "minimal mechanic.aif";
#X add "zigzag glich.aif";
#X prefix_set 0 0 0;
#X pattrmode 1;
#P message 323 137 54 196617 types AIFF;
#P window linecount 2;
#P newex 401 112 70 196617 opendialog fold;
#P newex 401 177 31 196617 folder;
#P newex 365 279 73 196617 prepend replace;
#P connect 1 0 4 0;
#P connect 6 0 3 0;
#P connect 4 1 0 0;
#P connect 0 0 7 0;
#P connect 5 0 2 0;
#P connect 2 0 1 0;
#P connect 3 0 1 0;
#P pop;


May 14, 2006 | 7:09 am

Hi jigen,

A filepath problem, missing for [buffer~].
Try the patcher below.

HTH,
Philippe

\|//
:(o o):
—oOOo-(_)-oOOo—

max v2;
#N vpatcher 12 308 391 633;
#P window setfont "Sans Serif" 9.;
#P newex 239 117 72 196617 prepend prefix;
#P newex 239 98 62 196617 absolutepath;
#P newex 199 233 87 196617 buffer~ who 5000;
#P newex 199 210 76 196617 prepend replace;
#P newex 10 81 116 196617 t b clear prefix;
#P newex 10 60 44 196617 loadbang;
#P button 154 32 23 9;
#P user ubumenu 154 178 100 196617 0 1 1 0;
#X prefix_set 0 1 0;
#X pattrmode 1;
#P message 10 108 54 196617 types AIFF;
#P newex 154 60 71 196617 opendialog fold;
#P newex 154 141 32 196617 folder;
#P connect 5 0 6 0;
#P connect 6 0 2 0;
#P connect 4 0 1 0;
#P fasten 1 0 0 0 159 130;
#P fasten 2 0 0 0 15 136 159 136;
#P connect 0 0 3 0;
#P connect 10 0 3 0;
#P connect 6 2 3 0;
#P connect 6 1 3 0;
#P connect 3 1 7 0;
#P connect 7 0 8 0;
#P connect 1 0 9 0;
#P connect 9 0 10 0;
#P pop;


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