Convertings problems
-
Hello, im facing some convertion problems while trying to convert some dB from my band in parametriq EQ. Sometimes it works sometimes it glitches.
here's the chunk of the code:
var gainValue = Math.round(band.gain * 100) / 100;var band = bandValues[obj.index]; var freqText = Math.round(band.freq) + " Hz"; var gainValue = Math.round(band.gain * 100) / 100; var gainText = (gainValue >= 0 ? "+" : "") + gainValue + " dB"; var qValue = Math.round(band.q * 10) / 10; var qText = "Q " + qValue; var typeText = typeNames[Math.max(0, Math.min(4, Math.round(band.type)))];

-
I think you want:
if (value) { yourEqName.setValue(Engine.doubleToString(value, 1)); } // In your 'gain' button control callback -
@Chazrox Thank you so much lol
-
@hyperphonias np!
Have a great day!