Hi Rory, I wonder if you have any time/appetite for updating the appearance of hrange
and vrange
?
First of all, I found that they work much better in queue
mode so have started using them again. I’m placing image
behind each of them to indicate the empty channel beyond the tracker and using nsliders
to display values left and right for upper and lower sliders. hrange
doesn’t currently respond to valueTextBox()
. valueTextBoxes
are very useful for inputting precise values. Also double-clicking hslider
to return it to its initial location is dead handy and would be lovely to have it in hrange
too.
What do you or does anybody else think about adding any of this? I appreciate that there are certain layout challenges.
<Cabbage>
form caption("hrange") size(640, 400), colour(40,40,45), guiMode("queue"), pluginId("def1")
label bounds( 65, 9,510, 13), text("RANGE"), align("centre"), $FONT_COLOUR
image bounds( 75, 33,490, 4), colour("Black")
hrange bounds( 65, 25,510, 20), channel("Upp","Low"), range(0, 1, 0.2:0.5, 1, 0.0001), trackerColour(100,100,100)
nslider bounds( 5, 26, 60, 20), channel("UppD"), range(0,1,0.2)
nslider bounds(575, 26, 60, 20), channel("LowD"), range(0,1,0.5)
hrange bounds( 65,125,510, 20), channel("1","2"), range(0, 1, 0.2:0.5, 1, 0.0001)
hrange bounds( 65,225,510, 20), channel("3","4"), text("RANGE"), range(0, 1, 0.2:0.5, 1, 0.0001)
hslider bounds( 65,325,510, 20), channel("5","6"), text("hslider"), range(0, 1, 0.5)
</Cabbage>
<CsoundSynthesizer>
<CsOptions>
-n -d -+rtmidi=NULL -M0 --midi-key-cps=4 --midi-velocity-amp=5
</CsOptions>
<CsInstruments>
ksmps = 32
nchnls = 2
0dbfs = 1
instr 1
kUpp,kT cabbageGetValue "Upp"
cabbageSetValue "UppD",kUpp,kT
kLow,kT cabbageGetValue "Low"
cabbageSetValue "LowD",kLow,kT
endin
</CsInstruments>
<CsScore>
i 1 0 z
</CsScore>
</CsoundSynthesizer>