THX! all clear now!
Best posts made by darkInteger
Latest posts made by darkInteger
-
RE: When automating knobs drawing line is slow
@d-healey here is the drawing function, I call this when I move the knobs.
function connect() { bg.setPaintRoutine(function(p) { p.setColour(0xFF6F6F6F); p.drawLine(oscFreq.getValueNormalized() * 114 + 27, oscFreqSlide.getValueNormalized() * 114 + 27, 105, 155, 1); p.drawLine(oscFreqSlide.getValueNormalized() * 114 + 27, oscFreqMacro.getValueNormalized() * 114 + 27, 155, 205, 1); p.drawLine(delayTime.getValueNormalized() * 114 + 27, delayTimeSlide.getValueNormalized() * 114 + 27, 265, 315, 1); p.drawLine(delayTimeSlide.getValueNormalized() * 114 + 27, delayTimeMacro.getValueNormalized() * 114 + 27, 315, 365, 1); p.drawLine(freqShifter.getValueNormalized() * 114 + 27, freqShifterSlide.getValueNormalized() * 114 + 27, 425, 475, 1); p.drawLine(freqShifterSlide.getValueNormalized() * 114 + 27, freqShifterMacro.getValueNormalized() * 114 + 27, 475, 525, 1); p.drawLine(wideFreq.getValueNormalized() * 114 + 307, wideFreqSlide.getValueNormalized() * 114 + 307, 105, 155, 1); p.drawLine(wideFreqSlide.getValueNormalized() * 114 + 307, wideFreqMacro.getValueNormalized() * 114 + 307, 155, 205, 1); p.drawLine(width.getValueNormalized() * 114 + 307, widthSlide.getValueNormalized() * 114 + 307, 265, 315, 1); p.drawLine(widthSlide.getValueNormalized() * 114 + 307, widthMacro.getValueNormalized() * 114 + 307, 315, 365, 1); p.drawLine(pan.getValueNormalized() * 114 + 307, panSlide.getValueNormalized() * 114 + 307, 425, 475, 1); p.drawLine(panSlide.getValueNormalized() * 114 + 307, panMacro.getValueNormalized() * 114 + 307, 475, 525, 1); }); }
-
When automating knobs drawing line is slow
Hi guys!
I have some knobs as faders, i connect their needle with drawing lines for cosmetic purposes.
In a built vst everything is working fine if i grab the faders withbthe mouse, the lines follow the needles as supposed but if i automate the faders the drawing the lines are getting slow like they are behind the needle.
What is up whit this? -
RE: LAF: get a value of a knob by its id
@d-healey well, the code is a mess :S I am just started learning.
But I know I can use obj.value to get the value but I don't know how to specify it with its id... what is the syntax? -
RE: LAF: get a value of a knob by its id
@d-healey Basically I have like 10 knobs LAF assigned and I want to draw lines between its values for UI purposes.
-
LAF: get a value of a knob by its id
Hi guys!
In a custom LAF how can I get a value of a knob by its id?
-
range
Hi guys!
I am trying to make a custom LAF on a knob.
It is going to be a slider, I have a horizontal line and a short vertical line on the horizontal one which is the slider itself.
I want to use the obj.value to drive the vertical line but I just couldn't figure out how to convert it to the horizontal line's range.
For example: the knob's range 10-700 Hz --> 128 pixel wide