Forums > MaxMSP

problem with trigger to bypass


k9
November 9, 2006 | 3:00 pm

Hi,

I have a problem with my patch below, I tried to comment it
extensively so that you get the idea what I am trying to do…;)

here is the problem:

Note 68 (G#3) should bypass my TC Fireworx. the only problem seems to
be that a noteon bypasses the Fireworx, whereas a noteoff immediately
turns bypass off again — in my limited abilities to use Max I have
not succeeded to stripnote the noteon/offs in a way that toggles a
toggle.

A bit of background: The notes I am inputting into Max come from a
Triggerbox, piezos are converted by a Roland TMC-6 (a six input
Trigger-To-Midi Box) and routed into an Emagic MT-4 Midi Interface.

I would be very happy if you could tell me what I’m doing wrong, I
feel like I am overlooking something tres simple…

thank you very much

kai

max v2;
#N vpatcher 197 44 1328 1050;
#P origin 99 29;
#P window setfont "Sans Serif" 9.;
#P window linecount 7;
#P comment 110 658 100 196617 I was thinking that stripnote would
toggle the toggle between 0 and 1 but for reasons unbeknownst to me
it is not working…;
#P window linecount 3;
#P comment 335 525 100 196617 G#3 should be filtered out to go to
bypass the TC;
#P comment 713 210 189 196617 this notein receives notes from a
Roland TMC-6 (Trigger-to-Midi Box) through an MT4 Midi interface;
#P window linecount 2;
#P comment 823 346 100 196617 obsolete , used this for testing;
#P window linecount 10;
#P comment 484 808 252 196617 This noteout is supposed to set bypass
of the TC-Fireworx on/off. problem is: a note on sets bypass to "on"
, a noteoff turns bypass off immediately. What I am trying to do is
filter out the noteoffs completely and have every other noteon send a
"1" while the others send a "0". the stripnote was my start ,
something seems to be wrong there , though;
#P window linecount 6;
#P comment 760 706 100 196617 This noteout goes to "from MaxMSP 1"
which is th input to Ableton Live to trigger samples and such.;
#P window linecount 4;
#P comment 376 306 100 196617 this is my monitor to make sure the
transpose does what I want;
#P number 226 715 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P toggle 226 686 15 0;
#P window linecount 1;
#P newex 226 657 51 196617 stripnote;
#P toggle 461 631 15 0;
#P button 558 585 15 0;
#P button 485 597 15 0;
#P comment 645 726 100 196617 from MaxMSP 1;
#P comment 485 785 100 196617 TC FireWorx;
#P newex 440 783 43 196617 noteout;
#P number 474 369 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P newex 439 528 60 196617 split 68 68;
#P window setfont "Sans Serif" 36.;
#P number 519 201 80 36 0 0 164 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P button 786 287 15 0;
#P window setfont "Sans Serif" 9.;
#P number 729 304 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P newex 722 346 88 196617 makenote 60 250;
#P button 538 368 15 0;
#P comment 370 37 100 196617 Something else;
#P comment 708 34 100 196617 Explosions;
#P button 370 53 58 0;
#P button 556 56 58 0;
#P button 708 52 58 0;
#P number 538 328 35 9 0 0 256 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P number 538 281 35 9 0 0 256 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P number 546 131 35 9 0 0 32 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P number 370 131 35 9 0 0 32 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P number 708 130 35 9 0 0 32 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P newex 593 725 43 196617 noteout;
#P newex 538 303 27 196617 +;
#P newex 664 211 40 196617 notein;
#P window linecount 2;
#P comment 556 28 100 196617 Aria-Samples , "Kerberos";
#P window linecount 7;
#P comment 893 43 100 196617 These three buttons transpose the notes
coming from the triggers — I only have 6 inputs , but need more
triggers during the play.;
#P window setfont "Sans Serif" 14.;
#P window linecount 2;
#P comment 110 612 100 196622 this is the problem:;
#P connect 21 0 29 0;
#P connect 29 0 30 0;
#P connect 30 0 31 0;
#P connect 13 0 7 0;
#P connect 10 0 21 0;
#P connect 28 0 23 1;
#P connect 21 0 28 0;
#P connect 3 2 23 2;
#P connect 10 0 22 0;
#P connect 21 0 26 0;
#P connect 8 0 20 0;
#P connect 7 0 20 0;
#P connect 6 0 20 0;
#P connect 17 0 9 0;
#P connect 3 0 9 0;
#P connect 9 0 4 0;
#P connect 4 0 10 0;
#P connect 10 0 16 0;
#P connect 12 0 8 0;
#P connect 8 0 4 1;
#P connect 7 0 4 1;
#P connect 6 0 4 1;
#P connect 21 1 27 0;
#P connect 21 1 5 0;
#P connect 3 1 5 1;
#P connect 17 1 5 1;
#P connect 3 2 5 2;
#P connect 11 0 6 0;
#P connect 18 0 17 0;
#P connect 19 0 18 0;
#P pop;

———————————————————————
canine_at_waf80_dot_de good night europe.
http://kainiggemann.de
———————————————————————


November 9, 2006 | 3:34 pm

On 9 nov. 06, at 16:00, K9 Kai Niggemann wrote:

> here is the problem:
>
> Note 68 (G#3) should bypass my TC Fireworx. the only problem seems to
> be that a noteon bypasses the Fireworx, whereas a noteoff immediately
> turns bypass off again — in my limited abilities to use Max I have
> not succeeded to stripnote the noteon/offs in a way that toggles a
> toggle.

noteoff has a velocity of 0, so do something like [notein]->[sel
0]->[noteout]:

#P window setfont "Sans Serif" 9.;
#P window linecount 1;
#P newex 244 225 43 196617 noteout;
#P message 244 182 43 196617 68 127;
#P newex 222 151 32 196617 sel 0;
#P newex 207 117 40 196617 notein;
#P comment 251 119 100 196617 from trigger;
#P comment 296 182 100 196617 note 68 on;
#P comment 298 226 100 196617 to fireworx;
#P connect 4 1 5 0;
#P connect 5 0 6 0;
#P connect 3 1 4 0;
#P window clipboard copycount 7;


November 9, 2006 | 3:38 pm

hello kai,

the easiest way i could think of solving your problem is to make
velocity 0 (noteoff) close a gate, which will prevent your notes to
change the toggle’s state twice for every note.

see below

hth

/*j

> Note 68 (G#3) should bypass my TC Fireworx. the only problem seems
> to be that a noteon bypasses the Fireworx, whereas a noteoff
> immediately turns bypass off again — in my limited abilities to
> use Max I have not succeeded to stripnote the noteon/offs in a way
> that toggles a toggle.

max v2;
#N vpatcher 197 44 597 391;
#P origin 99 29;
#P toggle 129 178 15 0;
#P window setfont "Sans Serif" 9.;
#P window linecount 1;
#P message 97 79 20 196617 67;
#P message 75 79 20 196617 68;
#P newex 116 141 27 196617 != 0;
#P newex 76 198 29 196617 gate;
#P comment 128 78 100 196617 used this for testing;
#P toggle 76 221 15 0;
#P newex 75 141 38 196617 sel 68;
#P newex 75 105 88 196617 makenote 68 250;
#P comment 149 143 215 196617 noteon when velocity not zero:: open
the gate;
#P connect 7 0 1 0;
#P connect 8 0 1 0;
#P connect 1 0 2 0;
#P connect 6 0 5 0;
#P connect 5 0 3 0;
#P connect 2 0 5 1;
#P connect 1 1 6 0;
#P connect 6 0 9 0;
#P pop;


November 16, 2006 | 8:01 am

K9 Kai Niggemann wrote:
> I would be very happy if you could tell me what I’m doing wrong, I feel
> like I am overlooking something tres simple…

stripnot is ment to be connected with both inputs, and if you send the
toggle a 68, it will switch on and pass a 68 always (its not a 1).

You need to have a stripnote directly after your notein connected with
note and velocity, and then have a [sel 68] instead of the split to
trigger the toggle with a bang…

Stefan


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


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