Command Language
The command language is a way to store function calls as strings. Currently this is only used for storing commands in the undo stack and in the project file. Commands are made up of 2 parts - the object type (and it's ID if relevant), and the function to call (with arguments) as it would be typed in the code.
- Format: [ObjectType][ObjectID] [FunctionCallWithArguments]
- ObjectType can be E (event), I (instrument), or P (project).
- ObjectID is ID number of the object (for event or instrument only).
Examples
- "P ResurrectInstrument(1)" - Call ResurrectInstrument(1) on the project instance.
- "I1 DeleteEvent(5)" - Call "DeleteEvent(5)" on the instrument instance (I) with ID one (1).
- "E5 Join(6)" - Call Join(6) on the event instance (E) with ID five (5).
