midi/usb in 10 bits??

Sep 16, 2007 at 9:21am

midi/usb in 10 bits??

hi

someone just did a controller (expression Pedal) for me, which plug
directly in my mac by an USB cable – and is seen in MAX with a Ctlin
(on midi channel 1, CC number 1)

i receive all values between 0-127; all is fine.

However the person told me it emits on 10 bits… which i assume
would give a finer definition.

_since I can not reach the person right now, what is the way to check
if a controller is 10 bits, should it emit more values etc etc

many thanks for some insight

best

kasper

Kasper T. Toeplitz
noise, composition, bass, computer

http://www.sleazeArt.com

http://www.myspace.com/sleazeart

#33696
Sep 16, 2007 at 9:41am

On 16 Sep 2007, at 10:21, Kasper T Toeplitz wrote:

> _since I can not reach the person right now, what is the way to
> check if a controller is 10 bits, should it emit more values etc etc

Is anything coming on under controller #33? That would be your LSB
value.

– N.

Nick Rothwell / Cassiel.com Limited
http://www.cassiel.com
http://www.myspace.com/cassieldotcom
http://www.loadbang.net

#112581
Sep 17, 2007 at 5:48am

Kasper T Toeplitz schrieb:
> hi
>
> someone just did a controller (expression Pedal) for me, which plug
> directly in my mac by an USB cable – and is seen in MAX with a Ctlin
> (on midi channel 1, CC number 1)
>
> i receive all values between 0-127; all is fine.
>
> However the person told me it emits on 10 bits… which i assume
> would give a finer definition.

If you replace the ctlin with the below patch (name it ctl.in) and
attach a float to the output, you will receive a higher precision if it
sends them between 0. and 128…

Stefan

#P window setfont “Sans Serif” 9.;
#P window linecount 1;
#P newex 82 275 50 196617 change 0.;
#P newex 82 322 50 196617 change 0.;
#P newex 18 253 50 196617 / 128.;
#P objectname /;
#P newex 18 186 32 196617 + 32;
#P objectname +;
#P newex 18 207 61 196617 prepend set;
#P newex 18 231 61 196617 ctlin 32;
#P objectname LSBin;
#P newex 18 275 61 196617 + 0.;
#P objectname add;
#P newex 18 57 136 196617 route int;
#N thispatcher;
#Q end;
#P newobj 205 138 62 196617 thispatcher;
#N vpatcher 29 113 419 375;
#P outlet 20 188 15 0;
#P window setfont “Sans Serif” 9.;
#P newex 29 99 118 196617 sprintf script replace LSBin newex 11 224 61
196617 ctlin 32 %i;
#P window linecount 0;
#P newex 258 73 27 196617 t i b;
#P message 275 99 39 196617 script delete chout;
#P newex 218 51 50 196617 zl slice 1;
#P outlet 150 188 15 0;
#P inlet 218 28 15 0;
#P window linecount 3;
#P newex 150 99 118 196617 sprintf script replace ctlin newex 75 224 112
196617 ctlin 0 %i;
#P fasten 3 0 7 0 223 80 25 80;
#P fasten 5 0 6 0 263 95 34 95;
#P fasten 5 0 0 0 263 95 155 95;
#P connect 4 0 2 0;
#P connect 6 0 2 0;
#P connect 0 0 2 0;
#P connect 1 0 3 0;
#P connect 3 1 5 0;
#P connect 5 1 4 0;
#P pop;
#P newobj 157 111 58 196617 p scripting;
#P newex 157 57 62 196617 patcherargs;
#N comlet;
#P outlet 184 345 15 0;
#P objectname chout;
#P newex 82 207 61 196617 prepend set;
#P newex 82 231 112 196617 ctlin 0;
#P objectname ctlin;
#P inlet 18 34 15 0;
#P outlet 82 345 15 0;
#P fasten 6 0 12 0 162 182 23 182;
#P fasten 6 0 3 0 162 182 87 182;
#P fasten 10 1 4 0 74 255 189 255;
#P fasten 8 1 10 0 149 227 23 227;
#P fasten 8 1 2 0 149 227 87 227;
#P connect 8 0 12 0;
#P connect 8 0 3 0;
#P connect 1 0 8 0;
#P connect 12 0 11 0;
#P connect 11 0 10 0;
#P connect 10 0 13 0;
#P connect 13 0 9 0;
#P connect 3 0 2 0;
#P connect 2 0 15 0;
#P connect 2 0 9 1;
#P connect 15 0 14 0;
#P connect 9 0 14 0;
#P connect 14 0 0 0;
#P connect 2 1 4 0;
#P connect 5 0 6 0;
#P connect 6 1 7 0;
#P window clipboard copycount 16;


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

#112582

You must be logged in to reply to this topic.