Need Help With On UI_Control Script

I am very new to coding an instrument and am running into a werid problem. here is my code so far. My issue is when I get to on ui_control($MainMicKnob) kontakt says there is an error. The others are going through no problem. Not really sure what the problem is.
on init
make_perfview
set_script_title("Performance View")
set_ui_height(6)
message("")
declare ui_knob $CloseMicKnob(0,1000,1)
declare ui_knob $MainMicKnob(0,1000,1)
declare ui_knob $WideMicKnob(0,1000,1)
declare ui_knob $RoomMicKnob(0,1000,1)
set_text($CloseMicKnob,"Close")
set_text($MainMicKnob,"Main")
set_text($WideMicKnob,"Wide")
set_text($RoomMicKnob,"Room")
end on
on ui_control($CloseMicKnob)
on ui_control($MainMicKnob)
on ui_control($WideMicKnob)
on ui_control($RoomMicKnob)
end on
Answers
-
Hi _
On the end of the script, you have to add end on each time, even without putting anything like function, role inside . And don't forget to use the tool for insert code .
on ui_control($CloseMicKnob) end on on ui_control($MainMicKnob) end on on ui_control($WideMicKnob) end on on ui_control($RoomMicKnob) end on
0 -
Categories
- 10.5K All Categories
- 20 Welcome
- 440 Hangout
- 58 NI News
- 202 Tech Talks
- 1K Native Access
- 4.8K Komplete
- 608 Komplete General
- 1.1K Komplete Kontrol
- 1.8K Kontakt
- 470 Reaktor
- 149 Battery 4
- 267 Guitar Rig & FX
- 198 Massive X & Synths
- 206 Other Software & Hardware
- 2.2K Maschine
- 14 Sampling Room
- 2.6K Traktor
- 2.3K Traktor Software & Hardware
- Check out everything you can do
- Create an account
- See member benefits
- Answer questions
- Ask the community
- See product news
- Connect with creators