Hi,
is it possible to bring up the the Lyrics Window with a shortcut or a system action? If yes - can someone explain how the trick works - if not - this might a a point for the next feature list…
THX Ellisedd
Hi,
is it possible to bring up the the Lyrics Window with a shortcut or a system action? If yes - can someone explain how the trick works - if not - this might a a point for the next feature list…
THX Ellisedd
Or
Use a widget, map it to your controller and use a script to open the Chord Pro Window
var BUTTON : Widget
On WidgetValueChanged (newValue : double) from BUTTON
if newValue == 1.0 then
ShowChordProWindow(true)
else
ShowChordProWindow(false)
end
end
Link2 does not work
Ooops
I have copied the solution.
( Written by @pianopaul )
This can be replaced by the following one line version
On WidgetValueChanged (newValue : double) from BUTTON
ShowChordProWindow(newValue == 1)
end
Hi dhj,
I’ve got the idea and it sounds great - unfortunately it didn’t work for me. I’m new to GP and scripts - I guess there’s something missing here, because I got errors that BUTTON is no widget type or in the one line version that BUTTON is not declared…
any ideas?
THX
Ellisedd
You have to give your widget the GP Script Handle BUTTON.
Documentation here:
https://gigperformer.com/docs_5_0/LanguageManual/
Hi Paul,
maybe I’m to stupid, but I could’t find anything useful in the manual that explain how to assign a handle to a widget… I tried this in the widget properties in the Rack view (OSC/GPScript Handle) but it did’t work…
The part in the manual the explains callbacks (Introduction > Events and callbacks) seem to focus on the event handling in the wiring view - but I like to assign a button in the pannels view.
Can you tell me where I can find the part in the manual that you referring?
THX
Ellisedd
There is a significant amount of different things you can do with GP and with GPScript, and you’ll get used to when you look in the GP manual VS the GPScript documentation. You assign the handle of the widget in the advanced tab. This is documented in the GP manual on this page towards the bottom of the page.
Welcome to your new playground!
X
An example worth practicing
Link: How to control multiple parameters with a single widget?
THX - this was helpful…
for those who did’t like to search and try here the complete manual:
go into the pannels edit mode and assign in the widget properties advanced tab a unique name for the handle (here “Lyrics”) and enable OSC
open the Rackspace script editor and enter the following script:
Var
Lyrics : Widget
On WidgetValueChanged(newValue : double) from Lyrics
ShowChordProWindow(newValue == 1)
End
Enabling OSC is not necessary for the script to compile.
and OSC should not be enabled unless you plan to use it
I just tried it - your perfectly right… My mistake…
Just one more question: It looks like that BUTTON is also a keyword (marked blue in the editor) what is it normally good for?
THX
Ellisedd
You are right BUTTON is not optimal.
Name ist like you want, for example Schalter (German Word for Button)
Yes, it’s a reserved word for future expansion. Don’t use that as a variable or handle
Feel free to use the words in your own language. Knopf, Taster, Taste, Schaltfläche
See also here: Gig Performer videos in German