Repository navigation
System Event
Domenico Patella edited this page Apr 11, 2025
·
13 revisions
GIGScript allows you to intercept global states of the application
PlayheadStateChanged
GigLoaded
GlobalTransposeChanged
| Event | Type of Message | GiG | Global | Current | Scriptlet | Song |
|---|---|---|---|---|---|---|
| GigLoaded | SystemEvent | Y | N | N | N | Y |
| PlayheadStateChanged | SystemEvent | Y | Y | Y | X | Y |
| GlobalTransposeChanged | SystemEvent | Y | Y | Y | X | Y |
💡 Tip:
If placed in the GIG File / Global /Rackspace context, events respond in all contexts
In the context ScriptletPlayheadStateChangedGlobalTransposeChangedare allowed but do not respond to events
/******************************************************
//
// GIG Script /Rackspace
//
******************************************************/
Initialization
// Write iN Log Window Vtrl+shift+4
Print("GIG script ")
Notify("I'm a message!")
End
// Indicates that all rackspaces and songs have been loaded
On SystemEvent matching Gigloaded
Print (" Gig is loaded..")
Notify("Gig is loaded..")
End
// Indicate that the playhead has been started (1.0) or stopped (0.0)
On SystemEvent(newValue : double) matching PlayheadStateChanged
var x: integer
Print("Playhead value ->" + newValue)
x= Ceiling(newValue)
Notify("Playhead value ->" + x)
End
//Indicate that the global transpose changed
On SystemEvent(newValue : integer) matching GlobalTransposeChanged
Print ("Transpose ->" + newValue)
Notify("Transpose value ->" + newValue)
End
