Reply To: Using customComponents to draw knobs and sliders

Home Forums General Using Ctrlr Using customComponents to draw knobs and sliders Reply To: Using customComponents to draw knobs and sliders

#28147
zeoka
Participant
    • Topics: 73
    • Replies: 466
    • Total: 539
    • ★★★

    There is case of using jknob image in slider is limited even with
    expressions , lua and maxval minval properties :

    osc1 octave : min val 0 max 96 interv 12
    valexpression : modulatorValue + 16
    valexpresion rev : midiValue – 16
    I MUST start by 0 BECAUSE it is an Imageslider
    If it was a simple slider I just would do
    osc1 octave : min val 16 max 112 interv 12

    panel:getModulatorWithProperty("vstIndex",64):setModulatorValue((writemods:getByte(1)) - 16,false,false,false) 
    panel:getModulatorWithProperty("vstIndex",65):setModulatorValue((writemods:getByte(2)) - 52,false,false,false)
    panel:getModulatorWithProperty("vstIndex",66):setModulatorValue(writemods:getByte(3),false,false,false)
    panel:getModulatorWithProperty("vstIndex",67):setModulatorValue((writemods:getByte(4)) - 40,false,false,false)
    panel:setModulatorValuesFromData(writemods:getRange(5,9),"vstIndex", CtrlrPanel.EncodeNormal, 68, 1, false)
    panel:getModulatorWithProperty("vstIndex",77):setModulatorValue((writemods:getByte(17)) - 16,false,false,false) 
    panel:getModulatorWithProperty("vstIndex",78):setModulatorValue((writemods:getByte(18)) - 52,false,false,false)
    panel:getModulatorWithProperty("vstIndex",79):setModulatorValue(writemods:getByte(19),false,false,false)
    panel:getModulatorWithProperty("vstIndex",80):setModulatorValue((writemods:getByte(20)) - 40,false,false,false)
    panel:setModulatorValuesFromData(writemods:getRange(21,9),"vstIndex", CtrlrPanel.EncodeNormal, 81, 1, false)
    panel:getModulatorWithProperty("vstIndex",90):setModulatorValue((writemods:getByte(33)) - 16,false,false,false) 
    panel:getModulatorWithProperty("vstIndex",91):setModulatorValue((writemods:getByte(34)) - 52,false,false,false)
    panel:getModulatorWithProperty("vstIndex",92):setModulatorValue(writemods:getByte(35),false,false,false)
    panel:getModulatorWithProperty("vstIndex",93):setModulatorValue((writemods:getByte(36)) - 40,false,false,false)
    panel:setModulatorValuesFromData(writemods:getRange(37,7),"vstIndex", CtrlrPanel.EncodeNormal, 94, 1, false)
    panel:setModulatorValuesFromData(writemods:getRange(49,3),"vstIndex", CtrlrPanel.EncodeNormal, 101, 1, false)
    panel:getModulatorWithProperty("vstIndex",104):setModulatorValue(writemods:getByte(53),false,false,false)
    panel:setModulatorValuesFromData(writemods:getRange(56,2),"vstIndex", CtrlrPanel.EncodeNormal, 105, 1, false)

    If I use image slider ,like you see I must parse modulators update more

    May be using custom comp with single images instead of frameimage in an ImageSlider I will be fine

    For velocity knobs 1-127 I must use a specific image frame with 128 or 129 images
    I’m not remember but a specific frameimage……

    I think Dasfaker prepares something of crazy 🙂

    • This reply was modified 9 years, 7 months ago by zeoka.
    Attachments:
    You must be logged in to view attached files.
    Ctrlr