Knob to wrap around, 0-127 to 0 again?
2008-06-13 by k5kip_1999
Yahoo Groups archive
Index last updated: 2026-04-28 23:16 UTC
Thread
2008-06-13 by k5kip_1999
Question # 3.14E159 Can I get a knob to wrap around like a button increments? So when the knob reaches 127 it will go back around to 0. I am using a knob on the BCR2000 to select a list of waveforms for a synthedit synth. but... it gets the end of the list and is stuck there. Suggestions? Kip
2008-06-13 by rpcfender
Hi Kip > Question # 3.14E159 Sort of a pi in the sky question? > Can I get a knob to wrap around like a button increments? > So when the knob reaches 127 it will go back around to 0. > I am using a knob on the BCR2000 to select a list of waveforms for a > synthedit synth. > but... it gets the end of the list and is stuck there. > Suggestions? Yes - sort of If you set the range .minmax 0 >127 it will wrap round . The bigger the number the more times it will wrap. eg The highest value... .minmax 0 $3FFF val7.13 val0.6 (same as val) 0000 0000 0111 1110 (126) 0000 0000 0111 1111 (127) 0000 0001 0000 0000 (128) 0000 0001 0000 0001 (129) 0000 0001 0000 0010 (130) etc The other alternative is to set the quick resolution very high .resolution 20 96 200 $3fff a quick back twist and it's at 0 Royce
2008-06-13 by k5kip_1999
2008-06-13 by rpcfender
2008-06-13 by k5kip_1999
That works fine! A little strange at first ... Thank you again! So... how do you know that $2000 is a midpoint? I know what your thinking... This guy needs to learn how to convert his bases. Can you recommend a good site for learning, this all seems to come down to that. Converting bin to hex and knowing the decimal. Thanks, Kip --- In bc2000@yahoogroups.com, "rpcfender" <rpcfender@...> wrote: > > Hi Kip > > > Trying to get a knob to do double duty again. > > So in the example below - trying for ifp = then it will change wave > form > > #1 on a synth and ifn then change waveform #2. They both need to wrap > > around. > > What you have here is both on midi ch 16, nrpns # 43 and 27 - the same > > knob. > > > > $encoder 43 ;wave1 + wave 2 > > .showvalue on > > .mode dot/off > > .resolution 24 48 96 197 > > you can take a mid point > .default $2000 > it will now wrap a limited number of times in either direction > > > .default 0 > > .minmax 0 $3FFF > > .tx ifn $BF $63 $00 $BF $62 $2B $BF $06 val ;IfN = wave1 change > > .tx ifp $BF $63 $00 $BF $62 $1B $BF $06 val ;IfP = wave2 change > > $end > > > > This works, almost ... wave 2 works great, wrapping like is should. > > Wave 1 needs to wrap back but it does not... > > > > I need ifn to wrap to 127 when it gets past 0. > so you should now be in business (?) > > > Let's say we have 5 wave forms. Sine, Saw, Tri, Pulse, white noise. > > The choice seems muddled. > > Again I am trying to choose waveforms for two different oscillators. > > Osc 1 = wave one and ifn .tx command. > > Osc2 = wave two and ifp .tx command. > > if you need less than 0 to 127 use smaller val ie val0.3 for 16 values > or val0 for 2 values > > > > > Now they are dependent upon each other. > > Yes, the value inside the BCR is always altered. That is there is only > one value for each controller not one for each direction. > > > If, ifn osc1 = saw, then I ifp osc2, first value change will = saw > then > > go tri then pulse. > > Now , if I ifn, osc1 = will jump up to from saw to pulse then go back > > down tri, saw then sine. > > Now ifp osc2= will jump from pulse down to sine on first val change
> then > > go up saw, tri, pulse, white noise, sine (warp nice), saw, tri > > Now ifn, osc1= will jump from sine to tri. > > > > So two questions develop. > > 1. Can I do what I am after? > > Almost, it seems, but not get an expected result. > > turn p 15,16, 0, 1, 2 - now turn n 1, 0, 16 for val0.3 > > > > 2. Do you understand what I am after? > I'm not sure > > > Any thoughts? > Yes but I'm keeping them to myself >
2008-06-13 by Jeff B
>Converting bin to hex and knowing the decimal. If you are running Windows, the standard calculator which comes with all versions of Windows will convert between bases. under the View menu in the Calculator app, set the view to scientific, then you can easily swap between decimal, hex, and binary. Jeff
2008-06-13 by rpcfender