Message
Re: Knob to wrap around, 0-127 to 0 again? + 127 -0 to 127 again...
2008-06-13 by k5kip_1999
I am not sure I was clear.
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
.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.
Hmmm I wonder if I could make that go in reverse... how to do that tho?
On further inspection of the resulting behavior - and it makes sense now that I think about it...
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.
Now they are dependent upon each other.
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.
2. Do you understand what I am after?
Any thoughts?
I keep trying to wring out more than might be possible from this thing.
I suppose I could go relative, however, then I don't have the ifn or ifp...
Kip
--- In bc2000@yahoogroups.com, "rpcfender" wrote:
>
> 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
>
Attachments
- No local attachments were found for this message.