List of functions¶
Arrays¶
-
AppendBoolean
(a, value)¶ Append the boolean to the end of the array if there is room otherwise fail silently
-
AppendDouble
(a, value) autotype¶ Append the double to the end of the array if there is room otherwise fail silently
-
AppendInteger
(a, value) autotype¶ Append the integer to the end of the array if there is room otherwise fail silently
-
AppendString
(a, value)¶ Append the string to the end of the array if there is room otherwise fail silently
-
ClearArray
(a) autotype¶ Resets the array size to 0
- Parameters
a (array) –
-
IndexOf
(a, value)¶ Returns the index containing the value otherwise returns -1
-
LargestDouble
(a)¶ Returns the maximum value of a double array
-
LargestInt
(a)¶ Returns the maximum value in an integer array
-
RemoveLast
(a) autotype¶ Remove the last item in the array and so reducing the array size by 1
- Parameters
a (array) –
-
Reverse
(a) autotype¶ Reverse the list of items in the array
- Parameters
a (array) –
-
SmallestDouble
(a)¶ Returns the minimum value in a double array
-
SmallestInt
(a)¶ Returns the minimum value in an integer array
-
Sort
(a, ascending) autotype¶ Sorts an array in ascending order
- Parameters
a (array) –
ascending (Boolean) –
-
iMax
(a) autotype¶ Returns the index of the largest value of an array
- Parameters
a (array) –
- Return type
ExternalApplication¶
-
EA_AddArgument
(ea, arg)¶ Add an argument to an external application manager
- Parameters
ea (ExternalApplication) –
arg (string) –
-
EA_ClearAllArgs
(ea)¶ Clear the list of arguments so you can start again
- Parameters
ea (ExternalApplication) –
-
EA_SetProgramName
(ea, name)¶ Set the name of the program to be run
- Parameters
ea (ExternalApplication) –
name (string) –
-
EA_Start
(ea)¶ Open or run the external application
- Parameters
ea (ExternalApplication) –
-
EA_Stop
(ea)¶ Close or terminate the external application - not guaranteed to work
- Parameters
ea (ExternalApplication) –
Generators¶
-
EnableGenerator
(f, enable)¶ Enables or disables any generator (LFO, ramp, square wave, ADSR, etc.)
-
GetADSRAttackLevel
(f)¶ Get the maximum volume level of the attack phase of an ADSR
-
GetADSRAttackTime
(f)¶ Get the time in milliseconds of the attack phase of an ADSR
-
GetADSRDecayTime
(f)¶ Get the time in milliseconds of the decay phase of an ADSR
-
GetADSRReleaseTime
(f)¶ Get the time in milliseconds of the total release time of an ADSR
-
GetADSRSustainLevel
(f)¶ Get the level of the sustain phase of an ADSR
-
GetGeneraterAmplitude
(f)¶ Get the current value of a generator
-
InitADSR
(f, attackTime, attackLevel, decayTime, sustainLevel, releaseTime)¶ Set all parameters of an ADSR in one function call
-
IsGeneratorEnabled
(f)¶ Queries the state (start or stopped) of any generator
-
SetADSRAttackLevel
(f, level)¶ Set the maximum volume level of the attack phase of an ADSR
-
SetADSRAttackTime
(f, milliseconds)¶ Set the time in milliseconds of the attack phase of an ADSR
-
SetADSRDecayTime
(f, milliseconds)¶ Set the time in milliseconds of the decay phase of an ADSR
-
SetADSRReleaseTime
(f, milliseconds)¶ Set the time in milliseconds of the total release time of an ADSR
-
SetADSRSustainLevel
(f, level)¶ Set the level of the sustain phase of an ADSR
-
SetGeneratorCoarseness
(f, milliseconds)¶ Controls the jitter time of a callback (trading off accuracy against CPU cycles)
-
SetGeneratorFrequency
(f, hertz)¶ Set the frequency in cycles/second of any Generator
-
SetGeneratorLength
(f, milliseconds)¶ Set the length of a generator cycle
-
SetGeneratorOneShot
(f, oneshot)¶ Controls whether an Generator repeats indefinitely or only runs once when triggered
MIDI¶
-
BetweenNotes
(lowerNote, note, upperNote)¶ Returns true if the MIDI Note message is between the lower and higher values exclusive
- Parameters
lowerNote (Integer) –
note (NoteMessage) –
upperNote (Integer) –
- Return type
-
GetAfterTouchValue
(m)¶ Returns the current aftertouch value of an Aftertouch MIDI message
- Parameters
m (AfterTouchMessage) –
- Return type
-
GetByte
(m, byteNumber)¶ Returns one of the byte values of a MIDI message. The byteNumber must be within the range 0..2
- Parameters
m (MidiMessage) –
byteNumber (Integer) –
- Return type
-
GetCCNumber
(m)¶ Returns the Controller Number of a ControlChange MIDI message
- Parameters
m (ControlChangeMessage) –
- Return type
-
GetCCValue
(m)¶ Returns the Controller value of a ControlChange MIDI message
- Parameters
m (ControlChangeMessage) –
- Return type
-
GetChannel
(m)¶ Returns the MIDI channel number (between 1 and 16) of any MIDI message
- Parameters
m (MidiMessage) –
- Return type
-
GetMidiMessageSize
(m)¶ Returns the number of bytes in any MIDI Message
- Parameters
m (MidiMessage) –
- Return type
-
GetNoteNumber
(m)¶ Returns the note number of a NoteMessage MIDI event
- Parameters
m (NoteMessage) –
- Return type
-
GetPitchBendValue
(m)¶ Returns the pitch bend value from a PitchBend MIDI message
- Parameters
m (PitchBendMessage) –
- Return type
-
GetPolyTouchNoteNumber
(m)¶ Returns the note number of a PolyTouch MIDI event
- Parameters
m (PolyTouchMessage) –
- Return type
-
GetProgramChangeNumber
(m)¶ Returns the program change number of a ProgramChangeMessage MIDI event
- Parameters
m (ProgramChangeMessage) –
- Return type
-
GetReleaseVelocity
(m)¶ Returns the release velocity of a NoteOffEvent MIDI message. You need to make sure that the message is in fact a NoteOff or the result will always be 0
- Parameters
m (NoteMessage) –
- Return type
-
GetVelocity
(m)¶ Returns the velocity of a NoteEvent MIDI message. The value will be between 0 and 127
- Parameters
m (NoteMessage) –
- Return type
-
IsAfterTouch
(m) autotype¶ See if the current message is actually an Aftertouch MIDI message
- Parameters
m (MidiMessage) –
- Return type
-
IsController
(m) autotype¶ See if the current message is actually a CC MIDI message
- Parameters
m (MidiMessage) –
- Return type
-
IsNote
(m) autotype¶ See if the current message is a NoteOn or a NoteOff message
- Parameters
m (MidiMessage) –
- Return type
-
IsNoteOff
(m) autotype¶ See if the current message is actually a noteOff message - this is not the same as a NoteOn with 0 velocity
- Parameters
m (MidiMessage) –
- Return type
-
IsNoteOn
(m) autotype¶ See if the current message is actually a noteOn message
- Parameters
m (MidiMessage) –
- Return type
-
IsPitchBend
(m) autotype¶ See if the current message is actually a pitch bend message
- Parameters
m (MidiMessage) –
- Return type
-
IsPolyTouch
(m) autotype¶ See if the current message is actually a Polytouch MIDI message
- Parameters
m (MidiMessage) –
- Return type
-
IsProgramChange
(m) autotype¶ See if the current message is actually a program change message
- Parameters
m (MidiMessage) –
- Return type
-
MakeAfterTouchMessage
(value)¶ Returns an Aftertouch MIDI message with the specified value. The MIDI channel is 1
- Parameters
value (Integer) –
- Return type
-
MakeAfterTouchMessageEx
(value, channel)¶ Returns an Aftertouch MIDI message with the specified value and MIDI channel
- Parameters
- Return type
-
MakeControlChangeMessage
(number, value)¶ Returns a CC MIDI message with the specified CC number and value. The MIDI channel is 1
- Parameters
- Return type
-
MakeControlChangeMessageEx
(number, value, channel)¶ Returns a CC MIDI message with the specified CC number and value and MIDI channel
- Parameters
- Return type
-
MakeMidiMessage
(byte0, byte1, byte2)¶ Create an three byte MIDI message - you are on your own so make sure you get the values correct - deprecated - use MakeMidiMessage3
- Parameters
- Return type
-
MakeMidiMessage1
(byte0)¶ Create one byte MIDI message - you are on your own so make sure you get the value correct
- Parameters
byte0 (Integer) –
- Return type
-
MakeMidiMessage2
(byte0, byte1)¶ Create a 2 byte MIDI message - you are on your own so make sure you get the values correct
- Parameters
- Return type
-
MakeMidiMessage3
(byte0, byte1, byte2)¶ Create an three byte MIDI message - you are on your own so make sure you get the values correct
- Parameters
- Return type
-
MakeNoteMessage
(number, velocity)¶ Returns a Note MIDI message with the specified note number and velocity. The MIDI channel is 1
- Parameters
- Return type
-
MakeNoteMessageEx
(number, velocity, channel)¶ Returns a Note MIDI message with the specified note number and velocity and MIDI channel
- Parameters
- Return type
-
MakePitchBendMessage
(value)¶ Returns a new Pitch bend MIDI message with the specified value. The MIDI channel is 1
- Parameters
value (Integer) –
- Return type
-
MakePitchBendMessageEx
(value, channel)¶ Returns a new Pitch bend MIDI message with the specified value and MIDI channel
- Parameters
- Return type
-
MakePolyTouchMessage
(number, pressure)¶ Returns a Polytouch MIDI message with the specified note number and pressure amount. The MIDI channel is 1
- Parameters
- Return type
-
MakePolyTouchMessageEx
(number, pressure, channel)¶ Returns a Polytouch MIDI message with the specified note number and pressure amount and MIDI channel
- Parameters
- Return type
-
MakeProgramChangeMessage
(value)¶ Returns a new ProgramChange MIDI message with the specified value ranging from 0 to 127. The MIDI channel is 1
- Parameters
value (Integer) –
- Return type
-
MakeProgramChangeMessageEx
(value, channel)¶ Returns a new ProgramChange MIDI message with the specified value ranging from 0 to 127 and with the specified MIDI channel
- Parameters
- Return type
-
ReinterpretAsAfterTouch
(m, UseThirdByte) autotype¶ Reinterpret an arbitrary MIDI message - you need to know what you are doing
- Parameters
m (MidiMessage) –
UseThirdByte (Boolean) –
- Return type
-
ReinterpretAsControllerMessage
(m) autotype¶ Reinterpret an arbitrary MIDI message - you need to know what you are doing
- Parameters
m (MidiMessage) –
- Return type
-
ReinterpretAsNoteOffMessage
(m) autotype¶ Reinterpret an arbitrary MIDI message - you need to know what you are doing
- Parameters
m (MidiMessage) –
- Return type
-
ReinterpretAsNoteOnMessage
(m) autotype¶ Reinterpret an arbitrary MIDI message - you need to know what you are doing
- Parameters
m (MidiMessage) –
- Return type
-
ReinterpretAsPitchBend
(m) autotype¶ Reinterpret an arbitrary MIDI message - you need to know what you are doing
- Parameters
m (MidiMessage) –
- Return type
-
ReinterpretAsPolyTouchMessage
(m) autotype¶ Reinterpret an arbitrary MIDI message - you need to know what you are doing
- Parameters
m (MidiMessage) –
- Return type
-
ReinterpretAsProgramChange
(m, UseThirdByte) autotype¶ Reinterpret an arbitrary MIDI message - you need to know what you are doing
- Parameters
m (MidiMessage) –
UseThirdByte (Boolean) –
- Return type
-
Transpose
(m, steps)¶ Returns a note that has been transposed chromatically by the number of steps
- Parameters
m (NoteMessage) –
steps (Integer) –
- Return type
-
WithChannel
(m, channel) autotype¶ Changes the channel number of any MIDI event.
- Parameters
m (MidiMessage) –
channel (Integer) –
- Return type
-
WithNoteNumber
(m, number)¶ Changes the note number of a NoteMessage MIDI event
- Parameters
m (NoteMessage) –
number (Integer) –
- Return type
-
WithNoteNumberAndVelocity
(m, n, v)¶ Changes the note number and the velocity value of a NoteMessage MIDI event. Setting to 0 will make the message be a NoteOff
- Parameters
m (NoteMessage) –
n (Integer) –
v (Integer) –
- Return type
-
WithVelocity
(m, v)¶ Changes the velocity value of a NoteMessage MIDI event. Setting to 0 will make the message be a NoteOff
- Parameters
m (NoteMessage) –
v (Integer) –
- Return type
Math¶
-
Ceiling
(x) autotype¶ Rounds x upward returning the smallest integral value that is not less than x
-
Floor
(x) autotype¶ Rounds x downward returning the largest integral value that is not greater than x
-
MidiToParam
(m)¶ Maps an integer value between 0 and 127 into a floating point value between 0.0 and 1.0 and is a specialized (slightly) faster version of the generic Scale function
- Parameters
m (Integer) –
-
MidiToParamEx
(x, xMin, xMax, yMin, yMax)¶ Maps a value between xMin and xMax both with type integer into a value between yMin and yMax both with type double. Slightly faster than Scale if you can use the expected types so that no conversion is required
-
ParamToMidi
(m)¶ Maps an double value between 0.0 and 1.0 into an integer value between 0 and 127 and is a specialized (slightly) faster version of the generic Scale function
- Parameters
m (Double) –
-
ParamToMidiEx
(x, xMin, xMax, yMin, yMax)¶ Maps a double value between xMin and xMax - both between 0.0 and 1.0 - into a value between yMin and yMax both with type integer. Slightly faster than Scale if you can use the expected types so that no conversion is required
-
Power
(base, exponent) autotype¶ Returns base raised to the power of exponent
-
RandomRange
(min, max)¶ Returns a random integer value between min and max
-
Scale
(x, xMin, xMax, yMin, yMax)¶ Maps a value between xMin and xMax into a value between yMin and yMax. Integers will be converted to doubles. See MidiToParam and ParamToMidi for slightly faster implementations
-
ScaleInt
(x, xMin, xMax, yMin, yMax)¶ Maps a value between xMin and xMax into a value between yMin and yMax. Doubles will be truncated to integers. See MidiToParam and ParamToMidi for slightly faster implementations
-
ScaleRange
(x, yMin, yMax)¶ Maps a double value between 0.0 and 1.0 into a rounded integer value between yMin and yMax
-
ScaleRangeEx
(x, xMin, xMax, yMin, yMax)¶ Maps a double value between xMin and xMax into a rounded integer value between yMin and yMax
-
Sign
(x) autotype¶ Returns 1 if x > 0 -1 if x < 0 0 if x = 0
NoteManagement¶
-
AddChordInterval
(cr, interval, chordName)¶ Add a user defined chord interval to the chord dictionary
- Parameters
cr (ChordRecognizer) –
interval (Integer array) –
chordName (string) –
-
AutoSustainer_Play
(sustainer, m)¶ Play and possibly sustain an incoming note message through the AutoSustainer
- Parameters
sustainer (AutoSustainer) –
m (NoteMessage) –
-
AutoSustainer_RespectParameters
(sustainer, respect)¶ Indicate whether notes should respect MidiInBlock parameters
- Parameters
sustainer (AutoSustainer) –
respect (Boolean) –
-
AutoSustainer_SetTarget
(sustainer, m)¶ Specify the MidiInBlock to use for sending out notes using this AutoSustainer object
- Parameters
sustainer (AutoSustainer) –
m (MidiInBlock) –
-
AutoSustainer_Stop
(sustainer)¶ Stop all pending notes
- Parameters
sustainer (AutoSustainer) –
-
ClearNoteTracker
(nt)¶ Reinitializes the note tracker although it is generally not necessary
- Parameters
nt (NoteTracker) –
-
FindChordName
(cr, nt)¶ Given a note tracker with pending notes - get the string name of the chord
- Parameters
cr (ChordRecognizer) –
nt (NoteTracker) –
- Return type
-
GotNote
(nt, note)¶ Track status of an incoming note
- Parameters
nt (NoteTracker) –
note (NoteMessage) –
-
GotNoteOff
(nt, note)¶ Remember that a note was released
- Parameters
nt (NoteTracker) –
note (Integer) –
-
GotNoteOn
(nt, note)¶ Remember that a note was played
- Parameters
nt (NoteTracker) –
note (Integer) –
-
NoteOnCount
(nt)¶ Count number of notes still being played
- Parameters
nt (NoteTracker) –
- Return type
-
RemoveChordInterval
(cr, interval)¶ Remove a chord interval from the chord dictionary
- Parameters
cr (ChordRecognizer) –
interval (Integer array) –
-
StopAllPendingNotes
(m, nt)¶ Send note offs for all pending notes in the tracker
- Parameters
m (MidiInBlock) –
nt (NoteTracker) –
OSC¶
-
OSC_AppendDoubleArg
(m, value)¶ Append a double argument to the OSC message
- Parameters
m (OSCMessage) –
value (Double) –
-
OSC_AppendIntArg
(m, value)¶ Append an integer argument to the OSC message
- Parameters
m (OSCMessage) –
value (Integer) –
-
OSC_AppendStringArg
(m, value)¶ Append a string argument to the OSC message
- Parameters
m (OSCMessage) –
value (String) –
-
OSC_ArgCount
(m)¶ Returns the number of arguments in an OSC message
- Parameters
m (OSCMessage) –
- Return type
-
OSC_ClearArgs
(m)¶ Clear all arguments but leave the address pattern
- Parameters
m (OSCMessage) –
-
OSC_GetArgAsDouble
(m, index)¶ Returns the argument at the index - 0 based - as a double
- Parameters
m (OSCMessage) –
index (Integer) –
- Return type
-
OSC_GetArgAsInteger
(m, index)¶ Returns the argument at the index - 0 based - as an integer
- Parameters
m (OSCMessage) –
index (Integer) –
- Return type
-
OSC_GetArgAsString
(m, index)¶ Returns the argument at the index - 0 based - as a String
- Parameters
m (OSCMessage) –
index (Integer) –
- Return type
-
OSC_Send
(m)¶ Send out the message to the default IP address and port
- Parameters
m (OSCMessage) –
-
OSC_SendSpecific
(m, ipAddress, port)¶ Send out the message to the specified IP address and port
- Parameters
m (OSCMessage) –
ipAddress (String) –
port (Integer) –
-
OSC_SetAddress
(m, address)¶ Set the address of an OSC message
- Parameters
m (OSCMessage) –
address (String) –
Plugins¶
-
GetActivePreset
(p) autotype¶ Get the index of the current preset
-
GetMaxNoteFromMidiInBlock
(aBlock)¶ Gets the max note number defined for the keyboard split
- Parameters
aBlock (MidiInBlock) –
- Return type
-
GetMinNoteFromMidiInBlock
(aBlock)¶ Gets the min note number defined for the keyboard split
- Parameters
aBlock (MidiInBlock) –
- Return type
-
GetParameter
(p, index)¶ Gets the current parameter value associated with a parameter index of any plugin. The value will be between 0.0 and 1.0
-
GetParameterCount
(p)¶ Gets the number of parameters in this plugin
-
GetParameterName
(p, index)¶ Gets the name for the parameter index of any plugin if available.
-
GetParameterText
(p, index)¶ Gets the value as text of the given parameter index of any plugin if available.
-
GetPresetCount
(p) autotype¶ Get the number of available presets in this plugin
-
GetPresetName
(p, index) autotype¶ Get the name of the preset at the given index
-
GetTransposeFromMidiInBlock
(aBlock)¶ Gets the max note number defined for the keyboard split
- Parameters
aBlock (MidiInBlock) –
- Return type
-
IsPluginBypassed
(p) autotype¶ Returns whether a plugin is bypassed
-
ReplacePlugin
(p, name) autotype¶ Replace the plugin in the specified block - internal use only
-
SelectPreset
(p, index) autotype¶ Change the preset of any block
-
SetParameter
(p, index, value)¶ Send a parameter value to any plugin block
Sequencing¶
-
MidiSequence_CollectEventsNow
(sequence)¶ Collect events at the current position - Experimental - not yet supported - do not even ask!
- Parameters
sequence (MidiSequence) –
-
MidiSequence_EndOfSong
(sequence)¶ True if there are no more events in track - Experimental - not yet supported - do not even ask!
- Parameters
sequence (MidiSequence) –
- Return type
-
MidiSequence_FollowGlobalTranspose
(sequence, trackNumber, follow)¶ When true MIDI note events will be transposed by the global transpose amount
- Parameters
sequence (MidiSequence) –
trackNumber (Integer) –
follow (Boolean) –
-
MidiSequence_GetCurrentBar
(sequence)¶ Returns the current bar - Experimental - not yet supported - do not even ask!
- Parameters
sequence (MidiSequence) –
- Return type
-
MidiSequence_GetCurrentBeat
(sequence)¶ Returns the current beat of the current bar - Experimental - not yet supported - do not even ask!
- Parameters
sequence (MidiSequence) –
- Return type
-
MidiSequence_GetCurrentEvents
(sequence, trackNumber)¶ Access the current events at the current grid position for the specified track - Experimental - not yet supported - do not even ask!
- Parameters
sequence (MidiSequence) –
trackNumber (Integer) –
- Return type
array
-
MidiSequence_GetCurrentTick
(sequence)¶ Returns the current tick offset - Experimental - not yet supported - do not even ask!
- Parameters
sequence (MidiSequence) –
- Return type
-
MidiSequence_GetResolution
(sequence)¶ Get the base resolution of the sequence - Experimental - not yet supported - do not even ask!
- Parameters
sequence (MidiSequence) –
-
MidiSequence_GetTrackCount
(sequence)¶ Returns the number of tracks in a loaded MIDI file - Experimental - not yet supported - do not even ask!
- Parameters
sequence (MidiSequence) –
- Return type
-
MidiSequence_LoadMidiFile
(sequence, fromFile)¶ Loads a midi file and returns the number of tracks - Experimental - not yet supported - do not even ask!
- Parameters
sequence (MidiSequence) –
fromFile (String) –
- Return type
-
MidiSequence_MapOutputChannel
(sequence, trackNumber, channel)¶ Map the output channel for a track to the specified number between 1-16. Set to 0 to use individual event channel - Experimental - not yet supported - do not even ask!
- Parameters
sequence (MidiSequence) –
trackNumber (Integer) –
channel (Integer) –
-
MidiSequence_Quantize
(sequence, q)¶ Grid quantize - 1 2 4 8 16 - Experimental - not yet supported - do not even ask!
- Parameters
sequence (MidiSequence) –
q (Integer) –
-
MidiSequence_ResetToStart
(sequence)¶ Reset to the beginning of the track - Experimental - not yet supported - do not even ask!
- Parameters
sequence (MidiSequence) –
Songs¶
-
GetSongName
(index)¶ Get the name of the song at the given index
-
GetSongPartName
(index)¶ Get the name of the song part at the given index
-
NextSong
()¶ Move to the next song
-
PrevSong
()¶ Move to the previous song
-
SongMoveDown
()¶ Move to the next part or next song if allowed
-
SongMoveUp
()¶ Move to the previous part or previous song if allowed
-
SongNextPart
()¶ Move to the next song part of the current song
-
SongPrevPart
()¶ Move to the previous song part of the current song
Strings¶
-
CopySubstring
(source, startIndex, length)¶ Return the section of the source string based on the start index and desired length
-
DoubleToString
(d, places)¶ Converts a double to a string with the specified number of places
-
IndexOfSubstring
(source, substring, caseSensitive)¶ Return the zero-based index of the substring or -1 if substring not found
-
MapValueToDiscreteString
(x, values)¶ Select a string based on the proportional fractional value between 0.0 and 1.0
-
ReplaceString
(source, replaceThis, withThat, caseSensitive)¶ Replace a substring with another string
-
ReplaceStringSection
(source, startIndex, length, newSubstring)¶ Extract a substring defined by startIndex and length and insert a new substring into that position
-
StringAfterFirstOccurence
(source, substringToStartFrom, includeSubstring, ignoreCase)¶ Return the section of the source string after the first occurrence of substringToStartFrom - optionally including the substring
-
StringAfterLastOccurence
(source, substringToFind, includeSubstring, ignoreCase)¶ Return the section of the source string after the last occurrence of substringToFind - optionally including the substring
-
StringUpToFirstOccurence
(source, substringToEndWith, includeSubstring, ignoreCase)¶ Return the section of the source string up to the first occurrence of substringToEndWith - optionally including the substring
-
StringUpToLastOccurence
(source, substringToFind, includeSubstring, ignoreCase)¶ Return the section of the source string up to the last occurrence of substringToFind - optionally including the substring
Sysex¶
-
SM_ChangeValue
(sm, index, newValue)¶ Change a byte of a sysex message at some index starting at 0. Note that the F0 and F7 bytes cannot themselves be changed
- Parameters
sm (SysexManager) –
index (Integer) –
newValue (Integer) –
-
SM_CreateSysex
(sm, m)¶ Store a sysex message efficiently for manipulation and sending
- Parameters
sm (SysexManager) –
m (SysexMessage) –
-
SM_CreateSysexFromString
(sm, s)¶ Interpret a string as a sysex and store it for manipulation and sending
- Parameters
sm (SysexManager) –
s (String) –
-
SM_SendMidiIn
(sm, midiIn)¶ Send a stored sysex message from a MidiIn block
- Parameters
sm (SysexManager) –
midiIn (MidiInBlock) –
-
SM_SendMidiOut
(sm, midiOut)¶ Send a stored sysex message from a MidiOut block to an external MIDI device
- Parameters
sm (SysexManager) –
midiOut (MidiOutBlock) –
System¶
-
AllNotesOff
(p)¶ Send All Notes Off and reset controllers
- Parameters
p (MidiInBlock) –
-
ClearLogWindow
()¶ Clear the script log window - duh!
-
CloseLogWindow
()¶ Close the script log window - duh!
-
CloseScriptWindow
()¶ Close the script editor window - if open - for the current rackspace
-
FormatTime
(timeInMS, format)¶ Returns a formatted timestamp from a given time in milliseconds
-
GetVariationName
(index)¶ Returns the name of a variation
-
Notify
(s)¶ Displays a message on main window that will fade out
- Parameters
s (string) –
-
OpenLogWindow
()¶ Open the script log window - duh!
-
OpenScriptWindow
()¶ Open the script editor window for the current rackspace
-
Panic
()¶ Stop all notes in the current rackspace
-
PlayNote
(p, noteNumber, velocity, channel, startTimeMS, duration)¶ Send a noteOn event at startTimeMS and a noteOff event at durationMS later. If duration is less than 1 then we make it 1
-
ScheduleMidiEvent
(p, m, delayInMS)¶ Schedule a MIDI event to be reprocessed at some specified time in the future
- Parameters
p (MidiInBlock) –
m (midiMessage) –
delayInMS (Double) –
-
SendLater
(p, m, delayInMS)¶ Schedule a MIDI event to be sent out at some specified time in the future
- Parameters
p (MidiInBlock) –
m (midiMessage) –
delayInMS (Double) –
-
SendNoteMessageWithTranspositionsLater
(p, m, transpositions, delayInMS)¶ Send multiple MIDI NoteOn or NoteOff events out some milliseconds later using note number added to each offset in the array
- Parameters
p (MidiInBlock) –
m (NoteMessage) –
transpositions (Integer array) –
delayInMS (Double) –
-
SendNoteMessageWithTranspositionsNow
(p, m, transpositions)¶ Send multiple note on or note off events out immediately using note number added to each offset in the array
- Parameters
p (MidiInBlock) –
m (NoteMessage) –
transpositions (Integer array) –
-
SendNoteMessagesLater
(p, noteNumbers, velocity, channel, delayInMS)¶ Create a chord of note on or off events using the array of note numbers and send it out some milliseconds later
- Parameters
p (MidiInBlock) –
noteNumbers (Integer array) –
velocity (Integer) –
channel (Integer) –
delayInMS (Double) –
-
SendNoteMessagesNow
(p, noteNumbers, velocity, channel)¶ Create a chord of note on or off events using the array of note numbers and send it out immediately
- Parameters
p (MidiInBlock) –
noteNumbers (Integer array) –
velocity (Integer) –
channel (Integer) –
-
SendNow
(p, m)¶ Send a MIDI event out immediately
- Parameters
p (MidiInBlock) –
m (midiMessage) –
-
SendNowExternal
(p, m)¶ Send a MIDI event out immediately through a MIDI Out block
- Parameters
p (MidiOutBlock) –
m (midiMessage) –
-
SendNowRespectingParameters
(p, m)¶ Send a MIDI event out after applying MidiInBlock parameters
- Parameters
p (MidiInBlock) –
m (midiMessage) –
-
SendSysexExternal
(p, m)¶ Send a MIDI sysex message out immediately through a MIDI Out block
- Parameters
p (MidiOutBlock) –
m (SysexMessage) –
-
SendSysexInternal
(p, m)¶ Send a MIDI sysex message out immediately from a MIDI In block
- Parameters
p (MidiInBlock) –
m (SysexMessage) –
-
SetGlobalTranspose
(semitones)¶ Transpose all incoming MIDI messages by semitones amount
- Parameters
semitones (Integer) –
-
SetVariation
(index)¶ Switch to another variation in the active rackspace
- Parameters
index (Integer) –
-
SetWindowTitle
(title)¶ Changes the default rackspace title to the title
- Parameters
title (string) –
-
Shell
(command)¶ Run an OS Shell command (Mac only) returning an integer indicating success or failure
-
ShellEx
(command)¶ Run an OS Shell command (Mac only) that returns the output of the command
-
SwitchToNextRack
()¶ Switch to the next rackspace
-
SwitchToNextVariation
()¶ Switch to the next variation
-
SwitchToPreset
(newPreset)¶ Switch to another preset in the rackspace
- Parameters
newPreset (Integer) –
-
SwitchToPrevRack
()¶ Switch to the previous rackspace
-
SwitchToPrevVariation
()¶ Switch to the previous variation
-
SwitchToProgramNumber
(programNumber, bankNumber)¶ Switch to zero-based program number and bank Number if latter is greater than -1
-
SwitchToRack
(newRackspaceNumber, newPreset)¶ Switch to another rackspace by number and potentially to a specific newPreset in that rackspace
-
Tap
()¶ Simulates tap tempo command
Widgets¶
-
BindExternalWidget
(ew, widgetName, rackspaceName)¶ Access a widget in another rackspace - boolean return value indicates whether widget was found - experimental
- Parameters
ew (ExternalWidget) –
widgetName (String) –
rackspaceName (String) –
- Return type
-
GetExternalWidgetValue
(ew)¶ Get the current value of an external widget - experimental
- Parameters
ew (ExternalWidget) –
- Return type
-
GetWidgetScriptName
(p)¶ Gets the scripting name of this widget. Useful when widget is passed as a parameter somewhere
-
GetWidgetValue
(p)¶ Gets the current value (position) of the widget. The value will be between 0.0 and 1.0
-
SetExternalWidgetValue
(ew, newValue)¶ Set the current value of an external widget - experimental
- Parameters
ew (ExternalWidget) –
newValue (Double) –