Skip to content

System Event

Domenico Patella edited this page Apr 3, 2025 · 13 revisions

GIG consente di interecettare gli stati globali dell'applicazione

PlayheadStateChanged GigLoaded GlobalTransposeChanged

Event Type of Message GiG Global Current Scriptlet Song
GigLoaded SystemEvent Y N N N Y *
PlayheadStateChanged SystemEvent Y Y Y Y Y *
GlobalTransposeChanged SystemEvent Y Y Y Y Y *

💡 Tip:

Se inserite nel contesto GIG File / Global /Rackspace gli eventi rispondono in tutti i contesti

💡 Song

Nel contesto Song PlayheadStateChanged / GlobalTransposeChanged sono ammesse ma non rispondono agli eventi

/******************************************************
//
// 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


Clone this wiki locally