I have two knob widgets that send values 0-100 to a plugin.
I want to convert that widget values (0-100) to a note name EG: C3 and place it on the widget’s label in place of the widget value. Any help would be appreciated.
Here is the script I have so far:
Var
Sax_LowNote : Widget
Sax_HighNote : Widget
CCH_Brass, CCH_Sax, CCH_Wind : PluginBlock;
On WidgetValueChanged(newValue : double) from Sax_LowNote
SetParameter(CCH_Sax, 161, newValue)
SetParameter(CCH_Sax, 162, newValue)
SetParameter(CCH_Sax, 163, newValue)
SetParameter(CCH_Sax, 164, newValue)
SetParameter(CCH_Sax, 165, newValue)
SetParameter(CCH_Sax, 166, newValue)
SetParameter(CCH_Sax, 167, newValue)
SetParameter(CCH_Sax, 168, newValue)
SetWidgetLabel(Sax_LowNote, newValue * 100)
End
On WidgetValueChanged(newValue : double) from Sax_HighNote
SetParameter(CCH_Sax, 171, newValue)
SetParameter(CCH_Sax, 172, newValue)
SetParameter(CCH_Sax, 173, newValue)
SetParameter(CCH_Sax, 174, newValue)
SetParameter(CCH_Sax, 175, newValue)
SetParameter(CCH_Sax, 176, newValue)
SetParameter(CCH_Sax, 177, newValue)
SetParameter(CCH_Sax, 178, newValue)
SetWidgetLabel(Sax_HighNote, newValue * 100)
End