Reply To: Demo panel for MIDI receive/transmit routines

Home Forums General Using Ctrlr Demo panel for MIDI receive/transmit routines Reply To: Demo panel for MIDI receive/transmit routines

#73273
dnaldoog
Participant
    • Topics: 4
    • Replies: 480
    • Total: 484
    • ★★

    Glad it worked for you!

    To change the thumb colour on all sliders, you could put them into an array:

    _s={"wave","coarse","fine","cutoff","reso","atk","dec","sus","rel","level"} 
    -- some example properties you can change
    for _,v in pairs(_s) do -- 'v' is each element in the array _s
    panel:getModulatorByName(v):getComponent():setProperty ("uiSliderRotaryTextColour","FF00FFFF",true)
    panel:getModulatorByName(v):getComponent():setProperty ("uiSliderRotaryFillColour","FFffFFFF",true)
    panel:getModulatorByName(v):getComponent():setProperty ("uiSliderThumbColour","FF00FF00",true)
    panel:getModulatorByName(v):getComponent():setProperty ("uiSliderValueBgColour","FF00FFFF",true)
    panel:getModulatorByName(v):getComponent():setProperty ("uiSliderValueTextColour","FF000000",true)
    panel:getModulatorByName(v):getComponent():setProperty ("uiSliderTrackColour","FF000000",true)
    
    end

    then loop through and change any property you like. There is a full list of constructor?? (property) names in :

    • panel -> modulator list -> View -> Visible Columns

    ..scroll down and you will see all the uiSlider constructors (I don’t know if that’s the right term) – looking down the list, you can see uiSliderThumbColour (you already know the name)

    Ctrlr