Forums > MaxMSP

strange behavior

April 22, 2006 | 8:42 pm

Hi all,

I’m at a total loss. I’m working on a patch, which seems to function
fine if I trigger an event manually (either by clicking, or using
[key] to trigger) but if i try to automate it with [trigger] or
[metro] or even sending a midi event, it behaves completely
differently. I know i’m doing something really stupid, but I can’t
for the life of me figure out what! I isolated the problem in the
patch below, it looks like it’s doing the same thing if you click or
hit tab or use the metro, but if the metro sends a bang, it behaves
complely differently. is anyone able to reproduce this?

thanks so much!

best,
erik

#P window setfont "Sans Serif" 9.;
#P window linecount 1;
#P newex 347 253 48 196617 loadbang;
#P newex 344 80 48 196617 loadbang;
#P message 344 100 71 196617 set $1dumpin;
#P newex 483 208 61 196617 send $0end;
#P newex 407 209 69 196617 send $0start;
#P user waveform~ 344 120 200 74 3 9;
#W mode select;
#W mouseoutput continuous;
#W unit ms;
#W grid 1000.;
#W ticks 0;
#W labels 1;
#W vlabels 0;
#W vticks 1;
#W bpm 120. 4.;
#W frgb 33 0 0;
#W brgb 60 178 173;
#W rgb2 0 95 255;
#W rgb3 0 0 0;
#W rgb4 0 0 0;
#W rgb5 190 137 255;
#W rgb6 100 100 100;
#W rgb7 100 100 100;
#P user ezdac~ 70 86 114 119 0;
#P message 347 273 79 196617 set $1pasteone;
#P user waveform~ 347 294 200 74 3 9;
#W mode select;
#W mouseoutput continuous;
#W unit ms;
#W grid 1000.;
#W ticks 0;
#W labels 1;
#W vlabels 0;
#W vticks 1;
#W bpm 120. 4.;
#W frgb 33 0 0;
#W brgb 60 178 173;
#W rgb2 0 95 255;
#W rgb3 0 0 0;
#W rgb4 0 0 0;
#W rgb5 190 137 255;
#W rgb6 100 100 100;
#W rgb7 100 100 100;
#P message 201 85 43 196617 replace;
#P newex 201 105 118 196617 buffer~ $1dumpin 1000;
#N vpatcher 19 343 619 743;
#P inlet 50 25 15 0;
#P window setfont "Sans Serif" 9.;
#P newex 157 50 75 196617 receive $0end;
#P newex 72 50 83 196617 receive $0start;
#P button 50 50 15 0;
#P newex 50 93 126 196617 buffer~ $1pasteone 1000;
#N vpatcher 100 211 992 675;
#P origin 49 -11;
#P inlet 31 21 15 0;
#P window setfont "Sans Serif" 9.;
#P newex 31 106 30 196617 t b b;
#P window linecount 1;
#P newex 120 380 91 196617 peek~ $1pasteone;
#P window linecount 0;
#P newex 160 329 27 196617 + 0;
#N vpatcher 371 318 971 718;
#N comlet length;
#P outlet 303 264 15 0;
#N comlet offset;
#P outlet 101 254 15 0;
#P window setfont "Sans Serif" 9.;
#P newex 105 141 66 196617 mstosamps~;
#N vpatcher 47 74 647 474;
#P outlet 290 294 15 0;
#P window setfont "Sans Serif" 9.;
#P newex 234 234 66 196617 mstosamps~;
#P newex 234 202 27 196617 – 0.;
#P inlet 377 89 15 0;
#P inlet 128 72 15 0;
#P connect 1 0 2 0;
#P connect 2 0 3 0;
#P connect 0 0 2 1;
#P connect 3 1 4 0;
#P pop;
#P newobj 291 125 60 196617 p uziLength;
#P inlet 392 61 15 0;
#P inlet 148 64 15 0;
#P connect 3 1 4 0;
#P connect 0 0 3 0;
#P connect 0 0 2 0;
#P connect 2 0 5 0;
#P connect 1 0 2 1;
#P pop;
#P newobj 177 260 63 196617 p uziFormat;
#P newex 108 297 40 196617 uzi;
#P newex 160 354 83 196617 peek~ $1dumpin;
#N comlet to buffer – resize;
#P outlet 343 227 15 0;
#P message 343 206 43 196617 size $1;
#P flonum 343 185 45 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#N vpatcher 126 359 726 759;
#P window setfont "Sans Serif" 9.;
#P newex 95 139 62 196617 prepend set;
#P outlet 95 175 15 0;
#P newex 95 103 27 196617 – 0.;
#P inlet 132 59 15 0;
#P inlet 94 59 15 0;
#P connect 1 0 2 0;
#P connect 2 0 4 0;
#P connect 4 0 3 0;
#P connect 0 0 2 1;
#P pop;
#P newobj 343 100 45 196617 p length;
#P button 31 43 56 0;
#P inlet 206 45 15 0;
#P inlet 138 45 15 0;
#P connect 13 0 2 0;
#P connect 2 0 12 0;
#P fasten 12 0 8 0 36 210 113 210;
#P fasten 8 2 11 0 143 347 125 347;
#P fasten 9 1 8 1 235 287 143 287;
#P fasten 8 2 10 0 143 321 165 321;
#P connect 10 0 7 0;
#P connect 7 0 11 1;
#P fasten 0 0 9 0 143 97 182 97;
#P connect 9 0 10 1;
#P fasten 1 0 9 1 211 97 235 97;
#P fasten 0 0 3 0 143 75 348 75;
#P fasten 12 1 4 0 56 154 348 154;
#P connect 3 0 4 0;
#P connect 4 0 5 0;
#P connect 5 0 6 0;
#P fasten 1 0 3 1 211 75 383 75;
#P pop;
#P newobj 50 71 54 196617 p resizing;
#P connect 5 0 2 0;
#P connect 2 0 0 0;
#P connect 0 0 1 0;
#P connect 3 0 0 1;
#P fasten 4 0 0 2 162 69 99 69;
#P pop;
#P newobj 626 203 57 196617 p pasteone;
#P toggle 609 90 15 0;
#P message 609 133 14 196617 9;
#P newex 609 111 64 196617 metro 1500;
#P newex 626 133 40 196617 key;
#P newex 626 159 46 196617 select 9;
#P button 626 181 18 0;
#P window linecount 2;
#P comment 609 58 191 196617 3) hit the tab key – it copies , now
turn on the metro – it should clear the buffer.;
#P window linecount 1;
#P comment 199 66 100 196617 1) load in a file;
#P comment 342 64 100 196617 2) make a selection;
#P comment 71 67 60 196617 0) audio on;
#P connect 4 0 10 0;
#P connect 5 0 4 0;
#P fasten 8 0 5 0 614 155 631 155;
#P connect 6 0 5 0;
#P connect 7 0 8 0;
#P connect 9 0 7 0;
#P connect 16 3 18 0;
#P connect 16 2 17 0;
#P connect 14 0 13 0;
#P connect 21 0 14 0;
#P connect 19 0 16 0;
#P connect 20 0 19 0;
#P connect 12 0 11 0;
#P window clipboard copycount 22;


