Forums > MaxMSP

help with bcf2000

February 13, 2006 | 10:52 pm

Hi,
I’m trying to use my bcf2000 in max. I’ve succeed before but i’ve lost my patch in a computer crash and i can’t figure how i’ve made it.
I want to be able to update data like that
max -> bcf2000 and/or bcf2000 -> max.
I experienced glitches whenever i changed the controller in max or in bcf2000.
It should be pretty simple but i can’t make it work so if anybody have a clue here is a simple version of the patch.
Thanks

max v2;
#N vpatcher 10 59 1240 819;
#P window setfont Monaco 9.;
#P newex 111 103 63 262153 pack 0 0.;
#P newex 111 131 63 262153 route 1 2;
#P message 155 191 14 262153 2;
#P message 123 191 14 262153 1;
#P number 150 164 35 9 0 0 0 4 0 0 0 221 221 221 222 222 222 0 0 0;
#P number 111 164 35 9 0 0 0 4 0 0 0 221 221 221 222 222 222 0 0 0;
#P newex 111 234 43 262153 ctlout;
#P objectname ctlout;
#P newex 164 71 111 262153 var Control_value;
#P newex 164 26 40 262153 ctlin;
#P newex 8 141 53 262153 midiinfo;
#P user umenu 8 164 96 262183 1 64 179 0;
#X add "BCF2000 Port 1";
#X add "BCF2000 Port 2";
#X add "to Max/MSP 1";
#X add "to Max/MSP 2";
#P message 51 122 14 262153 0;
#P newex 8 95 53 262153 loadbang;
#P connect 3 0 2 0;
#P fasten 0 0 1 0 13 117 56 117;
#P connect 1 0 3 1;
#P fasten 4 1 12 0 184 57 116 57;
#P connect 12 0 11 0;
#P connect 11 0 7 0;
#P connect 8 0 6 0;
#P connect 7 0 6 0;
#P connect 2 1 6 0;
#P connect 7 0 9 0;
#P connect 10 0 6 1;
#P connect 9 0 6 1;
#P connect 11 1 8 0;
#P connect 8 0 10 0;
#P connect 4 0 5 0;
#P connect 5 0 12 1;
#P pop;


February 14, 2006 | 2:39 pm

hi,

You can try this :

max v2;
#N vpatcher 10 59 1240 819;
#P window setfont Monaco 9.;
#P newex 111 103 63 262153 pack 0 0.;
#P newex 111 131 63 262153 route 1 2;
#P message 155 191 14 262153 2;
#P message 123 191 14 262153 1;
#P number 150 164 35 9 0 0 0 4 0 0 0 221 221 221 222 222 222 0 0 0;
#P number 111 164 35 9 0 0 0 4 0 0 0 221 221 221 222 222 222 0 0 0;
#P newex 111 234 43 262153 ctlout;
#P objectname ctlout;
#P newex 164 71 111 262153 var Control_value;
#P newex 164 26 40 262153 ctlin;
#P newex 8 141 53 262153 midiinfo;
#P user umenu 8 164 96 262183 1 64 179 0;
#X add "BCF2000 Port 1";
#X add "BCF2000 Port 2";
#X add "to Max/MSP 1";
#X add "to Max/MSP 2";
#P message 51 122 14 262153 0;
#P newex 8 95 53 262153 loadbang;
#P connect 3 0 2 0;
#P fasten 0 0 1 0 13 117 56 117;
#P connect 1 0 3 1;
#P fasten 4 1 12 0 184 57 116 57;
#P connect 12 0 11 0;
#P connect 11 0 7 0;
#P connect 8 0 6 0;
#P connect 7 0 6 0;
#P connect 2 1 6 0;
#P connect 7 0 9 0;
#P connect 10 0 6 1;
#P connect 9 0 6 1;
#P connect 11 1 8 0;
#P connect 8 0 10 0;
#P connect 4 0 5 0;
#P connect 5 0 12 1;
#P pop;


February 14, 2006 | 2:43 pm

sorry, i send your patch… (past error !)

here is the patch :

max v2;
#N vpatcher 199 58 1429 818;
#P window setfont "Sans Serif" 9.;
#P window linecount 1;
#P message 156 156 39 196617 set $1;
#P message 111 157 39 196617 set $1;
#P window setfont Monaco 9.;
#P newex 111 103 63 262153 pack 0 0.;
#P newex 111 131 63 262153 route 1 2;
#P message 161 209 14 262153 2;
#P message 123 209 14 262153 1;
#P number 156 182 35 9 0 0 0 4 0 0 0 221 221 221 222 222 222 0 0 0;
#P number 111 182 35 9 0 0 0 4 0 0 0 221 221 221 222 222 222 0 0 0;
#P newex 111 252 43 262153 ctlout;
#P objectname ctlout;
#P newex 164 71 111 262153 var Control_value;
#P newex 164 26 40 262153 ctlin;
#P newex 8 141 53 262153 midiinfo;
#P user umenu 8 164 96 262183 1 64 179 0;
#X add "IAC Driver Bus IAC 1";
#X add "IAC Driver Bus IAC 2";
#X add "IAC Driver Bus IAC 3";
#X add "IAC Driver Bus IAC 4";
#X add "HDSP Digiface (1) Port 1";
#X add "HDSP Digiface (1) Port 2";
#X add "to Max/MSP 1";
#X add "to Max/MSP 2";
#P message 51 122 14 262153 0;
#P newex 8 95 53 262153 loadbang;
#P connect 3 0 2 0;
#P fasten 0 0 1 0 13 117 56 117;
#P connect 1 0 3 1;
#P fasten 4 1 12 0 184 57 116 57;
#P connect 12 0 11 0;
#P connect 11 0 13 0;
#P connect 13 0 7 0;
#P connect 8 0 6 0;
#P connect 7 0 6 0;
#P connect 2 1 6 0;
#P connect 7 0 9 0;
#P connect 10 0 6 1;
#P connect 9 0 6 1;
#P connect 11 1 14 0;
#P connect 14 0 8 0;
#P connect 8 0 10 0;
#P connect 4 0 5 0;
#P connect 5 0 12 1;
#P pop;


February 14, 2006 | 5:14 pm

Hi Francois,
Thanks for your answer but it doesn’t work better.
You can find a picture of my problem at this adress :
http://damorire.free.fr/pismo.gif
I want continuous line and everytime I change value in a new controller it starts with the value of the previous controller.


February 14, 2006 | 5:14 pm

Hi Francois,
Thanks for your answer but it doesn’t work better.
You can find a picture of my problem at this adress :
http://damorire.free.fr/pismo.gif
I want continuous line and everytime I change value in a new controller it starts with the value of the previous controller.


February 14, 2006 | 7:14 pm

the output of the ctlout is rigth to left, so the controller number comes out before the value.

this shoud solve your problem:

ctlout
pack //make a list of the control value and number without inverting the order
$2 $1 //invert the two elements of the list
unpack //get your values in the correct order

and then the rest of your patch.

happy patching,
//yac


February 15, 2006 | 12:08 pm

many thanks yacine it works fine now


February 17, 2006 | 1:20 pm

sorry,for my bad response….

so, you can use the swap object to do this:

ctlout
swap

FXW


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