Forums > MaxMSP

bang stays on

November 19, 2009 | 2:54 am

greetings, when pressing the button marked "load it" in the following patch the bang stays on. indeed even loading a sample into buffer with a bang to trigger "read" message (to the right) the bang stays on. but only some of the time, and with some of the samples. i get it must take bit to read the sample from disk but sometimes it stays on indefinitely. why is this? cheers,,

— Pasted Max Patch, click to expand. —
November 19, 2009 | 2:59 am

oh and also i want the buffer~ to be the same size as the sound file i’m loading. right now it’s always about 1.5 seconds long. this is the output from the info~ object. how can i make the buffer contain the whole sample?

November 19, 2009 | 3:21 am

Try using the "replace" message instead of the "read" message as this will resize the [buffer~] automatically to the length of the chosen file. I used to sometimes get [button]s staying lit after pressing them when loading files. I think one of the updates fixed this, or at least I haven’t noticed it recently. Are you running the most recent version of max?


November 19, 2009 | 3:43 am

hi. yep i am using the latest version 5.0.8 (40079) downloaded from the mac portion of the downloads page. indeed, the replace message works better but sometimes the button stays on still. seems to happen when replacing a mono sound file with a stereo one (i.e. i’m using the stock sound files in /applications/max5/examples/sounds i.e. replace one of the mono sound files with the "anton" stereo sound file). as i said it doesn’t happen always and happens less with the "replace" message. thanks.

November 19, 2009 | 7:05 am

Send the bang through a deferlow or a deferlow and a delay, that must help.

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

Forums > MaxMSP