http://www.hecanjog.com / http://www.cedarav.com / http://www.luvsound.org

he can jog split ep with jahbitat forthcoming on norsordo:

http://www.nosordo.com

Switches and Intricate Maximals comps out now on Audiobulb Records

http://www.audiobulb.com


April 22, 2006 | 10:34 pm

Hi Erik

You have two solutions first is simply to put a defer object between the ’9′ and the ‘select 9′

And the second solution is even more simple – turn overdrive off.

I struggled with this same thing so i know your pain! The help file for defer helps to explain why this works:

"When Overdrive mode is enabled, objects such as metro operate in a high-priority scheduler thread. If you want to execute a time-consuming task, such as using an Uzi for repetitive operations or the bang message to a table object, you can defer the output to the lower priority main thread by passing a message through the defer object."

Hope that helped,

john.


April 23, 2006 | 1:52 am

Brilliant! Thanks John! That’s really good to know, I felt a little
crazy for a while.

Best,
Erik


http://www.hecanjog.com / http://www.cedarav.com / http://www.luvsound.org

he can jog split ep with jahbitat forthcoming on norsordo:

http://www.nosordo.com

Switches and Intricate Maximals comps out now on Audiobulb Records

http://www.audiobulb.com


April 30, 2006 | 2:41 pm

erik schoster wrote:
> I isolated the problem in the patch below, it looks like it’s doing
> the same thing if you click or hit tab or use the metro, but if the
> metro sends a bang, it behaves complely differently. is anyone able
> to reproduce this?

No, the metro and the bang/tab behave the same. But it seams you want to
behave it differently, as the comment states "it should clear the buffer."

Of course it will fill the buffer with the choosen selection and it does
so, no idea why you would expect it to clear the buffer, as the bangs
also don’t clear it…

Not quite clear what the metro is aimed for…

Stefan

[][] [][][] [][] [][][]
[][][][][][][][][][][][][][][]

Stefan Tiedje
Klanggestalter
Electronic Composition
&
Improvisation

/~~~~~
\ /|() ()|
))))) )| | |( \
/// _/)/ )))))
___/ ///

————————-x—-
–_____———–|———–
–(_|_ —-|—–|—–()—-
– _|_)—-|—–()———–
———-()————x—–

14, Av. Pr. Franklin Roosevelt,
94320 Thiais, France
Phone at CCMIX +33-1-57 42 91 09


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