GNUbase

MCP tool catalogue

Generated from what the MCP server lists, with script_run: every tool by area, its engine command, whether it only reads, its arguments and its result.

arranger

arranger_add

Engine command arranger.add.

Adds an arranger event to the arranger track, which is added if the project has none. position and end are in the track’s time base (ticks or samples) and default to the left and right locators; the event ends at least one sample after its position. Without a name it gets the first free one in alphabetical order: A, B, …, Z, AA and so on.

Arguments:

Result:

arranger_addChain

Engine command arranger.addChain.

Adds an arranger chain, empty or with duplicate a copy of the active chain’s steps (Create New Chain and Duplicate Current Chain), and makes it the active one. Without a name it is “Chain N”.

Arguments:

Result:

arranger_flatten

Engine command arranger.flatten.

Flatten Chain (#167): makes the project play the arranger chain (default: the active one) linearly. From the start of the chain’s first event on, every track’s events, parts and automation are replaced by the chain’s sections, each step’s event as often as it repeats, one after the other; what lies before stays, and so do locked events. The parts of an event’s repeats are shared copies of those of its first section, or with realCopies (Make Real Event Copies) real copies. MIDI notes that cross a section’s edges are cut there; with dontSplit (Don’t Split Events) a section has only the notes that start and end in it. Without keepTrack (Keep Arranger Track) the arranger track goes; with it, it has an event per section where it now is and one chain that plays them in order, and with renameEvents (Rename Arranger Events) each of those events has a number after its name, how often its event came so far (A 1, B 1, A 2). One undo step. Returns where the flattened chain starts and ends, in samples. The flatten options’ Source and Destination (reference manual pp. 408-409) say which chains are flattened and where the result goes: source current (the default; with chain, that chain) flattens into this project, source checked (with chains, the ids of the checked chains) or all flattens each of those chains, and with destination newProject each into a new project of its own instead: a copy of the project, flattened, saved as a .dawproject file in folder (default: the project file’s folder, else the settings folder, and the project must have a file or folder be given), with embedMedia as project.save has it. The new project is named after the project’s file, or after the project itself when it has none, with useChainName after its chain, with appendChainName with the chain name appended, and with addNumber with the next free number after its name (also when the plain name is taken, so that the project’s own file is never overwritten). The open project stays as it is: opening a new file goes through the UI’s open path, which asks about unsaved changes first. destination current (Current Project) goes with source current only. Returns also projects, the new files as {file, name, chain}, empty for destination current.

Arguments:

Result:

arranger_get

Engine command arranger.get. Read-only.

The arranger: the arranger track (0 for none), its events in timeline order (positions in the track’s time base, start and endSamples in samples), the chains with their steps, the active chain, whether arranger mode is on and the jump mode.

Result:

arranger_goToStep

Engine command arranger.goToStep.

Arranger mode: plays the active chain from a step (0 for the first) and repeat (default 0): at once while stopped (the cursor goes to the step’s event) or with the jump mode none, otherwise at the next jump point of the event playing (arranger.setMode jumpMode). Previous and Next Chain Step, First and Last Repeat, and a click in the chain list do this. Returns the transport’s state.

Arguments:

Result:

arranger_remove

Engine command arranger.remove.

Removes arranger events, and their steps from every arranger chain.

Arguments:

arranger_removeChain

Engine command arranger.removeChain.

Removes an arranger chain (default: the active one), unless it is the only one. The first chain is active if the active one goes.

Arguments:

arranger_set

Engine command arranger.set.

Changes an arranger event: moves it (position, in the track’s time base; it keeps its length unless end is given), changes its end or renames it.

Arguments:

Result:

arranger_setChain

Engine command arranger.setChain.

Changes an arranger chain (default: the active one): renames it, or gives it new steps, each an arranger event played repeats times (1 to 999, default 1) in a repeat mode: normal (then the next step), repeatForever (until another step or event is chosen) or pauseAfterRepeats (then playback stops at the next step). Appending, moving and copying steps give the whole list; removeSteps removes the steps at those indices (0 for the first; Remove Touched and Remove Selected). Then moveSteps moves the steps at those indices, in their order, to before the step at to (default: the end) as the list was, or copies them there with copy, and addEvents inserts steps of those arranger events there, as dragging steps and dropping events in the chain list do.

Arguments:

Result:

arranger_setMode

Engine command arranger.setMode.

Changes the arranger’s playback settings: mode (Activate Arranger Mode: playback follows the active chain instead of the cycle), chain (the active chain, Select Active Chain) and jumpMode (Jump Mode: when a step chosen with arranger.goToStep or an event triggered with arranger.trigger takes over while playing: none at once, 4bars or 2bars every 4 or 2 bars from the event’s start, 1bar at the next bar line, 1beat at the next beat, end at the end of the event playing). Saved with the project, not undo steps.

Arguments:

Result:

arranger_trigger

Engine command arranger.trigger.

Arranger mode, Jump Mode: plays an arranger event (event, its id, or number, 1 for the first in timeline order, as the key commands Trigger Arranger Event 1 to 9 name them) in a loop until another one is triggered or a step is chosen with arranger.goToStep: at once while stopped or with the jump mode none, otherwise at the next jump point of the event playing. Returns the transport’s state.

Arguments:

Result:

articulationMap

articulationMap_add

Engine command articulationMap.add.

Adds an articulation map to the project: Add Map (p. 1280), named New Map with one group, Group 1, and neither articulations nor slots, or Duplicate Map of the map copy (named after it, with Copy) (p. 1267). With keySwitches, a MIDI or instrument track, Import Key Switches (p. 1284) adds a direction of the first group and a sound slot for each key switch its instrument reports (a MIDI track’s: the instrument track’s it plays), named after it, with the key as its remote trigger and a note on it at velocity 100 as its output mapping; refused if the instrument reports none. Then changed by what is given. An articulation map (reference manual pp. 1262-1292) has a name; groups, the names of its mutual exclusion groups, the first the most important (at least one); articulations, each {name, type, group}: a direction (the default), valid from its articulation controller event (controller.add type articulation) to the next one of its group, or an attribute, valid for the notes that have it (note.add articulations), and its group’s index; slots, the sound slots, the first the default: {name, color (#rrggbb or empty), articulations (by name, at most one of each group), trigger (the remote trigger, a key or a program 0-127, or null), outputs (the output mapping: {status note, controller or program, data1 the pitch, controller or program, data2 the velocity or value, off: sent when the slot ends instead of when it starts}), channel (0-15, or null for the notes’ own), length and velocity (percent of the notes’, 1-1000), transpose (semitones), addOn (an add-on slot, not the default: its output events go besides the slot of the other groups, for the notes that have all its articulations, on their channel; its MIDI modifiers do nothing), attack (Attack Compensation: ms 0-1000 the notes start earlier), separation (ms 0-1000 the output events go before the notes, but after the note before; 0: key switches one sample before, the others with the note), minPitch and maxPitch, minVelocity and maxVelocity (the ranges the notes’ pitch, 0-127, and velocity, 1-127, are kept in)}; remoteTrigger, keySwitch (the default) or programChange, what selects slots in recordings; latch, whether a key switch’s slot stays after the key’s release (the default) instead of the default slot coming back. articulations and slots replace the map’s whole lists. Tracks use one with track.set articulationMap; each note plays the slot whose articulations are its attributes and the directions in effect at its start, else the closest one. Emits articulationMap.added and returns the map.

Arguments:

Result:

articulationMap_export

Engine command articulationMap.export.

Saves an articulation map as an articulation map file (.articulationmap, p. 1292) at path: JSON with the map as articulationMap.set takes it, which articulationMap.import reads back.

Arguments:

articulationMap_import

Engine command articulationMap.import.

Loads an articulation map file (.articulationmap, p. 1283), as articulationMap.export saves it, into the project as a new map. Emits articulationMap.added and returns the map.

Arguments:

Result:

articulationMap_remoteTriggers

Engine command articulationMap.remoteTriggers.

Changes the remote triggers of an articulation map’s sound slots at once (reference manual pp. 1272-1275). action transpose (Transpose All): adds semitones (negative: down; an octave is 12) to every trigger, of every map of the project with allMaps; refused if one would leave 0-127; semitones is -127 to 127. action reassign (Reassign All): the slots in order get the keys from start on, of keys all (the default), white or black (Key Mapping, key switches only; program changes are consecutive), skipping the default slot with skipFirst, which keeps its trigger and no other slot gets it, and no trigger past 127. action remove (Remove All): no slot has a trigger. Emits articulationMap.changed for each map it changes.

Arguments:

articulationMap_remove

Engine command articulationMap.remove.

Removes an articulation map from the project (p. 1267); the tracks that used it have none. Emits articulationMap.removed and track.changed for those tracks.

Arguments:

articulationMap_set

Engine command articulationMap.set.

Changes an articulation map: what isn’t given stays; the changes go to every track using it. An articulation map (reference manual pp. 1262-1292) has a name; groups, the names of its mutual exclusion groups, the first the most important (at least one); articulations, each {name, type, group}: a direction (the default), valid from its articulation controller event (controller.add type articulation) to the next one of its group, or an attribute, valid for the notes that have it (note.add articulations), and its group’s index; slots, the sound slots, the first the default: {name, color (#rrggbb or empty), articulations (by name, at most one of each group), trigger (the remote trigger, a key or a program 0-127, or null), outputs (the output mapping: {status note, controller or program, data1 the pitch, controller or program, data2 the velocity or value, off: sent when the slot ends instead of when it starts}), channel (0-15, or null for the notes’ own), length and velocity (percent of the notes’, 1-1000), transpose (semitones), addOn (an add-on slot, not the default: its output events go besides the slot of the other groups, for the notes that have all its articulations, on their channel; its MIDI modifiers do nothing), attack (Attack Compensation: ms 0-1000 the notes start earlier), separation (ms 0-1000 the output events go before the notes, but after the note before; 0: key switches one sample before, the others with the note), minPitch and maxPitch, minVelocity and maxVelocity (the ranges the notes’ pitch, 0-127, and velocity, 1-127, are kept in)}; remoteTrigger, keySwitch (the default) or programChange, what selects slots in recordings; latch, whether a key switch’s slot stays after the key’s release (the default) instead of the default slot coming back. articulations and slots replace the map’s whole lists. Tracks use one with track.set articulationMap; each note plays the slot whose articulations are its attributes and the directions in effect at its start, else the closest one. An articulation renamed at its place in articulations (as long a list as before, its old name gone and the new one not the map’s before) is renamed in the parts of the tracks that use the map, their directions and their notes’ attributes; one left out is removed from them (emitting controller.changed, controller.removed and note.changed). Emits articulationMap.changed and returns the map.

Arguments:

Result:

articulationMap_soundSlots

Engine command articulationMap.soundSlots. Read-only.

The sound slot each note of a MIDI part plays (reference manual p. 1287), as the Articulations lane’s sound slots lane shows it: of each group the note’s attribute, else the direction in effect at its start, and the slot with exactly those articulations, else the closest one, else the default slot. Returns map, the part’s track’s articulation map (0 for none), and notes, each {note, slot (the slot’s index in the map’s slots), name (the slot’s)}, by note id; none without a map or slots.

Arguments:

Result:

audioEvent

audioEvent_add

Engine command audioEvent.add.

Adds an audio event that plays a section of a clip on an audio track. position is in the track’s time base (ticks or samples), at most the longest project’s end: 2^48 samples, or as many ticks as that lasts at the tempo. offset and length are in the clip’s sample frames, length defaulting to the rest of the clip. volume is in dB, from -144 to 6 (default 0); a muted event doesn’t play. A track plays one event at a time: where events overlap, the one added last plays, unless they crossfade; event.toFront brings another one to the front. lane puts it on that lane of the track, from 0 (default), as event.set does.

Arguments:

Result:

audioEvent_addWarpMarker

Engine command audioEvent.addWarpMarker.

Free Warp in the project window (reference manual p. 1467): inserts a marker at the audio under position and makes it play at to, both project sample positions. Maps through the event’s musical mode, definition and existing markers. Anchors a trimmed event’s offset if inserting the marker would otherwise move it. Markers can’t pass each other, and no section between two of them, or one and the clip’s start or end, may play more than 4 times or less than a quarter as long, the real-time stretcher’s range; a section that plays as it did, as in a project from before the range was checked, may stay beyond it. A clip’s warp has musical (musical mode: its beats follow the project’s tempo), its definition: tempo (BPM of quarter notes, 0 until one is set), beatsPerBar, gridStart (the clip frame of beat 0, which may precede the audio) and beats (the beats, counted in quarters from the grid start, that Auto Adjust or Manual Adjust put elsewhere than the tempo would, each at a clip frame), its free warp markers (each plays the audio at its position where the clip frame target would play without it) and preset, the time stretch algorithm of real-time warping; after warp quantizing also quantizeOrigin, the markers before it (original) and as it left them (quantized), and created, the positions of the markers quantize.createWarpMarkers made. Emits clip.changed. Returns the clip’s id and its warp.

Arguments:

Result:

audioEvent_remove

Engine command audioEvent.remove.

Removes an audio event.

Arguments:

audioEvent_set

Engine command audioEvent.set.

Changes an audio event’s position, clip, offset, length, volume (dB) or mute, or how global transposition shifts its pitch in real time (#1368), as midiPart.set’s do a MIDI part’s: rootKey is its root key (“” for none, C, C# and so on to B), which the project root key transposes it to (project.set rootKey); globalTranspose follow (the default) or independent says whether the project root key and the transpose track transpose it (transpose.add). transpose is its own Transpose in semitones, -24 to 24, which adds to global transposition as a MIDI part’s does, also while it is independent (#1555). Its audio file stays as it is. position is at most the longest project’s end (see audioEvent.add).

Arguments:

Result:

audioEvent_setFades

Engine command audioEvent.setFades.

Changes an audio event’s fade in (from its start) or fade out (up to its end): length in the clip’s sample frames (0: none) and shape: linear, exponential (slow, then fast), logarithmic (fast, then slow), sCurve (half a cosine) or equalPower (a quarter sine). Together they fit into the event (on a warped event, into the sample frames it plays for at the clip’s sample rate); fades that no longer fit, as a warped event’s after a tempo change or a warp marker move, may still change if they don’t grow together. A crossfade replaces the fades at the ends it joins while it plays.

Arguments:

Result:

audioEvent_setVolumeCurve

Engine command audioEvent.setVolumeCurve.

Sets an audio event’s volume curve, on top of its volume: points at positions in the event’s clip (sample frames, 0 to the clip’s length; the curve moves with the event and stays with the audio when it is resized or split), each with a volume in dB (-144 to 6, default 0) and a curve (-1 to 1, default 0) that bends the way to the next point: from point to point the gain goes from one’s to the next’s along (1 - e^(-6cx)) / (1 - e^(-6c)), straight for 0, fast at first above 0, slowly at first below. Before the first point the curve is level with it, after the last one with that; points at the same position make a jump. No points: no curve. Returns the event, its points by position.

Arguments:

Result:

audioFile

audioFile_import

Engine command audioFile.import.

Imports audio files (WAV, RF64, Wave64, AIFF, FLAC, Ogg Vorbis or MP3) as audio events at position, in sample frames from the project start (default 0). Each file goes on an audio track of its own: the first on track if given (such as the selected track), the others on new audio tracks named after them, with their channels. With oneTrack they go one after another on one track: track, or a new one. lane puts those that go on track on that lane of it, from 0 (default), as event.set does. copy copies files from outside the project folder into its media folder (see project.location) as a job, returned as job (null without one) with the result media.add’s copy job has; the media are pointed at the copies as an undo step of its own. MP3 and Ogg Vorbis files are always written into the media folder as 32-bit float WAV files (FLAC files stay as they are); in a project without a file, into the folder its recordings go to. convert writes files at another sample rate than the project’s into the media folder as 32-bit float WAV files at the project’s sample rate, MP3 and Ogg Vorbis files included. splitChannels writes each channel of a file with several into the media folder as a mono WAV file, named after the file and its speaker (numbered beyond 8 channels) as nameFormat says: dash (take-L.wav, the default), underscore (take_L.wav), dot (take.L.wav) or space (take L.wav); each goes on a new mono track of its own at position, and track and oneTrack only place the files that aren’t split. copy, convert and splitChannels need a saved project. clipsOnly adds the media files and clips to the pool without tracks or events (the pool’s Import Medium). One undo step. Returns the new tracks, and per file (per channel when split) the media files and events, in the order of files.

Arguments:

Result:

audioPart

audioPart_add

Engine command audioPart.add.

Adds an empty audio part to an audio track (reference manual p. 250): a container of audio events, which play only within it and move, copy, split and glue with it through the event commands. position and length are in the track’s time base, each at most the longest project’s end (see audioEvent.add); name defaults to the track’s. event.toPart puts events into a part, event.dissolvePart takes them out again. lane puts it on that lane of the track, from 0 (default), as event.set does.

Arguments:

Result:

audio

audio_analyze

Engine command audio.analyze. Read-only.

Measures the captured output of channels (default: every output) from frame start for frames frames (default: to the end of the capture). Per channel: the peak and RMS level, and a spectrum summary with the strongest frequencies (at most peaks, default 5, up to 20) and the power of octave bands. For the channels together: the integrated loudness in LUFS (ITU-R BS.1770), null below 400 ms. Levels are linear and in dBFS (a full-scale sine’s peak is 0 dBFS, its RMS -3 dBFS); dBFS is null for silence.

Arguments:

Result:

audio_capture

Engine command audio.capture. Read-only.

Captured output samples of one output channel of the dummy device, from frame start, at most 1048576 frames.

Arguments:

Result:

audio_captureInput

Engine command audio.captureInput. Read-only.

What an input channel of the audio device recorded at project positions from start, at most 1048576 frames: its input goes where the transport played the record offset before it arrived (see audio.get), only while the transport plays, and the last cycle lap over the ones before. Up to the device’s captureSeconds (audio.setDevice) from position 0; positions not recorded are silent. Only while the device stands.

Arguments:

Result:

audio_compare

Engine command audio.compare. Read-only.

Null test: subtracts an audio file, reference, from the captured output and measures what remains. The file’s channels are compared with channels (default: every output) in order, from frame start, for frames frames (default: the file’s length); its sample rate must be the device’s. peak is the largest difference of all channels, 0 if they cancel completely.

Arguments:

Result:

audio_controlPanel

Engine command audio.controlPanel.

Opens the control panel of the audio device’s driver. Changes made there may reset the device.

Result:

audio_devices

Engine command audio.devices. Read-only.

The audio backends of this build, the preferred one first, and the devices each has now: their ids, names, channel names, sample rates, block sizes, clock sources (and the current one), whether the driver has a control panel, whether it can monitor inputs directly (canMonitorDirectly), and whether the device is available. An unavailable device, e.g. one whose hardware isn’t connected, has an unavailableReason; audio.setDevice still tries it. Some backends only learn that by opening or starting the device (ASIO). A backend that can’t list its devices has an error instead.

Result:

audio_get

Engine command audio.get. Read-only.

The audio device (its backend, id, name, format, channel names, latencies in frames, clock source, whether it has a control panel, whether it can monitor directly and does (directMonitoring), the record shift and the record offset: inputLatency + outputLatency - recordShift, from 0 to 196608), whether it runs, how many frames it has processed and, if it is the dummy device, captured, how many frames of audio track playback were silent because a disk stream was late, and the processing threads (see audio.setProcessing). projectSampleRate is the project’s sample rate, also in device, where sampleRateMismatch says that the device runs at another one, as it doesn’t support the project’s, was asked for another or is externallyClocked, and plays faster or slower, and silenceReason why a running device plays silence (e.g. a PipeWire graph that another client holds at another rate), or null, which sends audio.changed when it changes; a new project sample rate sends audio.changed. recordBitDepth is the project’s (see project.set), for the record format; a new one also sends audio.changed. lost: the device that went away (its backend, device id, its name while it was open, the reason it can’t be opened and whether it ran and restarts), while the engine waits for it to return (see audio.reset); otherwise null. While a device is lost, device is the fallback that plays meanwhile (the user setting audio.fallbackDevice), or null.

Result:

audio_performance

Engine command audio.performance. Read-only.

Performance data for the performance monitor. Loads are the share of a block’s duration spent processing it, so above 1 the device drops out. load: averaged over about 0.3 s; peak: the highest block; overloads: blocks above 1 plus deviceOverloads, the dropouts the driver reported, also those it recovers from with a reset (a block that was both counts twice; a reset after a settings change counts nothing); cycles: blocks measured; threads: the load of each processing thread, the audio thread first. Peak, overloads and cycles count since the last audio.resetPerformance, also across audio.reset; everything starts over with a new device or new processing threads. diskLoad: how far the disk stream furthest behind has run empty, 0 to 1; diskDropouts: frames of audio track playback that were silent because a disk stream was late. blockSize: the device’s block size in frames, 0 without a device.

Result:

audio_ports

Engine command audio.ports. Read-only.

The audio device’s ports by name, in order, each with the name it is shown as and whether it is visible (audio.setPort), and the busses that use it (the bus ids); each bus’s ports on this device, null where it has none (a child bus’s are its parent’s); and the missing ports: port names that busses use but the device doesn’t have, with those busses. bus.remapPorts re-routes them. beyondDevice: busses without ports of their own (consecutive ports in bus order) whose channels run past the device’s ports, with those channels, which are silent; bus.set gives them ports. Without a device there are no ports.

Result:

audio_reconnect

Engine command audio.reconnect.

Tries once to open the lost audio device again (lost in audio.get), as audio.reset does; does nothing unless a device is lost. While one is, the engine runs it on its own about every half second, one try at a time. While a fallback device plays, it tries only once the backend lists the lost device as available again, so that the fallback isn’t interrupted, or every few seconds if the backend learns only by opening it whether it is there (ASIO). A listed device that still doesn’t open is tried less often, up to every few seconds, until the backend’s device list changes. Tries that find the device still gone change nothing and are left out of engine.commandLog. Sends audio.changed when the device opens or a try fails for another reason than the last one (lost.reason), and plugin.changed for the slots whose plugin’s status changed.

Result:

audio_record

Engine command audio.record. Read-only.

Writes the captured output of channels (default: every output) from frame start for frames frames (default: to the end of the capture) to a WAV file at path, with samples in format (default float32). Returns the file’s absolute path.

Arguments:

Result:

audio_render

Engine command audio.render.

Offline mode: processes the given number of frames as fast as possible, then returns. Only the dummy device, and only while it is stopped. First it waits for the samplers’ samples to be read, logging a warning that names the files every 30 s, and fails naming them after 10 minutes.

Arguments:

Result:

audio_reset

Engine command audio.reset.

Opens the audio device again with the same settings and restarts it if it ran; while the dummy device plays for a device that audio.setDevice couldn’t use (failed in audio.get), it tries that device again as audio.setDevice with fallBackToDummy would, and the dummy device again with its own settings if it still can’t be used; the measurements start anew as they do there. Drivers ask for this when their settings change, e.g. in their control panel, or when their device goes away; the engine then resets on its own. A device that can’t be opened, e.g. because it was unplugged, or that ran and opens but doesn’t start again, is lost (lost in audio.get): the engine goes on without it and tries again about every half second until it opens (audio.reconnect), then restarts it if it ran, so playback goes on where it stopped; audio.start and audio.stop meanwhile decide whether it does. With the user setting audio.fallbackDevice, a fallback device plays meanwhile and the engine switches back once the lost device opens; a reset while one plays tries the lost device and opens the fallback again if that fails. audio.setDevice ends the wait. The performance measurement goes on across a reset, which itself counts nothing: a driver that resets because of a dropout reports the dropout (see audio.performance). A reset that loses the device ends the measurement. Sends audio.changed when the device closes, opens or is lost, except for a reset while a fallback plays that fails as the last try did and opens the same fallback again, which changes nothing; and plugin.changed for the slots whose plugin’s status changed.

Result:

audio_resetPerformance

Engine command audio.resetPerformance.

Starts a new performance measurement, like clicking the overload indicator: clears the peak, the overloads and the cycles; the averaged loads go on. Immediately while the device is stopped, otherwise with its next block. Returns the measurement that ended, as audio.performance does, and sends it as the event audio.performanceReset.

Result:

audio_set

Engine command audio.set.

Changes the audio device’s settings and keeps the others: the parameters of audio.setDevice except backend, device, start, fallBackToDummy and remember, e.g. sampleRate, blockSize, clockSource, recordShift or directMonitoring. The device opens again with them, as for audio.reset, and runs on if it ran. If it can’t open with them, it opens again with the settings it had and the command fails; if those fail too, there is no device. Fails while a fallback plays for a lost device (see audio.reset). Sends audio.changed, and plugin.changed for the slots whose plugin’s status changed, also when it fails after the device closed: with the device opened again with its old settings, at position 0, or with none.

Arguments:

Result:

audio_setDevice

Engine command audio.setDevice.

Replaces the audio device. backend: one from audio.devices, by default “dummy”; empty for the platform’s default backend, whose default device the OS plays on (wasapi, coreaudio or pipewire), or the preferred one if this build lacks it. device: its id, by default the backend’s default device. sampleRate: by default the project’s if the device supports it, otherwise the driver’s current rate; when the project’s sample rate changes, the device follows it where it can. externallyClocked: the hardware takes its clock from an external source, which sets its rate: the device neither opens at the project’s rate nor follows it, and plays faster or slower where they differ (sampleRateMismatch in audio.get). blockSize: by default the driver’s preferred size. clockSource: a name from the device’s clockSources. The device starts at position 0, running if start says so, by default if the device it replaces ran (or, lost, was to start again), or if the last audio.setDevice failed to run one it was to start. Another backend’s device is closed before the new one opens, since drivers often allow only one; if opening fails, there is no device, and if starting fails, the device stays open and stopped. With fallBackToDummy, a device that can’t be opened or started is replaced by a fallback: with the user setting audio.fallbackDevice default, the backend’s default device unless that is the one that failed, otherwise or if that fails too the dummy device without capture memory; at the sampleRate and blockSize asked for, started if start says so. failed in audio.get says what failed and why, until another audio.setDevice replaces that fallback; while the dummy device is the fallback, audio.reset tries the device that failed again. The windowed app opens its device like that. remember: once the device runs as asked (not the fallback), saves backend and device as given as the user settings audio.backend and audio.device, which the windowed app opens when it starts, and sends settings.changed. Recorded input goes where the transport played the device’s input + output latency before it arrived, so what is played along to or looped back lines up with what played (recordOffset in audio.get). recordShift (frames, -65536 to 65536) moves recordings that much later, for drivers that report their latency wrong. captureSeconds (0 to 600, by default 0, or 60 for the dummy device) keeps that much of what the inputs record in memory for audio.captureInput, e.g. for a loopback test. directMonitoring: the driver monitors audio tracks’ inputs itself, without the engine’s latency, for tracks that play into an output bus (canMonitorDirectly in audio.devices says which can); their fader and pan set its level and position, automation doesn’t reach it. The dummy device has no hardware: its output is captured in memory (audio.capture) and it renders offline (audio.render). It supports 44100, 48000, 88200, 96000, 176400 and 192000 Hz and opens with any rate from 8000 Hz. Its defaults: 48000 Hz, blocks of 256 frames, 2 inputs, 2 outputs (inputChannels, outputChannels), 60 s of capture (captureSeconds, also of its output). Its input is silent, or a built-in generator (see processor.list) with parameters by name. It reports inputLatency and outputLatency (frames, 0 to 65536, default 0); with loopback its inputs carry its outputs back that much later, as a cable from each output to the input of the same number would, which needs at least a block. It monitors directly by adding inputs to its outputs. Sends audio.changed, and plugin.changed for the slots whose plugin’s status changed, e.g. to noDevice, also when it fails after closing the old device.

Arguments:

Result:

audio_setPort

Engine command audio.setPort.

Changes how a port of the audio device is shown, given by whether it is an input and its system name (name in audio.ports). showAs: the name routing menus show; empty shows the system name. visible: whether routing menus offer it; busses on a hidden port keep it. The settings are kept per device in the user setting audio.portSettings, so they come back with the device, also after a restart. Returns the port as audio.ports lists it. If that changes the setting, sends audio.ports as the event audio.portsChanged, as settings.set and settings.reset on audio.portSettings do.

Arguments:

Result:

audio_setProcessing

Engine command audio.setProcessing.

Multi-processing: threads is how many threads process the graph, the audio thread included (1 to 64; default: half the hardware threads, about one per core). Independent tracks then run in parallel; the output is the same for any number of threads. The device must be stopped. activeThreads in the result is how many process, and limitedBy why that is fewer: multiProcessing is off, the hardware has fewer threads, worker threads didn’t get real-time priority (on Linux: no real-time privileges and no rtkit), or the system refused to start them (system). Fails, keeping the previous settings, if threads can’t be started.

Arguments:

Result:

audio_simulateDeviceLoss

Engine command audio.simulateDeviceLoss.

Only the dummy device: simulates its hardware being unplugged (connected false) and its driver asking for a reset, after which the device is lost (see audio.reset), or plugged in again (connected true), after which the engine opens it again on its own. While it is unplugged, audio.setDevice can’t open it either. The dummy device as a fallback (audio.fallbackDevice) can’t be unplugged: while it plays for another backend’s lost device, connected false fails.

Arguments:

Result:

audio_simulateOverload

Engine command audio.simulateOverload.

Only the dummy device: simulates its driver reporting a dropout, which audio.performance counts in deviceOverloads and overloads. Returns the performance data, as audio.performance does.

Result:

audio_start

Engine command audio.start.

Starts the audio device; the dummy device processes one block per block duration (simulated real time) until stopped. While the device is lost (see audio.reset), it starts once it returns (restart in lost), and audio.changed announces that. If it fails, e.g. as there is no device, a start that a failed audio.setDevice left pending stays: the next audio.setDevice still starts its device.

Result:

audio_stop

Engine command audio.stop.

Stops the audio device. Does nothing if it isn’t running. What the transport did on its own until then, such as a punch in, is taken over and announced with transport.changed (see transport.update). While the device is lost (see audio.reset), it stays stopped once it returns (restart in lost), and audio.changed announces that.

Result:

audio_updateLatency

Engine command audio.updateLatency.

Reads the audio device’s latencies and silenceReason again and places recordings by the new record offset (see audio.get); a running device keeps running and switches at its next block. Drivers that learn their latency after the device opens, or whose latency changes with the graph, report the change, as they do when they start or stop playing silence; the engine then runs this on its own. Only for the dummy device, and only while it is stopped: inputLatency and outputLatency (default: as they are) first change what it reports, and with loopback its round trip, as such a driver’s would. Sends audio.changed if anything changed.

Arguments:

Result:

audio_updatePlugins

Engine command audio.updatePlugins.

Builds the processing graph again with the plugins of the slots as they are now. The engine runs it on its own when a plugin is ready after it was loaded or activated, failed, or asked to be restarted; a slot’s audio passes its plugin unchanged until then. Emits plugin.changed for the slots whose plugin’s status changed. Left out of engine.commandLog.

audio_updateSamples

Engine command audio.updateSamples.

Hands the samples of sampler tracks that were read since to the samplers that wait for them. The engine reads a sampler’s sample on a thread of its own when it changes or a project loads, and runs this on its own once the file is read; until then the sampler plays the sample before, or nothing. Starting playback and offline renders wait for the samples. Left out of engine.commandLog.

audition

audition_scrub

Engine command audition.scrub.

Scrubs an audio track, as the scrub tool does while the mouse drags: plays its events from where the audio got to in the last scrub of the track (where that one starts if it hasn’t played yet), to position (samples, 0 to 2^48), forwards or backwards, in seconds (default: the time since that scrub, 0.01 to 0.1 seconds), so speed and pitch follow how fast the positions come, and scrubs that come faster than they play carry on without gaps. The first scrub only sets where the next one starts, and is the only one of a drag in engine.commandLog. Like audition.start it goes straight to the main mix’s outputs; it also moves the project cursor to position (transport.changed), while the transport plays cued exactly as transport.locate does, so that the other tracks play on without a dropout. Or, instead of track, a media file on its own, or a clip, its media file with the clip’s fades, as the sample editor scrubs its clip: position is then one of the file’s sample frames, and the cursor stays; the result’s clip is then the clip, and media its media file. Ends with audition.stop. Announces audition.changed.

Arguments:

Result:

audition_start

Engine command audition.start.

Auditions an audio track, as the play tool does while the mouse is pressed: plays its events from position (samples) until audition.stop, straight to the main mix’s outputs, without its channel’s fader, pan, mute and effects, and without the transport. With end (samples, after position) it plays up to there and then nothing, as the sample editor plays a slice, while its mode stays play until audition.stop or another audition. A mono clip plays on every channel. Or, instead of track, a media file on its own: position and end are then its sample frames, from 0 to its length, without the events that play it. Or, instead of either, a clip: its media file so, with the clip’s fades, as the sample editor plays its clip; the result’s clip is then the clip, and media its media file. Ends what was auditioned before. Optional level (0 to 1, default 1) sets the preview gain. Optional events (ids of the track’s audio events, at least one) plays only those events of the track, with their fades and crossfade curves, as the crossfade editor’s Play Fade Out, Play Crossfade and Play Fade In buttons audition a crossfade’s parts (reference manual p. 392). For a clip or media file, optional sections (ordered, nonoverlapping start/end ranges in source frames) mute everything outside them without skipping time; an empty array mutes all audio. Announces audition.changed.

Arguments:

Result:

audition_stop

Engine command audition.stop.

Ends auditioning and scrubbing. Does nothing if neither runs. Announces audition.changed.

Result:

autoFades

autoFades_set

Engine command autoFades.set.

Changes the auto fades and crossfades of the project, or of an audio track: fadeIn and fadeOut where an event has no fade of its own at that end (they never stack), crossfades where an event starts on top of another one or ends above one that goes on, unless they crossfade already; there an event’s own fade is the crossfade’s, mirrored by the event behind. length is 1 to 500 ms; shapes as for audioEvent.setFades; crossfadeMode equalGain or equalPower, with crossfadeShape the fade in as for crossfade.set. A track uses the project’s settings until it gets its own; useProject: true goes back to them. Returns the settings that apply.

Arguments:

Result:

automationLane

automationLane_add

Engine command automationLane.add.

Adds an automation lane to a track: the curve of one parameter. target.type says which: volume (the channel’s fader, in dB), pan, panLeft and panRight (-1 to 1, see channel.set) on tracks with audio channels; mute (0 off, 1 on; a lane that plays overrides the mute button) on those and on MIDI tracks, whose notes and controllers it silences, ending the notes that sound; instrument, a parameter of an instrument track’s built-in instrument (target.parameter, an id from processor.list, in its range); plugin, a parameter of the built-in plugin in one of the track’s slots (target.slot and target.parameter, as parameter.list gives them, in its range; the lane goes when the plugin is removed or moves to another channel); strip, a parameter of the channel strip’s sections on tracks with audio channels (target.parameter, as parameter.list gives them: the pre section’s gain, phase and cut filters, the equalizer and the gate, compressor and limiter, in their ranges; switches and stepped choices have step curves); midiEffect, a parameter of the MIDI effect in one of the track’s MIDI slots on MIDI and instrument tracks (target.number, 0-3 the MIDI inserts and 4-7 the MIDI sends, and target.parameter, an id from midiEffect.list, in its range; the lane goes when the slot gets another effect); controller (target.number 0-127), pitchBend (0.5 is no bend) and channelPressure, all 0 to 1, on MIDI and instrument tracks, with target.channel 0-15 (default 0). A track has one lane per target. read (default true): the curve plays; without it, or without points, the parameter keeps its static value. write (default false): parameter changes on the lane’s target while playback runs are written as points of a write pass at the project cursor (see automation.set’s writeMode and automation.punchOut). suspendRead and suspendWrite (default false) suspend the reading and the writing of this lane (reference manual p. 892): a suspended lane doesn’t play, and punches out of a running write pass. On a track whose channel is in a link group that links the automation read/write (linkGroup.add), read also goes on to the linked channels’ lanes for the same target, unless linked is false.

Arguments:

Result:

automationLane_list

Engine command automationLane.list. Read-only.

The automation lanes of a track, or of every track in track order, with their points sorted by position.

Arguments:

Result:

automationLane_remove

Engine command automationLane.remove.

Removes an automation lane with its points.

Arguments:

automationLane_set

Engine command automationLane.set.

Changes an automation lane: read, write, suspendRead and suspendWrite (see automationLane.add), and linked, which on a track whose channel is in a link group that links the automation read/write (linkGroup.add) passes read on to the linked channels’ lanes for the same target. Turning write off, or suspending the writing, punches a running write pass out (reference manual pp. 885, 892).

Arguments:

Result:

automationLane_targets

Engine command automationLane.targets. Read-only.

What a track’s automation lanes can automate, in the order automation tracks offer them: its channel’s parameters as parameter.list returns them, then on MIDI and instrument tracks pitch bend, channel pressure and controllers 0 to 127 (MIDI channel 0, from 0 to 1, pitch bend’s default 0.5; a MIDI track whose midiChannel is set, channel.set, plays them on that channel). Each also has group (Channel, the instrument’s or plugin’s name, Pre, Equalizer or Strip for the channel strip’s sections, or MIDI) and lane, the id of the track’s automation lane for it, or 0. Tracks without a channel have none.

Arguments:

Result:

automationPoint

automationPoint_add

Engine command automationPoint.add.

Adds points to an automation lane: position in the track’s time base (ticks on musical tracks, so automation follows tempo changes; samples on linear ones, so it keeps its time) and at most the longest project’s end (see audioEvent.add), value in the target’s unit, shape of the curve to the next point (step, linear or curve; default linear) and for curves the bend, curve, from -1 to 1 (above 0 the value moves fast at first). Mute and stepped parameters (parameter.list) have step curves: their points are steps with whole values. Before the first point the curve has its value, after the last point the last one’s; points at one position make a jump. A ramp of volume moves the gain in a straight line. terminator (default false) ends the curve at the point: up to the next point the parameter has its static value, a gap. With virgin territory (automation.set) there are gaps before the first and after the last point too.

Arguments:

Result:

automationPoint_remove

Engine command automationPoint.remove.

Removes points from an automation lane.

Arguments:

automationPoint_set

Engine command automationPoint.set.

Changes points of an automation lane: their position, at most the longest project’s end (see audioEvent.add), value, shape, curve or terminator (see automationPoint.add).

Arguments:

Result:

automation

automation_copy

Engine command automation.copy.

Copies the automation between start and end (project samples, default the locators) for automation.paste: of every track (Copy Automation of All Tracks), of tracks (ids, Copy Automation of Selected Tracks) or of lanes (ids, Copy Automation of Selected Parameters), each lane with points with the curve’s values at the range’s edges. It has a clipboard of its own, apart from range.copy’s, which a new or loaded project empties. Changes nothing in the project. Returns how many lanes it copied, which the event automation.copied has too.

Arguments:

Result:

automation_get

Engine command automation.get. Read-only.

The automation settings. followsEvents (default false): when an audio event or MIDI part moves, the automation of its track in its range moves with it and replaces the points where it lands. virginTerritory (default false; reference manual p. 881): automation lanes have no curve before their first and after their last point, where their parameters have their static values, as between a terminator point and the next one; without it they have initial values, the first point’s before it and the last point’s after it. writeMode (default latch; reference manual pp. 885-887): the global automation write mode, touch, latch or crossover, how a write pass ends when the control is released or writing is punched out (see automation.punchOut). fillToPunch, fillToStart, fillToEnd, fillLoop and fillGaps (default false; pp. 890-891): the fill options, what a punch out writes across their sections of a lane. writingLanes: the lanes a write pass of which is running now, which with their write flag is the write status a W button shows (off, enabled, writing).

Result:

automation_paste

Engine command automation.paste.

Pastes what automation.copy copied between start and end (project samples, default the locators), where it replaces the automation: without tracks, lanes and targets each lane onto its own track (Paste Automation of All Tracks); onto tracks (ids), the copied tracks from the top one onto each, or one copied track onto all of them; or onto lanes (ids) and targets (parameters of tracks, {track, target} as automationLane.add takes them), each getting the copied lane of its parameter if there is one, a target adding its lane only then. A track takes the parameters it has, adding their lanes: a plugin’s needs the same plugin in the slot at the same place, an instrument’s the same instrument; the others are left out. A shorter range cuts the copy at the curve’s value there, in a longer one its last value holds up to the end. A copy made at another sample rate than the project’s is refused. Returns the lanes it pasted into.

Arguments:

Result:

automation_punchOut

Engine command automation.punchOut.

Punches a running write pass out: the lane (lane), every lane of a track (track), or every lane of the project (neither given), ended at the project cursor per the write mode and the fill options (automation.set): in touch mode the parameter returns to the previously set value, in latch and crossover mode the last value is kept, and with virgin territory a pass that ends inside a gap ends with a terminator point (reference manual pp. 885-887, 881). This is the control released in touch mode, or Write clicked while automation is written (p. 885). One undo step. Returns the lanes that were punched out.

Arguments:

Result:

automation_set

Engine command automation.set.

Changes the automation settings (see automation.get). followsEvents, writeMode and the fill options are settings, so they stay when a new project starts; virginTerritory is saved with the project. Neither is an undo step, and run on its own only a change of virginTerritory changes the project (project.revision); in a transaction, the transaction counts as a change.

Arguments:

Result:

bus

bus_add

Engine command bus.add.

Adds an input or output bus. format is its speaker arrangement (default stereo): mono, stereo, or a surround format with a fixed speaker order, e.g. 5.1 as L R C LFE Ls Rs. channels (1 to 8) picks mono, stereo, LRC, quadro, 5.0, 5.1, 7.0 or 7.1 instead. Without a name it is named after its format and direction, e.g. “Stereo In 2”. ports: the device port of each channel by name (see audio.ports), an empty name for none; without ports the bus takes consecutive device ports in bus order. A port can serve several busses. The first output bus becomes the main mix. A child bus routes to some channels of its parent, a top-level bus of the same direction with more channels (direction may be left out): parentChannels are the parent’s channel indices, one per channel of the child, by default the speakers both formats have; it uses its parent’s ports.

Arguments:

Result:

bus_applyPreset

Engine command bus.applyPreset.

Replaces the project’s busses of a direction with a preset’s (see bus.presets). Channels that used the old busses move to the new bus at the same place, or to none (inputs) or the main mix (outputs). Returns the new busses.

Arguments:

Result:

bus_presets

Engine command bus.presets. Read-only.

The bus presets of a direction: standard ones with one bus of a common format, hardware ones made from the audio device’s ports (all mono, or stereo pairs), and the user’s own (bus.savePreset), which hide others of their name. Each has a name, a kind and its busses: name, format, ports and children (name, format, parentChannels).

Arguments:

Result:

bus_remapPorts

Engine command bus.remapPorts.

Re-routes ports, e.g. missing ones (see audio.ports) after opening a project made on other hardware: ports maps port names to the names that replace them in every bus of the direction. Returns the busses that changed.

Arguments:

Result:

bus_remove

Engine command bus.remove.

Removes a bus and its child busses; channels connected to them are disconnected. Removing the main mix makes the next output bus the main mix.

Arguments:

bus_removePreset

Engine command bus.removePreset.

Removes one of the user’s own bus presets, also one that another GNUbase process on the same settings folder removed already: then this one takes the presets of the settings file.

Arguments:

bus_rename

Engine command bus.rename.

Renames several busses with an incrementing number or letter: name ends in a number (“Out 1”, “Out 01”) or in a space and a capital letter (“Bus A”, up to Z). The first bus given gets the name as given, the others follow in bus order from there, continuing from the top.

Arguments:

Result:

bus_savePreset

Engine command bus.savePreset.

Saves the project’s busses of a direction as a user preset, for every project (the user setting audio.busPresets), replacing one of the same name. A preset named Default is applied to new projects.

Arguments:

bus_set

Engine command bus.set.

Renames a bus, changes its ports (as in bus.add; [] for consecutive ports in bus order), its volume (the fader, in dB, clamped from -144 to the project’s maximum volume) or makes it the main mix (mainMix: true), the output bus new channels are routed to and that is monitored.

Arguments:

Result:

channel

channel_copySettings

Engine command channel.copySettings.

Copies a channel’s settings for channel.pasteSettings (Copy Channel Settings, reference manual pp. 461, 503): the pre section, the equalizer, the strip, the sends and the inserts (the plugin slots with their plugins’ settings); not the fader, the pan, the buttons, the routing or the notes. MIDI and VCA channels have none. Changes nothing in the project.

Arguments:

channel_deactivateAll

Engine command channel.deactivateAll.

Turns a state off on every channel, as the mixer toolbar’s Deactivate All Mute, Solo and Listen States buttons do: mute, solo (with solo defeat) or listen. One undo step. Returns the channels that changed.

Arguments:

Result:

channel_pasteSettings

Engine command channel.pasteSettings.

Pastes what channel.copySettings copied onto channels, in one undo step (Paste Channel Settings): the pre section, the equalizer, the strip, the sends and the inserts (the plugin slots with their plugins’ settings). Their inserts are replaced by copies of the copied ones, the automation of the plugins they had goes with them. A send keeps its destination only if the channel may send there, so not to itself and never in a loop, and only in the project it was copied in, and its level stays below the project’s maxVolume. Emits channel.changed, automationLane.removed, plugin.removed and plugin.added. Returns the channels.

Arguments:

Result:

channel_set

Engine command channel.set.

Changes a channel’s format (or channels, as in bus.add), input (an input bus, an output bus or a group or effect channel, which the audio track then records from: it plays what they play, such as a downmix of the tracks routed to a group, as long as its own audio doesn’t come back to it) or output (an output bus or a group channel; for MIDI tracks an instrument channel). 0 disconnects. Audio converts between formats where a channel feeds a destination of another one: speakers both formats have connect, the others are mixed down (5.1 to stereo: C and LFE into L and R at -3 dB, Ls into L and Rs into R at -6 dB; 7.1 to 5.1: Sl and Sr into the front and surround sides at -3 dB) or up (mono to C, or to L and R at the pan law’s center). instrument is the built-in instrument an instrument track plays (see processor.list), or empty for none. volume is the fader in dB, from -144 (silence) to the project’s maxVolume (default 0); values beyond them stop there. The panner depends on the routing: a mono channel on a stereo destination has its position pan, -1 (left) to 1 (right), placed with the project’s pan law; a stereo channel on a stereo or mono destination has the balance panner (panner balance, the default: pan turns down the other side) or the combined panner (panner combined: panLeft and panRight place its left and right channel, by default -1 and 1). panBypass plays mono channels at the center and stereo ones hard left and right. Destinations wider than stereo have no panner yet. Automation of volume, pan, panLeft and panRight overrides them while it plays; changes glide over 5 ms. MIDI channels have no audio: midiVolume and midiPan (0 to 127, 64 is the center pan, null for none, the default) are sent to the instrument as MIDI volume (CC 7) and pan (CC 10) on its midiChannel, whenever they change and when playback starts or jumps; automation of those controllers on that channel overrides them. program (0 to 127) and bank (0 to 16383, null for none, the default) are a MIDI channel’s patch: the program change, after bank select MSB (CC 0) and LSB (CC 32) if bank is set, goes to the instrument on its midiChannel whenever they change and when playback starts or jumps; without a program nothing is sent. midiChannel is the MIDI channel they go out on, 0 to 15, or null (Any, the default) for MIDI channel 1. A MIDI track set to a channel also plays its parts’ notes and controller events, what its input plays and its MIDI automation on it; Any keeps their own channels. device names the installed MIDI device (midiDevice.install) whose patches choose them, or is empty. midiPort is the MIDI output port a MIDI channel plays to instead of an instrument, by its key in midi.portSettings (backend/out/id, see midi.ports), or empty for none, the default: its events go there at the times of their frames, one output latency ahead, and are dropped while the port isn’t connected, which keeps the routing; setting it clears output, and an output clears it. monitor and recordEnable are an audio track’s buttons: monitor hears the input bus, recordEnable arms the track for recording and, by the user setting audio.autoMonitoring, monitors too: manual never, whileRecordEnabled always, whileRecording while the transport records, tapeMachine while it stands or records (the default). Monitoring glides in and out over one audio block. MIDI and instrument tracks have them too: recordEnable arms the track for MIDI recording, and while either is on, the track plays what comes from its MIDI input, midiInput: all (all MIDI inputs, the default), chordPads (only the chord pads, which play into it also with Chord Pad Output Mode off, chordPads.set outputMode), none, or a single MIDI input port, by its midi.portSettings key such as dummy/in/Keys (reference manual p. 348), also one outside all MIDI inputs or not there now. inputTransformer (MIDI and instrument tracks): {mode, modules}, mode off, track (its own modules) or project (those of midi.setInputTransformer), modules as midi.setInputTransformer takes them; the modules that are on change what the track’s MIDI input plays, before it plays and records it. monitor and recordEnable stay off on a frozen track and on a MIDI track that plays a frozen instrument track (track.freeze): they can’t be turned on, nor such a track routed to one with them on, and linked channels and VCA faders don’t pass them on to it. mute silences a channel; while any channel is soloed (solo), only the soloed ones, the channels they play through (groups, instruments) and the channels that play into them are heard; exclusive with solo true turns every other channel’s solo off, and does nothing without it; soloDefeat keeps a channel and the channels it plays through heard while others are soloed. listen (not MIDI channels) also plays the channel after its fader on the monitoring bus, the main mix, which is turned down to the user setting audio.listenDim while any channel listens; the listening channels play there at audio.listenLevel, and their signal flow stays as it is. Muting, soloing and the dim glide over one audio block. notes is the channel’s notepad, the user’s text about it. modifiers (MIDI and instrument tracks; it changes only what it has, as project.get shows it) changes how the track’s notes play, not the notes, both those of its parts and those played into it live: bypass, transpose (semitones, -127 to 127; notes beyond 0 to 127 don’t play), velocityShift (-127 to 127, added to MIDI 1.0 velocities), velocityCompression and lengthCompression ([numerator, denominator], each 1 to 16: multipliers of velocities, before the shift, and of lengths), random (two generators, [{target (off, position, pitch, velocity or length), minimum, maximum}]: each adds a value from its minimum to its maximum to every note, the same on every playback; positions and lengths in ticks, up to a quarter note either way, the others up to 127; live notes get pitch and velocity only) and range (two, [{target (off, velocityLimit, velocityFilter, noteLimit or noteFilter), minimum, maximum (0 to 127)}], in order after the others: the limits move velocities to the nearest end and pitches by octaves into the range, the filters leave out the notes outside it). midiInserts and midiSends (MIDI and instrument tracks; each changes only what it has, as project.get shows them) are the track’s four MIDI insert and four MIDI send slots, which run GNUbase’s built-in MIDI effects (midiEffect.list) on the track’s own events after the modifiers: {bypass (all slots of the section), pre (sends only: they get the events before the modifiers and the inserts), divider (inserts only, 0 to 4: the slots above it play what comes into the track live, before it records, and not its parts), slots: [{effect (an id, or empty for none; another effect starts from its defaults), on, parameters {key: value, a number or an option’s name}, output (sends only: an instrument track’s channel the effect plays to, 0 for the track’s own output; a slot without an effect has none: 0, which removing its effect sets)}]}. The inserts play in order, each on what the one before it played; each send plays its effect’s events beside them. Changing which effects play ends the notes the track sounds. The channel strip’s sections (audio channels only; each object changes only what it has, as project.get shows them) run before the fader: pre {gain (dB, -24 to 24), phase (inverts the polarity), lowCut and highCut {on, frequency (Hz, 20 or for the high cut 50 to 20000), slope (6, 12, 24, 36 or 48 dB per octave)}} before the plugin slots; after them strip {gate {on, threshold (dB, -80 to 0), range (dB, -80 to 0), attack (ms, 0.01 to 100), release (ms, 1 to 4000)}, compressor {on, threshold (dB, -60 to 0), ratio (1 to 20), attack (ms, 0.1 to 100), release (ms, 10 to 2000), makeup (dB, 0 to 24)}}, then eq {bypass, bands: [{band (1 to 4), on, type (bell; band 1 also lowShelf or lowCut, band 4 highShelf or highCut, cuts at 12 dB per octave), frequency (Hz, 20 to 20000), gain (dB, -24 to 24), q (0.1 to 12)}]}, then the strip’s limiter {on, threshold (dB, -30 to 0: no sample leaves above it, 1 ms of latency), release (ms, 1 to 1000)}. Everything starts off; changes glide, the gate and the compressor crossfade with their input over 5 ms when they switch on or off, and turning the limiter on changes the channel’s latency and starts it with 1 ms of silence. sends (audio channels only) changes the channel’s eight sends, each by its send number (1 to 8) and only in what it has: destination (a group or effect channel, 0 for none), on, level (dB, from -144 to the project’s maxVolume, stopping there, default 0) and preFader (before the fader and the mute button, after the strip’s sections; default after the fader). A send starts off and without a destination. Neither an output, a send nor an input may lead back to the channel through other outputs, sends and inputs, on or off, so routing never makes a loop; removing a destination’s track clears the destination and the inputs of the tracks that recorded from it. A send’s level and on glide over one audio block. A VCA track’s channel has volume, mute, solo, soloDefeat, listen, monitor and recordEnable only. On a channel in a link group (linkGroup.add) the changes the group links go on to its other channels, the fader and the pan by as much as they moved, unless linked is false; a VCA fader’s buttons go on to the channels of the group it controls, all in the same undo step.

Arguments:

Result:

chordPads

chordPads_addPlayer

Engine command chordPads.addPlayer.

Add Player (reference manual pp. 1376-1377): a basic, piano or guitar player (library) with a name (default after its library) and, for piano and guitar, a voicing style (style, default the library’s first: chord.setTrack lists them), which becomes the selected player whose voicings the pads play. At most 8.

Arguments:

Result:

chordPads_assign

Engine command chordPads.assign.

Assigns chords to chord pads (reference manual pp. 1356-1362): each of assignments has a pad and a chord as the chord editor’s text input takes it (such as Cmaj7, Dm7(9) or C/E; “” removes the assignment), pitches (MIDI notes, Assign from MIDI Input: the chord they make) or symbol (the chord editor’s buttons, p. 1357: root 0 C to 11 B, type maj, min, dim, aug, sus2 or sus4, tensions such as 7, maj7, 9 and b9, and bass, a pitch class or -1 for the root’s, as chordPads.get’s symbol). The pad’s voicing goes back to its basic voicing with adaptive voicing. Locked pads are refused.

Arguments:

Result:

chordPads_assistant

Engine command chordPads.assistant. Read-only.

The chord assistant (reference manual pp. 1372-1375). kind list (the List assistant): suggestions for the chord after chord (the reference, such as the selected pad’s), at most 24, each with its chord, its degree in the root key and its level: 0 common (green), 1 adventurous (orange), 2 far (red), by how many of its notes are outside the scale of the loaded preset (chordPads.get preset) on the root key; algorithm cadence (the default: the common ones first, and of the same level those that follow most strongly first) or commonNotes (those that share commonNotes notes, default 2, with it). kind circle (the Circle of Fifths assistant): outer, the twelve major chords from the root key’s in fifths (minor: from its relative major’s), and inner, their relative minor chords, each with its degree in the key, empty for chords outside it. cadenceType (with cadence, p. 1373): all (the default), or the chords of one harmonic function, by the scale degree of their root: tonic (I, iii, vi), subdominant (ii, IV) or dominant (V, vii). kind proximity (the Proximity assistant, p. 1374): the same chords around the reference, at most 24, nearest first, each with its distance: how many of its notes the reference doesn’t have, one more for a seventh.

Arguments:

chordPads_deletePreset

Engine command chordPads.deletePreset.

Deletes a chord pads preset of the user’s own (chordPads.savePreset).

Arguments:

chordPads_fromChordTrack

Engine command chordPads.fromChordTrack.

Assign from Chord Track (reference manual p. 1361): the chord track’s chords, in their order and each once, onto the pads from the first; the other unlocked pads become unassigned. Undefined chords are left out.

Result:

chordPads_get

Engine command chordPads.get. Read-only.

The chord pads (reference manual pp. 1346-1391): pads, each with its chord (“” while unassigned), degree (its scale degree as a roman numeral, in the loaded preset’s scale on the root key), nashville (the same in the Nashville Number System, such as 2m), pitches (the voicing it plays, from the lowest up), voicing (the inversion of its basic voicing), adaptive (adaptive voicing), locked and key (the remote key that triggers it, or null); rootKey (0 C to 11 B); reference (the adaptive voicing reference pad, or -1); octaveOffset (the selected basic player’s); players (each with its name, library, style and octaveOffset) and player (the selected one’s index); velocity (of pads triggered with the mouse); remote, remoteStart and remoteEnd (the pads’ remote keys); preset (the last loaded) and scale (its scale); stepInput, moveInsert and stepPosition (ticks); outputMode, latch, overlaps, filterNotes, modifiers, modifierKeys and remotePort (as chordPads.set takes them); listening, what chordPads.listen listens for ({assign: pad} or {learn: target}), or null.

Result:

chordPads_listen

Engine command chordPads.listen.

Listens to the next notes from the MIDI inputs, which play as they are meanwhile: assign (Assign from MIDI Input, reference manual p. 1360), a pad that gets the chord of the notes played once they are all released; learn (MIDI Learn, p. 1388): range, the next two keys make the pads’ remote range, or a chord modifier’s name (chordPads.set modifierKeys), the next key becomes its key; sectionKeys, subsectionKeys or playerKeys (p. 1389), the next keys become those keys one after another, until each has one; modifyAllVoicings, modifyAllTensions or transposeAllPads (p. 1387), the next aftertouch, pitch bend or controller becomes what moves all pads’ voicings, tensions or transposition (chordPads.set controlSources and controlNumbers). Without either it stops listening. Emits chordPads.listening with listening ({assign: pad}, {learn: target} or null), also once it is done; chordPads.get has it too.

Arguments:

Result:

chordPads_loadPreset

Engine command chordPads.loadPreset.

Loads a chord pads preset (reference manual pp. 1370-1371). The scale-based ones, major, minor, dorian, phrygian, lydian, mixolydian and locrian, are the triads on the seven degrees of the scale on root (0 C to 11 B, default the root key), which becomes the root key, onto the pads from the first. The user’s own (chordPads.savePreset) bring back their chords pad by pad with their voicings, their root key and scale, and their players with the player mode and its pattern. load: chordsAndPlayers (the default), chords (the chords; the other unlocked pads become unassigned) or players (the player: for the scale-based presets the basic player with no octave offset). chordPads.presets lists them.

Arguments:

Result:

chordPads_modify

Engine command chordPads.modify.

The pad modifiers (reference manual pp. 1351-1352) on the assigned, unlocked pads of pads: transpose moves their chords by semitones, tensions adds (more) or takes away (fewer) as many tensions, voicing steps through their voicings (inversions), which turns their adaptive voicing off, and without takes away the tensions it names, as chord names write them (“9”, “#11”), after the others; a name that is no tension is an error.

Arguments:

Result:

chordPads_move

Engine command chordPads.move.

Swaps the chord assignments of two pads with their settings, or with copy copies from’s to to (reference manual p. 1361). The adaptive voicing reference stays on its pad. A locked to is refused.

Arguments:

Result:

chordPads_presets

Engine command chordPads.presets. Read-only.

The chord pads presets that chordPads.loadPreset loads, as Previous and Next Preset step through them (reference manual p. 1348): the scale-based ones, then the user’s own by name.

Result:

chordPads_recordChord

Engine command chordPads.recordChord.

Records a chord pad’s chord as a chord event on the chord track at position (samples on the transport), as pads triggered while the transport records do on a record-enabled chord track (reference manual p. 1368); a chord event there gets the pad’s chord.

Arguments:

chordPads_remoteInput

Engine command chordPads.remoteInput.

What the chord pads’ remote keys did, as the audio engine reports it from the MIDI inputs (#1089): each of events has a kind and a key (a MIDI note) and velocity (0 for a note-off): triggered (the key triggered its pad, which chordPads.triggered announces with remote true, and while the transport records a record-enabled chord track records its chord), released (the key ended the chord of the pad it triggered, also after the remote’s input or range changed, or the pad it lit with no notes to play), both with pad, the pad the key lit as the audio thread played it, whatever the range is now (without it, the key’s pad in the remote range), modifier (a chord modifier’s key, chordPads.set modifierKeys: it changes the pads whose keys are down, else the one triggered last), note (a note while chordPads.listen listens), player (a key of Select/Mute Player), control (what moves all pads: key 0 voicings, 1 tensions, 2 transposition, velocity its value from 0 to 127) and controlInput (a control while chordPads.listen listens: key 1 aftertouch, 2 pitch bend, 3 a controller, whose number is velocity).

Arguments:

chordPads_removePlayer

Engine command chordPads.removePlayer.

Delete Selected Player (reference manual p. 1377): removes a chord pads player (player, default the selected one), but not the last one. The one before it is selected.

Arguments:

Result:

chordPads_savePreset

Engine command chordPads.savePreset.

Save Preset (reference manual p. 1371): the chord pads as a preset of the user’s own, kept in the user setting chordPads.presets: each pad’s chord, voicing and adaptive voicing, the root key, the scale and the players without their tracks, with the player mode and its pattern (p. 1370). A preset of the name is replaced; the scale-based ones can’t be. No change to the project.

Arguments:

chordPads_set

Engine command chordPads.set.

Changes the chord pads’ settings: rootKey (0 C to 11 B; with transposePads the assigned unlocked pads move with it, the nearer way, reference manual p. 1365, without only their degrees change, p. 1364); padCount (1 to 32, the number of pads; pads beyond it go); player (the selected player, chordPads.addPlayer); octaveOffset (-3 to 3, the selected basic player’s Octave Offset, p. 1377); velocity (1 to 127, Velocity on Mouse Click); remote (Pad Remote Control: notes from MIDI inputs on the remote keys trigger the pads instead of playing, p. 1386), remoteStart and remoteEnd (Pads Remote Range Start and End, MIDI notes: the first key triggers the first pad and so on); stepInput, moveInsert and stepPosition (ticks, from 0 to the end of the bar the longest project, 2^48 samples, ends in at the project’s tempo) for chordPads.step (p. 1369); stepBars moves the step position by bars, to a bar’s start, at most that bar’s (after stepPosition), as Left and Right Arrow move the step input cursor. Moving the step position is no undo step of its own; with another change it goes back on undo. outputMode (Chord Pad Output Mode, p. 1347, on by default): on, the pads play into every MIDI and instrument track that monitors or is record-enabled; off, only into those whose midiInput is chordPads (channel.set). latch (Latch Chords, p. 1386): a pad’s chord plays until the pad is triggered again. overlaps (p. 1379), what a chord played over another does with the other’s notes: holdFirst (the default: they go on until their own off; shared notes sound once), legato (they end but for the shared ones, which go on) or stopFirst (they all end). filterNotes (Filter Notes From MIDI Thru): the remote keys of pads without a chord play nothing. modifiers activates the chord modifiers’ remote keys (p. 1387), modifierKeys (MIDI notes by name: previousVoicing, nextVoicing, fewerTensions, moreTensions, transposeDown, transposeUp; C2 to F2 by default): such a key changes the pads whose remote keys are down, or else the one triggered last, and plays nothing. remotePort: the MIDI input whose notes trigger the pads, its midi.portSettings key such as dummy/in/Keys (p. 1386); empty (the default) for all MIDI inputs. snapPlayback (Snap Playback to Musical Grid, p. 1349): while the transport plays, a triggered pad’s chord starts at the next position of the quantize grid (quantize.set). mode (Player Mode, p. 1378): plainChords, or pattern, which plays the pattern (chordPads.setPattern) with the notes of the chord that plays, velocityFromKeyboard with the velocity it was triggered with instead of the pattern’s. flats (the Root Key pane’s Enh. Shift, p. 1363): the pads’ spelled names have flats, Db for C#. mode sections (pp. 1381-1385): a pad’s remote key chooses its chord and plays nothing; the remote keys of sectionKeys (five MIDI notes, -1 for none; G2 to B2 by default) play its sections, the notes from the lowest up, one each, and the rest to the top section, or with spread spread over them; subsectionKeys play the sections of subsectionSections moved by subsectionOffsets semitones; sectionPlay sections (with the pad’s key down), chordPads (the pad triggered last) or combination (either first); latchPads (Latch Chord Pads): the sections go on after the pad’s key goes up; mutedSections (five) play nothing. playerKeys (Select/Mute Player, p. 1389): the remote keys that select the previous and the next player and mute or unmute the selected one, -1 for none. controlSources (Modify All Pad Voicings, Modify All Pad Tensions, Transpose All Pads, p. 1387): what moves them from the remote’s input, none, aftertouch, pitchBend or controller (of controlNumbers): a control at rest changes nothing: aftertouch and controllers rest at 0 and go up to 3 inversions up, 3 more tensions and 6 semitones up; pitch bend rests in its middle and goes from 3 inversions and 6 semitones down to 3 and 6 up, and from none to 3 more tensions above its middle. A pad that follows a move only partly, such as one with tensions or at the limit of 12 inversions, goes back as far as it went, and one whose chord changed another way meanwhile, such as by chordPads.assign, stays as it is; once the voicings control rests, the pads it turned adaptive voicing off for have it again. Each gesture of a control is one undo step; a second without a move ends the gesture.

Arguments:

Result:

chordPads_setPad

Engine command chordPads.setPad.

Changes a chord pad’s state (reference manual p. 1351): locked (Lock: its chord and voicing can’t change; locking turns adaptive voicing off), adaptive (Adaptive Voicing: it takes the voicing nearest to the reference pad’s) and reference (Adaptive Voicing Reference: true makes it the reference, false leaves no pad the reference).

Arguments:

Result:

chordPads_setPattern

Engine command chordPads.setPattern.

The pattern of the pattern player mode (reference manual pp. 1379-1380), which it turns on: from a MIDI part (part: its notes, their distinct pitches the voices from the lowest up, 3 to 5 of them, as long as the part; as a MIDI part dropped on the Player Mode section does) or a preset (arpeggioUp, arpeggioDown, brokenChord, eighths: a bar of four voices) or a MIDI file (file, a path: Import from MIDI Loop, its notes on all its tracks as long as its longest track). At most 64 notes.

Arguments:

Result:

chordPads_setPlayer

Engine command chordPads.setPlayer.

Changes a chord pads player (player, default the selected one; reference manual p. 1377): name (Rename Selected Player), style (Chord Voicing Style, piano and guitar players: their library’s styles), octaveOffset (-3 to 3, basic players), track (Using Different Players on Multiple Tracks, p. 1377: a MIDI or instrument track that gets this player’s voicings while the other tracks get the selected player’s; 0 for none; one player a track), muted (Select/Mute Player, p. 1389: it plays nothing).

Arguments:

Result:

chordPads_step

Engine command chordPads.step.

Step input from the chord pads (reference manual p. 1369): the pad’s chord becomes a chord event at the start of the bar of the step input position (ticks, chordPads.set stepPosition) on the chord track, which is added if there is none, and the position moves to the next bar. With moveInsert the chord events from there on move a bar later first; without, a chord event already there gets the pad’s chord. Needs stepInput, and a bar not after the one the longest project ends in.

Arguments:

Result:

chordPads_toTrack

Engine command chordPads.toTrack.

A chord pad dragged onto a track (reference manual p. 1370): onto the chord track, its chord as a chord event at position (ticks, default the cursor); onto a MIDI or instrument track, a MIDI part a bar long there with its voicing.

Arguments:

chordPads_trigger

Engine command chordPads.trigger.

Triggers a chord pad, or auditions a chord (an assistant’s suggestion), as a click does (reference manual p. 1366): on (the default) plays its voicing, off ends it; with latch (chordPads.set) an off ends nothing and an on ends the pad’s chord if it sounds. A chord played over another treats the other’s notes as overlaps says (chordPads.set). The notes play as the chord pads’ (midi.keyboard chordPads), the highest voice on MIDI channel 1, the next on channel 2 and so on: MIDI and instrument tracks whose MIDI input is the chord pads, and with outputMode those set to all MIDI inputs, play them while they monitor or are record-enabled, and record them. velocity: 1 to 127, default the pads’ velocity. Returns the pitches the pad plays now, or that ended, and on, whether it sounds now. Emits chordPads.triggered with the pad (-1 for a chord), the chord, on and the pitches, also for the pads that the overlap ended.

Arguments:

Result:

chord

chord_add

Engine command chord.add.

Adds a chord event to the chord track, which is added if the project has none, or with scale a scale event. position is in the track’s time base, ticks or samples (default the cursor); each event plays to the next of its kind. chord is the chord as the chord editor’s text input takes it: a root (C to B with # or b), a type (m, maj, dim, aug, sus2, sus4), tensions (6, 7, maj7, 9, 11, 13, b9, #9, #11, b13; 9, 11 and 13 bring the seventh unless after add) and a bass note after a slash, such as Cmaj7, Dm7(9) or C/E; the default, “” or X, is an undefined chord. scale is a root and a scale type, such as “D dorian” (midi.transpose’s scale types). The event comes back with its chord’s name, its scale and its voicing (pitches). Refused where an event of the kind is.

Arguments:

Result:

chord_assignVoices

Engine command chord.assignVoices.

Assign Voices to Notes (reference manual p. 1342): moves each note of MIDI parts to the nearest pitch of the voicing of the chord event playing at its start (the lower one on a tie), so the notes play the chord track’s voices. Notes before the first chord event and over undefined chords stay. Returns the notes changed.

Arguments:

Result:

chord_audition

Engine command chord.audition.

Auditions a chord event’s voicing or a scale event’s notes (from its root up an octave), or a chord given as chord.add takes it, on the chord track’s audition track (chord.setTrack audition, reference manual p. 1329), as if from its MIDI input (midi.inject): on (the default) plays it, off ends what played. Refused without an audition track, with the audition track frozen (it takes no MIDI) or with the chord track muted. Returns the pitches.

Arguments:

Result:

chord_follow

Engine command chord.follow.

Sets how a MIDI or instrument track follows the chord track (Follow Chord Track, reference manual pp. 1339-1341): mode off, chordsAndScales (the old chord’s notes become the same notes of the new chord, root, third and so on, the others the same degree of the new scale), chords (to the nearest note of the new chord), scales (to the nearest note of the new scale), rootNotes (by the step between the roots, the nearer way, as the transpose track does) or voicings (the same voice of the new chord’s voicing). Every mode but voicings first moves notes by the step between the roots. The notes stay as they are; playback maps each from the chord it was played over to the chord event playing at its start. sync says what that chord was, the first time (Follow Chord Track dialog): direct (the default, Follow Directly: the chord track as it is now), analyze (the chords of the track’s MIDI notes) or known with chord (Apply a Known Chord, everywhere). Drum-mapped tracks don’t follow. singleVoice plays one voice of the new chord’s voicing, voice: soprano (the highest, the default), alto, tenor or bass (the lowest). voicings (This Track’s Voicings): chordTrack (the default, the chord track’s voicings) or a library, basic, piano or guitar. master: a Single Voice track’s master track, whose voicings it takes, 0 for none. liveInput (Live Input, p. 1338): chords or scales move the notes played into the track to the nearest note of the chord or scale playing at the transport position, off doesn’t. Without mode, the mode stays.

Arguments:

Result:

chord_fromAudio

Engine command chord.fromAudio.

Create Chord Events from audio events (reference manual pp. 1343-1344): chord events from the chords heard in audio events, on the chord track, which is added if the project has none. Each quarter note of an event (on the project’s beat grid) is matched against the triads, sus chords and sevenths on every root by its pitch classes; a quarter note that differs from the one before starts a chord event, and silence makes none. Each event has the audio event (audioEvent) and the chords detected over it, the most likely first (detected), as the chord assistant’s Detected tab lists them. The chord events within an audio event are replaced. The audio should be western music in equal temperament. Returns the events made.

Arguments:

Result:

chord_fromMidi

Engine command chord.fromMidi.

Create Chord Events (reference manual pp. 1342-1343): chord events from the MIDI notes of parts or of tracks’ parts, on the chord track, which is added if the project has none. Where the notes that sound change, the chord they make, if any and other than the one before, becomes a chord event: with includeBass (default true) a lowest note other than the root is its bass note, with includeTensions (default true) other notes are its tensions; notes shorter than minLength ticks (Ignore Notes Shorter Than, default 0) don’t count. detectArpeggios (Detect Arpeggios, default false): a note sounds on to the end of its bar, so chords played one note after another in a bar count, from where their first note starts. sustainPedal (Interpret Sustain Pedal, default false): a note that ends while the sustain pedal (controller 64) is down lasts until it is let up. The chord events from the first note’s start to the last one’s end are replaced. Returns the events made.

Arguments:

Result:

chord_get

Engine command chord.get. Read-only.

The chord track: its id (0 for none); its chord events in timeline order (id, position in the track’s time base, start in samples, chord, scale and pitches, the chord’s voicing from the lowest up; for events made from audio, audioEvent and detected, the chords that fit best, else 0 and none); its scale events (id, position, start, scale); its settings as chord.setTrack takes them; and follow, the tracks that follow it with their mode, voice, voicings, master, liveInput and source, the chords their notes were played over (position in ticks, chord).

Result:

chord_map

Engine command chord.map.

Map to Chord Track (reference manual p. 1341): moves the notes of MIDI parts to the chord track’s chords for good, as Follow Chord Track with mode would play them: each part’s own chords (as chord.fromMidi finds them, C where it finds none) map to the chord events playing at each note. mode: chordsAndScales (the default), chords, scales, rootNotes or voicings. Returns the notes changed.

Arguments:

Result:

chord_remove

Engine command chord.remove.

Removes chord and scale events.

Arguments:

chord_set

Engine command chord.set.

Changes chord track events: each moves to position (in the chord track’s time base) or gets a new chord (chord events) or scale (scale events), as chord.add takes them.

Arguments:

chord_setTrack

Engine command chord.setTrack.

Changes the chord track’s settings (reference manual p. 1333): octaveOffset (-3 to 3), the basic voicings’ Octave Offset from C3: the bass note from C2, the chord above it from C3; adaptiveVoicings, voicings that take the inversion nearest to the chord before; automaticScales, each chord event’s scale is its chord’s (major, mixolydian with the seventh, minor, dorian with the seventh and so on) rather than the scale event’s playing there; voicing, the voicing library (reference manual pp. 1333-1335): library basic (Octave Offset only), piano or guitar, style (the library subset; piano: triads, triadsMaj9, triadsMaj9Min9, fourNote, fourNoteOpen, fiveNote; guitar: triads, fourNote, threeString, modernJazz) and the Custom Voicing panel’s piano options addRoot, duplicateRoot, fattenUp and range lowestRoot, lowest, highest (pitches 0 to 127, highest an octave or more above lowest); shiftChords (Shift Chords, ticks, at most a quarter note either way): a negative shift lets each chord event take the notes played that much before it; mute (Mute Chord Track): no track follows, no Live Input and no auditioning; showScales (Show Scales), the scale lane; recordEnable: the notes that MIDI and instrument tracks record, or play while they only monitor, during a recording become chord events, each take’s over it (reference manual p. 1345); audition (Select Track for Auditioning): a MIDI or instrument track, 0 for none; acousticFeedback: the chord events’ voicings play on it, and chord.audition plays there.

Arguments:

Result:

chord_toMidi

Engine command chord.toMidi.

Converts chord events to MIDI (reference manual p. 1336): a new MIDI part on a MIDI or instrument track with each chord’s voicing (chord.get pitches) from its event to the next, the last a bar long. events are the chord events to convert, in a row (dragged onto the track); without them, all, and the track then follows the chord track with voicings (Chords to MIDI). Undefined chords make no notes.

Arguments:

Result:

clip

clip_add

Engine command clip.add.

Adds a clip that plays an audio file; it is named after the file unless a name is given.

Arguments:

Result:

clip_addHitpoint

Engine command clip.addHitpoint.

Inserts a hitpoint into a clip at position, a clip frame (Alt-click with Edit Hitpoints, reference manual p. 640). It is locked, so that it counts whatever the filters, and gets the peak and intensity of the sound there, measured from the clip’s file as the detection measures those it finds, the intensity relative to the sharpest the detection found (the rise at the hitpoint of the highest intensity, detected ones first, measured again). Fails if the clip’s file can’t be read. A clip’s hitpoints are in its hitpoints, by position: each with its position in the clip’s sample frames, its peak (dBFS, the loudest sample in the 20 ms from there) and intensity (0-1, how sharply the level rises there, 1 for the sharpest the detection found), whether it is locked and disabled, and active, whether it counts: not disabled, and locked or let through by the clip’s hitpointFilter (clip.setHitpointFilter). Emits clip.changed. Returns the clip’s id and its hitpoints.

Arguments:

Result:

clip_addRegion

Engine command clip.addRegion.

Adds a region to a clip (Add Region, Event or Range as Region, reference manual pp. 620, 624-625): a named section of its audio, from start to end in the clip’s sample frames, start before end; name defaults to Region and a number that no other region of the clip has in its name. A clip’s regions are in its regions, by start. Emits clip.changed. Returns the clip’s id and the region.

Arguments:

Result:

clip_addSilenceRegions

Engine command clip.addSilenceRegions.

Detects silence in whole clips as a cancellable job with job.progress, then runs clip.applySilenceRegions on the command thread, one undo step. Uses clip.detectSilence’s settings and clip.applySilenceRegions’ regionName and autoNumberStart options. Returns a job; its result is the edit’s result. Fails if the project changed meanwhile. A section opens at the first frame where a sample of any channel reaches openThreshold (dBFS, default -20) and closes after the last frame that reaches closeThreshold (dBFS, default -30, at most openThreshold) before 20 ms below it. Once open, a section stays open for at least minimumOpen (ms, default 10), joining what sounds within it; once closed, none opens before minimumClosed (ms, default 100) has passed. preRoll and postRoll (ms, default 0) start and end the sections earlier and later, joining those that then overlap.

Arguments:

Result:

clip_addWarpMarker

Engine command clip.addWarpMarker.

Inserts a free warp marker into a clip at position (a clip frame) that plays it at target, default position (Free Warp, reference manual pp. 654-655). Markers can’t pass each other, and no section between two of them, or one and the clip’s start or end, may play more than 4 times or less than a quarter as long, the real-time stretcher’s range; a section that plays as it did, as in a project from before the range was checked, may stay beyond it. A clip’s warp has musical (musical mode: its beats follow the project’s tempo), its definition: tempo (BPM of quarter notes, 0 until one is set), beatsPerBar, gridStart (the clip frame of beat 0, which may precede the audio) and beats (the beats, counted in quarters from the grid start, that Auto Adjust or Manual Adjust put elsewhere than the tempo would, each at a clip frame), its free warp markers (each plays the audio at its position where the clip frame target would play without it) and preset, the time stretch algorithm of real-time warping; after warp quantizing also quantizeOrigin, the markers before it (original) and as it left them (quantized), and created, the positions of the markers quantize.createWarpMarkers made. Emits clip.changed. Returns the clip’s id and its warp.

Arguments:

Result:

clip_adjustGrid

Engine command clip.adjustGrid.

Corrects a clip’s definition grid by hand (Manual Adjust, reference manual pp. 652-654), moving a line of the grid to the clip frame frame. mode start: the grid start, and the beats edited with it (Set Grid Start); stretch: makes beat beat (default the second bar’s first) be at frame by changing the tempo, dropping the beats edited, so that every bar is as long (Stretch Grid); bar: puts beat beat at frame and the beats edited after it with it (Set Bar Position, Move Following Bars); beat: puts beat beat at frame alone (Set Beat Position); remove: drops the edit of beat beat (Remove Beat Edit). A clip without a tempo gets the project’s first. A clip’s warp has musical (musical mode: its beats follow the project’s tempo), its definition: tempo (BPM of quarter notes, 0 until one is set), beatsPerBar, gridStart (the clip frame of beat 0, which may precede the audio) and beats (the beats, counted in quarters from the grid start, that Auto Adjust or Manual Adjust put elsewhere than the tempo would, each at a clip frame), its free warp markers (each plays the audio at its position where the clip frame target would play without it) and preset, the time stretch algorithm of real-time warping; after warp quantizing also quantizeOrigin, the markers before it (original) and as it left them (quantized), and created, the positions of the markers quantize.createWarpMarkers made. Emits clip.changed. Returns the clip’s id and its warp.

Arguments:

Result:

clip_applySilenceRegions

Engine command clip.applySilenceRegions.

Adds a region of each clip for every measured non-silent section (the Detect Silence dialog’s Process for clips selected in the pool, reference manual pp. 603-606), as clip.detectSilence finds them in the whole clip. Takes sections already measured, one array per clip in the same order, and revision from project.revision; fails if the project changed meanwhile. Does no file I/O. Each region is named regionName (default Region) and a number from autoNumberStart (default 1) up, across the clips, like event.applySilenceSections names them across the events. Returns the clips, the regions and the number of sections.

Arguments:

Result:

clip_autoAdjust

Engine command clip.autoAdjust.

Extracts a clip’s definition grid from its hitpoints (Auto Adjust, reference manual pp. 651-652): the section from start to end (clip frames; default the whole clip) is taken to start and end at a barline and to be bars bars long (default: the whole bars nearest its length at the clip’s tempo, or the project’s without one). That makes the clip’s tempo and grid start; every beat with a hitpoint that counts within a quarter beat of it is then edited to be at that hitpoint. The snap point of event, an audio event of the clip such as the one the sample editor shows, moves to the start of the section (emitting audioEvent.changed). Fails without such hitpoints. A clip’s warp has musical (musical mode: its beats follow the project’s tempo), its definition: tempo (BPM of quarter notes, 0 until one is set), beatsPerBar, gridStart (the clip frame of beat 0, which may precede the audio) and beats (the beats, counted in quarters from the grid start, that Auto Adjust or Manual Adjust put elsewhere than the tempo would, each at a clip frame), its free warp markers (each plays the audio at its position where the clip frame target would play without it) and preset, the time stretch algorithm of real-time warping; after warp quantizing also quantizeOrigin, the markers before it (original) and as it left them (quantized), and created, the positions of the markers quantize.createWarpMarkers made. Emits clip.changed. Returns the clip’s id and its warp.

Arguments:

Result:

clip_detectHitpoints

Engine command clip.detectHitpoints.

Finds where sounds start in a clip (calculating hitpoints, reference manual p. 637) and makes them its hitpoints, in place of those it has then: where the level, or that of the high frequencies, rises by 6 dB or more within 5 ms from at least -60 dBFS, 20 ms apart at least. Edit Hitpoints restores the hitpoints found this way after Remove All. It reads the clip’s whole file, so it runs as a job and can’t be part of a history.transaction: this returns at once, job.progress events say how much of the file it read, job.cancel stops it, and once it is done it sets them with clip.setHitpoints, one undo step, whose result is the job’s result. A clip removed meanwhile, another project opened or the clip’s media file relinked fails the job.

Arguments:

Result:

clip_detectSilence

Engine command clip.detectSilence. Read-only.

Finds the sections of a clip that aren’t silent (the Detect Silence dialog’s Analyze, reference manual pp. 603-606). The audio of clip from frame start to end (default: the whole clip). A section opens at the first frame where a sample of any channel reaches openThreshold (dBFS, default -20) and closes after the last frame that reaches closeThreshold (dBFS, default -30, at most openThreshold) before 20 ms below it. Once open, a section stays open for at least minimumOpen (ms, default 10), joining what sounds within it; once closed, none opens before minimumClosed (ms, default 100) has passed. preRoll and postRoll (ms, default 0) start and end the sections earlier and later, joining those that then overlap. Reads the clip’s file. Returns the clip and its sections, start to end in clip frames, by start. Returns a job at once; job.progress reports progress, job.cancel cancels it, and job.finished/job.get contain the measurements in job.result. The source is captured at start.

Arguments:

Result:

clip_estimatePitch

Engine command clip.estimatePitch. Read-only.

Estimates a fundamental per channel in Hz, from 40 to 2000 Hz: the strongest one by harmonic salience over the spectrum of the loudest analysis window (about 0.17 s), so that polyphonic audio gives its strongest root, and sounds whose overtones are louder keep their fundamental. The audio of clip from frame start to end (default: the whole clip). Null for silence, nonperiodic audio like noise or drums, windows shorter than 50 ms and pitches out of range. One value per channel, not a list of notes. Returns a job at once; job.progress reports progress, job.cancel cancels it, and job.finished/job.get contain the measurements in job.result. The source is captured at start.

Arguments:

Result:

clip_remove

Engine command clip.remove.

Removes a clip that no audio event or sampler track uses.

Arguments:

clip_removeHitpoints

Engine command clip.removeHitpoints.

Removes all of a clip’s hitpoints, detected and inserted (Remove All, reference manual p. 638); clip.detectHitpoints finds them again. A clip’s hitpoints are in its hitpoints, by position: each with its position in the clip’s sample frames, its peak (dBFS, the loudest sample in the 20 ms from there) and intensity (0-1, how sharply the level rises there, 1 for the sharpest the detection found), whether it is locked and disabled, and active, whether it counts: not disabled, and locked or let through by the clip’s hitpointFilter (clip.setHitpointFilter). Emits clip.changed. Returns the clip’s id and its hitpoints.

Arguments:

Result:

clip_removeRegion

Engine command clip.removeRegion.

Removes a region from a clip (Remove Region, reference manual p. 626). Emits clip.changed.

Arguments:

Result:

clip_removeWarpMarkers

Engine command clip.removeWarpMarkers.

Removes the free warp markers of a clip at positions (Deleting Warp Markers, reference manual p. 656), or without positions all of them, which resets the free warp edits and leaves musical mode and the definition as they are (Reset, p. 656). A clip’s warp has musical (musical mode: its beats follow the project’s tempo), its definition: tempo (BPM of quarter notes, 0 until one is set), beatsPerBar, gridStart (the clip frame of beat 0, which may precede the audio) and beats (the beats, counted in quarters from the grid start, that Auto Adjust or Manual Adjust put elsewhere than the tempo would, each at a clip frame), its free warp markers (each plays the audio at its position where the clip frame target would play without it) and preset, the time stretch algorithm of real-time warping; after warp quantizing also quantizeOrigin, the markers before it (original) and as it left them (quantized), and created, the positions of the markers quantize.createWarpMarkers made. Emits clip.changed. Returns the clip’s id and its warp.

Arguments:

Result:

clip_set

Engine command clip.set.

Renames a clip or moves it into a pool folder (0: the pool’s Audio folder). The file keeps its name. rootKey (“” for none, C, C# and so on to B) is the pool’s Key column (reference manual p. 417): every audio event that plays the clip gets it as its root key (audioEvent.set rootKey), also those that inactive track versions hold; the audio file stays as it is. Refused for a clip that no audio event plays, which has nowhere to keep a root key (pool.get audioEvents 0).

Arguments:

Result:

clip_setFades

Engine command clip.setFades.

Changes a clip’s fade in or fade out, at its media file’s start and end: length in sample frames (0: none) and shape, as for audioEvent.setFades. Every event that plays the clip gets them.

Arguments:

Result:

clip_setHitpoint

Engine command clip.setHitpoint.

Edits the hitpoint of a clip at position (reference manual p. 640): moveTo moves it to that clip frame, which locks it unless locked is given and measures its peak and intensity there as clip.addHitpoint does (failing if the file can’t be read); locked locks or unlocks it (Lock Hitpoint), disabled disables or enables it (Disable Hitpoint); both false reset it (Enable/Unlock Hitpoints). What isn’t given stays. A clip’s hitpoints are in its hitpoints, by position: each with its position in the clip’s sample frames, its peak (dBFS, the loudest sample in the 20 ms from there) and intensity (0-1, how sharply the level rises there, 1 for the sharpest the detection found), whether it is locked and disabled, and active, whether it counts: not disabled, and locked or let through by the clip’s hitpointFilter (clip.setHitpointFilter). Emits clip.changed. Returns the clip’s id and its hitpoints.

Arguments:

Result:

clip_setHitpointFilter

Engine command clip.setHitpointFilter.

Changes which of a clip’s hitpoints count (the Hitpoints section’s filters, reference manual p. 638): threshold, the peak in dBFS they need (-60 to 0, -60 lets every one through); intensity, the intensity they need (0-1); minimumLength, the clip frames they must start after the one before that counts. Locked hitpoints always count, disabled ones never. What isn’t given stays. A clip’s hitpoints are in its hitpoints, by position: each with its position in the clip’s sample frames, its peak (dBFS, the loudest sample in the 20 ms from there) and intensity (0-1, how sharply the level rises there, 1 for the sharpest the detection found), whether it is locked and disabled, and active, whether it counts: not disabled, and locked or let through by the clip’s hitpointFilter (clip.setHitpointFilter). Emits clip.changed. Returns the clip’s id and its hitpoints.

Arguments:

Result:

clip_setHitpoints

Engine command clip.setHitpoints.

Makes hitpoints a clip’s hitpoints, in place of those it had: what clip.detectHitpoints found, or hitpoints from elsewhere. Each has its position (a clip frame, each one once), peak (dBFS) and intensity (0-1), and may say whether it is locked and disabled (default false); active is ignored, so that a clip’s hitpoints can be given as they come. With project (project.revision’s), it fails if another project was opened since; with path, if the clip’s media file has another path now (it was relinked), so that a job’s hitpoints never go to another clip or file. With step false, only for a command the engine posted itself, such as the automatic hitpoint detection’s job: the hitpoints are set, announced and published as usual, but no undo step is recorded and the redo history stays — the detected hitpoints are analysis of the clip, which goes with the clip when the step that added it is undone. A clip’s hitpoints are in its hitpoints, by position: each with its position in the clip’s sample frames, its peak (dBFS, the loudest sample in the 20 ms from there) and intensity (0-1, how sharply the level rises there, 1 for the sharpest the detection found), whether it is locked and disabled, and active, whether it counts: not disabled, and locked or let through by the clip’s hitpointFilter (clip.setHitpointFilter). Emits clip.changed. Returns the clip’s id and its hitpoints.

Arguments:

Result:

clip_setRegion

Engine command clip.setRegion.

Renames a clip’s region or moves its start or end (clip frames; reference manual p. 625); what isn’t given stays. Emits clip.changed. Returns the clip’s id and the region.

Arguments:

Result:

clip_setWarp

Engine command clip.setWarp.

Changes a clip’s musical mode and definition (the Definition and Warp sections of the sample editor, the pool’s Musical Mode column, reference manual pp. 616, 648-650): musical turns musical mode on or off, which in a clip without a tempo takes the project’s at the start of its first event on the active track versions, or without one there on an inactive version, so that nothing changes until the tempo does; tempo (1-999 BPM); bars and beats, its length from the grid start to its end in bars and quarters, which sets the tempo that makes it that long; beatsPerBar (1-64); gridStart (a clip frame, 0 or more; the edited beats move with it); preset (the algorithm preset of real-time warping). What isn’t given stays. A clip’s warp has musical (musical mode: its beats follow the project’s tempo), its definition: tempo (BPM of quarter notes, 0 until one is set), beatsPerBar, gridStart (the clip frame of beat 0, which may precede the audio) and beats (the beats, counted in quarters from the grid start, that Auto Adjust or Manual Adjust put elsewhere than the tempo would, each at a clip frame), its free warp markers (each plays the audio at its position where the clip frame target would play without it) and preset, the time stretch algorithm of real-time warping; after warp quantizing also quantizeOrigin, the markers before it (original) and as it left them (quantized), and created, the positions of the markers quantize.createWarpMarkers made. Emits clip.changed. Returns the clip’s id and its warp.

Arguments:

Result:

clip_setWarpMarker

Engine command clip.setWarpMarker.

Moves the free warp marker of a clip at position so that it plays at target, a clip frame (Correcting Warp Marker Positions, reference manual p. 656). Markers can’t pass each other, and no section between two of them, or one and the clip’s start or end, may play more than 4 times or less than a quarter as long, the real-time stretcher’s range; a section that plays as it did, as in a project from before the range was checked, may stay beyond it. A clip’s warp has musical (musical mode: its beats follow the project’s tempo), its definition: tempo (BPM of quarter notes, 0 until one is set), beatsPerBar, gridStart (the clip frame of beat 0, which may precede the audio) and beats (the beats, counted in quarters from the grid start, that Auto Adjust or Manual Adjust put elsewhere than the tempo would, each at a clip frame), its free warp markers (each plays the audio at its position where the clip frame target would play without it) and preset, the time stretch algorithm of real-time warping; after warp quantizing also quantizeOrigin, the markers before it (original) and as it left them (quantized), and created, the positions of the markers quantize.createWarpMarkers made. Emits clip.changed. Returns the clip’s id and its warp.

Arguments:

Result:

clip_spectrum

Engine command clip.spectrum. Read-only.

The average spectrum of a clip (the Spectrum Analyzer, reference manual pp. 607-608). The audio of clip from frame start to end (default: the whole clip). Welch’s method with 4-term Blackman-Harris windows of 8192 samples that overlap by half (shorter audio is one zero-padded window). Its frequencies go from 20 Hz up to the Nyquist frequency in steps of 1/24 octave; each channel’s levels has a level in dBFS at each, the strongest of the frequencies within 1/48 octave of it, where a sine reads its peak level (a full-scale sine 0 dBFS); null for silence. Reads the clip’s file. Returns a job at once; job.progress reports progress, job.cancel cancels it, and job.finished/job.get contain the measurements in job.result. The source is captured at start.

Arguments:

Result:

clip_statistics

Engine command clip.statistics. Read-only.

The statistics of a clip (the Statistics window, reference manual p. 609). The audio of clip from frame start to end (default: the whole clip). Per channel: minSample and maxSample, the lowest and highest sample; peak, the largest absolute sample; truePeak, the largest absolute level between the samples too, 4 times oversampled; dcOffset, the mean of the samples, also in percent of full scale; bitDepth, the bits the samples need (32 for floating point beyond 24 bits, 0 for silence); pitch, the estimated fundamental in Hz as clip.estimatePitch measures it, the strongest one on polyphonic audio; averageRms, the RMS of every sample, and maxRms, the highest RMS of 50 ms windows 10 ms apart, both in dB as AES17 has it, where a full-scale sine reads 0 dB. The levels are linear and in dBFS (Db; minSampleDb and maxSampleDb of the samples’ absolute values); null for silence. maxRmsAllChannels is the highest maxRms. loudness (EBU R 128) uses WAV masks whose bit count matches the channels, FLAC masks or its standard layout, Vorbis source speaker order, and AIFF CHAN chunks (a bitmap, channel labels or a layout tag; trailing channels of a short bitmap unassigned). Other files use the default channel format for their count. Front weight 1, surround weight 1.41, LFE excluded; unassigned speakers and unknown formats weight every channel 1. maxMomentary (400 ms) and maxShortTerm (3 s) in LUFS, ungated; integrated in LUFS (ITU-R BS.1770); range in LU (EBU Tech 3342); maxTruePeak in dBTP; null for silence or audio shorter than their windows. Reads the clip’s file. Returns a job at once; job.progress reports progress, job.cancel cancels it, and job.finished/job.get contain the measurements in job.result. The source is captured at start.

Arguments:

Result:

controller

controller_add

Engine command controller.add.

Adds controller events to a MIDI part: position from the part’s start in ticks, MIDI channel 0-15 (default 0). type (default controller) says what else an event has: controller: number 0-127 and value 0-1; pitchBend: value 0-1, 0.5 is no bend; channelPressure: value; polyPressure: number (the pitch) and value; program: number (the program) and optionally bank 0-16383; sysEx: data, the message’s bytes from 0xF0 to 0xF7; articulation: a direction of the track’s articulation map (articulationMap.add), articulation its name and reset (default false) whether it ends the directions of its group instead, and muted (default false) whether the mute tool muted it: a muted direction selects no sound slot. It plays nothing itself.

Arguments:

Result:

controller_copy

Engine command controller.copy.

Copies controller events of MIDI parts to the lane clipboard for controller.paste, as the controller lane context menu’s Copy does (reference manual p. 1160): copies: {part, controllers} each, the events by id. They go on the clipboard with their positions in project ticks as they are now. The clipboard holds whatever was copied last: these events, or the notes range.copy copied, which paste as modulation. Changes nothing in the project. Returns how many events it copied, which laneClipboard.changed announces.

Arguments:

Result:

controller_cut

Engine command controller.cut.

Copies controller events of MIDI parts to the lane clipboard as controller.copy does, then removes them, as the controller lane context menu’s Cut does (reference manual p. 1160). One undo step, however many parts. Returns how many events it copied and the ids of those it removed, which laneClipboard.changed and controller.removed announce.

Arguments:

Result:

controller_line

Engine command controller.line.

Draws on a controller lane of a MIDI part as the line tool does (reference manual p. 1186). lane: type, one of velocity, offVelocity, probability and velocityVariance (properties of the notes) or controller, pitchBend, channelPressure, polyPressure and program (controller events), number (the controller, or the pitch of poly pressure) and channel 0-15, both default 0. from and to: positions from the part’s start in ticks, to before the part’s end, and values, 0-1 (velocityVariance -1 to 1; a program change’s 0-1 is program 0-127). mode: line draws a straight line from the start to the end value; parabola a curve that starts slowly, with reverse fast; sine, triangle and square go from the start value to the end value and back once every period ticks (default the quantize grid’s). On a note lane the notes starting in the range, or those of them named in notes, take the value at their position. On a controller lane the lane’s events of the channel in the range go, and new ones come every density ticks (default the quantize grid’s) and at the end, at most 65536. Returns the notes changed, the controller events added and the ids of those removed.

Arguments:

Result:

controller_paste

Engine command controller.paste.

Pastes the lane clipboard (controller.copy, controller.cut, or the notes range.copy copied) on a controller lane of a MIDI part, as the controller lane context menu’s Paste and Paste at Origin do (reference manual pp. 1160, 1180). lane: type, one of controller, pitchBend, channelPressure, polyPressure and program, number (the controller, or the pitch of poly pressure, default 0) and channel 0-15, which the pasted events take; without it they keep the channel they were copied with. The clipboard’s controller events come as events of the lane’s type, so data copies between different CC lanes (p. 1160) keeps its positions and values; the notes an editor copied come as events at their positions with their velocities as the values, as modulation (p. 1180). part: the MIDI part to paste into, default the one at the project cursor that starts latest. position: where the first copied event or note lands, in project ticks, default the project cursor; with origin (Paste at Origin) they land where they were copied from. The lane’s events in the pasted span go, replaced. One undo step. Refuses a lane of a note property or articulations, an empty clipboard, SysEx and articulation events, and events that would land outside the part. Returns the controller events added and the ids of those removed.

Arguments:

Result:

controller_remove

Engine command controller.remove.

Removes controller events from a MIDI part.

Arguments:

controller_set

Engine command controller.set.

Changes controller events of a MIDI part: each change names a controller event by id and gives what changes: position in ticks, type, and the fields of the type as controller.add takes them (number, value, channel, bank, data, articulation, reset, muted). A field the type doesn’t have is an error, such as value on a program change; a null bank removes it. A new type keeps the fields it shares with the old one and needs the others. Returns the changed controller events.

Arguments:

Result:

crossfade

crossfade_remove

Engine command crossfade.remove.

Removes the crossfades into and out of an audio event.

Arguments:

crossfade_set

Engine command crossfade.set.

Crossfades from an audio event into the next one on its track, where they overlap: to must start inside from and end after it. Both play there; from fades out up to its end over outLength (from’s clip frames), to fades in from its start over length (to’s clip frames); 0, the default, is the whole overlap, so the crossfade is symmetric. A new crossfade without mode is the default crossfade (the user setting editing.defaultCrossfade). mode equalGain: the fade out mirrors the fade in (shape linear, exponential, logarithmic or sCurve), so their gains add up to 1; equalPower: quarter sines whose power adds up to 1; custom: shape and outShape of their own. An event fades out into one event only. Changing a crossfade keeps what isn’t given. After an edit that moves the events apart, the crossfade rests and both play their own fades until they overlap like that again. Returns to.

Arguments:

Result:

drumMap

drumMap_add

Engine command drumMap.add.

Adds a drum map to the project: New Map, Empty Map with the sounds Sound 1 to Sound 128 on their own pitch and the track’s channel, or New Copy of the map copy (named after it, with Copy) (p. 1236), then changed by what is given. track, a MIDI or instrument track, then uses the map, in the same undo step (track.set drumMap). A drum map (reference manual pp. 1235-1240) has a name, a sound for each of the 128 pitches and the drum sound list’s order, from the top: each pitch once. sounds changes those named by pitch, each with what it has: name; snap, the note value (such as 1/16, 1/8T or 1/4.) that the drum editor snaps to and that is the length of the sound’s new notes with lengthQuantize drumMap; mute, it doesn’t play; iNote, the note played in (editor.input, recording) that becomes the pitch; oNote, the note that plays; channel, 0-15, the MIDI channel it plays on, or null (or -1) for Any, the note’s own; output, the MIDI output port that a MIDI track plays it on, by its key as channel.set midiPort takes it (backend/out/id), instead of the track’s output, or empty for the track’s (Default). The map is {id, name, sounds: [{pitch, name, snap, mute, iNote, oNote, channel, output}], order}, as project.get lists the project’s drumMaps; tracks use one with track.set drumMap. Emits drumMap.added, track.changed for track, and returns the map.

Arguments:

Result:

drumMap_export

Engine command drumMap.export.

Saves a drum map as a drum map file (.drm, p. 1236) at path: XML with its name, sounds and order, which drumMap.import reads back.

Arguments:

drumMap_import

Engine command drumMap.import.

Loads a drum map file (.drm, p. 1236), as drumMap.export saves it, into the project as a new drum map. Settings the file doesn’t have are Empty Map’s. Emits drumMap.added and returns the map.

Arguments:

Result:

drumMap_remove

Engine command drumMap.remove.

Removes a drum map from the project (p. 1236); the tracks that used it have none. Emits drumMap.removed and track.changed for those tracks.

Arguments:

drumMap_set

Engine command drumMap.set.

Changes a drum map: what isn’t given stays; the changes go to every track using it (p. 1237). A drum map (reference manual pp. 1235-1240) has a name, a sound for each of the 128 pitches and the drum sound list’s order, from the top: each pitch once. sounds changes those named by pitch, each with what it has: name; snap, the note value (such as 1/16, 1/8T or 1/4.) that the drum editor snaps to and that is the length of the sound’s new notes with lengthQuantize drumMap; mute, it doesn’t play; iNote, the note played in (editor.input, recording) that becomes the pitch; oNote, the note that plays; channel, 0-15, the MIDI channel it plays on, or null (or -1) for Any, the note’s own; output, the MIDI output port that a MIDI track plays it on, by its key as channel.set midiPort takes it (backend/out/id), instead of the track’s output, or empty for the track’s (Default). The map is {id, name, sounds: [{pitch, name, snap, mute, iNote, oNote, channel, output}], order}, as project.get lists the project’s drumMaps; tracks use one with track.set drumMap. Emits drumMap.changed and returns the map.

Arguments:

Result:

drum

drum_copyPad

Engine command drum.copyPad.

Copies a pad of a drum track onto another, to (Copy Pad and Paste Pad, reference manual p. 943): its name, its sample and all its settings, in place of the other’s; a pad that plays something without a name of its own or a sample’s goes by the General MIDI sound it went by (the pad’s sound) until it gets a name or a sample. With move the pad is reset afterwards (Cut Pad). Lanes of the track’s drum patterns that play either pad take its name. Emits channel.changed. Returns the track and its channel.

Arguments:

Result:

drum_create

Engine command drum.create.

Creates a drum track (Add Drum Track, reference manual pp. 145-146): an instrument track whose channel plays the built-in drum machine, named name (default: Drum and a number), at the end of the track list or as track.add places it with parent and index, playing into output as track.add’s does. Its pads start with a kit of percussion synths on the General MIDI notes (kick 36, snare 38, clap 39, hi-hats 42, 44 and 46 in exclusive group 1, toms 45, 48 and 50, crash 49, cowbell 56), without names of their own, so that they go by the General MIDI sounds’ until they get a sample or a name, or all off with kit false. Emits track.added and channel.changed. Returns the track and its channel.

Arguments:

Result:

drum_loadPad

Engine command drum.loadPad.

Loads a sample onto a pad of a drum track (reference manual pp. 942, 944): a pool clip, clip, the clip of the audio event event, or an audio file, path, which goes into the pool as a clip, from start to end in the clip’s frames (default: the event’s or the whole clip); a file’s clip goes into the pool folder Drum Machine, which is made if the pool has none (p. 980). The pad then plays the sample (its instrument parameter is Sample) from its start to its end, shares of the clip; its other settings go back to their defaults, unless keepSettings keeps them (Apply Hot Swap, p. 941). Lanes of the track’s drum patterns that play the pad take its name. Emits channel.changed, and for a file media.added, clip.added, clip.changed and, when it makes the folder, poolFolder.added. Returns the track and its channel.

Arguments:

Result:

drum_resetPad

Engine command drum.resetPad.

Resets a pad of a drum track, pad, or all of them without it (Reset Pad and Reset All Pads, reference manual p. 943): no name, no sample, and every setting at its default, so that it plays nothing. The global settings stay. Lanes of the track’s drum patterns that play a pad reset take the General MIDI sound’s name. Emits channel.changed. Returns the track and its channel.

Arguments:

Result:

drum_setPad

Engine command drum.setPad.

Renames a pad of a drum track (Rename Pad, reference manual p. 943) or gives it a color (Set Color, pp. 942-943), at least one of the two. An empty name goes back to its sample’s clip’s name, or the General MIDI sound’s it goes by (its note’s, or for a copy its sound’s); color is “#rrggbb”, usually one of the project’s color set, or empty or null for none. Lanes of the track’s drum patterns that play the pad take the name (pattern.changed). Emits channel.changed. Returns the track and its channel.

Arguments:

Result:

editor

editor_close

Engine command editor.close.

Closes an editor: it shows no parts, and Keep Editor Contents goes off (p. 1153). Emits editor.changed. editor: lower (the editor in the project window’s lower zone), window (the editor window) or inPlace:, the in-place editor of a MIDI or instrument track (editor.inPlace), which shows every MIDI part of its track in the key editor. The view: open; parts, the MIDI parts or audio parts it shows, in the track list’s order and by position; activePart, the part active for editing, and activeTrack, its track (0 for none); editingMode, what selecting and editing reach: allParts, activePart or activeTrack (the active part’s track); editable, the parts that reach; keepContents, whether it keeps its parts when the project window’s selection changes; globalTracks, the global tracks (tempo, signature, chord, ruler, arranger, marker and transpose tracks) the editor window shows above its events. The key editor’s (pp. 1189-1220): selection, the selected notes, each {part, note}, of the editable parts, with articulations, the attributes selected of it on the Articulations lane, where not all are: some of the note’s own, and a note whose attributes selected all go is no longer selected; stepInput and midiInput, what editor.input does with notes played; stepPosition, the step input cursor in project ticks; moveInsert, recordPitch, recordVelocity, recordReleaseVelocity and keepNotes, how they go in; insertVelocity (0-1), the velocity of drawn notes and of input that doesn’t record it; lengthQuantize, the length of new notes, a note value such as 1/16, 1/8T or 1/4., link for the quantize grid’s (quantize.set), or drumMap for the snap of the note’s sound in its track’s drum map (drumMap.add), without one the quantize grid’s; notes played into a track with a drum map take the pitch of the sound whose iNote they are. content: what shows the parts, key (the key editor), list (the list editor, pp. 1243-1258), drum (the drum editor, pp. 1221-1242) or pattern (the pattern editor, pp. 895-937: the active part’s pattern). The drum editor’s: pitchVisibility (Pitch Visibility On/Off) applies its options reverseSounds, the drum sound list from the bottom, and visibleSounds, all, withEvents for only the sounds that the parts have notes of, or inUse for only soundsInUse (pp. 1223-1224, 1234): the pitches of the active track’s drum sounds (through its drum map’s O-notes) whose pads its instrument plays, the built-in drum machine of a drum track (drum.create) or of the instrument track a MIDI track plays to, null for an instrument that can’t tell; with inUse the selection leaves out the notes of the sounds it hides. soundNames: the names of the active track’s drum sounds by pitch (p. 1239), its drum map’s, else by its name list (track.set nameList), General MIDI’s with gm, with pads the names of the pads that play something on the drum machine it plays and empty strings for the other pitches, else null; the editors show them. soloInstrument (Solo Instrument, p. 1223) plays, of the tracks with a drum map that its selected notes are on, only the notes of the selected notes’ sounds, while it is open with content drum, also of the sounds played in through the I-notes (midi.inject without drumSounds), while auditions with drumSounds still play every sound; showNoteLength shows its notes as boxes of their length, not diamonds (p. 1227); gridType, what its notes snap to (p. 1227): quantize, the quantize grid, zoom, a note value that the editor’s zoom chooses (Adapt to Zoom), or drumMap, the snap of each note’s sound in the track’s drum map; controllerSelection, the list editor’s selected controller events, each {part, controller}, of the editable parts. Audio parts show in the audio part editor (content audioPart, pp. 692-702), whose eventSelection is the selected audio events of the editable parts. The controller lanes’ (pp. 1157-1188): lanes, from the top, each {type, number}: velocity, offVelocity, probability or velocityVariance (the notes’ play probability and velocity variance), or the controller events of a type: controller (number is the controller), pitchBend, channelPressure, polyPressure (number is the pitch) or program, or articulations (the directions and attributes of the track’s articulation map, articulationMap.add, pp. 1287-1289); showLanes, whether the controller display shows them; soundSlotsLane, whether the Articulations lane shows its sound slots lane, and collapsedGroups, the groups of its map, by index, that it shows collapsed into one row each (pp. 1287-1288); autoSelectControllers, whether selecting notes selects the controller events from their start to their end. Per-note expression (pp. 1303-1313): showExpression shows the notes’ expression over them, expressionDoubleClick makes a double click on a note open the expression editor instead of deleting it, and expressionType is the expression it edits: volume, pan, tuning, vibrato, expression, brightness or pressure. acousticFeedback: the editor plays a note while it is moved or drawn, and a note whose velocity the velocity lane edits (pp. 1192, 1259). eventColors, the events’ colors (pp. 1133-1134): velocity (the default), pitch or channel, the color the user setting ui.eventColors gives each note’s velocity range, pitch class or channel; part, their part’s color, its own or else its track’s; gridMatch, the color the user setting ui.eventColors gives the note’s grid position, the cell within its bar when it starts on the quantize grid, or the palette’s last color when it starts off it (p. 1133); or soundSlot, the color of the sound slot of the track’s articulation map that each note plays. In the list editor channel and part also color the controller events, channel those with a channel, and gridMatch every event. indicateTranspositions (Indicate Transpositions, pp. 419, 1260) shows the notes at the pitches they play: transpositions then gives, for each MIDI part shown, steps {position, semitones}, from the part’s start and where a transpose event changes it, in project ticks: the semitones its notes from there on play transposed by, its own transpose, the root key’s step and the transpose track’s (transpose.add) as playback adds them; empty while it is off. View state: no undo steps, not saved, and a new or loaded project closes the editors. An edit, undo or redo that changes an open editor’s parts (removes, adds, brings back or reorders them) or closes it, and a project that closes it, emit editor.changed with its view.

Arguments:

Result:

editor_get

Engine command editor.get. Read-only.

What an editor shows. editor: lower (the editor in the project window’s lower zone), window (the editor window) or inPlace:, the in-place editor of a MIDI or instrument track (editor.inPlace), which shows every MIDI part of its track in the key editor. The view: open; parts, the MIDI parts or audio parts it shows, in the track list’s order and by position; activePart, the part active for editing, and activeTrack, its track (0 for none); editingMode, what selecting and editing reach: allParts, activePart or activeTrack (the active part’s track); editable, the parts that reach; keepContents, whether it keeps its parts when the project window’s selection changes; globalTracks, the global tracks (tempo, signature, chord, ruler, arranger, marker and transpose tracks) the editor window shows above its events. The key editor’s (pp. 1189-1220): selection, the selected notes, each {part, note}, of the editable parts, with articulations, the attributes selected of it on the Articulations lane, where not all are: some of the note’s own, and a note whose attributes selected all go is no longer selected; stepInput and midiInput, what editor.input does with notes played; stepPosition, the step input cursor in project ticks; moveInsert, recordPitch, recordVelocity, recordReleaseVelocity and keepNotes, how they go in; insertVelocity (0-1), the velocity of drawn notes and of input that doesn’t record it; lengthQuantize, the length of new notes, a note value such as 1/16, 1/8T or 1/4., link for the quantize grid’s (quantize.set), or drumMap for the snap of the note’s sound in its track’s drum map (drumMap.add), without one the quantize grid’s; notes played into a track with a drum map take the pitch of the sound whose iNote they are. content: what shows the parts, key (the key editor), list (the list editor, pp. 1243-1258), drum (the drum editor, pp. 1221-1242) or pattern (the pattern editor, pp. 895-937: the active part’s pattern). The drum editor’s: pitchVisibility (Pitch Visibility On/Off) applies its options reverseSounds, the drum sound list from the bottom, and visibleSounds, all, withEvents for only the sounds that the parts have notes of, or inUse for only soundsInUse (pp. 1223-1224, 1234): the pitches of the active track’s drum sounds (through its drum map’s O-notes) whose pads its instrument plays, the built-in drum machine of a drum track (drum.create) or of the instrument track a MIDI track plays to, null for an instrument that can’t tell; with inUse the selection leaves out the notes of the sounds it hides. soundNames: the names of the active track’s drum sounds by pitch (p. 1239), its drum map’s, else by its name list (track.set nameList), General MIDI’s with gm, with pads the names of the pads that play something on the drum machine it plays and empty strings for the other pitches, else null; the editors show them. soloInstrument (Solo Instrument, p. 1223) plays, of the tracks with a drum map that its selected notes are on, only the notes of the selected notes’ sounds, while it is open with content drum, also of the sounds played in through the I-notes (midi.inject without drumSounds), while auditions with drumSounds still play every sound; showNoteLength shows its notes as boxes of their length, not diamonds (p. 1227); gridType, what its notes snap to (p. 1227): quantize, the quantize grid, zoom, a note value that the editor’s zoom chooses (Adapt to Zoom), or drumMap, the snap of each note’s sound in the track’s drum map; controllerSelection, the list editor’s selected controller events, each {part, controller}, of the editable parts. Audio parts show in the audio part editor (content audioPart, pp. 692-702), whose eventSelection is the selected audio events of the editable parts. The controller lanes’ (pp. 1157-1188): lanes, from the top, each {type, number}: velocity, offVelocity, probability or velocityVariance (the notes’ play probability and velocity variance), or the controller events of a type: controller (number is the controller), pitchBend, channelPressure, polyPressure (number is the pitch) or program, or articulations (the directions and attributes of the track’s articulation map, articulationMap.add, pp. 1287-1289); showLanes, whether the controller display shows them; soundSlotsLane, whether the Articulations lane shows its sound slots lane, and collapsedGroups, the groups of its map, by index, that it shows collapsed into one row each (pp. 1287-1288); autoSelectControllers, whether selecting notes selects the controller events from their start to their end. Per-note expression (pp. 1303-1313): showExpression shows the notes’ expression over them, expressionDoubleClick makes a double click on a note open the expression editor instead of deleting it, and expressionType is the expression it edits: volume, pan, tuning, vibrato, expression, brightness or pressure. acousticFeedback: the editor plays a note while it is moved or drawn, and a note whose velocity the velocity lane edits (pp. 1192, 1259). eventColors, the events’ colors (pp. 1133-1134): velocity (the default), pitch or channel, the color the user setting ui.eventColors gives each note’s velocity range, pitch class or channel; part, their part’s color, its own or else its track’s; gridMatch, the color the user setting ui.eventColors gives the note’s grid position, the cell within its bar when it starts on the quantize grid, or the palette’s last color when it starts off it (p. 1133); or soundSlot, the color of the sound slot of the track’s articulation map that each note plays. In the list editor channel and part also color the controller events, channel those with a channel, and gridMatch every event. indicateTranspositions (Indicate Transpositions, pp. 419, 1260) shows the notes at the pitches they play: transpositions then gives, for each MIDI part shown, steps {position, semitones}, from the part’s start and where a transpose event changes it, in project ticks: the semitones its notes from there on play transposed by, its own transpose, the root key’s step and the transpose track’s (transpose.add) as playback adds them; empty while it is off. View state: no undo steps, not saved, and a new or loaded project closes the editors. An edit, undo or redo that changes an open editor’s parts (removes, adds, brings back or reorders them) or closes it, and a project that closes it, emit editor.changed with its view.

Arguments:

Result:

editor_inPlace

Engine command editor.inPlace.

Opens or closes the in-place editors of MIDI and instrument tracks (reference manual pp. 1259-1261): with open true it opens them, false closes them, and without it each one toggles, as Edit In-Place does. An in-place editor is the editor inPlace: of editor.get, editor.set, editor.input and editor.close: the key editor inside the track in the project window, showing every MIDI part of the track, the first one active; its parts follow the track’s and can’t be set, and it closes with its track. View state like the other editors: no undo steps, not saved, and a new or loaded project closes them. Emits editor.changed for each editor that opens or closes. Without tracks it changes nothing and stays out of engine.commandLog. Returns tracks, the tracks whose in-place editors are open, in the track list’s order.

Arguments:

Result:

editor_input

Engine command editor.input.

Notes played into a key editor, such as a chord from a MIDI keyboard (reference manual pp. 1219-1220): each a pitch 0-127, velocity 0-1 (default the editor’s insertVelocity) and releaseVelocity 0-1 (default 0.5). With stepInput, they go into the active part at the step input cursor as notes of the length quantize’s length, ending at the part’s end at the latest, on the MIDI channel of the part’s last note before the cursor that stays (else its first after it, else channel 0), and the cursor moves on by a step of the quantize grid; moveInsert first moves the part’s notes from the cursor on by a step, or by the longest inserted note where that is longer, and without keepNotes the notes that start within the step go. steps, as editor.step counts Right and Left Arrow while the keys are held (p. 1220), makes the notes that many quantize steps longer, or shorter down to a step, and with more, the cursor’s step that many steps longer too. With midiInput (and stepInput off), the first selected note takes the lowest note’s pitch, velocity and release velocity, as far as recordPitch, recordVelocity and recordReleaseVelocity say, and the other notes of a chord are added with its position and length; with keepNotes, all of them are added and the selected note stays. Then the next note of its part is selected. Velocities that aren’t recorded are insertVelocity’s and the default release velocity. One undo step. Returns the part and its notes added or changed.

Arguments:

Result:

editor_open

Engine command editor.open.

Opens an editor with MIDI parts or audio parts, such as the ones selected in the project window, or shows those parts in it if it is open. activePart becomes the part active for editing, by default the first. content shows MIDI parts in the key editor, the list editor, the drum editor or the pattern editor; an open editor keeps its content unless it is given, a closed one opens with the pattern editor if the first part is a pattern event (midiPart.add pattern), else with the drum editor if its track has a drum map and the user setting editing.useDrumEditor is on, else with the key editor. Audio parts open in the audio part editor (audioPart). Emits editor.changed. editor: lower (the editor in the project window’s lower zone), window (the editor window) or inPlace:, the in-place editor of a MIDI or instrument track (editor.inPlace), which shows every MIDI part of its track in the key editor. The view: open; parts, the MIDI parts or audio parts it shows, in the track list’s order and by position; activePart, the part active for editing, and activeTrack, its track (0 for none); editingMode, what selecting and editing reach: allParts, activePart or activeTrack (the active part’s track); editable, the parts that reach; keepContents, whether it keeps its parts when the project window’s selection changes; globalTracks, the global tracks (tempo, signature, chord, ruler, arranger, marker and transpose tracks) the editor window shows above its events. The key editor’s (pp. 1189-1220): selection, the selected notes, each {part, note}, of the editable parts, with articulations, the attributes selected of it on the Articulations lane, where not all are: some of the note’s own, and a note whose attributes selected all go is no longer selected; stepInput and midiInput, what editor.input does with notes played; stepPosition, the step input cursor in project ticks; moveInsert, recordPitch, recordVelocity, recordReleaseVelocity and keepNotes, how they go in; insertVelocity (0-1), the velocity of drawn notes and of input that doesn’t record it; lengthQuantize, the length of new notes, a note value such as 1/16, 1/8T or 1/4., link for the quantize grid’s (quantize.set), or drumMap for the snap of the note’s sound in its track’s drum map (drumMap.add), without one the quantize grid’s; notes played into a track with a drum map take the pitch of the sound whose iNote they are. content: what shows the parts, key (the key editor), list (the list editor, pp. 1243-1258), drum (the drum editor, pp. 1221-1242) or pattern (the pattern editor, pp. 895-937: the active part’s pattern). The drum editor’s: pitchVisibility (Pitch Visibility On/Off) applies its options reverseSounds, the drum sound list from the bottom, and visibleSounds, all, withEvents for only the sounds that the parts have notes of, or inUse for only soundsInUse (pp. 1223-1224, 1234): the pitches of the active track’s drum sounds (through its drum map’s O-notes) whose pads its instrument plays, the built-in drum machine of a drum track (drum.create) or of the instrument track a MIDI track plays to, null for an instrument that can’t tell; with inUse the selection leaves out the notes of the sounds it hides. soundNames: the names of the active track’s drum sounds by pitch (p. 1239), its drum map’s, else by its name list (track.set nameList), General MIDI’s with gm, with pads the names of the pads that play something on the drum machine it plays and empty strings for the other pitches, else null; the editors show them. soloInstrument (Solo Instrument, p. 1223) plays, of the tracks with a drum map that its selected notes are on, only the notes of the selected notes’ sounds, while it is open with content drum, also of the sounds played in through the I-notes (midi.inject without drumSounds), while auditions with drumSounds still play every sound; showNoteLength shows its notes as boxes of their length, not diamonds (p. 1227); gridType, what its notes snap to (p. 1227): quantize, the quantize grid, zoom, a note value that the editor’s zoom chooses (Adapt to Zoom), or drumMap, the snap of each note’s sound in the track’s drum map; controllerSelection, the list editor’s selected controller events, each {part, controller}, of the editable parts. Audio parts show in the audio part editor (content audioPart, pp. 692-702), whose eventSelection is the selected audio events of the editable parts. The controller lanes’ (pp. 1157-1188): lanes, from the top, each {type, number}: velocity, offVelocity, probability or velocityVariance (the notes’ play probability and velocity variance), or the controller events of a type: controller (number is the controller), pitchBend, channelPressure, polyPressure (number is the pitch) or program, or articulations (the directions and attributes of the track’s articulation map, articulationMap.add, pp. 1287-1289); showLanes, whether the controller display shows them; soundSlotsLane, whether the Articulations lane shows its sound slots lane, and collapsedGroups, the groups of its map, by index, that it shows collapsed into one row each (pp. 1287-1288); autoSelectControllers, whether selecting notes selects the controller events from their start to their end. Per-note expression (pp. 1303-1313): showExpression shows the notes’ expression over them, expressionDoubleClick makes a double click on a note open the expression editor instead of deleting it, and expressionType is the expression it edits: volume, pan, tuning, vibrato, expression, brightness or pressure. acousticFeedback: the editor plays a note while it is moved or drawn, and a note whose velocity the velocity lane edits (pp. 1192, 1259). eventColors, the events’ colors (pp. 1133-1134): velocity (the default), pitch or channel, the color the user setting ui.eventColors gives each note’s velocity range, pitch class or channel; part, their part’s color, its own or else its track’s; gridMatch, the color the user setting ui.eventColors gives the note’s grid position, the cell within its bar when it starts on the quantize grid, or the palette’s last color when it starts off it (p. 1133); or soundSlot, the color of the sound slot of the track’s articulation map that each note plays. In the list editor channel and part also color the controller events, channel those with a channel, and gridMatch every event. indicateTranspositions (Indicate Transpositions, pp. 419, 1260) shows the notes at the pitches they play: transpositions then gives, for each MIDI part shown, steps {position, semitones}, from the part’s start and where a transpose event changes it, in project ticks: the semitones its notes from there on play transposed by, its own transpose, the root key’s step and the transpose track’s (transpose.add) as playback adds them; empty while it is off. View state: no undo steps, not saved, and a new or loaded project closes the editors. An edit, undo or redo that changes an open editor’s parts (removes, adds, brings back or reorders them) or closes it, and a project that closes it, emit editor.changed with its view.

Arguments:

Result:

editor_played

Engine command editor.played.

MIDI input played into the key editors’ step and MIDI input (reference manual pp. 1219-1220), as midi.activity posts it: the engine runs it with the notes the tracks get from all MIDI inputs and the chord pads while an editor’s step or MIDI input is on (midi.activityListen with post), so a chord pad’s remote key puts in the pad’s chord, not its own pitch (#2154). notes: each with its pitch, velocity (0 to 127) and whether it is a note-on (on). The keys pressed until all of them are up again are one chord: then editor.input runs with its notes, each with its note-on velocity and its note-off velocity, in the editor whose step or MIDI input went on last, or else the first one with it on. Lost notes forget the keys down, with their chord, since their note-offs may be lost, and the next key starts afresh: cleared, true when the input was dropped before these notes, as when a device started, forgets the keys down before them; dropped, how many notes didn’t fit after these, as when the queue was full, forgets those still down after them. Returns the chords it sent, each the notes as editor.input takes them.

Arguments:

Result:

editor_set

Engine command editor.set.

Changes what an open editor shows (reference manual pp. 1142-1156); what isn’t given stays. parts replaces its parts. Then the Visibility tab’s changes: exclusive hides every track first, showTracks shows every MIDI part of these tracks (all tracks in a folder), in the audio part editor (content audioPart, also one given with it) every audio part, and activates the last; tracks hidden in the project window (trackVisibility.set) and tracks or folders that hold locked events or parts can’t show, and a folder leaves out its hidden tracks. hideTracks hides theirs; at least one part stays. activeTrack activates the track’s first part shown, activePart a part shown. editingMode (an in-place editor’s allParts or activePart), keepContents and globalTracks (tempo, signature, chord, ruler, arranger, marker and transpose tracks, the editor window only) also apply to a closed editor. selection replaces the selected notes, of the editable MIDI parts, controllerSelection the selected controller events and eventSelection the selected audio events of the editable audio parts. content and the key editor’s settings apply to any editor; turning stepInput on puts the step input cursor at the active part’s start unless stepPosition is given. lanes replaces the controller lanes. With autoSelectControllers on, a new selection of notes, or turning it on, selects the controller events in the notes’ ranges unless controllerSelection is given. Emits editor.changed. editor: lower (the editor in the project window’s lower zone), window (the editor window) or inPlace:, the in-place editor of a MIDI or instrument track (editor.inPlace), which shows every MIDI part of its track in the key editor. The view: open; parts, the MIDI parts or audio parts it shows, in the track list’s order and by position; activePart, the part active for editing, and activeTrack, its track (0 for none); editingMode, what selecting and editing reach: allParts, activePart or activeTrack (the active part’s track); editable, the parts that reach; keepContents, whether it keeps its parts when the project window’s selection changes; globalTracks, the global tracks (tempo, signature, chord, ruler, arranger, marker and transpose tracks) the editor window shows above its events. The key editor’s (pp. 1189-1220): selection, the selected notes, each {part, note}, of the editable parts, with articulations, the attributes selected of it on the Articulations lane, where not all are: some of the note’s own, and a note whose attributes selected all go is no longer selected; stepInput and midiInput, what editor.input does with notes played; stepPosition, the step input cursor in project ticks; moveInsert, recordPitch, recordVelocity, recordReleaseVelocity and keepNotes, how they go in; insertVelocity (0-1), the velocity of drawn notes and of input that doesn’t record it; lengthQuantize, the length of new notes, a note value such as 1/16, 1/8T or 1/4., link for the quantize grid’s (quantize.set), or drumMap for the snap of the note’s sound in its track’s drum map (drumMap.add), without one the quantize grid’s; notes played into a track with a drum map take the pitch of the sound whose iNote they are. content: what shows the parts, key (the key editor), list (the list editor, pp. 1243-1258), drum (the drum editor, pp. 1221-1242) or pattern (the pattern editor, pp. 895-937: the active part’s pattern). The drum editor’s: pitchVisibility (Pitch Visibility On/Off) applies its options reverseSounds, the drum sound list from the bottom, and visibleSounds, all, withEvents for only the sounds that the parts have notes of, or inUse for only soundsInUse (pp. 1223-1224, 1234): the pitches of the active track’s drum sounds (through its drum map’s O-notes) whose pads its instrument plays, the built-in drum machine of a drum track (drum.create) or of the instrument track a MIDI track plays to, null for an instrument that can’t tell; with inUse the selection leaves out the notes of the sounds it hides. soundNames: the names of the active track’s drum sounds by pitch (p. 1239), its drum map’s, else by its name list (track.set nameList), General MIDI’s with gm, with pads the names of the pads that play something on the drum machine it plays and empty strings for the other pitches, else null; the editors show them. soloInstrument (Solo Instrument, p. 1223) plays, of the tracks with a drum map that its selected notes are on, only the notes of the selected notes’ sounds, while it is open with content drum, also of the sounds played in through the I-notes (midi.inject without drumSounds), while auditions with drumSounds still play every sound; showNoteLength shows its notes as boxes of their length, not diamonds (p. 1227); gridType, what its notes snap to (p. 1227): quantize, the quantize grid, zoom, a note value that the editor’s zoom chooses (Adapt to Zoom), or drumMap, the snap of each note’s sound in the track’s drum map; controllerSelection, the list editor’s selected controller events, each {part, controller}, of the editable parts. Audio parts show in the audio part editor (content audioPart, pp. 692-702), whose eventSelection is the selected audio events of the editable parts. The controller lanes’ (pp. 1157-1188): lanes, from the top, each {type, number}: velocity, offVelocity, probability or velocityVariance (the notes’ play probability and velocity variance), or the controller events of a type: controller (number is the controller), pitchBend, channelPressure, polyPressure (number is the pitch) or program, or articulations (the directions and attributes of the track’s articulation map, articulationMap.add, pp. 1287-1289); showLanes, whether the controller display shows them; soundSlotsLane, whether the Articulations lane shows its sound slots lane, and collapsedGroups, the groups of its map, by index, that it shows collapsed into one row each (pp. 1287-1288); autoSelectControllers, whether selecting notes selects the controller events from their start to their end. Per-note expression (pp. 1303-1313): showExpression shows the notes’ expression over them, expressionDoubleClick makes a double click on a note open the expression editor instead of deleting it, and expressionType is the expression it edits: volume, pan, tuning, vibrato, expression, brightness or pressure. acousticFeedback: the editor plays a note while it is moved or drawn, and a note whose velocity the velocity lane edits (pp. 1192, 1259). eventColors, the events’ colors (pp. 1133-1134): velocity (the default), pitch or channel, the color the user setting ui.eventColors gives each note’s velocity range, pitch class or channel; part, their part’s color, its own or else its track’s; gridMatch, the color the user setting ui.eventColors gives the note’s grid position, the cell within its bar when it starts on the quantize grid, or the palette’s last color when it starts off it (p. 1133); or soundSlot, the color of the sound slot of the track’s articulation map that each note plays. In the list editor channel and part also color the controller events, channel those with a channel, and gridMatch every event. indicateTranspositions (Indicate Transpositions, pp. 419, 1260) shows the notes at the pitches they play: transpositions then gives, for each MIDI part shown, steps {position, semitones}, from the part’s start and where a transpose event changes it, in project ticks: the semitones its notes from there on play transposed by, its own transpose, the root key’s step and the transpose track’s (transpose.add) as playback adds them; empty while it is off. View state: no undo steps, not saved, and a new or loaded project closes the editors. An edit, undo or redo that changes an open editor’s parts (removes, adds, brings back or reorders them) or closes it, and a project that closes it, emit editor.changed with its view.

Arguments:

Result:

editor_step

Engine command editor.step.

Right Arrow and Left Arrow in a key editor’s step input (reference manual p. 1220): steps, such as 1 or -1, moves the step input cursor by that many steps of the quantize grid, not before the project’s start, so that Right Arrow inserts a rest; while keys played on the MIDI inputs are held for this editor (editor.played), it makes their chord that many quantize steps longer or shorter instead, which editor.input then inserts. Returns whether keys were held and the steps their chord has, or the cursor’s new position.

Arguments:

Result:

engine

engine_commandLog

Engine command engine.commandLog. Read-only.

The last 256 commands that ran, oldest first, without queries: what the UI and other clients did. Each with its request id (events name it too), the client that sent it (ui, mcp, lua, app for the command line, engine for the engine’s own commands), the command, its parameters, and the error if it failed. Commands the engine ran on its own that changed nothing, such as tries to open a lost audio device again, are left out, and so are due auto saves that fail again (project.autoSave).

Result:

engine_commands

Engine command engine.commands. Read-only.

Every command with its documentation, parameters and result.

Result:

engine_version

Engine command engine.version. Read-only.

The GNUbase version.

Result:

event

event_applyClosedGaps

Engine command event.applyClosedGaps.

Internal completion for Close Gaps (Time Stretch). Applies renders only at the captured project revision, as one undo step; engine-posted work only. Each render identifies an event, its new media, volumeCurve and nullable snapPoint. Emits media.added, clip.added and audioEvent.changed; returns the changed events. Clients use event.closeGaps with mode timeStretch.

Arguments:

Result:

event_applySilenceSections

Engine command event.applySilenceSections.

Processes the sections of audio events that aren’t silent (the Detect Silence dialog’s Process, reference manual pp. 603-606), as clip.detectSilence finds them in the section of the clip each plays. Takes sections already measured, one array per event in the same order, and revision from project.revision; fails if the project changed meanwhile. Does no file I/O. strip (Strip Silence, default true) splits each event at the sections’ edges and removes the silent parts between them; regions (Add as Regions) adds a region of the clip for each section, named regionName (default Region) and a number from autoNumberStart (default 1) up, across the events; fades (Apply Fades, ms) gives the events that remain a fade in and a fade out of that length, at most half of what each plays for in frames at the clip’s sample rate (its length, unless it plays warped). An event that strip would remove completely, or that is locked, is an error. New fades apply at edges inside the processed range, including its boundaries; edges outside it keep their existing fades. Optional start/end clip frames bound processing within each event, as in event.stripSilence; sections must lie within that range. Returns the events that remain and the regions, and the number of sections.

Arguments:

Result:

event_closeGaps

Engine command event.closeGaps.

Close Gaps (Crossfade), reference manual p. 643: extends each selected audio slice’s end through a gap into the next selected slice in the same track, part and lane, then crossfades them. Starts and clip offsets stay in place. length is the crossfade in milliseconds (default 10, from 0.1 to 500), limited to half the next slice’s played length. Touching slices are crossfaded too; existing overlaps and the last slice stay. Fails atomically for locked events or parts, frozen tracks, or insufficient source audio. One undo step; returns changed events. mode timeStretch instead renders each gapped slice’s current audio, preserving pitch, into a new clip up to the next start (offline stretch ratio 0.1 to 10); no crossfade. Other events of the source clip stay unchanged. Undo before changing tempo again. timeStretch returns a cancellable job with progress; its result contains the changed events. Rendering runs off the command thread and fails if the project changed meanwhile. timeStretch cannot be part of a transaction. Failed or cancelled jobs remove their files; undo retains successful files for redo. Discards slice and quantize origins that belonged to the old clip. mode defaults to crossfade.

Arguments:

Result:

event_comp

Engine command event.comp.

Comps a track’s takes (the comp tool’s drag on a lane): splits every unlocked audio event and part and MIDI part on track at start and end (project samples), then brings what lies on lane between them to the front, as event.toFront does. Returns the events brought to the front.

Arguments:

Result:

event_copy

Engine command event.copy.

Copies audio events and MIDI parts, moved by delta project samples or by ticks and onto track as event.move moves them. Copies of audio events play the same clip; shared copies of MIDI parts share their notes and controllers with the original, those of audio parts their events, so that editing one edits all. Returns the copies.

Arguments:

Result:

event_crossfade

Engine command event.crossfade.

Crossfades audio events with the overlapping ones next to them on their tracks, with the default crossfade (the user setting editing.defaultCrossfade) over the whole overlap: several events with each other where one starts inside the one before it and ends after it, one event with the events on either side of it like that. Events next to each other that don’t overlap but whose clips do are lengthened until they overlap by the default crossfade’s length, centred where they meet, as far as their clips reach (unlocked events in the same part and lane). Crossfades there already stay as they are. Returns the events that fade in.

Arguments:

Result:

event_deleteOverlaps

Engine command event.deleteOverlaps.

Deletes overlaps between selected audio slices (reference manual p. 643). Within each track, part and lane, trims each event’s end to the next selected event’s start, preserving its offset and using event.resize’s fade and warp handling. Equal starts keep the highest id and remove the others. Unselected events and the last event stay as they are. Fails for locked events or parts. One undo step; returns trimmed events and removed ids. Does not generate crossfades; the track’s automatic fades still apply.

Arguments:

Result:

event_dissolvePart

Engine command event.dissolvePart.

Dissolve Part (Audio menu): removes audio parts (events, by id) and makes their audio events events of their own on the track, cut at the part’s edges so that they play as they did, muted if the part was; events the part hid entirely are removed. Locked parts are refused. The events keep their lane numbers, now lanes of the track. Returns the events.

Arguments:

Result:

event_duplicate

Engine command event.duplicate.

Duplicates audio events and MIDI parts count times (default 1, at most 1000; Edit > Repeat) one after the other, from the end of the last one, keeping their positions relative to each other; shared makes shared copies of parts. Returns the copies.

Arguments:

Result:

event_fillLoop

Engine command event.fillLoop.

Fills the range from start to end (project samples, default the locators) with copies of audio events and MIDI parts, one after the other on the grid of their length, cutting the last one at end. shared makes shared copies of parts. Returns the copies.

Arguments:

Result:

event_flatten

Engine command event.flatten.

Flattens the real-time processing of audio events (Flatten Real Time Processing, reference manual p. 657): renders what each event of a warped clip plays, as it plays it now, into a 32-bit float WAV file in the project’s media folder (for a project without a file, the folder its recordings go to, and refused without that folder) with the algorithm preset (default the clip’s), named after the clip with Flattened, and makes the event play a new clip of it from its start, with its volume curve and snap point where its audio is. It then no longer follows tempo changes or warp edits. Events of clips that aren’t warped stay; fails if none is. Emits media.added, clip.added and audioEvent.changed. Returns the events flattened and their new media files and clips. Clears slice and quantize origins from the old clip. A failed outer transaction or late render-lock check also removes the rendered files.

Arguments:

Result:

event_fromHitpoints

Engine command event.fromHitpoints.

Makes something of the hitpoints of an audio event’s clip that count and are inside the section it plays (the Hitpoints section’s Create section, reference manual pp. 638-647). create: slices cuts every unlocked event that plays the clip at its hitpoints and puts the slices into an audio part in its place (slices of an event in a part stay in it), returning the parts, or those slices, in events; events cuts this event at them, returning it and the new events in events; regions makes a region of the clip from the event’s start to the first hitpoint, from each to the next and from the last to the event’s end, returning them in regions; markers adds a position marker at each to the active marker track (adding one without), returning them in markers; groove makes the project’s quantize settings a groove of them, as long as the event and starting where it does (quantize.set), returning those settings in quantize; midiNotes adds a MIDI part as long as the event with a note at each, to track (a MIDI or instrument track, such as the first selected one) or to a new MIDI track named after the clip, returning track and part. The notes have pitch (default 36, C1) and length (ticks, default a sixteenth); velocityMode dynamic (the default) gives the loudest hitpoint velocity 1 and the others less as their peaks are quieter, fixed gives every note velocity (0-1, default 100/127).

Arguments:

Result:

event_get

Engine command event.get. Read-only.

Tells where audio events and parts are, as the info line shows them: for each its kind (audio, audioPart or midi), track, name (an audio event’s clip’s), start, end and length in project samples, start and end in ticks, mute, lock, lane, its shared copies’ group (0: none) and, for an audio event, whether its phase is inverted.

Arguments:

Result:

event_glue

Engine command event.glue.

Glues audio events and parts or MIDI parts of one track together. Audio events that continue each other in the same clip, as after a split, become one event; other audio events and audio parts become one audio part from the first start to the last end, the first of the parts or a new one, holding all their events. MIDI parts become the first of them, from the first start to the last end, with all their notes and controllers; it keeps its transpose and velocity, and the notes of the others get the difference of the transpose and velocity their part plays them with — the transpose at each note’s position, as Keep Transpose in Octave Range folds a part’s own transpose into the global transposition it plays with, and the velocity divided by the track’s velocity compression — so that they play as before as far as velocities from 1 to 127 allow; their poly pressure moves with the note it presses (refused if that would transpose a note or poly pressure beyond 0 to 127). Pattern events that continue the first one’s pattern, as the pieces of a split do, stay that pattern event; otherwise the pattern events’ steps become notes of the glued part, as they played. Refused for audio events that continue each other but follow global transpose differently, by their root key or Global Transpose, transpose differently by their own transpose, or have a different phase, and for MIDI parts that follow global transpose differently: the glued event or part keeps the first one’s, so the others would play at another pitch, or with the other sign (audioEvent.set, midiPart.set). Returns the event or part.

Arguments:

Result:

event_move

Engine command event.move.

Moves audio events and MIDI parts (events, by id) by delta project samples or by ticks, which are exact on musical tracks, keeping their positions relative to each other, and onto track if given, which must be of their type. Locked events don’t move. Returns the events.

Arguments:

Result:

event_pasteWarpMarkers

Engine command event.pasteWarpMarkers.

Copies the free warp markers of the audio event from’s clip into the clips of the audio events (Copy Warp Markers from Selected Event, Paste Warp Markers to Selected Events, reference manual p. 1467): each at the same time as in from, where the event plays it unwarped, if that is within the event, passes none of its clip’s markers and makes no section around it play more than 4 times or less than a quarter as long, the real-time stretcher’s range. The markers there stay. Returns how many it pasted. Each destination clip is visited once, using its first event in events.

Arguments:

Result:

event_previewResize

Engine command event.previewResize. Read-only.

Tells what event.resize with the same parameters would make of the events, without changing them: the audio events, audio parts (with their audio events) and MIDI parts as project.get lists them. The event display shows it while an edge is dragged. Fails where event.resize would.

Arguments:

Result:

event_remove

Engine command event.remove.

Removes audio events and MIDI parts. Locked ones can’t be removed.

Arguments:

event_removeFades

Engine command event.removeFades.

Removes the fade in (fadeIn, default true) and the fade out (fadeOut, default true) of audio events, with the crossfades at those ends. Returns the events.

Arguments:

Result:

event_removeVolumeCurve

Engine command event.removeVolumeCurve.

Remove Volume Curve: audio events play at their volume again, without a curve. Returns the events.

Arguments:

Result:

event_resize

Engine command event.resize.

Moves the start or the end (edge) of audio events and MIDI parts by delta project samples or by ticks, within the clip and at least a sample frame or a tick long. normal sizing (the default) reveals or hides content; moveContents moves the content with the edge. A MIDI part’s notes and controllers that end up before its start are removed; a pattern event’s pattern stays in place (patternOffset) as its notes do. With zeroCrossing, normal sizing moves audio events’ edges to the nearest point within 50 ms where the audio crosses zero. Locked events don’t change. Returns the events.

Arguments:

Result:

event_set

Engine command event.set.

Mutes or unmutes, locks or unlocks, colors and renames (parts only: name) audio events and parts. Muted ones don’t play; locked ones can’t be moved, resized, split, glued or removed by the event commands. color (#rrggbb) is a color of their own; null makes them follow their track’s color again. lane puts them on that lane of their track, from 0, as cycle recordings put their takes (recording.add); audio events in an audio part on that lane of the part, as the audio part editor shows them. Locked ones stay on their lane: lane is refused for them unless lock false unlocks them in the same call. invertPhase inverts the phase of the audio events among them, or gives them their phase back (reference manual pp. 276-277); parts and MIDI parts have no phase of their own and stay as they are. Returns the events.

Arguments:

Result:

event_setDefinitionFromTempo

Engine command event.setDefinitionFromTempo.

Set Definition from Tempo (reference manual pp. 1467-1468): gives the clips of the audio events (ids) the project’s tempo as their definition, the grid on each quarter where the event plays it now, and turns musical mode on, so that they play as before and follow tempo changes from then on. The events’ tracks, or with allTracks every track, become musical first, keeping their time. A clip in musical mode already is refused. Events of one clip that play its frame 0 at the same time, such as the pieces of a split recording, keep sharing it; at another placement they get a copy of the clip with a definition of its own. The clip stays with the references to it that aren’t given, or else with the first placement. Repeated event ids are ignored. Returns the clips.

Arguments:

Result:

event_setSnapPoint

Engine command event.setSnapPoint.

Sets audio events’ snap point at position (project samples, default the project cursor), which must be inside each of them (Snap Point to Cursor): where the event snaps to the grid when it moves, and attracts other events. It is a point in the clip, so it stays with the audio when the event is resized or split. Returns the events.

Arguments:

Result:

event_shuffle

Engine command event.shuffle.

Shuffle (snap type shuffle): events that adjoin each other on one track change places with the events that adjoin them. They go where position (project samples, where the first of them would start) puts them: after each other event whose middle it is past. The others close up and make room, so the row keeps its start and has no gaps. Locked events end the row. Returns the events.

Arguments:

Result:

event_split

Engine command event.split.

Splits audio events and MIDI parts at positions (project samples): events, or without it every unlocked one that a position cuts. A MIDI part’s notes stay in the part they start in, or with splitNotes are cut in two, the rest with the expression from the cut on. With zeroCrossing, audio events split at the nearest point within 50 ms and inside the event where their audio crosses zero. The pieces of a pattern event continue its pattern (patternOffset). The piece of a quantized audio event after the split keeps where it was before quantizing, shifted by the split, so that quantize.reset puts both pieces back, or removes the piece after a split past the original’s length, which has nothing of it. Returns the new events after the splits.

Arguments:

Result:

event_stripSilence

Engine command event.stripSilence.

Detects silence in events as a cancellable job with job.progress, then runs event.applySilenceSections on the command thread, one undo step. Uses clip.detectSilence’s settings and event.applySilenceSections’ strip, regions, regionName, autoNumberStart and fades options. Optional start/end clip frames limit processing to that range within each event, preserving audio outside it. Both must be supplied together. Returns a job; its result is the edit’s result. Fails if the project changed meanwhile. A section opens at the first frame where a sample of any channel reaches openThreshold (dBFS, default -20) and closes after the last frame that reaches closeThreshold (dBFS, default -30, at most openThreshold) before 20 ms below it. Once open, a section stays open for at least minimumOpen (ms, default 10), joining what sounds within it; once closed, none opens before minimumClosed (ms, default 100) has passed. preRoll and postRoll (ms, default 0) start and end the sections earlier and later, joining those that then overlap.

Arguments:

Result:

event_toFront

Engine command event.toFront.

Brings takes to the front (To Front, the comp tool’s click): audio events, and the audio events of audio parts, play where they overlap other events on their track, as if added last (their front in project.get), keeping the order they were stacked in among them; MIDI parts are unmuted, and the MIDI parts on their track’s other lanes that they overlap are muted. Returns the events.

Arguments:

Result:

event_toPart

Engine command event.toPart.

Events to Part (Audio menu): puts audio events (events, by id) into a new audio part on their track, from the first start to the last end; events on several tracks make a part on each. Events already in a part, and locked ones, are refused. The part is on the track’s first lane, and the events keep their lane numbers, now lanes of the part (the audio part editor’s). Returns the parts in events.

Arguments:

Result:

event_toRealCopy

Engine command event.toRealCopy.

Converts shared copies to real copies: a MIDI part gets notes and controllers of its own, an audio event a clip of its own, and an audio part leaves its shared copies and gives each of its events one. Returns the events.

Arguments:

Result:

event_unstretch

Engine command event.unstretch.

Removes all real-time stretching from the clips of audio events (Unstretch Audio, reference manual pp. 657-658): turns musical mode off and removes their free warp markers, keeping their definitions. Every event of those clips plays its audio unstretched again. Emits clip.changed for each clip that changes. Returns the clips changed.

Arguments:

Result:

events

events_take

Read-only.

Takes the engine events of this session that haven’t been taken yet, oldest first, each with name (e.g. track.added), data (what changed) and request (the engine request that caused it). Events come from every client: this one, other MCP clients, Lua scripts and the UI. names takes only events with these names and leaves the others queued. seconds (0 to 60, default 0) waits up to that long for the first event. A session keeps the newest 1000 events; dropped counts the older ones dropped since the last call. A session starts with initialize; over HTTP it is the one of the Mcp-Session-Id header.

Arguments:

Result:

graph

graph_get

Engine command graph.get. Read-only.

The project’s audio processing graph: its nodes (busses, then channels in track order, then for each channel with plugin slots a channelSource node with what plays on the channel and a pluginSlot node per slot, which pass the audio on to the channel’s node, and while channels listen a listen node per listening channel, which receives the channel’s node and glides it in and out, and a listenBus node that receives the listen nodes) with the nodes they receive audio and events from, and the order they are processed in. object is the bus, channel or slot id.

history

history_describe

Engine command history.describe.

Sets the details of a history step, a note for the user. The step is given by its index (step) or by its id from history.get (id), which stays with it when the oldest steps go, so a client that follows ids describes the step it means whatever other clients did meanwhile; exactly one of them.

Arguments:

history_get

Engine command history.get. Read-only.

The undo history: every step with its id (growing with each new step), action, time (UTC) and details, the position (steps before it are done, the ones after it can be redone) and the maximum number of steps (0: no limit).

history_join

Engine command history.join.

Joins the done steps whose id is greater than after (an id from history.get) into one undo step named action, so that a client’s several commands, such as a user script’s, are undone and redone at once. Steps that end where they started leave none. Returns how many steps were joined.

Arguments:

Result:

history_redo

Engine command history.redo.

Redoes the next undone step, or the given number of steps.

Arguments:

Result:

history_set

Engine command history.set.

Sets the maximum number of undo steps (0: no limit). The oldest steps beyond it are dropped. A setting, so it stays when a new project starts.

Arguments:

history_transaction

Engine command history.transaction.

Runs document commands in order as one undo step named description. If one fails, none of them changes the project. Returns each command’s result. With a merge key, a transaction joins the last step instead when that step is a transaction with the same key and nothing was undone since: a gesture such as a fader drag, sent as a transaction per step with a key of its own, is one undo step (none if it ends where it started).

Arguments:

Result:

history_undo

Engine command history.undo.

Undoes the last step, or the given number of steps.

Arguments:

Result:

instrument

instrument_loadProgram

Engine command instrument.loadProgram.

Loads a program of an instrument track’s built-in instrument, by name as processor.list lists them (the track list’s Programs): the channel’s instrument parameters get the program’s values and the others their defaults, replacing those set before. One undo step.

Arguments:

job

job_cancel

Engine command job.cancel.

Asks a running job to stop. It ends soon after as cancelled, with a job.finished event, and cleans up what it made; a job that has ended stays as it is.

Arguments:

Result:

job_get

Engine command job.get. Read-only.

A background job, as job.list shows it.

Arguments:

Result:

job_list

Engine command job.list. Read-only.

Every background job since the engine started, such as backups: id, kind, state (running, done, failed or cancelled), progress from 0 to 1, what it is doing, and its result or error once it ended.

Result:

keyCommands

keyCommands_export

Engine command keyCommands.export.

Writes the key commands and macros of the user settings ui.keyCommands and ui.macros into a key commands file (JSON), which keyCommands.import reads, e.g. on another computer.

Arguments:

keyCommands_import

Engine command keyCommands.import.

Reads a key commands file that keyCommands.export wrote into a key commands preset of the name given, replacing a preset of that name.

Arguments:

keyCommands_removePreset

Engine command keyCommands.removePreset.

Removes one of the key commands presets.

Arguments:

keyCommands_savePreset

Engine command keyCommands.savePreset.

Saves a key commands preset (the user setting ui.keyCommandPresets): the key commands and macros given, by default those of the user settings ui.keyCommands and ui.macros. Replaces a preset of the same name. Loading one is settings.set with values ui.keyCommands and ui.macros from it.

Arguments:

linkGroup

linkGroup_add

Engine command linkGroup.add.

Links channels in a new link group (reference manual pp. 457-459), named Link Group N, with a number no other group’s name has, unless name is given; by default it links the volume, the sends, the routing and the selection (p. 458), or with a VCA fader only the sends and the routing. channels: the linked channels; a channel is in one link group at most, so they leave the groups they were in, and a group left without channels goes (linkGroup.removed). What a change to one of them passes on to the others (channel.set, unless linked is false): volume (the fader, by as much as it moved), pan (likewise), mute (the mute, solo and listen buttons), record (record enable and monitor), eq (the equalizer’s changes, by as much as they moved), dynamics (the strip’s: gate, compressor and limiter, likewise), sends (the sends’ changes, on by default: the levels by as much as they moved, the rest as given; a channel that can’t take one, such as a send to itself, keeps its own), inserts (the slots’ settings, at the slot level: a change to one slot goes to the same slot of the others, p. 460), automation (the automation lanes’ read/write states, of the lanes for the same target), routing (the input and output routing, on by default), selection (the selection, on by default). vca: the channel of a VCA track that controls the group, or 0; it leaves the group it controlled. The VCA fader’s volume adds to each channel’s, its automation to theirs, and its buttons pass on to them; VCA faders can be in groups that other VCA faders control, but never control themselves. A group with a VCA fader doesn’t link the volume, and only the sends and the routing stay on (p. 458): giving it one turns the links the group had off and refuses the other links given in the same call, as the volume is; taking it away turns the volume back on, unless volume is given. Emits linkGroup.added.

Arguments:

Result:

linkGroup_remove

Engine command linkGroup.remove.

Unlinks a link group’s channels (p. 459). A VCA fader that controlled it stays. Emits linkGroup.removed.

Arguments:

linkGroup_set

Engine command linkGroup.set.

Changes a link group: what isn’t given stays. channels: the linked channels; a channel is in one link group at most, so they leave the groups they were in, and a group left without channels goes (linkGroup.removed). What a change to one of them passes on to the others (channel.set, unless linked is false): volume (the fader, by as much as it moved), pan (likewise), mute (the mute, solo and listen buttons), record (record enable and monitor), eq (the equalizer’s changes, by as much as they moved), dynamics (the strip’s: gate, compressor and limiter, likewise), sends (the sends’ changes, on by default: the levels by as much as they moved, the rest as given; a channel that can’t take one, such as a send to itself, keeps its own), inserts (the slots’ settings, at the slot level: a change to one slot goes to the same slot of the others, p. 460), automation (the automation lanes’ read/write states, of the lanes for the same target), routing (the input and output routing, on by default), selection (the selection, on by default). vca: the channel of a VCA track that controls the group, or 0; it leaves the group it controlled. The VCA fader’s volume adds to each channel’s, its automation to theirs, and its buttons pass on to them; VCA faders can be in groups that other VCA faders control, but never control themselves. A group with a VCA fader doesn’t link the volume, and only the sends and the routing stay on (p. 458): giving it one turns the links the group had off and refuses the other links given in the same call, as the volume is; taking it away turns the volume back on, unless volume is given. Emits linkGroup.changed.

Arguments:

Result:

marker

marker_activateTrack

Engine command marker.activateTrack.

Makes a marker track the active one, which marker commands use when they are given no track.

Arguments:

marker_add

Engine command marker.add.

Adds a position marker, or with type cycle a cycle marker, to a marker track (default: the active one; without a marker track one is added as track.add adds it, in the time base the user setting editing.defaultTimeBase gives new tracks). position and end are in the track’s time base (ticks or samples; project.get reports each track’s timeBase) or “cursor”: to give numbers without knowing the setting, add the marker track first with track.add timeBase and pass it as track. A position marker defaults to the cursor, a cycle marker to the locators; a cycle marker ends at least one sample after its position. Positions and ends are at most the longest project’s end (see audioEvent.add). Position and cycle markers are numbered separately on each track; a new marker gets the first free number unless one is given.

Arguments:

Result:

marker_export

Engine command marker.export.

Exports marker tracks (tracks, default all of them) into a CSV file at path, which marker.import reads: a header row with the columns Track Number, Track, Time Base, Type, ID, Position, End, Description and Color, then a row per marker, the tracks in track order and their markers in timeline order. An empty track has a Type Track row with empty marker fields. Track Number numbers the tracks in the file, 1 on. Positions and ends are in beats (quarter notes) on musical tracks and in seconds on linear ones. Returns the number of markers.

Arguments:

Result:

marker_import

Engine command marker.import.

Imports a CSV file of markers, such as marker.export writes: each track in it becomes a new marker track at the top, in file order, with its time base and its markers’ types, ids, positions, ends, descriptions and colors. Columns are found by their header, in any order; only Position is required. Semicolon-separated sheets may use decimal commas for times. A Type Track row with empty marker fields preserves an empty track. Rows with the same Track Number are one track, rows without one those with the same Track name, and without either all markers go on one track; the rows of a track have one Track name and one Time Base. Without Time Base a track is musical, without Type markers are position markers and without an ID they get the first free number. The active marker track stays active, or the first new one becomes it. One undo step; a file with an invalid row changes nothing. Returns the new tracks and the number of markers.

Arguments:

Result:

marker_list

Engine command marker.list. Read-only.

The markers of a marker track (default: the active one; track 0 if there is none) in timeline order, with their position and end also in the project’s samples.

Arguments:

Result:

marker_locate

Engine command marker.locate.

Moves the project cursor to a marker, given by id (marker) or by its number on a marker track (default: the active one) and type (default: position). Cycle markers locate to their start. With the user setting transport.cycleFollowsMarkers it also sets the locators to the marker: a cycle marker’s range, or from a position marker to the next marker after it on its track, if there is one.

Arguments:

Result:

marker_locateNext

Engine command marker.locateNext.

Moves the project cursor to the next marker after it on a marker track (default: the active one): position markers and the start and end of cycle markers. Without one the cursor stays and marker is null. With the user setting transport.cycleFollowsMarkers it also sets the locators to the marker, as marker.locate does. Returns the marker and the cursor in samples.

Arguments:

Result:

marker_locatePrevious

Engine command marker.locatePrevious.

Moves the project cursor to the previous marker before it on a marker track (default: the active one), like marker.locateNext.

Arguments:

Result:

marker_put

Engine command marker.put.

Puts position marker number N of a marker track (default: the active one; without a marker track one is added) at the cursor: moves it there, or adds it with that number. What the key commands Set Marker 1 to 9 do.

Arguments:

Result:

marker_range

Engine command marker.range. Read-only.

The range between the markers around a position in samples, on a marker track (default: the active one): from the last marker at or before it to the next one, counting position markers and the start and end of cycle markers. A range selection between markers spans it.

Arguments:

Result:

marker_remove

Engine command marker.remove.

Removes markers.

Arguments:

marker_renumber

Engine command marker.renumber.

Numbers a marker track’s position or cycle markers again from 1, in timeline order (default: the active track).

Arguments:

marker_set

Engine command marker.set.

Changes a marker: moves it (position, in the track’s time base or “cursor”; a cycle marker keeps its length unless end is given, at most the longest project’s end as in marker.add), renames it, changes its color or number, or moves it to another marker track, where it takes the first free number if its own is taken.

Arguments:

Result:

marker_setLocators

Engine command marker.setLocators.

Sets the left and right locators to a cycle marker’s start and end, given by id (marker) or by its number on a marker track (default: the active one).

Arguments:

Result:

media

media_add

Engine command media.add.

Adds an audio file. Its sample rate, channel count and length in sample frames (at most 2^48) are read from the file, or taken as given, for a file that is still being recorded. With copy, a file from outside the project folder is also copied into its media folder (see project.location); the project must have been saved. The copy runs as a job, returned as job (null without one), with the result that media.prepareArchive’s job has: the media file is added at once where it is, and when the copy is done it is pointed at the copy as an undo step of its own.

Arguments:

Result:

media_cleanup

Engine command media.cleanup.

Lists the files that loads extracted and nothing uses: the files in the project’s media folder ( media next to its project file) and in the track presets' (Track Presets/ media in the settings folder) that neither the project, nor a step of its undo history, nor its project file, nor a project template has as a media or freeze file or a track picture, such as the numbered ones (2-kick.wav) that a load puts beside a file with other content. A peak file goes with its audio file. With files, removes those of them that are among these from the disk, which undo can't bring back. A project or track preset that loads again extracts what it needs. A file that another project refers to without embedding it, which project.save with embedMedia false, auto saves and track.export with copyMedia false write, counts as unused. Returns files, the files unused or, with files, removed; sizes, the bytes of each of them; size, their sum; and failed, the files that couldn't be removed.

Arguments:

Result:

media_conform

Engine command media.conform.

Conforms media files to the project’s sample rate (Convert Files with New + Replace in Pool, reference manual pp. 759-760): writes each one at another sample rate into the media folder as a 32-bit float WAV file at the project’s sample rate and points the media file at it with media.relinkResampled, as one undo step. Clip fades, warp data, hitpoints and regions, and the event offsets, lengths, fades, crossfades, snap points and volume curves of what plays it move with the new sample frames, so events play the same section. Slice origins and both quantize reset timings move too, in every track version. The original files stay on disk. media limits it to those media files, which must not be missing (default: every one that isn’t missing). The project must have been saved. It runs as a job, so it can’t be part of a history.transaction: this returns at once, job.progress events say which file it converts, and job.cancel stops it and removes the files it wrote. Media files whose path or sample rate changed meanwhile, or that were removed, keep what they have, and their new files are removed; so do all of them if the project’s sample rate changed or another project was opened meanwhile. With merge, the undo step is a history.transaction with that merge key: it joins the last step if that one has the key and nothing was undone since, as the project setup dialog’s new sample rate does. The job’s result is {media, changed}: the media files conformed and the ones that changed meanwhile.

Arguments:

Result:

media_convert

Engine command media.convert.

Converts a media file to another sample rate (by default the project’s), writes the result to path as a 32-bit float WAV file and adds it as a new media file. path must not be one of the project’s media files.

Arguments:

Result:

media_locate

Engine command media.locate.

Looks for missing media files in folder and the folders inside it (the Resolve Missing Files dialog’s Browse Folder, reference manual pp. 750-752): a file with the same name, ASCII letters in any case (other letters must match exactly), and the media file’s sample rate, channel count and length, within a millisecond’s frames for the rounding of a duration in another application’s project.xml. Of those it takes the closest length, and of equally close ones the same spelling. media limits it to those media files (default: every missing one). It runs as a job, so it can’t be part of a history.transaction: this returns at once, job.progress events say which folder it looks in and then which media file it checks, job.cancel stops it, and once it is done the files found are relinked as one undo step, which skips media files relinked or removed meanwhile, files found that changed or went since, and every one if another project was opened meanwhile. The job’s result is {relinked, missing, changed}: the media files relinked, the ones it didn’t find, and the ones it found but that changed meanwhile and keep what they have now.

Arguments:

Result:

media_peakStatus

Engine command media.peakStatus. Read-only.

The state of the waveform overviews of a media file, or of every media file: pending, generating (with progress from 0 to 1), ready, failed (with the error) or recording; the frames that have peaks; the peak file they were loaded from or written to; whether they were generated from the audio file rather than loaded. Peak files are kept next to their audio file as .gbpeaks, or in fallbackFolder where that can't be written.

Arguments:

Result:

media_peaks

Engine command media.peaks. Read-only.

The waveform overview of a media file for drawing: frames sample frames of the file from start (default: the rest of the file), in pixels columns (up to 65536). Per channel (default: all of them; channels picks some, numbered from 0), the smallest and largest sample of each column, from -32767 to 32767 (full scale). Pixels times channels can be up to 262144. The columns come from the coarsest level of the file’s peaks (level: 256, 4096 or 65536 frames per peak) that has a peak per column. Below 256 frames per column, ready files are read over the requested span in 4096-frame blocks (level: 1), bounded to fewer than 16777216 frames by the pixel limit. status says whether the peaks are ready; while they are generated, only the first available frames have columns and the rest are 0. A file that changed since its peaks were made gets new ones; media.peaksProgress and media.peaksReady report how that goes.

Arguments:

Result:

media_prepareArchive

Engine command media.prepareArchive.

Makes the project self-contained, so that its folder can be archived or moved: copies media files, freeze files and track pictures from outside its folder into Audio, Freeze and Track Pictures respectively, each once per path and kind. Copies run as a job: this returns at once, job.progress and job.finished follow, and job.cancel stops it and removes the copies. Once done, media and tracks point at the copies as one undo step (media.relink, track.relinkFreeze, track.relinkPicture). The job lists copied ({media or tracks, from, to}) and missing ({media or tracks, path}), with picture: true on picture entries. Unreadable files keep their paths. Media and tracks whose paths changed meanwhile keep their new paths and are listed as changed and changedTracks (unique track ids). The project must have been saved; save it again without embedding to keep the new paths. media limits copying to those media files, without freeze files or pictures, such as the ones track.import added (Copy to Active Project Folder, reference manual p. 205).

Arguments:

Result:

Engine command media.relink.

Points media files at other files, such as copies, as one undo step. Each new file must be an audio file with sample frames and the media file’s sample rate and channel count; the media file takes its length. Clip fades, warp data, hitpoints, regions and audio events that extend past a shorter file’s end are trimmed to it or removed if they no longer fit. Events’ slice origins and both quantize reset timings are trimmed too, in every track version, so resetting stays within the file. An entry with from applies only if the media file is still there and still points at from; one with length only if its new file can be read, fits and has that many sample frames (not none); otherwise it is skipped. With project, every entry is skipped unless that project is still open (project.revision’s project). Returns the media files it relinked and the ones it skipped.

Arguments:

Result:

media_relinkResampled

Engine command media.relinkResampled.

Points media files at files of theirs at another sample rate, such as the ones media.conform writes, as one undo step: each media file takes its new file’s sample rate and length, and the clip fades, warp data, hitpoints, their minimum separation and regions, and the event offsets, lengths, fades, crossfades, snap points and volume curves of what plays it move with the new sample frames, so events play the same section. Out-of-file anchors and hitpoints and empty regions are dropped; region ends and grid starts are trimmed. Slice origins and both quantize reset timings move too, in every track version, and their sections and crossfades fit the new file bounds. Saved snap points fit the file, and saved fade outs fit the restored event’s fadeRoom. Event fades fit their played fadeRoom. Each new file must be an audio file with the media file’s channel count and at least one sample frame, and each media file can be given once, whether its entry applies or not. An entry with from applies only if the media file is still there and still points at from, one with fromSampleRate only if the media file is still at that sample rate; otherwise it is skipped. With projectSampleRate, every entry is skipped unless the project is still at that sample rate, and with project unless that project is still open (project.revision’s project). Returns the media files relinked and the ones skipped.

Arguments:

Result:

media_remove

Engine command media.remove.

Removes an audio file that no clip uses.

Arguments:

media_removeMissing

Engine command media.removeMissing.

Removes the media files that are missing from the pool with their clips and the audio events that play them (reference manual p. 752), as one undo step; sampler tracks that play them are left without a sample. Returns the ids removed.

Result:

media_stretch

Engine command media.stretch.

Time-stretches and pitch-shifts a media file, writes the result to path as a 32-bit float WAV file and adds it as a new media file; path must not be one of the project’s media files. ratio is the new length over the old one, from 0.1 to 10 (default 1: unchanged); semitones and cents shift the pitch, together within 48 semitones either way (default 0). preset picks the algorithm: quality (default) and efficient for any material, drums, plucked, pads, vocals, mix and solo tuned for kinds of material at a lower CPU cost. formants keeps the spectral envelope when the pitch shifts, e.g. for voices. mode offline (default) analyzes the whole file first for the best result; realtime processes it the way playback does, with ratios from 0.25 to 4 and pitch shifts within 24 semitones.

Arguments:

Result:

meter

meter_get

Engine command meter.get. Read-only.

The meters, as the audio thread measured them last while the device ran. channels: each channel’s level where the user setting meter.position says (all channels, or those given): by default its output after its fader, panner and muting, per audio channel of the output; postFader after the fader and muting without the panner, and input after the pre section, its input gain and low and high cut, per audio channel of the channel; a MIDI channel’s one value is the velocity of the loudest note that sounds, 127 as 0 dBFS. A VCA channel’s level is the sum of the outputs of the channels it controls, after their faders, panners and muting whatever meter.position says, in the main mix’s format. An input or output bus’s level (an input or output channel’s, listed after the channels) is what goes through it, per audio channel of the bus, whatever meter.position says: an input bus’s the device’s inputs. Each has peak (the largest sample of the last 100 ms) and rms (averaged over the last 300 ms) in dBFS, and their maxima peakMax and rmsMax since meter.reset, also while the transport stands; null for silence, empty lists for VCA channels without audio channels and channels that haven’t played yet. main: the same for the main mix’s first 8 device outputs, with rms averaged over the user setting meter.rmsResolution and 3 dB higher with meter.rmsAes17, plus the master meter’s truePeak, truePeakMax and truePeakHold (4x oversampled, dBTP): truePeakHold is the largest true peak since meter.reset with “main” or without meters, also while the transport stands, as peakMax; truePeakMax the loudness meter’s, which meter.reset with “loudness” or without meters clears. loudness: the main mix’s loudness per EBU R 128 in LUFS: momentary (400 ms), shortTerm (3 s), their maxima, integrated (gated) and range (LU), and seconds measured; they change every 100 ms. truePeakMax, the loudness maxima, integrated, range and seconds only count while the transport plays, with blocks from where playback started, and go on across audio.reset at the same sample rate; null until there is a value. The user setting meter.resetOnStart starts the loudness meter and the main mix’s maxima over when playback starts; with meter.measureLoudness off playback measures nothing, and with meter.holdOnStop off the measurement starts over when playback stops.

Arguments:

Result:

meter_removePreset

Engine command meter.removePreset.

Removes one of the meter display’s measurement presets.

Arguments:

meter_reset

Engine command meter.reset.

Resets the meters’ maxima (peakMax, rmsMax, truePeakMax, momentaryMax, shortTermMax) and starts the loudness measurement over (integrated, range, seconds); see meter.get. meters chooses what: “main” only the main mix’s peakMax, rmsMax and truePeakHold (the master meter’s reset), “loudness” only the loudness meter’s values, truePeakMax included (its Reset Loudness), “mainRmsMax” only the main mix’s rmsMax (a Ctrl-click on RMS Max.), “mainTruePeakHold” only its truePeakHold (on Peak Max.), “channels” only every channel’s and bus’s peakMax and rmsMax (a click on a channel’s peak level); left out, everything, every channel’s maxima included. Announces meter.reset with the meters given.

Arguments:

meter_savePreset

Engine command meter.savePreset.

Saves a measurement preset of the meter display’s thresholds (the user setting meter.presets, reference manual p. 539): the values of the settings meter.momentaryMaxReference, meter.momentaryMaxTolerance and so on for shortTerm, integrated and truePeak, those not given their current ones. Each must fit its setting. Replaces a preset of the same name. Loading one is settings.set with its values.

Arguments:

metronome

metronome_get

Engine command metronome.get. Read-only.

The project’s metronome settings and click patterns (see metronome.set).

Result:

metronome_set

Engine command metronome.set.

Changes the given metronome settings and keeps the rest. The metronome switch, transport.set metronome, turns the click on; whilePlaying, whileRecording: when it sounds then. audio: the audio click; enabled, outputs (the output busses it plays through; empty: the main mix), level (dB, -144 to 6, on top of each accent’s), sounds (beeps, or samples: sample files where an accent has one) and per accent 1 to 4 by index, beeps [{frequency (Hz, 20-20000), level}] and samples [{path (an audio file, up to 10 s are played, or null), level}]. midi: the MIDI click; enabled, destination (an instrument channel, or null) or port (a MIDI output port’s key, backend/out/id as channel.set midiPort takes it, empty for none; the two replace each other, and a call that gives both is refused), channel (1-16) and per accent notes [{note (0-127), velocity (0-1)}]. countIn: enabled (transport.record from stop counts in first, whether the click is on or not), bars (1-16) and signature: start (the signature and tempo where recording starts), project (the bars before where playback starts, as the project has them) or custom (customSignature {numerator, denominator} at the tempo where recording starts). patterns replaces every click pattern (see metronome.setPattern). Accent 1 is the sound of a bar’s first beat. Settings are not undo steps; they are saved with the project.

Arguments:

Result:

metronome_setPattern

Engine command metronome.setPattern.

Sets the click pattern of a time signature: accents, the bar’s clicks, evenly spread over it, each with an accent from 1 (the first beat’s sound) to 4, or 0 for a click that stays silent; up to 64 clicks, e.g. [1, 3, 3, 2, 3, 3] for triplet eighths in 2/4. Without accents, or with an empty array, the signature goes back to its default pattern: a click per beat, the first with accent 1, the others with accent 2. The patterns apply wherever a signature holds, during playback and count-ins. Signatures with a numerator up to 64 have patterns; longer bars click on every beat.

Arguments:

Result:

midiDevice

midiDevice_export

Engine command midiDevice.export.

Export Setup (reference manual p. 1110): writes every installed MIDI device, with its banks, patches, Bank Assignment and panels, into a MIDI device setup file at path, XML that midiDevice.readSetup and midiDevice.import read.

Arguments:

midiDevice_import

Engine command midiDevice.import.

Import Setup (reference manual p. 1115): installs MIDI devices from a setup file at path (midiDevice.export), those named in devices or else all of them. A name that is already installed or that the file doesn’t have installs none. Returns the devices installed.

Arguments:

Result:

midiDevice_install

Engine command midiDevice.install.

Installs a MIDI device (reference manual pp. 1109-1114): a representation of an external instrument with its patches by name, which a MIDI track’s channel names (channel.set device) to choose its program and bank by patch. name must be new. template gm gives it General MIDI’s 128 programs in the bank GM, in folders by family; empty (the default) gives it no banks, for patches of its own. Devices are the user setting midi.devices, where settings.set edits their banks and patches. Returns the device.

Arguments:

Result:

midiDevice_readSetup

Engine command midiDevice.readSetup. Read-only.

Reads a MIDI device setup file (midiDevice.export) at path and returns its devices in the file’s order, as midiDevice.set takes them, without installing any: for the choice of devices that Import Setup offers (reference manual p. 1115).

Arguments:

Result:

midiDevice_remove

Engine command midiDevice.remove.

Removes an installed MIDI device (midiDevice.install) by name. Tracks that name it keep their program and bank.

Arguments:

midiDevice_sendControl

Engine command midiDevice.sendControl.

Moves a control of a MIDI device’s panel (reference manual pp. 1115-1117, midiDevice.set panels): sends value, within the control’s range (a switch’s min or max), as the control’s MIDI controller on the panel’s MIDI channel to the device’s output port, now. sent is false, and nothing goes out, for a device without an output; a port that isn’t connected drops it.

Arguments:

Result:

midiDevice_set

Engine command midiDevice.set.

Replaces an installed MIDI device’s patch banks (reference manual pp. 1111-1114). Each bank has a name, patches and optional folders; each patch has a name, program (0 to 127), optional bank (0 to 16383) and folder, a path with / between nested folders. folders lists folders that the bank keeps even while no patch is in them (New Folder). bankAssignment, the Bank Assignment (p. 1109), replaces the bank that MIDI channels use, by index in banks, keyed by the channel’s number from “1” to “16”: the program selector of a MIDI track on such a channel (Any is 1) offers only that bank’s patches. Without it the device keeps its assignment by index and drops indices past the last bank, so a caller that removes a bank passes the shifted assignment. output is the MIDI output port the device is connected to (p. 1113), its key as channel.set midiPort takes it (backend/out/id), empty for none, kept when left out: a MIDI track that names the device and plays to neither an instrument nor a port of its own plays there. panels, the device panels (pp. 1115-1117), replaces them, kept when left out: each a unique name, the MIDI channel it sends on (1 to 16, 1 if left out) and its controls, each a unique name, a kind (knob, the default, fader or switch), the MIDI controller it sends (0 to 127), a range from min (0) to max (127) and a default (min) within it, a switch’s its min or its max; midiDevice.sendControl sends a control’s value. Edits only this device in the user setting midi.devices, announces settings.changed, and returns the device. Tracks keep their selected program and bank.

Arguments:

Result:

midiEffect

midiEffect_list

Engine command midiEffect.list. Read-only.

Every built-in MIDI effect for the MIDI insert and send slots of MIDI and instrument tracks (channel.set midiInserts and midiSends): its id, name, description and parameters, as processor.list has them, each with the key it goes by in a slot’s parameters.

Result:

midiFile

midiFile_export

Engine command midiFile.export.

Exports MIDI and instrument tracks (tracks, default all of them) as a standard MIDI file of type 0 (one track with every MIDI channel) or 1 (default: a tempo track, then a track per exported track), with ppq ticks per quarter note (24-960, default 480). The file has the notes and controllers as they play, converted to MIDI 1.0, the track names, tempo and time signatures, and the markers unless markers is false: in a type 1 file the active marker track’s in the tempo track, each other marker track’s in a track of its own after the others, named after it. A note ends where the next note of its pitch and channel starts, so that overlapping notes read back the same. range {start, end} in ticks exports only what starts in it, moved to the file’s start. Returns the number of tracks in the file.

Arguments:

Result:

midiFile_import

Engine command midiFile.import.

Imports a standard MIDI file (type 0, 1 or 2) into new MIDI tracks (trackType midi, the default) or instrument tracks, one part per track from the bar of its first event to the bar after its last. A type 0 file gets a track per MIDI channel; the sequences of a type 2 file are laid out one after another, each from a bar start. Names that aren’t UTF-8 are read as Windows-1252. Unless tempo is false, the file’s tempo and time signatures replace the project’s from position to the file’s end (tempo changes on the tempo track, which becomes active); after the end, the project’s are kept if they change after position or the project has content after the file’s end, else the file’s last ones go on. Content is parts and audio events (also of the tracks’ other versions), markers and arranger events by their end, and chord, scale and transpose events and automation points by their position, so one at the file’s end counts; on linear tracks it is in samples, compared with the file’s end in the file’s tempo. An audio event on a musical track keeps its start in ticks and its length in samples, so it counts by its start in the file’s tempo plus its length (by its end in ticks if its clip plays in musical mode). One on a linear track whose clip plays in musical mode keeps its start in samples and its length in beats, so it counts by its start in ticks in the file’s tempo plus that length. Unless markers is false, its markers are added to the active marker track (one is added if there is none), except that a type 1 file’s tracks of nothing but a name and markers, which midiFile.export writes for marker tracks, become new marker tracks at the top while the project has room for them. The options of the reference’s MIDI file import (#478): position (sample frames from the project start, default 0) is where the file starts; the project’s tempo and signatures before it stay. While the signature track is locked (track.set lock), an import with tempo that would change the time signature events is refused. dissolve false keeps a type 0 file in one track. singlePart puts the whole file into one part on one track: track, a MIDI or instrument track of the project, or a new one named after the file; on a linear track the part’s position and length are in samples, its notes in ticks. On MIDI tracks, a new track’s midiChannel (channel.set) is its file track’s MIDI channel if all its channel events have the same, else Any; extractPatch makes each track’s first program change (with its bank) and extractVolumePan its first MIDI volume (CC 7) and pan (CC 10) on the MIDI channel its settings go out on (1 for Any) the track’s program, bank, midiVolume and midiPan instead of events. automation moves the continuous controllers into automation lanes, as midi.extractAutomation does. One undo step. Returns the new tracks and the parts. A track that the extraction leaves empty keeps its settings but gets no part, so parts can be shorter than tracks, and empty with singlePart.

Arguments:

Result:

midiPart

midiPart_add

Engine command midiPart.add.

Adds a MIDI part to a MIDI or instrument track. position and length are in the track’s time base: ticks on musical tracks, 1,720,320 to the quarter note, samples on linear ones, each at most the longest project’s end (see audioEvent.add). lane puts it on that lane of the track, from 0 (default), as event.set does. pattern makes it a pattern event (#181), which plays that pattern (pattern.add) from its start over and over instead of its notes; a pattern of another track plays as its copy on the part’s track (pattern.add), which the result names.

Arguments:

Result:

midiPart_remove

Engine command midiPart.remove.

Removes a MIDI part with its notes and controllers.

Arguments:

midiPart_set

Engine command midiPart.set.

Changes a MIDI part’s name, position or length (each at most the longest project’s end, see audioEvent.add), or how its notes play: transpose (semitones) and velocity (added to MIDI 1.0 velocities), each -127 to 127. Velocity adds to the track’s MIDI modifiers (channel.set modifiers), also while they are bypassed; transpose adds to what each note plays with, folded into the octave range together with global transposition while the part follows it (transpose.setTrack keepInOctave). The notes themselves stay as they are. rootKey is the part’s root key (“” for none, C, C# and so on to B), which the project root key transposes it to (project.set rootKey); globalTranspose follow (the default) or independent says whether the project root key and the transpose track transpose it (transpose.add). pattern is the pattern a pattern event plays (pattern.add, #181), 0 for an ordinary part: another one plays from the part’s start, and one of another track as its copy on the part’s track, which the result names.

Arguments:

Result:

midiRules

midiRules_presets

Engine command midiRules.presets. Read-only.

The rule editor and input transformer presets: the factory presets, named by category (such as “Delete/Short notes” and “Transform/Octave up”), and the user’s, each with its rules as midi.applyRules takes them. The user’s presets are kept in the settings folder, so they come back when GNUbase starts again: file is where (null if they are kept in memory only), readOnly whether changes are saved, and problems what was wrong with it, such as presets that this GNUbase can’t read and skips; they stay in the file.

Result:

midiRules_removePreset

Engine command midiRules.removePreset.

Removes one of the user’s MIDI rule presets, and the presets of that name that this GNUbase can’t read (see midiRules.presets).

Arguments:

midiRules_savePreset

Engine command midiRules.savePreset.

Saves rules (as midi.applyRules takes them) as a MIDI rule preset named name, replacing the user’s preset of that name. Factory presets can’t be replaced. Presets belong to the user, not to the project: they are saved in the settings folder. midiRules.presetsChanged announces the user’s presets’ names.

Arguments:

Result:

midi

midi_activity

Engine command midi.activity.

Takes the MIDI input that the open inputs received since the last run while midi.activityListen was on, at most 256 messages without system real-time messages (0xF8 to 0xFF), each with its port (backend and id) and its bytes, and announces it as the event midi.activity unless there is none: the Note Expression Input page’s MIDI Activity display (reference manual p. 1298) shows it. The engine runs it itself, at most ten times a second, while input arrives and an audio device processes blocks; its runs stay out of engine.commandLog. What was received before a device started is dropped then. dropped counts what didn’t fit. midi.monitor, which keeps the input’s positions, takes its own copy.

Result:

midi_activityListen

Engine command midi.activityListen.

Whether what the open MIDI inputs receive goes to midi.activity, which the engine then runs itself as input arrives: the studio setup dialog turns it on while it is open, for its Note Expression Input page (#1749). listener names who listens, such as the dialog’s studioSetup; without it, the calls share one. It is on while any listener has it on, so turning it off for one leaves the others’ (#1832). Off by default; turning it on while no listener has it on starts afresh, without what came before, and a second listener’s on keeps what the first one still reads. post names a command that each run of midi.activity with notes then posts while the listener has it on, with {notes, dropped, cleared}: the notes the tracks get from all MIDI inputs, the on-screen keyboard’s too, and from the chord pads, so a remote key’s pad chord rather than the key, each with its pitch, velocity (0 to 127) and whether it is a note-on (on), how many notes didn’t fit after these, as when the queue was full, and whether the input was dropped before these, as when a device started. They have a queue of their own, which no other input crowds out: the key editors’ step and MIDI input take the notes played so (editor.played, #679, #2154).

Arguments:

midi_applyRules

Engine command midi.applyRules.

Applies rule editor rules to the notes of MIDI parts (all of them, or those in notes) and, without notes, to their controllers, pressure, pitch bend and program changes (not SysEx): delete removes the events the filters find, transform changes them by the actions, insert adds changed copies, insertExclusive changes them and removes the others. Pitches leaving 0 to 127 delete notes, velocities stay from 1 to 127, events don’t move before their part’s start and notes don’t turn into other events or the other way round (such events stay as they are). Positions and lengths stop at the longest project. seed makes the random operations repeatable; without it each call gives new random values. rules: filters, each {open, target, condition, parameter1, parameter2, close, join} (target position, length, subtype, mainValue, channel, type or secondaryValue; condition equal, unequal, bigger, biggerOrEqual, less, lessOrEqual, insideRange, outsideRange or noteIsEqualTo; open and close brackets 0 to 3, which must match and nest at most 3 deep; join and or or to the next line, and binding more tightly than or), function (delete, transform, insert, insertExclusive or select) and actions, each {target, operation, parameter1, parameter2} (operation add, subtract, multiplyBy, divideBy, roundBy, setRandom, setFixed, setRelativeRandom, useSubtype, useMainValue, mirror, transposeToScale or addLength), applied in order. Values are MIDI 1.0’s, channels 1 to 16, positions and lengths in ticks of 480 to a quarter note from the project’s start; the type’s parameter1 is note, polyPressure, controller, program, aftertouch or pitchBend, and transposeToScale’s parameter2 a scale type, its parameter1 the root (0 is C). Subtype and main value are a note’s pitch and velocity, poly pressure’s pitch and pressure, a controller’s number and value, a program change’s program, aftertouch’s pressure (subtype) and pitch bend’s low and high 7 bits; the secondary value is a note’s note-off velocity. preset names a preset instead of rules. Use midi.findByRules for select. Returns the parts it changed and how many events it found.

Arguments:

Result:

midi_bounce

Engine command midi.bounce.

Bounces MIDI parts on one track into one part, or one for each setting the notes can’t hold (below), from the first one’s start to the last one’s end, named after the first and with its color, on the lowest lane they are on, with the root key and Global Transpose setting (midiPart.set) the parts with notes share, or, when they differ, the project root key and follow. Muted parts are removed and add nothing. Events keep their time; notes are cut where their part ended. The parts’ transpose, their difference in global transpose and their velocity go into the notes as playback applies them, so that each keeps the pitch it played with; a note that plays nowhere, also with the global transpose and the track’s MIDI modifiers’ transpose and random pitch, stays transposed where the track’s drum map or chord track make of that what they make of the note, a pitch beyond 0-127 is left out, and otherwise its part keeps the transpose. A part whose notes can’t hold this (a pitch beyond 0-127 that plays, or one the track’s drum map or chord track following, which map a note before the transpose and the global transposition, plays differently) keeps its root key and Global Transpose setting, with its transpose in the notes if they hold that, else on the part. A part that follows global transpose plays its transpose in the sum that Keep Transpose in Octave Range (transpose.setTrack keepInOctave) folds, so that what goes into a note can differ from the part’s transpose. A part whose notes can’t hold its velocity (which playback adds after the track’s MIDI modifiers compress the notes’ velocities and after a note’s velocity variance) keeps it. Each setting makes a part of its own, on a lane where neither another new part nor a part that stays overlaps it. The copied notes get new ids, so play probability, velocity variance and the track’s random MIDI modifier values draw anew. Returns the tracks it added, the parts it added (parts), changed and removed.

Arguments:

Result:

midi_capture

Engine command midi.capture.

What instruments played since the last call, at most 4096 MIDI 1.0 messages, oldest first, each with its instrument track’s channel, its frame position on the audio device and its bytes: the events of the track’s parts, of the MIDI tracks routed to it and what midi.inject played into them, with controller automation and the note-offs of a stop. A program change with a bank comes as bank select MSB and LSB, then the program change; SysEx isn’t captured. Per-note expression comes as MPE on the note’s channel: tuning as pitch bend over 48 semitones, pressure as channel pressure, brightness as CC 74, a note’s initial ones before its note-on; a note on a channel whose notes express one of them and that has no point of it at its start gets MPE’s initial value (a centered bend, no pressure, CC 74 at 64). dropped counts the messages that didn’t fit: while nobody reads, newer messages are dropped. start: true starts a fresh capture; it drops what was captured so far and returns nothing. Each call empties what it returns, so a repeated call doesn’t return the same messages again.

Arguments:

Result:

midi_clearRetrospective

Engine command midi.clearRetrospective.

Empties the retrospective buffer of a MIDI or instrument track, or without track every buffer, also that of all MIDI inputs (midi.insertRetrospective allInputs).

Arguments:

midi_deleteContinuousControllers

Engine command midi.deleteContinuousControllers.

Removes the control changes of continuous controllers. Bank select, data entry, the switches 64-69 (such as the sustain pedal), data increment and decrement, NRPN, RPN and channel mode messages stay. Works on the MIDI parts in parts. Pattern events (pattern.add) play their own controllers too, and the function changes them. Returns the parts it changed.

Arguments:

Result:

midi_deleteControllers

Engine command midi.deleteControllers.

Removes control changes, pitch bend, channel and poly pressure; program changes and SysEx stay. Works on the MIDI parts in parts. Pattern events (pattern.add) play their own controllers too, and the function changes them. Returns the parts it changed.

Arguments:

Result:

midi_deleteDoubles

Engine command midi.deleteDoubles.

Of notes with the same pitch, channel and position, keeps the longest (the first added on a tie). Works on the MIDI parts in parts; notes limits it to these notes of the parts. Pattern events (pattern.add), which play their pattern’s steps, stay as they are. Returns the parts it changed.

Arguments:

Result:

midi_deleteNotes

Engine command midi.deleteNotes.

Deletes notes shorter than minimumLength (ticks) or softer than minimumVelocity (0-1); at least one is required. removeWhen both deletes only notes below both minimums (default: either). Works on the MIDI parts in parts; notes limits it to these notes of the parts. Pattern events (pattern.add), which play their pattern’s steps, stay as they are. Returns the parts it changed.

Arguments:

Result:

midi_deleteOverlaps

Engine command midi.deleteOverlaps.

Shortens notes so that none still sounds when the next one on its channel starts: in mode mono the next one of the same pitch, in mode poly of any pitch. Notes that start together don’t overlap. Works on the MIDI parts in parts; notes limits it to these notes of the parts. Pattern events (pattern.add), which play their pattern’s steps, stay as they are. Returns the parts it changed.

Arguments:

Result:

midi_dissolve

Engine command midi.dissolve.

Dissolves MIDI parts by MIDI channel or by pitch (by: channel or pitch): for each channel or pitch found in the parts of a track, the events of that channel or pitch are copied into parts at the same place, and the parts are muted. to tracks (the default) puts them on a new MIDI track after the track, named after it and the channel or pitch (middle C, 60, is C3) and routed to the same instrument; to lanes on a new lane of the track, below the lanes its parts are on, named after the part and the channel or pitch. Events of no channel or pitch (SysEx by channel, everything but notes and poly pressure by pitch) go with the first new part of their part; a part with nothing to separate stays as it is. New parts keep the part’s mute, transpose, velocity, root key, Global Transpose setting and color; their events get new ids, so play probability and velocity variance draw anew. New tracks get the color track.add gives tracks without one and the track’s MIDI modifiers (channel.set modifiers), so that the new parts play as the part did, and a MIDI channel: by channel each the channel it holds, on which it plays even where the track was set to one channel, by pitch the track’s (channel.set midiChannel). optimize (to tracks only) shortens the new parts to the bars their events play in. Returns the tracks it added, the parts it added (parts), changed and removed.

Arguments:

Result:

midi_extractAutomation

Engine command midi.extractAutomation.

Moves the continuous controllers of MIDI parts (as midi.deleteContinuousControllers takes them) into controller automation lanes of their tracks, one per controller and MIDI channel: each event becomes a step point where it plays, its value 0 to 1. A lane the track already has loses its points in the part’s range first, except those an earlier part of the call added, and reads from then on. A shared copy leaves its copies, which keep their controllers; all its events get new ids, so the play probability, velocity variance and random MIDI modifier values of its notes draw anew. Pitch bend, pressure, switches such as the sustain pedal, events past a part’s end and muted parts stay. Returns the parts it changed, the lanes it added (lanes) and the lanes it changed.

Arguments:

Result:

midi_findByRules

Engine command midi.findByRules. Read-only.

Finds the events of MIDI parts that rule editor rules’ filters find, as the select function does, and changes nothing: the notes (all of them, or of those in notes) and, without notes, the controllers, pressure, pitch bend and program changes. rules: filters, each {open, target, condition, parameter1, parameter2, close, join} (target position, length, subtype, mainValue, channel, type or secondaryValue; condition equal, unequal, bigger, biggerOrEqual, less, lessOrEqual, insideRange, outsideRange or noteIsEqualTo; open and close brackets 0 to 3, which must match and nest at most 3 deep; join and or or to the next line, and binding more tightly than or), function (delete, transform, insert, insertExclusive or select) and actions, each {target, operation, parameter1, parameter2} (operation add, subtract, multiplyBy, divideBy, roundBy, setRandom, setFixed, setRelativeRandom, useSubtype, useMainValue, mirror, transposeToScale or addLength), applied in order. Values are MIDI 1.0’s, channels 1 to 16, positions and lengths in ticks of 480 to a quarter note from the project’s start; the type’s parameter1 is note, polyPressure, controller, program, aftertouch or pitchBend, and transposeToScale’s parameter2 a scale type, its parameter1 the root (0 is C). Subtype and main value are a note’s pitch and velocity, poly pressure’s pitch and pressure, a controller’s number and value, a program change’s program, aftertouch’s pressure (subtype) and pitch bend’s low and high 7 bits; the secondary value is a note’s note-off velocity. preset names a preset instead of rules. Returns the notes and controllers found, by id.

Arguments:

Result:

midi_fixLengths

Engine command midi.fixLengths.

Sets the length of notes, in ticks. Works on the MIDI parts in parts; notes limits it to these notes of the parts. Pattern events (pattern.add), which play their pattern’s steps, stay as they are. Returns the parts it changed.

Arguments:

Result:

midi_fixVelocities

Engine command midi.fixVelocities.

Sets the velocity of notes, 0-1. Works on the MIDI parts in parts; notes limits it to these notes of the parts. Pattern events (pattern.add), which play their pattern’s steps, stay as they are. Returns the parts it changed.

Arguments:

Result:

midi_getRetrospective

Engine command midi.getRetrospective. Read-only.

What the retrospective buffer of a MIDI or instrument track holds (reference manual pp. 353-355): events, how many input events it kept, and cycleLaps, from how many cycle laps of playback its input came, as midi.insertRetrospective with cycle counts them: Insert as Cycle Recording needs two or more (p. 355). A locate back during playback starts no lap, nor does a start of playback after a stop unless both passes played in cycle mode.

Arguments:

Result:

midi_inject

Engine command midi.inject.

Plays MIDI 1.0 channel messages into a MIDI or instrument track’s channel as if they came from the track’s MIDI input: the track sends them on to its instrument, before the events of its parts, also while the transport stands. bytes: a status byte from 0x80 to 0xEF and its data bytes. position: the message’s frame on the audio device, as audio.capture and midi.monitor count them; messages for frames the device has processed already play at the start of its next block, those for one frame in the order they came. They wait until the device processes their block, at most 4096 at a time, and are dropped when the device changes; a call whose messages don’t all fit fails and injects none. drumSounds: on a track with a drum map, the notes’ keys are drum sounds’ pitches, not I-notes: they play their sounds as the track’s notes do but are neither recorded nor kept for midi.insertRetrospective (the drum editor auditions sounds so; reference manual p. 1236). direct: the messages go straight to the track’s instrument as they are, past its drum map, Live Input, its input transformer, its MIDI modifiers and its MIDI effects, and aren’t recorded either (the drum machine panel plays a pad so, p. 942); with drumSounds too, no drum map maps their keys, but the notes reach the instrument marked as drum sounds’ pitches. mpe: the messages play through this MPE input setup (midi.setPort mpe; what it leaves out has its default), as a MIDI input port with it plays them: on the notes’ channels the messages of the setup’s dimensions reach the track as its notes’ per-note expression (docs/features/note-expression.md). The track keeps the state of those channels from one call to the next while the setup stays. direct and mpe together are refused. midi.capture returns what instruments played.

Arguments:

midi_insertRetrospective

Engine command midi.insertRetrospective.

Retrospective recording (reference manual pp. 353-355): inserts what the MIDI or instrument track’s MIDI input played while it didn’t record, which its retrospective buffer kept (at most the user setting midi.retrospectiveEvents, by default 10000 events), as one MIDI part, through recording.add with the new parts mode and the user settings midi.snapPartsToBars and midi.recordFilter. What came during playback goes where it played; what came in stop mode goes at the project cursor, with its timing; a note held across a cycle lap ends at the right locator. Input after an insert starts the buffer afresh (a failed insert keeps it), and so does input in stop mode while the buffer holds input in stop mode, when it comes over 30 s after the last input, from playback or not. On the next audio device, input in stop mode leaves out the earlier devices’ input in stop mode, whose timing can’t be placed against it, and keeps the input during playback. It is no recording of the chord track: it makes no chord events. cycle: Insert as Cycle Recording (p. 355): only the input from playback, as stacked parts on lanes of their own, one per cycle lap, all but the last muted (recording.add’s cycleMode stacked); laps after the first start at the left locator, and those playback left end at the right one, as the locators were when the lap played. Each start of playback in cycle mode after a stop in cycle mode begins a lap too, where it starts, and the lap before it ends where playback stopped. It needs input from at least two laps. allInputs: Insert from All MIDI Inputs (p. 354): inserts into the track what came in at all MIDI inputs, which a buffer of its own keeps in the same way, whatever the tracks’ MIDI inputs, monitor and record enable. Returns what recording.add returns.

Arguments:

Result:

midi_invert

Engine command midi.invert.

Mirrors notes in time: each one starts where its mirror image ends. Without notes, controllers with a value that holds (continuous controllers, the switches 64-69, pitch bend and pressure) play their values backwards, each held as long as before, and return to their last value where the range ends, or on the part’s last tick if the range reaches its end; program changes, SysEx, bank select, data entry, NRPN, RPN and channel mode messages stay in place. Works on the MIDI parts in parts; notes limits it to these notes of the parts. Pattern events (pattern.add), which play their pattern’s steps, stay as they are. Returns the parts it changed.

Arguments:

Result:

midi_keyboard

Engine command midi.keyboard.

Plays MIDI 1.0 channel messages from the on-screen keyboard, one of all MIDI inputs: they arrive now, as a MIDI input port’s do, and the audio device places them in its next block. The MIDI and instrument tracks set to all MIDI inputs play them while they monitor or are record-enabled (MIDI thru), and the record-enabled ones record them. bytes: a status byte from 0x80 to 0xEF and its data bytes. The UI’s on-screen keyboard window plays its notes through this. With chordPads they are the chord pads’ notes instead (chordPads.trigger plays through this), of player (0 to 7, the chord pads’ player whose voicings they are): they play into the tracks whose MIDI input is the chord pads, and with Chord Pad Output Mode on (chordPads.set outputMode) into those of all MIDI inputs too. If the input waiting for the audio device has no room left, the call fails and says how many of its messages were played.

Arguments:

midi_legato

Engine command midi.legato.

Extends notes to the start of the next note on their MIDI channel, plus overlap in ticks (negative: a gap; default 0). With betweenSelected, to the next of the given notes. The last notes keep their length. Works on the MIDI parts in parts; notes limits it to these notes of the parts. Pattern events (pattern.add), which play their pattern’s steps, stay as they are. Returns the parts it changed.

Arguments:

Result:

midi_merge

Engine command midi.merge.

Merges the notes and controllers that start between start and end (project samples, like the locators, compared in samples as playback does) on the MIDI and instrument tracks in tracks into a new part on the destination track from start, or from the first merged event if that is earlier, to end, named name (default: the track’s name). Without tracks, the MIDI and instrument tracks that play, by playback’s solo and mute rules: neither their channel nor one it plays into is muted, silenced by a solo or on a disabled track (sends aren’t followed); it refuses if none does. Muted parts are left out. Notes keep their length, cut where their part ends, and get their parts’ transpose and velocity as playback applies them, after their tracks’ drum maps and the chord track, so they are written as played; a destination with a drum map or following the chord track gets a pitch that plays them, or if none does what played, which it then maps. Notes and controllers are written on the MIDI channel they played on: a drum sound’s own, else their track’s MIDI channel (channel.set midiChannel), else their own; a destination set to a MIDI channel plays every channel on it, so there they keep their own. The new part gets the root key and Global Transpose setting (midiPart.set rootKey and globalTranspose) the parts its notes come from share, or, when they differ, the project root key and follow; each note is written as it played, with its part’s global transpose, less the new part’s where it lands, so that it keeps the pitch it played with. A part that follows global transpose plays its transpose in the sum that Keep Transpose in Octave Range (transpose.setTrack keepInOctave) folds, so that what goes into a note can differ from the part’s transpose. includeInserts also plays their tracks’ MIDI modifiers into them (channel.set modifiers, with the random values playback draws, their note ranges on the pitch that plays, before the new part’s global transpose comes off), leaving out notes they filter out or move out of the range; without it the modifiers stay on the track and play after the stored pitch, so only the difference of the two global transposes goes into a note. includeInserts also plays the notes of each track through its MIDI insert effects below the divider (channel.set midiInserts), and includeSends through each of its MIDI send effects (midiSends), before the modifiers and the inserts with pre, else after them, adding what they play; a send to another instrument track only where that track plays, and without includeInserts the sends get the notes without the modifiers. The effects run from the first note in the range on, with the slots’ values and the tempo map, so that they play the same every time, with the notes’ per-note expression played into them as the sequencer sends it. What they play is written as it played, with the expression that reaches each note and the attributes of the note whose note-on played it, less the new part’s global transpose, or as it played in an Independent part of its own where that takes a pitch beyond 0-127; the own notes of a track whose notes no insert plays are written as those of a track without effects. What a part’s notes can’t hold stays on a new part of its own: a pitch that plays and that the new part’s global transpose or the part’s transpose takes beyond 0-127 (with includeInserts in an Independent part as it played, without in a part with the part’s transpose and root key and Global Transpose setting, where the destination’s modifiers bring it back; one they don’t plays nowhere and is left out), and the part’s velocity where a note has velocity variance, which playback applies before it (with includeInserts only where the tracks’ modifiers play every note of the part alike with the part’s velocity added after them, else it goes into the notes), or without includeInserts where the destination’s modifiers compress the velocity first. The first new part, with the controllers, is on the first lane: the one with the shared setting, else the one of the earliest source part; the others, in the order of their earliest source parts and with the articulation events only, on new lanes below the destination’s parts; a part of its own that no note goes into is left out. Without destination a new MIDI track is added at the end, routed to the instrument of the first track merged, with the articulation map of the first merged track that has one and the color track.add gives tracks without one. eraseDestination first removes the destination’s parts that lie between start and end, and the events of its other parts that start there, which leave their shared copies for it: their notes get new ids, so play probability, velocity variance and random MIDI modifier values draw anew. includeChase adds the last value of every controller and program before start at the new part’s start. Either way the new part starts with the directions of the tracks’ articulation maps in effect at start, and each part that starts after start with a reset of each group of its track’s map in which a direction is in effect there, so that the notes play the same sound slots; every new part gets these, as playback resolves directions per part. The directions of several tracks with maps share the new part’s one lane, so they can’t all keep their slots: one track’s direction also selects the other tracks’ slots, and a reset where another track’s part starts ends it. Returns the tracks it added, the parts it added (parts), changed and removed.

Arguments:

Result:

midi_monitor

Engine command midi.monitor.

The MIDI input received since the last call from every open input, at most 4096 messages, each with its port, its frame position on the audio device and its bytes. dropped counts what didn’t fit: while nobody reads, newer messages are dropped. start: true starts afresh; it drops what was received so far and returns nothing. Each call empties what it returns. Input reaches the monitor while an audio device processes blocks, which places it in time.

Arguments:

Result:

midi_oNoteConversion

Engine command midi.oNoteConversion.

O-Note Conversion (reference manual p. 1240): gives the notes of a track with a drum map their sound’s O-note as their pitch (drumMap.set), so that they play the same sounds without the map. Notes of tracks without one stay. Works on the MIDI parts in parts; notes limits it to these notes of the parts. Pattern events (pattern.add), which play their pattern’s steps, stay as they are. Returns the parts it changed.

Arguments:

Result:

midi_padListen

Engine command midi.padListen.

Whether every MIDI input port’s notes and controls (aftertouch, pitch bend and controllers) also go to the chord pads as they play (chordPads.listen, which uses this, and chordPads.remoteInput), with the pads’ remote keys left alone meanwhile, but for their note-offs, which end what they play.

Arguments:

midi_pedalToNoteLength

Engine command midi.pedalToNoteLength.

Extends notes that end while the sustain pedal (controller 64) on their channel is down to where it is released (the part’s end if never), but not past the next note of the same pitch, and removes the sustain pedal events of their channels. Works on the MIDI parts in parts; notes limits it to these notes of the parts. Pattern events (pattern.add), which play their pattern’s steps, stay as they are. Returns the parts it changed.

Arguments:

Result:

midi_ports

Engine command midi.ports. Read-only.

The MIDI ports of every MIDI backend, inputs and outputs: backend, id, system name, the name they are shown as (showAs), whether they are visible, whether an input belongs to all MIDI inputs, an input’s MPE input (mpe, as midi.setPort takes it), for an input that is a known MPE device the device’s name (mpeDevice), whether the port is present now and open, and whether the system speaks MIDI 2.0 with it. Ports that were unplugged stay listed with their settings, not present.

Result:

midi_refresh

Engine command midi.refresh.

Lists the MIDI ports again: opens new and returning visible inputs, opens the outputs that something plays to once their port is there, closes the outputs whose port went and marks unplugged ports as not present. Runs on its own when a backend reports that its ports changed.

Result:

midi_reset

Engine command midi.reset.

MIDI > Reset (reference manual p. 351), the panic button: sends All Notes Off (CC 123) and Reset All Controllers (CC 121) on all 16 MIDI channels to every open MIDI output: each port that a routing named since the engine started (channel.set midiPort, a MIDI device’s output, the metronome’s MIDI click) and that is present, now. Instruments inside GNUbase aren’t reset.

midi_restrictPolyphony

Engine command midi.restrictPolyphony.

Shortens notes so that at most voices (1 or more) sound at once on each MIDI channel: a new note ends the one that started first, the lowest of notes that started together. A note that would lose its whole length is deleted. Works on the MIDI parts in parts; notes limits it to these notes of the parts. Pattern events (pattern.add), which play their pattern’s steps, stay as they are. Returns the parts it changed.

Arguments:

Result:

midi_reverse

Engine command midi.reverse.

Reverses the order in which notes start, keeping their lengths: the last one starts where the first one started. Without notes, controllers with a value that holds (continuous controllers, the switches 64-69, pitch bend and pressure) play their values backwards, each held as long as before, and return to their last value where the range ends, or on the part’s last tick if the range reaches its end; program changes, SysEx, bank select, data entry, NRPN, RPN and channel mode messages stay in place. Works on the MIDI parts in parts; notes limits it to these notes of the parts. Pattern events (pattern.add), which play their pattern’s steps, stay as they are. Returns the parts it changed.

Arguments:

Result:

midi_setInputTransformer

Engine command midi.setInputTransformer.

Sets the project input transformer’s modules, which the MIDI and instrument tracks whose input transformer is in project mode (channel.set inputTransformer) apply to what their MIDI input plays: modules, an array of at most four, each {on, rules} with what changes (the first given changes module 1, and so on). The modules that are on apply in order, before the track plays and records; their functions are delete (which filters events out), transform, insert and insertExclusive. Live events have no position or length, so rules for those are refused. rules: filters, each {open, target, condition, parameter1, parameter2, close, join} (target position, length, subtype, mainValue, channel, type or secondaryValue; condition equal, unequal, bigger, biggerOrEqual, less, lessOrEqual, insideRange, outsideRange or noteIsEqualTo; open and close brackets 0 to 3, which must match and nest at most 3 deep; join and or or to the next line, and binding more tightly than or), function (delete, transform, insert, insertExclusive or select) and actions, each {target, operation, parameter1, parameter2} (operation add, subtract, multiplyBy, divideBy, roundBy, setRandom, setFixed, setRelativeRandom, useSubtype, useMainValue, mirror, transposeToScale or addLength), applied in order. Values are MIDI 1.0’s, channels 1 to 16, positions and lengths in ticks of 480 to a quarter note from the project’s start; the type’s parameter1 is note, polyPressure, controller, program, aftertouch or pitchBend, and transposeToScale’s parameter2 a scale type, its parameter1 the root (0 is C). Subtype and main value are a note’s pitch and velocity, poly pressure’s pitch and pressure, a controller’s number and value, a program change’s program, aftertouch’s pressure (subtype) and pitch bend’s low and high 7 bits; the secondary value is a note’s note-off velocity. Returns the modules, as project.get has them in inputTransformer.

Arguments:

Result:

midi_setPort

Engine command midi.setPort.

Changes a MIDI port’s settings. The port is given by its id, whether it is an input, and its backend if ids repeat. showAs: the name it is shown as; empty shows the system name. visible: hidden inputs are closed. inAllInputs, for inputs: whether tracks set to all MIDI inputs receive it. mpe, for inputs: its MPE input (reference manual pp. 1295-1298), whose members the call leaves out stay as they were: mode off, lower (MPE’s lower zone: master channel 1, the notes on channels 2 and up), upper (its upper zone: master channel 16, the notes on 15 and down), rotation (channel rotation: the notes on the used channels from firstChannel on, up to 16, no master channel) or both (both zones at once); channels, the notes’ channels (a zone has at most 15), with both the lower zone’s; upperChannels, with both the upper zone’s (at most 13; the lower zone gets at most the rest of 14); pitchRange, the semitones of the notes’ pitch bend; tuning (Use for Tuning), whether the notes’ pitch bend is their tuning; initialX and initialY (Send Initial Value), what each note’s X and Y start at: off, the channel’s latest value, or center, min or max (Y only); xMessage, pressureMessage and yMessage (MIDI Message), the message of each dimension: pitchBend, aftertouch (channel pressure) or cc0 to cc127, by default pitchBend, aftertouch and cc74; xExpression, pressureExpression and yExpression (Note Expression Assignment), the note expression each plays (volume, pan, tuning, vibrato, expression, brightness, pressure), polyPressure (MIDI PolyPressure: the notes’ poly pressure) or none, which passes the message as it is, by default none (X), pressure and brightness; with tuning X plays tuning over its own assignment, which it plays again without it, and xExpression tuning turns tuning on (with tuning false it is rejected), keeping X’s own. On the notes’ channels the dimensions’ messages are the expression of the notes that sound there, as per-note expression, live and in recordings (docs/features/note-expression.md). An input whose name is a known MPE device’s (mpeDevice in midi.ports) has the device’s preset settings until a call changes them. The settings are kept in the user setting midi.portSettings, so they come back with the port, also after a restart. Returns the port. If that changes the setting, sends midi.ports as the event midi.changed, as settings.set and settings.reset on midi.portSettings do.

Arguments:

midi_strum

Engine command midi.strum.

Spreads the notes of each chord in time, so that a block chord sounds strummed. A chord is the notes that start within window ticks (default one tick of 480 to a quarter note) of the first of them, on one MIDI channel; single notes stay where they are. spacing (required) is the time between successive notes of a chord: a note value such as 1/16, or a positive number of ticks. The notes’ starts move by their rank in the chord times spacing, and their ends stay, so a strummed chord still ends together; a note that would end up shorter than minimumLength ticks (default 1) keeps that minimum. direction up (the default) starts at the lowest note of each chord, down at the highest, alternating one chord up and the next down, in the order the chords start. random (0 to 1, default 0) adds up to that part of spacing to each note’s offset, drawn from seed (an integer, default 0: the part’s and the notes’ ids), so the same seed gives the same result. Results are in ticks, whatever the tempo, sample rate or block size. Works on the MIDI parts in parts; notes limits it to these notes of the parts. Pattern events (pattern.add), which play their pattern’s steps, stay as they are. Returns the parts it changed.

Arguments:

Result:

midi_thinOut

Engine command midi.thinOut.

Thins out continuous controllers, pitch bend and pressure, per controller and channel: removes events that repeat the value before them, and events closer than minimumDistance ticks (default a 64th note) to the event kept before them, unless the curve turns there, the next event is at least minimumDistance away or it is the last one. Bank select, data entry, the switches 64-69, NRPN, RPN and channel mode messages stay, like program changes and SysEx. Works on the MIDI parts in parts. Pattern events (pattern.add) play their own controllers too, and the function changes them. Returns the parts it changed.

Arguments:

Result:

midi_transpose

Engine command midi.transpose.

Transposes the notes of MIDI parts by semitones (-127 to 127). fromScale and toScale (a root 0-11, 0 is C, and a scale type) correct the notes from one scale to another: a note moves from its degree in fromScale to the same degree in toScale, and notes outside fromScale, or all of them when the scales have a different number of degrees, go to the closest note of toScale. lowest and highest (0-127) keep notes in range: a note that leaves it moves by octaves into it, or to the limit it crossed if no octave fits. Notes stay within 0-127 by octaves. Poly pressure follows when no notes are given. Works on the MIDI parts in parts; notes limits it to these notes of the parts. Pattern events (pattern.add), which play their pattern’s steps, stay as they are. Returns the parts it changed.

Arguments:

Result:

midi_velocity

Engine command midi.velocity.

Changes the velocity of notes (0-1) by type: add adds amount (-1 to 1); compress multiplies by ratio (0 to 3), below 1 compressing the differences between velocities, above 1 expanding them; limit keeps velocities from lower to upper (0-1); fixed sets them to amount (0-1); variance lowers each note by a random part of its velocity, up to variance (0-1), the same part for a note each time. Velocities stay within 0-1. Works on the MIDI parts in parts; notes limits it to these notes of the parts. Pattern events (pattern.add), which play their pattern’s steps, stay as they are. Returns the parts it changed.

Arguments:

Result:

mixdown

mixdown_export

Engine command mixdown.export.

Exports an audio mixdown (reference manual pp. 1479-1502): renders the range from start to end, in project samples (default: the left to the right locator), offline as transport.locate, transport.play and audio.render would, without cycle, pre-roll and click, and writes what each of channels (output busses and audio, instrument, group and effect channels, after their fader and panner; default: the main mix) puts out into a file of its own in folder, which is created if needed. The file is called name, or name - for several channels, with the format's extension. format: wav (the default), aiff or flac. sampleFormat: int16, int24 (the default), int32, float32 or float64; AIFF takes the integer ones, FLAC int16 and int24. channelMode: interleaved (the default) keeps all speakers in one file; split writes a mono file per speaker, suffixed -L, -R, -LFE and so on, and each file result includes its speaker. mono sums stereo at the project's pan law center gain, averages all surround speakers including LFE, and leaves mono unchanged. leftRight extracts only L and R into a stereo file, refusing sources without those speakers. Modes use the selected point's format, after its panner when applicable, before rate conversion, normalization and dither; split files are normalized individually. sampleRate: the file's, converted from the project's (the default). dither: TPDF dither for int16 and int24. normalize: the file's peak in dBFS (-60 to 0). conflicts: unique (the default) adds a number to a name that is taken, overwrite replaces the file. broadcastWave gives WAV files a Broadcast Wave chunk: its description, author and reference default to the preferences audio.broadcastDescription, audio.broadcastAuthor and audio.broadcastReference and are cut to 256, 32 and 32 bytes; it has the date and time of the export and as its time reference where the file starts plus the project's start time. point renders channels from inside their strip instead of after the fader and panner (output, the default), in the channel's format, as render in place and freeze do: source is what plays on the channel, before its pre section and plugin slots; inserts is after the slots, before the strip's other sections; strip is after those, before the fader; panner is after the panner, in the format it makes, without the fader and the mute. tail renders up to that many seconds (0 to 60) after end, ending after the last sample a 24-bit file doesn't hold as silence. The transport and its settings are as before afterwards; a device continues running, and separate plugin instances render in offline mode. Refused while the device runs at another sample rate than the project. Returns the files written, each with its channel, name, absolute path and frames in the job result. Returns a cancellable job immediately; progress and completion are job.progress and job.finished events. Rendering uses a private starting snapshot and leaves playback running.

Arguments:

Result:

mixdown_quickExport

Engine command mixdown.quickExport.

Quick audio export (reference manual pp. 1478-1479): writes the main mix of the whole project, from the start of the first event to the end of the last, with the tail of the effects after it (up to 30 s, to the last sample a 24-bit file doesn’t hold as silence), to the WAV file at path with 24-bit samples at the project’s sample rate, as mixdown.export does, with a private render that leaves the live graph, plugins and transport as they are. Refused for a project without events, while recording, without an audio device, and while the device runs at another sample rate than the project. An existing file is replaced. Returns a cancellable job immediately; progress and completion are job.progress and job.finished events, and the job’s result is the file’s absolute path and frames. The job fails if a plugin that plays or is still loading live can’t be made for the render.

Arguments:

Result:

mixer

mixer_get

Engine command mixer.get. Read-only.

What a mixer hides. mixer: lower (the mixer in the project window’s lower zone) or window1 to window4 (the mixer windows). hidden: the channels and busses (by id) it doesn’t show. hiddenTypes: the channel types its filter hides: input, audio, instrument, midi, group (also folders’ group channels), effect, vca and output.

Arguments:

Result:

mixer_redoVisibility

Engine command mixer.redoVisibility.

Redo Visibility Change (reference manual p. 457): the mixer’s view goes forward to the one mixer.undoVisibility last went back from, until a new visibility change. Returns the view, unchanged when there is none, and emits mixer.changed when it changes.

Arguments:

Result:

mixer_set

Engine command mixer.set.

Changes what a mixer hides; what isn’t given stays. mixer: lower (the mixer in the project window’s lower zone) or window1 to window4 (the mixer windows). hidden: the channels and busses (by id) it doesn’t show. hiddenTypes: the channel types its filter hides: input, audio, instrument, midi, group (also folders’ group channels), effect, vca and output. Each mixer has its own; they are settings, not undo steps, saved with the project. Emits mixer.changed with the mixer’s view.

Arguments:

Result:

mixer_undoVisibility

Engine command mixer.undoVisibility.

Undo Visibility Change (reference manual p. 457): the mixer’s view goes back to the one before its last visibility change (mixer.set changing hidden or hiddenTypes, or the track list changing the channels of a mixer that follows it), up to 10 changes back. Each mixer has its own; not kept in the file. Returns the view, unchanged when there is none, and emits mixer.changed when it changes.

Arguments:

Result:

noteExpression

noteExpression_convert

Engine command noteExpression.convert.

Convert to Note Expression (reference manual p. 1316): the controller events of a MIDI part whose message its track’s note expression setup assigns to an expression (noteExpression.set inputs: a controller, pitch bend or aftertouch) become points of that expression in the notes that sound at their position on their MIDI channel, every such note getting the same one, the event’s value over the expression’s range, and are removed from the part. Events that no note sounds at stay. Refuses a part that doesn’t exist. Emits note.changed and controller.removed; with nothing to convert it changes nothing. Returns the notes that got points.

Arguments:

Result:

noteExpression_loadInputs

Engine command noteExpression.loadInputs.

Load Input Assignment (reference manual pp. 1302, 1304): a file that noteExpression.saveInputs saved gives a MIDI or instrument track its input assignments, in place of the ones it has; its bypass, hidden expressions and colors stay. Values out of range load clamped, unknown messages as none and unknown expressions not at all, as in a project file. Refuses a file that can’t be read or isn’t one, changing nothing. Emits channel.changed. Returns the track and its setup.

Arguments:

Result:

noteExpression_saveInputs

Engine command noteExpression.saveInputs.

Save Input Assignment (reference manual pp. 1302, 1304): saves a MIDI or instrument track’s input assignments (noteExpression.set inputs) as a file at path, which noteExpression.loadInputs reads, for later use with the same MIDI device: JSON {inputs}, as project.get lists them; the inspector names it .neinput. Changes nothing in the project.

Arguments:

noteExpression_set

Engine command noteExpression.set.

Changes a MIDI or instrument track’s note expression setup, as the inspector’s Note Expression section does (reference manual pp. 1300-1302): bypass plays the track’s notes without their expression points, and each of inputs sets an expression’s input assignment, the MIDI message mapped to it (input: none, pitchBend, aftertouch or cc0 to cc127, as midi.setPort names them) and the range of the expression’s values that it goes over, min and max in the expression’s unit and range (see note.add), min above max for a reversed one. hidden lists the expressions the inspector’s visibility hides from the key editor’s note expression editor and its notes (all of them visible by default). colors gives expressions their Parameter Colors (p. 1301), #rrggbb, which the key editor draws their points in, or an empty color for the theme’s. What a call leaves out stays as it was. The setup belongs to the track and is saved with the project; project.get lists it as the channel’s noteExpression, whose inputs are the expressions that have a message or a range other than the whole one. Refuses, changing nothing, a track that is no MIDI or instrument track, unknown expressions and messages and values out of range. Emits channel.changed, and noteExpression.changed with the track and its setup when hidden or colors change. Returns the track and its setup.

Arguments:

Result:

note

note_add

Engine command note.add.

Adds notes to a MIDI part: position from the part’s start and length in ticks, each at most the longest project’s end (see audioEvent.add), pitch 0-127, velocity 0-1, release (note-off) velocity 0-1 (default 0.5), MIDI channel 0-15 (default 0), play probability 0-1, the chance that the note plays (default 1), and velocity variance -1 to 1, the share by which playback raises (positive) or lowers (negative) its velocity at most (default 0). articulations are the attributes of the track’s articulation map (articulationMap.add) that the note has, by name, and mutedArticulations those of them that are muted, as the mute tool mutes them: they select no sound slot. expressions are its per-note expression: points {type, position, value}, position in ticks from the note’s start (at most the longest project’s end, also past the note’s end), type volume (a linear gain 0-4), pan (0-1, 0.5 the center), tuning (semitones, -120 to 120), vibrato, expression, brightness or pressure (0-1). MIDI kinds cc0-cc127, pitchBend, aftertouch and polyPressure take values 0-1, with pitchBend centered at 0.5, and play as MIDI on the note’s channel.

Arguments:

Result:

note_apply

Engine command note.apply.

Makes a MIDI part’s notes play as they would (reference manual pp. 1171, 1173): what probability removes the notes that playback leaves out by their play probability and gives the others a probability of 1; velocityVariance gives notes the velocity playback varies them to and a variance of 0. Playback’s choices are fixed for each note, so this keeps what plays. notes: the notes, by default all of the part’s. Returns the notes changed and the ids of those removed.

Arguments:

Result:

note_chord

Engine command note.chord. Read-only.

The chord that notes of a MIDI part make, in any octave and order (arpeggiated notes too), as the key editor’s Chord Editing section shows it: chord {root, the pitch class (0 is C), type, as note.voicing takes it, and name, such as Cm7}, or null if they make none of the chord types exactly. Of several roots that fit, the lowest note’s.

Arguments:

Result:

note_copy

Engine command note.copy.

Copies notes of MIDI parts to the lane clipboard, so that controller.paste on a controller lane pastes them as modulation, one event at each note’s position with its velocity as the value (reference manual p. 1180). copies: {part, notes} each, the notes by id and default all of the part’s. The clipboard holds whatever was copied last: these notes, or the controller events controller.copy copied. Changes nothing in the project. Returns how many notes it copied, which laneClipboard.changed announces.

Arguments:

Result:

note_glue

Engine command note.glue.

Glues a note of a MIDI part to a later one, as the key editor’s glue tool does: note then lasts to the later of their ends and keeps its values, and next is removed. Its expression points go on playing: note keeps its own up to next’s start, then has next’s up to next’s end, and after a next that ends inside note its own again. Where one note’s points give way to the other’s, an expression that the first one has and the other has no point of at its start (within its first sample, as playback has it) goes back to its default, as the other note started with it: no tuning, no pressure, brightness 0.5, volume 1 and pan 0.5; vibrato and expression keep their value. A point there whose value already plays is left out.

Arguments:

Result:

note_move

Engine command note.move.

Moves notes of a MIDI part to another part, as dragging them from one in-place editor to another does (reference manual p. 1261): each note keeps its id and every field but its position and pitch. ticks moves the notes on the project’s timeline, to at most the longest project’s end (see audioEvent.add), and semitones in pitch; the command converts the timeline shift to the target part’s own positions, wherever the two parts start on the timeline and whatever their time bases. The source part and the target part may be the same. The move is one undo step, and the shared copies of both parts follow it. A note may reach past the target part’s end, as note.add and note.set allow. Refuses, changing nothing, a part or a note that doesn’t exist, a note that would land on the timeline before the target part’s start or outside the pitches 0 to 127, and a move between shared copies of one group, which must stay equal. Emits note.removed for the source part and note.added for the target part. controllers names controller events of the source part that go along, as the key editor moves the selected ones with the notes (p. 1188): each keeps its id and every field, ticks shifts it and semitones doesn’t, and one that would land before the target part’s start lands at its start; a controller event that doesn’t exist refuses the move. notes may then be empty; the undo step is “Move notes” also then. Emits controller.removed and controller.added for them, and the note events only when notes names any. Returns the moved notes and controller events, as the target part has them.

Arguments:

Result:

note_remove

Engine command note.remove.

Removes notes from a MIDI part.

Arguments:

note_replaceExpression

Engine command note.replaceExpression.

Replaces the points of one expression of notes of a MIDI part in a span, as the key editor’s expression editor draws or erases them: each change names a note by id, and its points of type from from to to (in ticks from the note’s start, both included) give way to the change’s points, {position, value} each, within the span and in the expression’s range (see note.add). The note’s other points stay, so an edit made before its sender saw the last one keeps that one. The points end up sorted by position, a new one after the old ones at its position. A note named twice gets both changes in order. Refuses, changing nothing, a part or a note that doesn’t exist, a span whose to is before its from and points outside it or out of range (see note.add). Changes that leave every note’s points as they were change nothing, and the project doesn’t count as modified, run on its own: in a history.transaction the transaction counts as a change. The changes are one undo step. MIDI kinds cc0-cc127, pitchBend, aftertouch and polyPressure take values 0-1, bend centered at 0.5. Returns the notes whose points changed.

Arguments:

Result:

note_set

Engine command note.set.

Changes notes of a MIDI part: each change names a note by id and gives what changes, position and length in ticks (each at most the longest project’s end, see audioEvent.add), pitch 0-127, velocity 0-1, release velocity 0-1, MIDI channel 0-15, play probability 0-1, velocity variance -1 to 1, articulations, the attributes it has, mutedArticulations, those of them that are muted (an attribute that goes is no longer muted), or expressions, which replace its expression points (see note.add). The points move with the note’s start, but for a start that moves while the end stays: then they stay where they are, and the values at the new start become its initial ones. Returns the changed notes.

Arguments:

Result:

note_split

Engine command note.split.

Splits notes of a MIDI part at a position in ticks from the part’s start, as the key editor’s split tool does: each named note that the position cuts ends there, and its rest, a new note with the same values, starts there; the others stay as they are. The expression points before the cut stay with the note, the rest starts with the values at the cut and goes on with the later points (see note.set). Both pieces lose their quantize origin, as the notes that event.split cuts with splitNotes do: quantize.reset no longer moves them. A position that cuts none of them changes nothing, and the project doesn’t count as modified. Returns the rests.

Arguments:

Result:

note_voicing

Engine command note.voicing.

Transposes notes of a MIDI part as the key editor’s Chord Editing section does (reference manual pp. 1215-1217). chord fits them to a chord type (major, minor, diminished, augmented, sus2, sus4; major7, minor7, dominant7, halfDiminished7, diminished7, minorMajor7) on the root of the chord they make, or else of the lowest note: from the lowest up, each moves to the nearest pitch of a chord tone that no lower note took since every tone last had one, down on a tie. voicing changes the voicing: invertUp moves the lowest note up by octaves until it is the highest, invertDown the highest down until it is the lowest, drop2, drop3 and drop24 move the second, the third, or the second and fourth highest notes down an octave. Give chord or voicing. Returns the notes that changed.

Arguments:

Result:

nudge

nudge_get

Engine command nudge.get. Read-only.

The project’s nudge grid: the snap grid that the nudge commands use. linkToGrid: the snap grid’s step for the nudge commands, the default (reference manual p. 62). linkToPrimaryTimeFormat: the primary time format’s, the project’s timeFormat (p. 317), at the step width that format keeps. At most one of the two is on; with both off, the nudge grid has a time format and a value of its own. format: its own time format, one of barsBeats, seconds, timecode, samples and userFrames, which the nudge grid follows only with both links off. grid: the step of its own format. grids: the step of each format, by default bar, 100ms, frame, 100samples and frame: for barsBeats bar, beat or quantize (the project’s quantize grid); for seconds 1ms, 10ms, 100ms or 1000ms; for timecode and userFrames subframe, quarterFrame, halfFrame, frame, twoFrames or second; for samples 1sample, 10samples, 100samples or 44100samples. The nudge buttons and the nudge key commands use the nudge grid, moving and resizing alike, while the mouse edits keep the snap grid (p. 258).

Result:

nudge_set

Engine command nudge.set.

Changes the project’s nudge grid; what isn’t given stays. linkToGrid: the snap grid’s step for the nudge commands, the default (reference manual p. 62). linkToPrimaryTimeFormat: the primary time format’s, the project’s timeFormat (p. 317), at the step width that format keeps. At most one of the two is on; with both off, the nudge grid has a time format and a value of its own. format: its own time format, one of barsBeats, seconds, timecode, samples and userFrames, which the nudge grid follows only with both links off. grid: the step of its own format. grids: the step of each format, by default bar, 100ms, frame, 100samples and frame: for barsBeats bar, beat or quantize (the project’s quantize grid); for seconds 1ms, 10ms, 100ms or 1000ms; for timecode and userFrames subframe, quarterFrame, halfFrame, frame, twoFrames or second; for samples 1sample, 10samples, 100samples or 44100samples. The nudge buttons and the nudge key commands use the nudge grid, moving and resizing alike, while the mouse edits keep the snap grid (p. 258). The settings are not undo steps; they are saved with the project. Emits nudge.changed.

Arguments:

Result:

parameter

parameter_get

Engine command parameter.get. Read-only.

One parameter of a channel, named by its target, as parameter.list returns it.

Arguments:

Result:

parameter_list

Engine command parameter.list. Read-only.

The automatable parameters of a channel: on channels with audio the fader’s volume (in dB, up to the project’s maxVolume), pan, panLeft and panRight (-1 to 1, see channel.set) and mute (0 off, 1 on, the channel’s mute button), and on instrument tracks the parameters of their built-in instrument (see processor.list), then on channels with audio the channel strip’s sections (targets of type strip: the pre section’s gain, phase and low and high cut, the equalizer’s bypass and bands and the gate, compressor and limiter, the values channel.set changes in pre, eq and strip; switches are 0 or 1, cut slopes and the types of EQ bands 1 and 4 stepped choices), then on MIDI and instrument tracks those of the MIDI effects in their MIDI insert and send slots, with targets of type midiEffect that name the slot (number: 0-3 the inserts, 4-7 the sends), then those of the built-in plugins in its slots, top to bottom, with targets of type plugin that name the slot. Each has its target, as automationLane.add takes it, its name, minimum, maximum, default, unit, whether it is stepped (whole numbers only), options (the names of a stepped parameter’s values from the minimum on, if it has any), its static value and text, the value as it is displayed. Automation overrides the static value while it plays. MIDI channels have only mute, which silences their notes and controllers, and their MIDI effects: their volume and pan are MIDI controllers (channel.set midiVolume and midiPan).

Arguments:

Result:

parameter_set

Engine command parameter.set.

Sets the static value of a channel’s parameter (see parameter.list), named by its target, from either value or text: the name of one of its options, or a number, optionally followed by its unit, in any case (“-6 dB”). Values beyond the range stop at its ends, and stepped parameters round to whole numbers. Volume and pan changes glide over 5 ms. A channel that gets another instrument starts with its parameters at their defaults. On a channel in a link group (linkGroup.add) a change of the fader’s volume, pan or mute or of the strip’s equalizer or dynamics goes on to its other channels as channel.set passes it on, the fader and the pan by as much as they moved and the section’s parameters likewise (a switch as it is now), unless linked is false; a plugin’s parameter in one of its slots goes on to the same slot of the others, by as much as it moved, when the group links the inserts; all in the same undo step. Returns the parameter.

Arguments:

Result:

pattern

pattern_add

Engine command pattern.add.

Adds a pattern to a MIDI or instrument track (New Pattern, p. 899): Pattern 1, 2 and so on, 16 steps of 1/16; in drum mode (the default) with lanes for a kick, a snare and closed and open hi-hats, named after the track’s drum map’s sounds (on a drum track a lane per pad that plays, named after the pad), in melodic mode without lanes. copy duplicates a pattern instead (Duplicate Pattern), on its track unless track is given. With part, the pattern is that part’s track’s and the part plays it from its start: it becomes a pattern event. Then changed by the settings given. With copy, a shorter length without lanes drops steps beyond it on lanes that follow the pattern’s length and cuts their ties at the new end. A pattern (reference manual pp. 895-937) is {id, track, name, mode, length, resolution, direction, swing, lanes}, as project.get lists the project’s patterns: mode drum (a lane per drum sound), mono or poly (melodic, a lane per pitch; mono plays one step at a time); length, the Number of Steps, 1-128 (default 16); resolution, the Step Resolution, a note value from 1/1 to 1/64 such as 1/16, 1/8T or 1/4.; direction forward, backward or alternating; swing -1 to 1, how far every second step moves, in half steps. lanes are the step lanes, {pitch, name, mute, solo, length (0: the pattern’s), resolution (null: the pattern’s), direction (forward: the pattern’s), swing (added to the pattern’s), offset (-1 to 1 steps), steps}, one per pitch; in mono mode length and resolution are the pattern’s. steps are {index (from 0), length (in steps: more ties the steps after it to it), velocity 1-127 (default 100), repeats 1-10 (sub-steps), offset -0.5 to 0.5 steps, probability 0-1, velocityVariance 0-1, gate 0.01-1 (of its length)}: one starting at each index; in mono mode one step at a time. Pattern events are MIDI parts with a pattern (midiPart.add and midiPart.set pattern), which play it from their start over and over instead of their notes, each lane on its own; their patternOffset (project.get) is how many ticks of the pattern went before their start, after a split or a start sized, so that they continue it. A pattern event on another track than its pattern’s, copied, moved or on a duplicated track, plays a copy on its own track: a track without pattern events gets copies of all the patterns of the pattern’s track (p. 936), and a copy the track has already, made from that pattern in an earlier copy or move and unchanged since, plays it again (a track’s own equal pattern doesn’t). Removing a track removes its patterns. Emits pattern.added (and midiPart.changed with part) and returns the pattern.

Arguments:

Result:

pattern_convert

Engine command pattern.convert.

Convert Pattern Event to MIDI Part (p. 937): the pattern event’s part gets the notes its pattern played in it, with each step’s probability and velocity variance, and plays them as an ordinary part from then on. Emits midiPart.changed and returns the part.

Arguments:

pattern_export

Engine command pattern.export.

Saves a track’s patterns as a pattern preset (Save Preset, p. 932) at path: a JSON file with each pattern’s mode, steps and settings, which pattern.import loads.

Arguments:

pattern_import

Engine command pattern.import.

Loads a pattern preset (Load Preset, p. 933), as pattern.export saves it, into a MIDI or instrument track: its patterns become the track’s as new patterns. Emits pattern.added for each and returns {patterns}.

Arguments:

Result:

pattern_remove

Engine command pattern.remove.

Removes a pattern and the pattern events that play it (Pattern Management, p. 899). Emits midiPart.removed for those and pattern.removed.

Arguments:

pattern_set

Engine command pattern.set.

Changes a pattern: what isn’t given stays, and lanes replace the whole list; its pattern events play the change. Switching between drum and melodic mode clears the lanes; from poly to mono mode the lowest step at each position stays, and the lanes’ own settings go (p. 913). A shorter length without lanes drops steps beyond it on lanes that follow the pattern’s length and cuts their ties at the new end. A pattern (reference manual pp. 895-937) is {id, track, name, mode, length, resolution, direction, swing, lanes}, as project.get lists the project’s patterns: mode drum (a lane per drum sound), mono or poly (melodic, a lane per pitch; mono plays one step at a time); length, the Number of Steps, 1-128 (default 16); resolution, the Step Resolution, a note value from 1/1 to 1/64 such as 1/16, 1/8T or 1/4.; direction forward, backward or alternating; swing -1 to 1, how far every second step moves, in half steps. lanes are the step lanes, {pitch, name, mute, solo, length (0: the pattern’s), resolution (null: the pattern’s), direction (forward: the pattern’s), swing (added to the pattern’s), offset (-1 to 1 steps), steps}, one per pitch; in mono mode length and resolution are the pattern’s. steps are {index (from 0), length (in steps: more ties the steps after it to it), velocity 1-127 (default 100), repeats 1-10 (sub-steps), offset -0.5 to 0.5 steps, probability 0-1, velocityVariance 0-1, gate 0.01-1 (of its length)}: one starting at each index; in mono mode one step at a time. Pattern events are MIDI parts with a pattern (midiPart.add and midiPart.set pattern), which play it from their start over and over instead of their notes, each lane on its own; their patternOffset (project.get) is how many ticks of the pattern went before their start, after a split or a start sized, so that they continue it. A pattern event on another track than its pattern’s, copied, moved or on a duplicated track, plays a copy on its own track: a track without pattern events gets copies of all the patterns of the pattern’s track (p. 936), and a copy the track has already, made from that pattern in an earlier copy or move and unchanged since, plays it again (a track’s own equal pattern doesn’t). Removing a track removes its patterns. Emits pattern.changed and returns the pattern.

Arguments:

Result:

plugin

plugin_get

Engine command plugin.get. Read-only.

One slot. A slot has its id, channel, index (0 is the top), plugin, name, bypass, active, the parameters set on its plugin (see parameter.list) and the status of its plugin in the audio engine: “loading” (being made or activated, while the audio passes it unchanged), “active”, “inactive”, “failed” (it couldn’t be made or activated), “unavailable” (this build has no such plugin) or “noDevice” (no audio device is open). A command reports the status as of the command; plugin.changed announces it when it changes.

Arguments:

Result:

plugin_insert

Engine command plugin.insert.

Puts a plugin into a slot of a channel with audio (not a MIDI channel), at index or else below the others; the slot at the index and those below it move down. A channel has at most 16 slots. The audio passes through the slots from top to bottom before the fader. plugin is a built-in effect, “builtin:" with an id from processor.list that isn't an instrument; plugins of other formats come with the plugin scan. The plugin starts with its parameters at their defaults, active and not bypassed. Emits plugin.added with the slot. Returns the slot. A slot has its id, channel, index (0 is the top), plugin, name, bypass, active, the parameters set on its plugin (see parameter.list) and the status of its plugin in the audio engine: "loading" (being made or activated, while the audio passes it unchanged), "active", "inactive", "failed" (it couldn't be made or activated), "unavailable" (this build has no such plugin) or "noDevice" (no audio device is open). A command reports the status as of the command; plugin.changed announces it when it changes.

Arguments:

Result:

plugin_list

Engine command plugin.list. Read-only.

The slots of a channel with audio, from top to bottom. A slot has its id, channel, index (0 is the top), plugin, name, bypass, active, the parameters set on its plugin (see parameter.list) and the status of its plugin in the audio engine: “loading” (being made or activated, while the audio passes it unchanged), “active”, “inactive”, “failed” (it couldn’t be made or activated), “unavailable” (this build has no such plugin) or “noDevice” (no audio device is open). A command reports the status as of the command; plugin.changed announces it when it changes.

Arguments:

Result:

plugin_move

Engine command plugin.move.

Moves a slot to index on its channel or on another channel with audio (channel); the index counts the slots without the moved one. The plugin keeps its parameters; the automation lanes of its parameters are removed when it moves to another channel. Emits channel.changed with the channel’s new order of slots; a move to another channel emits it for both channels, then plugin.changed with the slot and automationLane.removed for its lanes, in the order undo and redo do. Returns the slot.

Arguments:

Result:

plugin_remove

Engine command plugin.remove.

Removes a slot and its plugin; the slots below it move up. Emits plugin.removed with the slot’s id. Undo puts the plugin back with its parameters.

Arguments:

plugin_set

Engine command plugin.set.

Changes a slot: bypass lets the audio pass the plugin unchanged while the plugin keeps processing, so switching it doesn’t click; the audio is delayed by the plugin’s latency, so bypassing never shifts timing. active false deactivates the plugin, which stays in its slot, and the audio passes it unchanged. On a channel in a link group that links the inserts (linkGroup.add), the switches given go on to the same slot of the other channels, whatever plugin is in it, unless linked is false (reference manual p. 460). Emits plugin.changed with the slot, and for every slot it passed the change on to. Returns the slot.

Arguments:

Result:

pluginhost

pluginhost_check

Engine command pluginhost.check.

Reports the plugins that failed since the last check because their host process crashed, missed a processing deadline (reason “hung”) or broke the protocol, and emits plugin.failed for each with its instance, plugin id, process and reason. A failed plugin is bypassed and outputs silence. Also emits pluginhost.changed for each hosting mode change whose moves are done. The engine runs this on its own as soon as a failure is detected or the moves are done.

Result:

pluginhost_get

Engine command pluginhost.get. Read-only.

How plugins are grouped into plugin host processes, and the processes. mode: the hosting mode, “shared” (one process for every plugin), “perVendor”, “perPlugin” or “perInstance”; defaultMode: the mode GNUbase starts with; overrides: plugin ids with a mode of their own. hosts: each process with its id (process), its group (“shared”, “vendor:", "plugin:" or "instance:"), its state ("running", "hung" or "exited"), its log file's name in the log folder (log) and its plugin instances, whether they failed. deactivated: whether third-party plugins are deactivated, as GNUbase started in safe mode (--no-third-party-plugins): none loads.

Result:

pluginhost_setMode

Engine command pluginhost.setMode.

Sets the hosting mode (see pluginhost.get) and returns at once. Plugins whose process changes then move to their new process in the background, with their state, between two blocks, so they keep sounding the same. When they did, pluginhost.changed is emitted with the new status, and with the plugins that could not move and stay where they are in errors.

Arguments:

Result:

pluginhost_setOverride

Engine command pluginhost.setOverride.

Gives a plugin (its id, e.g. “clap:com.example.synth”) a hosting mode of its own, e.g. “perInstance” to isolate an unstable plugin, or removes its override with null. Moves the plugin’s instances like pluginhost.setMode, which emits pluginhost.changed when they moved.

Arguments:

Result:

poolFolder

poolFolder_add

Engine command poolFolder.add.

Adds a pool folder (reference manual p. 757), named name (default New Folder), in the folder parent (default 0, the pool’s Audio folder). Folders only organize the pool; files stay where they are.

Arguments:

Result:

poolFolder_remove

Engine command poolFolder.remove.

Removes a pool folder; the clips and folders in it go into its parent folder.

Arguments:

poolFolder_set

Engine command poolFolder.set.

Renames a pool folder or moves it into another one (parent; 0 is the pool’s Audio folder), but not into itself or a folder inside it.

Arguments:

Result:

pool

pool_get

Engine command pool.get. Read-only.

The pool (reference manual pp. 739-744): its folders, and every clip with the folder it is in, the number of audio events and sampler tracks that use it (used), its media file’s path, sample rate, channel count and length in sample frames, whether the file is missing and whether it is external, outside the project folder (every file of a project that has no file yet). The totals of the info line: audioFiles, usedFiles (media files that an event plays), missingFiles, externalFiles and totalSize, the bytes of the files on disk; and missingExternalFiles, how many of the external files are missing, which Prepare Archive can’t copy. A clip’s rootKey is the root key its audio events share (the Key column, p. 417), “” when they have none or differ, which rootKeysDiffer tells apart; audioEvents counts the audio events that play it, those of inactive track versions too, which clip.set rootKey sets.

Result:

pool_removeUnused

Engine command pool.removeUnused.

Removes the clips that no audio event or sampler track uses, then the media files that no clip uses, from the pool (reference manual p. 747), as one undo step. The files stay on disk. Returns the ids removed.

Result:

preferences

preferences_removePreset

Engine command preferences.removePreset.

Removes one of the preferences presets.

Arguments:

preferences_renamePreset

Engine command preferences.renamePreset.

Renames one of the preferences presets.

Arguments:

preferences_savePreset

Engine command preferences.savePreset.

Saves a preferences preset (the user setting preferences.presets, reference manual p. 1594): values, by setting, of all the preferences or only some, as the preferences dialog shows them. Each must be a preference (settings.list preference) and fit its setting. Replaces a preset of the same name. Changes no preference; settings.set with its values applies it.

Arguments:

processor

processor_list

Engine command processor.list. Read-only.

Every built-in processor: its id, name, description, whether it is an instrument, and its parameters with their ids, ranges, defaults and units. A stepped parameter takes whole numbers only; its options, if any, name its values from the minimum on. The drum machine’s has padNames too: the name of each pad, by note, that has neither a name of its own nor a sample, the General MIDI sound’s of its note (empty outside them); a pad’s sound (a copy’s) names it by another note’s. Each has its programs, which instrument.loadProgram loads: a name and the values it gives some parameters, the others staying at their defaults (only the test synth has any so far).

Result:

profile

profile_activate

Engine command profile.activate.

Makes a profile the active one when GNUbase starts again: until then the settings stay as they are. Returns what profile.list does: the profiles by name, sorted, the active one, and next, the one that becomes active when GNUbase starts again (empty if that is the active one), and unfinished. Emits profile.changed with the same.

Arguments:

Result:

profile_add

Engine command profile.add.

Adds a profile with the factory settings. Returns what profile.list does: the profiles by name, sorted, the active one, and next, the one that becomes active when GNUbase starts again (empty if that is the active one), and unfinished. Emits profile.changed with the same.

Arguments:

Result:

profile_duplicate

Engine command profile.duplicate.

Adds a profile with the settings of another one. Returns what profile.list does: the profiles by name, sorted, the active one, and next, the one that becomes active when GNUbase starts again (empty if that is the active one), and unfinished. Emits profile.changed with the same.

Arguments:

Result:

profile_export

Engine command profile.export.

Saves a profile’s settings in a file (UTF-8 path), for another computer: JSON with the profile’s name and its files. Returns what profile.list does: the profiles by name, sorted, the active one, and next, the one that becomes active when GNUbase starts again (empty if that is the active one), and unfinished. Emits profile.changed with the same.

Arguments:

Result:

profile_import

Engine command profile.import.

Adds a profile from a file that profile.export saved (UTF-8 path), under the name it has there or the one given. Returns what profile.list does: the profiles by name, sorted, the active one, and next, the one that becomes active when GNUbase starts again (empty if that is the active one), and unfinished. Emits profile.changed with the same.

Arguments:

Result:

profile_list

Engine command profile.list. Read-only.

The profiles (reference manual pp. 1579-1583): named sets of the user settings, of the files settings.json (preferences, key commands, global workspaces and the other user settings) and quantize-presets.json of the settings folder. The active profile’s files are in the settings folder, the others’ in its folder profiles/. Returns the profiles by name, sorted, with active true for the active one, its name, next, the one that becomes active when GNUbase starts again (empty if that is the active one), and unfinished, true while a profile switch that GNUbase couldn't finish nor undo waits: the settings may then be half of each profile's, the next start puts the active profile's back, overwriting what changes until then, and the active profile can't be renamed.

Result:

profile_remove

Engine command profile.remove.

Deletes a profile and its settings; not the active one. Returns what profile.list does: the profiles by name, sorted, the active one, and next, the one that becomes active when GNUbase starts again (empty if that is the active one), and unfinished. Emits profile.changed with the same.

Arguments:

Result:

profile_rename

Engine command profile.rename.

Renames a profile, also the active one, except while a profile switch is unfinished. Returns what profile.list does: the profiles by name, sorted, the active one, and next, the one that becomes active when GNUbase starts again (empty if that is the active one), and unfinished. Emits profile.changed with the same.

Arguments:

Result:

projectRules

projectRules_presets

Engine command projectRules.presets. Read-only.

The project rule presets: the factory presets, named by category (such as “Delete/Empty parts” and “Select/MIDI parts”), and the user’s, each with its rules as project.applyRules takes them. The user’s presets are kept in the settings folder, so they come back when GNUbase starts again: file is where (null if they are kept in memory only), readOnly whether changes are saved, and problems what was wrong with it, such as presets that this GNUbase can’t read and skips; they stay in the file.

Result:

projectRules_removePreset

Engine command projectRules.removePreset.

Removes one of the user’s project rule presets, and the presets of that name that this GNUbase can’t read (see projectRules.presets).

Arguments:

projectRules_savePreset

Engine command projectRules.savePreset.

Saves rules (as project.applyRules takes them, with their pre and post commands) as a project rule preset named name, replacing the user’s preset of that name. Factory presets can’t be replaced. Presets belong to the user, not to the project: they are saved in the settings folder. projectRules.presetsChanged announces the user’s presets’ names.

Arguments:

Result:

project

project_applyRules

Engine command project.applyRules.

Applies project rules to the project’s tracks, audio and MIDI parts, audio events and markers, in one undo step: delete removes what the filters find (a found folder takes its tracks with it), transform changes it by the actions through the commands that make such changes (event.move, event.resize, event.set, track.set, channel.set, marker.set). Locked parts and events stay as they are on tracks that stay, and so do the events in a locked audio part; an audio part that holds a locked event neither goes, moves nor gets shorter, while its other changes apply and the unlocked events found in it go or move alone. Audio events keep their clip’s name, track operations change tracks only. Positions and lengths stop at the longest project. seed makes the random operations repeatable; without it each call gives new random values. rules: filters, each {open, target, condition, parameter1, parameter2, close, join}: target mediaType (parameter1 audio, midi, marker, tempo, signature, arranger, transpose, chord, group, effect or vca; condition equal, unequal or allTypes), containerType (folder, track, part or event, the same conditions), name or colorName (a color name of the project’s colors; condition equal, unequal, contains or containsNot), position or length (in ticks of 480 to a quarter note from the project’s start; condition equal, unequal, bigger, biggerOrEqual, less, lessOrEqual, insideRange or outsideRange with parameter2; tracks have neither) or property (isMuted, isSelected, isEmpty, isHidden, hasTrackVersion (more than one version), followsChordTrack, isDisabled or parentIsSelected; condition propertyIsSet or propertyIsNotSet); open and close brackets 0 to 3, which must match and nest at most 3 deep; join and or or to the next line, and binding more tightly than or. function delete, transform, select or deselect. actions, each {target, operation, parameter1, parameter2} in order: position or length (add, subtract, multiplyBy, divideBy, roundBy, setRandom, setRelativeRandom or setFixed), name (replace, append, prepend with parameter1; generateName: parameter1 and a number from parameter2, one up for each element renamed; replaceSearchString: parameter1 by parameter2; eraseBefore and eraseAfter parameter1; eraseFrontCharacter, eraseEndCharacter), trackOperation (mute, solo, record or monitor with parameter1 on, off or toggle; timeDomain musical, linear or toggle) or color (setFixed: a project color’s name or #rrggbb; increment, decrement: the next or previous project color). pre and post: up to 4 key commands each, {command, parameters}, that the UI runs before and after; the engine keeps them with the rules. Tracks are found from top to bottom, then parts, audio events and markers. preset names a preset instead of rules. selected: the ids of the selected tracks, parts, events and markers, for isSelected and parentIsSelected. Use project.findByRules for select and deselect. Returns what the filters found.

Arguments:

Result:

project_autoSave

Engine command project.autoSave.

Saves a copy of the project if it changed since it was last saved or auto saved, as an auto save: into the folder Auto Saves of its project folder as -01.bak, -02.bak and so on up to the user setting project.autoSaveFiles, after which the oldest is overwritten. A project without a file goes to Auto Saves in the user settings' folder, named after the project and numbered in a series of its own that no file there has yet, 1-01.bak, and 2-01.bak for the next untitled project; it isn't auto saved without that folder. A series goes once its project is saved as a file, and a new series first deletes the auto saves there older than a week. Media files aren't copied, and the project itself stays unsaved. project.load opens an auto save without a file and with unsaved changes, so that saving asks for a path; project.location's autoSaveOf names the project file it was made of. With due, as the engine asks every 30 seconds, only if the user setting project.autoSave is on and project.autoSaveInterval minutes have passed since the project was saved, opened or auto saved, or an auto save failed. Returns the file, or null if nothing was saved; emits project.autoSaved with the file. If it fails, emits project.autoSaveFailed with the file, the error and repeated, although the command fails: repeated is true if the last auto save failed for the same reason, whatever its file, and none succeeded and the project wasn't saved or opened since. A due auto save whose failure is repeated stays out of engine.commandLog and the error log, so that only new reasons are logged.

Arguments:

Result:

project_backup

Engine command project.backup.

Backs the project up as it is now into folder, which must be empty or new: the project file, named name (by default after the project file, or else the project), and copies of its media in the folder Audio, of its frozen tracks’ freeze files in Freeze, and of track pictures in Track Pictures, each once per path and kind. The project file refers to these copies relative to itself, so that the folder opens on another machine. The files in the Mixdown folder of the project’s folder, where File > Export > Audio Mixdown puts mixdowns, go along into the folder Mixdown, unless skipMixdown is true. The project itself stays as it is. minimize keeps only the ranges of audio files that audio events play, with handles seconds (default 1) before and after, but files that a sampler track plays go along whole; removeUnused leaves out clips that no audio event or sampler track uses and media that no clip uses. currentVersionsOnly and skipVideo have no effect until clips have versions and projects have video. activate opens the backup once it is done, unless the project changed meanwhile. The backup runs as a job: this returns at once, job.progress and job.finished events follow, and job.cancel stops it and removes what it wrote. A folder that a running job writes into can’t be used. The job’s result is {file, files, missing, activated, activationError}: missing lists the media files ({media, path}) and freeze files ({track, path}) and track pictures ({track, path, picture: true}) that couldn’t be read and keep their old paths, and the files ({path}) and folders ({path, folder: true}) of the Mixdown folder that couldn’t be read and were left out; activated says whether the backup was opened, and activationError why not, if it was asked to be.

Arguments:

Result:

project_factoryColors

Engine command project.factoryColors. Read-only.

The factory color set, which new projects have: each color’s name and color (#rrggbb). The project colors setup dialog resets colors to it.

Result:

project_findByRules

Engine command project.findByRules. Read-only.

Finds the tracks, audio and MIDI parts, audio events and markers that project rules’ filters find, as select does, and changes nothing; the UI selects them, or for deselect deselects everything. rules: filters, each {open, target, condition, parameter1, parameter2, close, join}: target mediaType (parameter1 audio, midi, marker, tempo, signature, arranger, transpose, chord, group, effect or vca; condition equal, unequal or allTypes), containerType (folder, track, part or event, the same conditions), name or colorName (a color name of the project’s colors; condition equal, unequal, contains or containsNot), position or length (in ticks of 480 to a quarter note from the project’s start; condition equal, unequal, bigger, biggerOrEqual, less, lessOrEqual, insideRange or outsideRange with parameter2; tracks have neither) or property (isMuted, isSelected, isEmpty, isHidden, hasTrackVersion (more than one version), followsChordTrack, isDisabled or parentIsSelected; condition propertyIsSet or propertyIsNotSet); open and close brackets 0 to 3, which must match and nest at most 3 deep; join and or or to the next line, and binding more tightly than or. function delete, transform, select or deselect. actions, each {target, operation, parameter1, parameter2} in order: position or length (add, subtract, multiplyBy, divideBy, roundBy, setRandom, setRelativeRandom or setFixed), name (replace, append, prepend with parameter1; generateName: parameter1 and a number from parameter2, one up for each element renamed; replaceSearchString: parameter1 by parameter2; eraseBefore and eraseAfter parameter1; eraseFrontCharacter, eraseEndCharacter), trackOperation (mute, solo, record or monitor with parameter1 on, off or toggle; timeDomain musical, linear or toggle) or color (setFixed: a project color’s name or #rrggbb; increment, decrement: the next or previous project color). pre and post: up to 4 key commands each, {command, parameters}, that the UI runs before and after; the engine keeps them with the rules. Tracks are found from top to bottom, then parts, audio events and markers. preset names a preset instead of rules. selected: the ids of the selected tracks, parts, events and markers, for isSelected and parentIsSelected. Returns what the filters found, by id.

Arguments:

Result:

project_forgetRecent

Engine command project.forgetRecent.

Removes file from the recent projects (see project.recent), or every project without file. The files stay. Returns the recent projects left.

Arguments:

Result:

project_get

Engine command project.get. Read-only.

The whole project: busses, tracks in order, channels, media, clips, events and parts. Each MIDI part and audio event has rootKeyTranspose too, the semitones that the project root key transposes it by (-5 to 6; 0 for an independent one and unless both have a root key). Each audio event of a warped clip has playedLength, the project samples from its start to where it ends through the warp, and fadeRoom, the frames its fades may take together; audioEvent.changed announces them when they change.

project_load

Engine command project.load.

Replaces the project with a DAWproject file and clears the undo history. Media files embedded in it are extracted to mediaFolder, by default the folder media next to it, named after the file as its versions are (see project.saveNewVersion): Song media for Song.dawproject and Song.dawproject., Mix v2.1 media for Mix v2.1. With revision, it loads only if the project is still at that revision (see project.revision), and fails otherwise, so that no change made meanwhile is lost. An auto save (see project.autoSave) opens without a file and with unsaved changes, and isn't a recent project. A sample rate outside the supported range is clamped to the nearest bound, keeping GNUbase-only data. Linear positions keep their time within the project bounds; with a non-positive rate sample counts stay unchanged. Returns warnings, an array of repair messages (empty when no repair was needed).

Arguments:

Result:

project_location

Engine command project.location. Read-only.

Where the project is: its project file (set by project.save and project.load), the folder of that file, and the media folder in it where media.add with copy and media.prepareArchive put audio files, all null for a project that has no file yet; and name, which project.backup names the backup by default: the project file’s name without the .dawproject extension, or else the project’s name, either made a name that files can have on every platform; and autoSaveOf, for a project opened from an auto save (see project.autoSave) of a project file, that file, next to the folder Auto Saves and named as the auto save without its number, which may be gone: null otherwise, also for an auto save of an untitled project. Save proposes it.

Result:

project_new

Engine command project.new.

Replaces the project with an empty one that has the last used bus configuration (see audio.lastBusConfiguration), or the busses of the user’s bus presets named Default (see bus.savePreset), which win over it, and the color set editing.defaultColors, or with template, a copy of the project template of that name (see project.templates), and clears the undo history. The busses of the project it replaces become the last used bus configuration, also with a template. The new project has no file until it is saved.

Arguments:

project_recent

Engine command project.recent. Read-only.

The recent projects: the project files saved (not auto saved) or opened last, the newest first, at most 10, kept in the user settings’ folder. name is the file’s name without the .dawproject extension, as versions are named (see project.saveNewVersion), and exists says whether the file is still there.

Result:

project_revert

Engine command project.revert.

Discards every change since the project was last saved: opens its file again and clears the undo history, as project.load does. Fails for a project without a file.

project_revision

Engine command project.revision. Read-only.

A number that grows with every change of the project: every edit, undo and redo, and loading or starting a project. quantize.savePreset, quantize.renamePreset, quantize.removePreset and quantize.extractGroove also advance it when they change the quantize preset saved with the project, without an undo step, and so does the drum editor’s Solo Instrument (editor.set soloInstrument) when the selected notes it solos change: it goes on or off with notes selected, or the selection changes while it is on, even if what plays stays the same. Neither changes the project: modified stays as it was. project.load with revision loads only if it hasn’t changed. modified says whether the project changed since it was last saved, loaded or started; undoing back to the saved state still counts as a change. project identifies the open project: the revision at which it was loaded or started, so it changes only when another project is opened.

Result:

project_save

Engine command project.save.

Saves the project as a DAWproject file: as path, which is then the project’s file (save as), or without path to the project’s file (save). Media files, frozen tracks’ freeze files and track pictures are copied into it unless embedMedia is false; then the file refers to them where they are, relative to itself if they are in its folder. A media or freeze file that is missing is referred to by its absolute path, so that the file has no copy of it: the result lists them (missing). A missing picture is referred to where it was (by its absolute path while embedding) and isn’t listed in missing. The file becomes the first of the recent projects (project.recent). The files a project records, converts on import, renders, flattens and freezes while it has no file go into one folder outside any project; the save after that copies those still in it into the project’s media and Freeze folders as a job, returned as job (null without one, and while an earlier save’s copies still run) with the result media.prepareArchive’s job has, and points the media and frozen tracks at the copies as an undo step of its own, which the next save keeps.

Arguments:

Result:

project_saveNewVersion

Engine command project.saveNewVersion.

Saves the project as a new version of its file and goes on with that: in the same folder, with the same name and the next number after the highest one there, “Song-01.dawproject” after “Song.dawproject”, “Song-03.dawproject” after “Song-02.dawproject”. The earlier versions stay as they are. Returns the new file and, as project.save, the media files that are missing. Fails for a project without a file: save it first.

Arguments:

Result:

project_saveTemplate

Engine command project.saveTemplate.

Saves the project as the project template name (see project.templates), replacing a template of that name. Templates refer to media files where they are instead of copying them. The project itself, its file and whether it is saved stay as they are. Returns the template’s file.

Arguments:

Result:

project_set

Engine command project.set.

Changes the project’s name, sample rate (8000 to 768000 Hz), stereo pan law or maximum volume, or the other settings of the project setup. Linear positions keep their time at a new sample rate; media files keep theirs (see media.conform). panLaw is how much a mono channel panned to the center is turned down on each side: 0dB, -3dB (the default), -4.5dB, -6dB or equalPower (-3.01 dB, the power stays the same wherever it is panned); the side panned toward is always at 0 dB. maxVolume is the top of the faders, 6 (the default) or 12 dB; faders, send levels and volume automation above a lower maximum come down to it. tempo (1 to 999 BPM) and signature {numerator 1 to 99, denominator 1, 2, 4, 8 or 16} are the project’s first tempo and time signature, as the transport bar sets them: the fixed tempo, or in tempo track mode the tempo track’s first event; later changes stay, and musical positions keep their ticks. tempoTrackActive switches between fixed tempo mode (false, a new project’s) and tempo track mode, in which the project plays the tempo track’s events (tempo.add); each mode keeps its tempo while the other is in use (emits tempo.changed). colors is the project’s color set, which track and event colors are picked from: at least one {name, color (#rrggbb)}, in order. recordFileType (wav, the default, broadcastWav, aiff or flac) and recordBitDepth (int16, int24, the default, int32, float32 or float64) are what recording writes: AIFF only integers, FLAC 16 or 24 bit, 64 bit float only Wave. frameRate is the timecode’s (default 25). startTime (seconds, under 24 hours) is the time shown at the project start, length (seconds, up to 24 hours, default 600) how long the project is, barOffset (-9999 to 9999) is added to the bar numbers shown, and timeFormat is the primary time format of rulers and position displays. A new timeFormat, also by undo or redo, is the snap settings’ format too (see snap.set; emits snap.changed). rootKey is the Project Root Key (“” for none, C, C# and so on to B): MIDI parts with a root key of their own that follow global transpose play transposed to it, the nearer way (midiPart.set rootKey and globalTranspose; transpose.assignRootKey).

Arguments:

project_setTimeFormat

Engine command project.setTimeFormat.

Selects the project’s primary time format from a ruler or transport display. Saved with the project, but a display choice is not an undo step. Project Setup changes made with project.set remain undoable. The snap grid follows the format.

Arguments:

project_templates

Engine command project.templates. Read-only.

The project templates, which project.new starts new projects from, sorted by name: each a name and its file in the folder Project Templates in the user settings’ folder. None without that folder.

Result:

quantize

quantize_apply

Engine command quantize.apply.

Quantizes note starts: moves them toward the nearest position of the grid, or of the groove, and keeps their lengths. Takes the notes of part (only notes, if given) or of every part in parts. The settings are the project’s (see quantize.set), or preset’s, changed by settings. Quantizing starts from the notes’ original timing unless settings.soft is true, and keeps it, so quantize.reset puts it back. Notes moved by other means since they were quantized start from where they are; velocities and lengths changed by other means stay. Returns the notes that changed. Grids are in project time and start again at every bar; notes don’t move before their part’s start or to or past its end. Audio events (events, and every event of the audio parts in audioParts) move so that their snap points, or without one their starts, move toward the grid in the same way (reference manual p. 369); with settings.warpQuantize, their audio is quantized by time stretch instead (warp quantizing, p. 370): the warp markers inside each event (made of its clip’s hitpoints that count if it has none there) move to the grid, the one nearest to each grid position onto it and the others keeping their places relative to those. With start and end (project samples, both or neither, only with warpQuantize) only the selection range between them is warp quantized (p. 370): the markers inside it move, markers at its start and end keep the audio outside it where it plays, and quantizing starts from the markers as they are, so that a range quantized before stays so. Locked events stay. They too start from their original positions or markers unless soft. Returns the notes and audio events that changed and the clips whose warp markers did.

Arguments:

Result:

quantize_createWarpMarkers

Engine command quantize.createWarpMarkers.

Creates warp markers in the clips of audio events of several tracks at the same positions, for warp quantizing them with quantize.apply (Warp Marker Creation Rules, reference manual pp. 371-372, 379-380). The positions are the hitpoints that count (see clip.setHitpoints) of the events’ clips: first those of the tracks with the highest priority in priorities ([{track, priority 0-5}], default 1; 0 leaves a track’s hitpoints out), then those of the others with none of a higher priority, or of the same priority earlier, within range ms (default 20) of them. Range tells when hitpoints of different tracks mark the same beat; two of one track, such as a flam, stay two positions. The audio on all tracks should start and end together. Each marker goes where the clip frame plays now, so nothing changes until quantizing moves them. Returns the clips changed and the positions (project samples).

Arguments:

Result:

quantize_crossfade

Engine command quantize.crossfade.

Corrects the overlaps and gaps between quantized audio events, such as slices (the quantize panel’s Crossfades section, reference manual p. 379): on each track, in order, an event that overlaps the next one ends where that one starts, and an event after a gap starts earlier, where the one before ends, as far as its clip has audio there. Then each event goes on length ms (default 10, up to 500) into the next one and crossfades into it (crossfade.set). Locked events stay. quantize.reset puts every event it changed back to where it was before quantizing, crossfades included, so the ones this made go. Returns the events changed.

Arguments:

Result:

quantize_ends

Engine command quantize.ends.

Quantizes note ends: moves them toward the nearest grid position and keeps the starts. Takes the notes of part (only notes, if given) or of every part in parts. The settings are the project’s (see quantize.set), or preset’s, changed by settings. Quantizing starts from the notes’ original timing unless settings.soft is true, and keeps it, so quantize.reset puts it back. Notes moved by other means since they were quantized start from where they are; velocities and lengths changed by other means stay. Returns the notes that changed.

Arguments:

Result:

quantize_extractGroove

Engine command quantize.extractGroove.

Makes a groove preset from a MIDI part’s rhythm: a groove position at every note start, with the highest velocity and the longest length of the notes there. The groove is length ticks long, by default the part’s length, and the preset is named name, by default after the part. The groove’s origin is the part’s start, so it repeats in phase with the part. With event instead of part, from an audio event’s hitpoints that count (Create Groove Quantize Preset, reference manual pp. 367, 373): a position at each, as long as the event and starting where it does, named by default after its clip; length goes with part only and is refused with event. Like quantize.savePreset, it replaces the user’s preset of that name, and quantize.changed announces when another preset is the one the project’s settings are (see quantize.get).

Arguments:

Result:

quantize_freeze

Engine command quantize.freeze.

Makes quantized notes’ timing permanent: quantizing starts from it from now on, and quantize.reset no longer goes back. Takes the notes of part (only notes, if given) or of every part in parts and returns the notes that changed.

Arguments:

Result:

quantize_get

Engine command quantize.get. Read-only.

The project’s quantize settings (see quantize.set), the preset they are and whether auto quantize is on. Among presets with equal settings, preset is the one last chosen with quantize.set, saved or renamed while the settings are its own, else the first of the user’s, else the factory preset; null if no preset has the settings. quantize.changed announces the same whenever it changes. The project saves it, so a preset command that changes it changes the project (see project.revision).

Result:

quantize_lengths

Engine command quantize.lengths.

Sets note lengths and keeps the starts: to length, a note value (“1/8”, “1/8T”, “1/8.”) or ticks, or without length to the step of the grid at each note’s start, so tuplets and swing count and notes outside the catch range keep their length. Takes the notes of part (only notes, if given) or of every part in parts. The settings are the project’s (see quantize.set), or preset’s, changed by settings. quantize.reset puts the lengths back. Returns the notes that changed.

Arguments:

Result:

quantize_nudgeCrossfade

Engine command quantize.nudgeCrossfade.

Moves the crossfades into audio events, such as those quantize.crossfade made, by amount ms (default 1, -100 to 100; negative moves them earlier): the end of the event each comes from and the start of the event moves alike, so the crossfade keeps its length and the audio in it moves (Nudge Crossfade Left/Right, reference manual p. 379), for example off an attack. A crossfade moves only as far as both clips have audio and it still plays; locked events stay. quantize.reset puts the events back to where they were before quantizing. Returns the events changed.

Arguments:

Result:

quantize_presets

Engine command quantize.presets. Read-only.

The quantize presets: the factory presets (straight grids “1/1” to “1/128”, triplets such as “1/8 Triplet” and dotted grids such as “1/4 Dotted”) and the user’s, each with its settings. The user’s presets are kept in the settings folder, so they come back when GNUbase starts again: file is where (null if they are kept in memory only), readOnly whether changes are saved (not while the file belongs to a newer GNUbase), and problems what was wrong with it, such as presets that this GNUbase can’t read and skips; they stay in the file.

Result:

quantize_removePreset

Engine command quantize.removePreset.

Removes one of the user’s quantize presets, and the presets of that name that this GNUbase can’t read (see quantize.presets). quantize.changed announces when another preset is the one the project’s settings are (see quantize.get).

Arguments:

quantize_renamePreset

Engine command quantize.renamePreset.

Renames one of the user’s quantize presets. A preset with the project’s settings is the preset they are from now on (see quantize.get); quantize.changed announces when that changes.

Arguments:

quantize_reset

Engine command quantize.reset.

Puts quantized notes back to their timing before quantizing: starts, lengths and velocities. Notes moved by other means since keep their timing, and velocities and lengths changed by other means stay. Takes the notes of part (only notes, if given) or of every part in parts and returns the notes that changed. Audio events (events, and those of the audio parts in audioParts) go back to their positions, offsets, lengths and crossfades before quantizing, so the crossfades quantize.crossfade made go and the ones they had before come back, and their clips go back to their warp markers before warp quantizing, unless they were changed by other means since; returns those events and clips too. Locked events stay as they are, and their clips’ warp markers too. A piece of an event that the quantize panel made longer than its original, split past the original’s length, has nothing of the original to go back to and is removed (removed); the crossfades from it go to the piece before it. An original crossfade from an event removed since doesn’t come back.

Arguments:

Result:

quantize_resetSlices

Engine command quantize.resetSlices.

Puts audio events that quantize.slice cut back together (the Reset of the Slice Rules, reference manual p. 378): of each event that one of events is or is a slice of, the slices on its track, also those split from them since, are removed and the event gets back the position, offset, length, crossfade, snap point and fade out it had before slicing, unquantized; an event whose audio part moved since comes back where the part has it now. Crossfades from the slices go to it. An event that is locked, or has a locked slice, stays as it is with its slices. Returns the events put back together and the slices removed.

Arguments:

Result:

quantize_resetWarpMarkers

Engine command quantize.resetWarpMarkers.

Removes the warp markers that quantize.createWarpMarkers made in the clips of audio events (the Reset of the Warp Marker Creation Rules, reference manual p. 380), also once warp quantizing moved them; the clip’s other markers stay, and quantize.reset still puts those back. The clips of locked events keep them. Returns the clips changed.

Arguments:

Result:

quantize_savePreset

Engine command quantize.savePreset.

Saves the project’s quantize settings, changed by settings, as a preset, replacing the user’s preset of that name. Factory presets can’t be replaced. Presets belong to the user, not to the project: they are saved in the settings folder. A preset with the project’s settings is the preset they are from now on (see quantize.get); quantize.changed announces when that changes.

Arguments:

Result:

quantize_set

Engine command quantize.set.

Changes the project’s quantize settings: to preset’s, if given, then changed by settings. Settings: grid, a note value from “1/1” to “1/128”, “T” for a triplet and “.” for dotted; tuplet, 0 (off) or 3 to 15 notes in the time of the largest power of two below it; swing 0-1, moving every second grid position later, at 1 by a third of a step (straight grids without tuplets only); catchRange, ticks from a grid position within which notes are quantized (0: all); safeRange, ticks within which they stay; randomize, ticks by which quantized notes move at random, by seed; soft, starting from the current positions instead of the original ones; strength 0-1, the part of the way notes move. groove {length, points: [{position, velocity 0-1, length}]} quantizes to a groove instead of the grid, with preQuantize (a note value), maxMove (ticks), velocityStrength, lengthStrength and origin (where it starts repeating, in project ticks). autoQuantize is whether recording quantizes. Settings are not undo steps; they are saved with the project, and so is the preset they are (see quantize.get). Announces quantize.changed with the result.

Arguments:

Result:

quantize_slice

Engine command quantize.slice.

Slices audio events of several tracks at the same positions, so that quantizing them keeps them phase coherent (Slice Rules, reference manual pp. 370-371, 378-379). The positions are the hitpoints that count (see clip.setHitpoints) of the events’ clips: first those of the tracks with the highest priority in priorities ([{track, priority 0-5}], default 1; 0 leaves a track’s hitpoints out), then those of the others with none of a higher priority, or of the same priority earlier, within range ms (default 20) of them. Range tells when hitpoints of different tracks mark the same beat; two of one track, such as a flam, stay two positions. The audio on all tracks should start and end together. Every event is cut offset ms (default 0) before each position inside it, and each slice that starts there snaps at it (its snap point), so that quantize.apply moves the slices of every track at a position alike; the other slices get no snap point, so they snap at their starts. Locked events stay whole. Returns the events, the slices included, and the positions (project samples).

Arguments:

Result:

quantize_slicePositions

Engine command quantize.slicePositions. Read-only.

Where quantize.slice would cut the audio events with the same parameters, changing nothing: the cutting positions the project window marks with vertical lines (reference manual p. 378). The positions are the hitpoints that count (see clip.setHitpoints) of the events’ clips: first those of the tracks with the highest priority in priorities ([{track, priority 0-5}], default 1; 0 leaves a track’s hitpoints out), then those of the others with none of a higher priority, or of the same priority earlier, within range ms (default 20) of them. Range tells when hitpoints of different tracks mark the same beat; two of one track, such as a flam, stay two positions. The audio on all tracks should start and end together. Each cutting position is offset ms (default 0) before a position, inside an event that isn’t locked. Returns them in project samples, by position; none when the events have no hitpoints that count.

Arguments:

Result:

range

range_copy

Engine command range.copy.

Copies the range from start to end (project samples, default the locators; an end past 2^48 means up to it) on tracks (ids, default every track; a folder track with the tracks inside it) to the range clipboard for range.paste: the audio events and MIDI parts in it, cut at its edges (splitNotes as in range.split), and the automation in it with the curve’s values at the edges. Without start, end and tracks it is Global Copy: everything between the locators. With events (ids) instead of a range it takes those audio events and parts and MIDI parts whole, as a range from the first one’s start to the last one’s end on their tracks would, but without the other events there and without automation. Changes nothing in the project. Returns how many events and parts and automation lanes it copied, which rangeClipboard.changed announces.

Arguments:

Result:

range_crop

Engine command range.crop.

Crops the audio events and MIDI parts that cross an edge of the range from start to end (project samples, default the locators; an end past 2^48 means up to it) on tracks (ids, default every track; a folder track with the tracks inside it) to it, removing what lies outside; events entirely inside or outside it stay as they are, and so do locked ones. splitNotes as in range.split. Returns the cropped events.

Arguments:

Result:

range_cut

Engine command range.cut.

Copies the range from start to end (project samples, default the locators; an end past 2^48 means up to it) on tracks (ids, default every track; a folder track with the tracks inside it) to the range clipboard as range.copy does, then deletes it as range.delete does; time (Cut Time) closes the gap. Without time it takes the range out of the markers as range.delete does; markers don’t go to the clipboard. Locked events stay where they are and aren’t copied. With events (ids) instead of a range it takes those audio events and parts and MIDI parts whole, as a range from the first one’s start to the last one’s end on their tracks would, but without the other events there and without automation. It removes them as event.remove does, and refuses locked ones. Returns how many events and parts and automation lanes it copied, which rangeClipboard.changed announces.

Arguments:

Result:

range_delete

Engine command range.delete.

Deletes what lies in the range from start to end (project samples, default the locators; an end past 2^48 means up to it) on tracks (ids, default every track; a folder track with the tracks inside it): the audio events and MIDI parts in it, cut at its edges (splitNotes as in range.split), and the automation in it: its points, and the curve between two points that goes across it. The automation outside keeps its curve: the value it arrives at the start with holds up to the end; with virgin territory (automation.set) the range becomes a gap instead, the point at its start a terminator. time (Delete Time) closes the gap: what comes after the range on its tracks moves back by its length, in ticks on musical tracks, and the transpose events in the range go with it, those after it moving back too, and the transposition in force at its end goes on from its start, unless the transpose track is locked. Locked events stay. Without time it also takes the range out of the markers on the marker tracks among its tracks, as out of events (reference manual p. 425): the position and cycle markers in it go, a cycle marker that reaches across one of its edges gets shorter, and one that reaches across both is split in two. The piece after the range keeps the marker’s id and number, the piece before it is a new cycle marker with the first free number and the same name and color. With time every marker stays.

Arguments:

range_fades

Engine command range.fades.

The Fades menu’s range functions on the audio events on tracks (ids, default every track) that cross the range from start to end (project samples). fade in (Fade In to Range Start): fades in from the event’s start to the range’s start, or to its end where the range covers the event’s start. out (Fade Out from Range End): fades out from the range’s end to the event’s end, or from its start where the range covers the event’s end. adjust (Adjust Fades to Range): the fades at the edges of the event that the range covers, both when the range is inside it; a crossfade that plays where its events overlap within the range instead gets its fade in up to the range’s end and its fade out from the range’s start, and its events’ own fades stay. Shapes stay; a fade that no longer fits next to the one set gets shorter. crossfade (Crossfade): the events on the tracks where the range touches their overlap, as event.crossfade does it with them (events next to each other that don’t overlap but whose clips do, unlocked and in the same part and lane, are lengthened over a range that reaches across where they meet), with the crossfades fitted to the range as adjust does it; a range that touches no overlap is refused. remove (Remove Fades): the crossfades that play within the range. Returns the events changed, for crossfade and remove those that fade in.

Arguments:

Result:

range_insertSilence

Engine command range.insertSilence.

Inserts silence as long as the range from start to end (project samples, default the locators; an end past 2^48 means up to it) on tracks (ids, default every track; a folder track with the tracks inside it) at its start: what lies on its tracks from the start on, cut there, moves later by the range’s length, in ticks on musical tracks, and the automation holds the value it arrives at the start with over the silence. The transpose events from the start on move later too, unless the transpose track is locked. Locked events stay.

Arguments:

range_move

Engine command range.move.

Moves what lies in the range from start to end (project samples, default the locators; an end past 2^48 means up to it) on tracks (ids, default every track; a folder track with the tracks inside it) to position (project samples), or to positionTicks, a tick of the tempo map, as dragging a selection range does (reference manual p. 291), without the range clipboard: on the same tracks, or with track onto other tracks, the range’s top track onto track and each of the others as many tracks further on in the project’s order of tracks that aren’t hidden (trackVisibility.set), which must take the events moved there; a folded folder (trackLayout.set) counts as one track there, and the range’s tracks inside one go into the tracks inside the one they land on, in their order. Cut at its edges (splitNotes as in range.split), what lies in it moves by position minus start, in ticks on musical tracks, where what starts at start lands at position exactly (of several, the first in ticks), at positionTicks on that tick, and everything on musical tracks moves by the same ticks, keeping its distance from that on every track. Give position or positionTicks. What moves keeps its id, but the cuts make new pieces: of an event or part that starts before the range the piece in it is new, of one that ends after it the piece after the range. The crossfades between moved events stay, and so do shared copies of MIDI parts that the range holds whole; a crossfade between a moved event and one that stays ends, and a shared copy cut at an edge becomes a real copy. The automation in it is cut out as range.delete does and pasted at position as range.paste does. copy (Alt, p. 432) leaves the range as it is and pastes a copy as range.paste does: real copies with new ids. Either way the audio that lands comes in front of the events there, in the order it was stacked. Locked events stay where they are and aren’t copied. Returns the moved events, or the copies.

Arguments:

Result:

range_paste

Engine command range.paste.

Pastes the range clipboard (range.copy, range.cut) at position (project samples, default the project cursor), or at positionTicks, a tick of the tempo map, or with origin (Paste at Origin) where it was copied from, or with relative (Paste Relative to Cursor, reference manual p. 270) at the project cursor plus the distance it had from the cursor when it was copied: onto the tracks it was copied from, or onto track and the tracks below it in the project’s order that aren’t hidden (trackVisibility.set), one for each copied track, which must take the copied events; a folded folder (trackLayout.set) counts as one track there, and the tracks inside one that were copied go into the tracks inside the one they land on, in their order. What started where the copied range starts lands at position exactly (of several, the first in ticks), at positionTicks on that tick, and everything on musical tracks moves by the same ticks, keeping its distance from that on every track. Audio events and MIDI parts come as unlocked real copies; automation replaces the curve where it lands, on a lane of the same parameter. time (Paste Time) first makes room as long as the copied range, as range.insertSilence does. Paste (p. 270) goes onto the selected track: selectedTrack, instead of track, pastes from it on as track does, but a copied track that finds no track there, or one that can’t take what was copied from it, goes onto the track it came from. With snap a clipboard of events (range.copy with events) lands with the snap point of its first audio event that isn’t in a part, or that event’s start, at position or the cursor; snap with positionTicks, origin or relative is refused. A clipboard copied at another sample rate than the project’s is refused. Returns the new events.

Arguments:

Result:

range_set

Engine command range.set.

Splits the audio events and MIDI parts on the range from start to end (project samples, default the locators; an end past 2^48 means up to it) on tracks (ids, default every track; a folder track with the tracks inside it) at its edges as range.split does (splitNotes too), then sets those in it as event.set does: mute or unmute them, or invert the phase of the audio events among them (invertPhase), which Mute, Unmute and Invert Phase On/Off on a selection range with Range Tool Splits Partly Selected Events do (reference manual pp. 276-277, 293, 1595). Locked events stay whole and are set only when they lie wholly in the range. whole true splits nothing and sets every event and part the range reaches into, whole, as Mute Source Events of a range does with that preference off (p. 1476). Returns the events it set.

Arguments:

Result:

range_split

Engine command range.split.

Splits the audio events and MIDI parts on the range from start to end (project samples, default the locators; an end past 2^48 means up to it) on tracks (ids, default every track; a folder track with the tracks inside it) at its edges; a range of no length splits at its start. Locked events stay whole; splitNotes cuts notes across an edge in two, as event.split does. The piece of a MIDI part after a cut starts with the value each controller curve (control change, poly pressure, pitch bend, channel pressure) has there, so the curves stay as they were (reference manual p. 288); this holds for every range command that cuts, but event.split doesn’t add them. Returns the new events after the splits.

Arguments:

Result:

range_volumeCurve

Engine command range.volumeCurve.

Sets the volume curves of the audio events on tracks (ids, default every track) that cross the range from start to end (project samples) to volume (dB, -144 to 6, default 0) inside the range, with jumps at its edges; outside it they stay as they were. With volume 0, Remove Volume Curve on a range: the original level there. A curve left at 0 dB everywhere is none. Returns the events changed.

Arguments:

Result:

recording

recording_add

Engine command recording.add.

Adds what a recording wrote, as the engine does when a recording ends. Per audio track its file (path) as a media file and clip, and an audio event per take. A take is a run of the file (offset and length in its frames) recorded at position (project samples), such as a cycle lap; a file may start with audio pre-record before its first take. A track may come with several files, as a recording split at 4 GB makes: they are one recording, whose takes mode and the lanes apply to together. mode, the audio record mode (transport.set), says what happens to the track’s unlocked events where the takes overlap them: keepHistory (the default) keeps them, cycleHistoryReplace cuts them out and keeps every take, replace cuts out what each take overlaps, also of the takes before it. With keepHistory and cycleHistoryReplace, the events of the takes that overlap another take go onto lanes of their own (event.set’s lane), one per take from the lane after the highest one that the track’s events where they lie are on, up to lane 1000; the last take plays where they overlap. With cycle, the clip gets a region per take (clip.addRegion), Take 1 on, numbered across the track’s files. A take with continues goes on from the last take of the track’s file before, as where a split at 4 GB cut a cycle lap: the two are one lap, on one lane and with one region number. Per MIDI or instrument track the takes (position and length) and what was recorded, all in project samples: notes as note.add takes them and controllers as controller.add does, with positions and lengths in project samples (a note’s expression points’ too), and each with take, the index of the take it was recorded in (0 by default). They go into a MIDI part from the first take’s start to the last one’s end, whole bars with snapToBars, by midiMode, the MIDI record mode: newParts (the default) adds a part of their own; merge adds them to the first unlocked part they overlap, which grows to hold them; replace does too, after it removed the notes that start and the controller events that lie in that range from the unlocked parts it overlaps. cycleMode, the MIDI cycle record mode, says what becomes of the takes: mix (the default) puts them all into the part; overwrite first drops what earlier takes recorded from where a take’s first note or controller event lies to that take’s end; keepLast keeps only the last complete take that recorded anything (the last take is complete if it ends where an earlier one does), or the last that recorded anything if none is complete; stacked adds a new part per take that recorded anything, each on a lane of its own as for audio, after those of the parts in its whole bars with snapToBars, and mutes all of them but the last; mixStacked does too without muting. cycleMode applies only with cycle, which the engine gives a recording in cycle mode (a take that starts at the left locator where the one before ended at the right one): without it, and for a single take, the takes go in by midiMode alone, as do those that a locate starts during a linear recording. With the project’s auto quantize (quantize.set) the recorded notes are quantized. On a track with an articulation map (track.set articulationMap), the remote triggers of its sound slots aren’t recorded: the notes whose pitch is a slot’s trigger (remoteTrigger keySwitch) or the program changes whose program is one (programChange) select their slot instead, as directions (articulation controller events) where they come and as the slot’s attributes on the notes that start while it is selected; without latch the default slot comes back where the key is released. With the chord track record-enabled (chord.setTrack recordEnable, reference manual p. 1345), the chords that each take’s notes make replace the chord events over that take, take after take; a MIDI or instrument track with chordsOnly only monitored while the chord track recorded: its notes make chord events and no part. chordEvents false (midi.insertRetrospective) makes none. One undo step. Announces recording.added with the result: the media files, clips and events added and the MIDI parts recorded into. project, as project.revision reports it, is the project the recording was made in: if another project is open by now, nothing is added and recording.failed is announced. A track that is gone is skipped and announced with recording.failed; the others are added. A recording that adds nothing leaves the project as it was, not modified, and records no undo step.

Arguments:

Result:

recording_remainingTime

Engine command recording.remainingTime. Read-only.

The remaining record time (reference manual p. 356): how many seconds the record-enabled audio tracks can record before the disk with the record folder is full, at the project’s sample rate and record bit depth; null while no track would record. With the space available there in bytes, the channels that would record and the record folder: the project’s media folder Audio, or for an unsaved project a folder of the user’s. The disk is measured off the command thread: each question starts a measurement unless one runs and answers with the folder’s last one at once; only while the folder has none yet does it wait up to a quarter of a second for it, and both are null while there is none.

Result:

sampleEditor

sampleEditor_applyProcess

Engine command sampleEditor.applyProcess.

Internal Process job edit: applies the rendered media at revision as one undo step. Moves clip ranges and event references with the replacement from start to end and inserted frames. Engine-posted work only. Emits media.added, clip.added or clip.changed, audioEvent.changed/removed and track.changed; returns clip, media, length.

Arguments:

Result:

sampleEditor_close

Engine command sampleEditor.close.

Closes the sample editor. Emits sampleEditor.changed. The view: open; event, the audio event it shows, with its clip, track and media file (0 while it shows none, or its event is gone: an undo brings it back); length, the clip’s length in sample frames; offset and eventLength, the section of the clip the event plays (clip frames); clipStart, the project sample where the clip’s frame 0 would play, and ratio, project samples per clip frame, so frame f plays at clipStart + f * ratio; selectionStart and selectionEnd, the selection range in clip frames, none while they are the same. View state: no undo steps, not saved, and a new or loaded project closes it.

Result:

sampleEditor_finishProcess

Engine command sampleEditor.finishProcess.

Internal Process job completion. Applies an edit, then replaces the clipboard for Cut or Copy only after success. Engine-posted work only; clients use sampleEditor.process. Returns clip, media, length or copied frames.

Arguments:

Result:

sampleEditor_get

Engine command sampleEditor.get. Read-only.

What the sample editor shows. The view: open; event, the audio event it shows, with its clip, track and media file (0 while it shows none, or its event is gone: an undo brings it back); length, the clip’s length in sample frames; offset and eventLength, the section of the clip the event plays (clip frames); clipStart, the project sample where the clip’s frame 0 would play, and ratio, project samples per clip frame, so frame f plays at clipStart + f * ratio; selectionStart and selectionEnd, the selection range in clip frames, none while they are the same. View state: no undo steps, not saved, and a new or loaded project closes it.

Result:

sampleEditor_open

Engine command sampleEditor.open.

Opens the sample editor (reference manual p. 613) with an audio event, such as the one double-clicked or selected in the project window, or shows that event in it if it is open; the selection range goes. Emits sampleEditor.changed. The view: open; event, the audio event it shows, with its clip, track and media file (0 while it shows none, or its event is gone: an undo brings it back); length, the clip’s length in sample frames; offset and eventLength, the section of the clip the event plays (clip frames); clipStart, the project sample where the clip’s frame 0 would play, and ratio, project samples per clip frame, so frame f plays at clipStart + f * ratio; selectionStart and selectionEnd, the selection range in clip frames, none while they are the same. View state: no undo steps, not saved, and a new or loaded project closes it.

Arguments:

Result:

sampleEditor_process

Engine command sampleEditor.process.

Basic Commands on a clip range (reference manual pp. 619-620). event identifies the clip; start/end are clip frames, start before end. operation: cut copies then closes the gap, copy replaces the engine audio clipboard without undo, paste replaces the range, delete closes the gap, insertSilence inserts the range’s length at its start. draw replaces start..end with samples in one zero-based channel, one sample per frame (at most 65536, -1 to 1), preserving timing and the other channels. Drawing corresponds to the Draw tool (reference manual p. 634) and preserves warped clips’ definition grids and warp anchors. sharedCopies is required for shared clips: newVersion edits only this event, all edits all copies, including inactive track versions. Sampler tracks and drum pads count as users too. Without another user, omitting sharedCopies edits the clip in place and keeps its region ids. Locked events/parts and frozen tracks refuse edits. Grid points and warp anchors inside replaced audio are removed; surviving anchors move with the samples and keep their beat numbers. Event fades follow played time through the old and new warp. Paste converts to the target’s sample rate and default speaker arrangement, using engine downmix gains and unity mono duplication. Unknown channel counts map by index with silent extra channels. Writes new float WAV files in the media folder (for a project without a file, the folder its recordings go to, refused without that folder) as a cancellable job; returns job (its result: clip, media, length or copied frames). One undo step per edit; original files stay intact. Fails if the project changes during an edit. Clipboard survives undo and project changes. Not usable inside history.transaction.

Arguments:

Result:

sampleEditor_set

Engine command sampleEditor.set.

Changes the open sample editor’s selection range (reference manual pp. 618, 635). select: all (the whole clip), none, event (the section the event plays) or loop (between the locators, within the clip; none if they are outside it). Or selectionStart and selectionEnd, in clip frames, from 0 to the clip’s length; one of them alone keeps the other. With zeroCrossing (Snap to Zero Crossing), both ends move to the nearest frame within 50 ms where the audio crosses zero. Emits sampleEditor.changed. The view: open; event, the audio event it shows, with its clip, track and media file (0 while it shows none, or its event is gone: an undo brings it back); length, the clip’s length in sample frames; offset and eventLength, the section of the clip the event plays (clip frames); clipStart, the project sample where the clip’s frame 0 would play, and ratio, project samples per clip frame, so frame f plays at clipStart + f * ratio; selectionStart and selectionEnd, the selection range in clip frames, none while they are the same. View state: no undo steps, not saved, and a new or loaded project closes it.

Arguments:

Result:

sampler

sampler_create

Engine command sampler.create.

Creates a sampler track (reference manual pp. 143-144, 711): an instrument track whose channel plays the built-in sampler, named name (default: Sampler and a number), at the end of the track list or as track.add places it with parent and index, playing into output as track.add’s does, from midiInput as channel.set’s (default all, p. 144). The sample is a pool clip, clip, the clip of the audio event event, or an audio file, path, which goes into the pool as a clip, in the pool folder Sampler Tracks, which is made if the pool has none (p. 710), from start to end in the clip’s frames (default: the event’s or the whole clip). Without a sample it starts empty. The sample’s start and end are the sampler’s Start and End parameters, shares of the clip. Emits track.added and channel.changed, and for path media.added, clip.added, clip.changed and, when it makes the folder, poolFolder.added. Returns the track and its channel.

Arguments:

Result:

sampler_load

Engine command sampler.load.

Loads a sample into a sampler track (reference manual p. 710; Apply Hot Swap, p. 716), in place of the one it has, while it plays. The sample is a pool clip, clip, the clip of the audio event event, or an audio file, path, which goes into the pool as a clip, in the pool folder Sampler Tracks, which is made if the pool has none (p. 710), from start to end in the clip’s frames (default: the event’s or the whole clip). Its settings go back to their defaults and to A (p. 713), unless keepSettings (Lock Parameter Settings, p. 715) keeps those that aren’t the sample’s, in A and B: all but the root key, start, end, the fades and the loop’s start, end and crossfade. Emits channel.changed, and for path media.added, clip.added, clip.changed and, when it makes the folder, poolFolder.added. Returns the track and its channel.

Arguments:

Result:

sampler_normalize

Engine command sampler.normalize.

Normalize Sample (reference manual pp. 715, 735): sets the sampler’s Sample gain parameter so that the highest peak between its Start and End reaches level (dBFS, default 0), within the parameter’s range of -48 to 48 dB. Refused for a silent or missing sample. Emits channel.changed. Returns the track and its channel.

Arguments:

Result:

sampler_switchSettings

Engine command sampler.switchSettings.

Switch between A/B Settings (reference manual p. 713): the sampler of a sampler track plays its other settings, the values of all its parameters, and keeps the ones it played for the next switch. B starts as a copy of A. The channel’s settingsB tells which play. Loading a sample goes back to A, unless keepSettings, and another instrument drops both. Emits channel.changed. Returns the track and its channel.

Arguments:

Result:

sampler_zeroCrossings

Engine command sampler.zeroCrossings. Read-only.

Where Snap to Zero Crossing (reference manual p. 713) moves positions of a sampler track’s sample, shares of it as Start, End and the loop’s start and end are, counted from its end while Reverse is on: each to the nearest frame within 50 ms where the sum of the sample’s channels changes sign (of the two frames there, the one nearer to zero). A position without a zero crossing near stays. Refused for a sampler without a sample. Returns positions in the same order.

Arguments:

Result:

script

script_run

Runs Lua code with GNUbase’s API: every engine command as gnubase..(parameters), e.g. gnubase.track.add{type = "audio"}, and events through gnubase.on, gnubase.waitFor and gnubase.events (Lua API reference: https://gnubase.github.io/GNUbase/lua.html). Test cases registered with gnubase.test.case run when the code ends. Runs in a sandbox without files, processes or bytecode, for at most 60 s of Lua code. Returns what the script printed; an error comes back with its traceback and what was printed until then.

Arguments:

Result:

settings

settings_get

Engine command settings.get. Read-only.

The value of a user setting; settings.list describes them all.

Arguments:

Result:

settings_list

Engine command settings.list. Read-only.

Every user setting with its key, description, JSON schema, default, value, and whether it is a preference: one of the settings the preferences dialog shows and preference presets can set. Also the settings file, null when settings are kept in memory only; its version; and what happened when it was loaded: the status (inMemory, missing, loaded, migrated, reset or newer), the version the file had, the problems found, where the original file was kept, and whether the file is read-only for this session, so that changes apply but aren’t saved (a newer GNUbase’s file, or one that couldn’t be backed up or locked).

Result:

settings_reset

Engine command settings.reset.

Puts a user setting back to its default, or every one without key, and saves the settings file. Returns the settings that were reset with their values; emits settings.changed with those that changed.

Arguments:

Result:

settings_set

Engine command settings.set.

Changes a user setting, key to value, or several at once, values by key: all of them or, if one doesn’t fit, none. Saves the settings file, unless settings.list reports it read-only. User settings belong to the user, not to a project. Emits settings.changed with the changed values, unless they had them already. The settings: audio.autoMonitoring (one of [“manual”,”whileRecordEnabled”,”whileRecording”,”tapeMachine”], default “tapeMachine”): When record-enabled audio tracks monitor their input, besides the monitor button: manual never, whileRecordEnabled always, whileRecording while the transport records, tapeMachine while it stands or records; audio.backend (string, default “”): The backend of the audio device that the windowed app opens when it starts, such as asio, wasapi or coreaudio, or empty for the platform’s default backend (see audio.setDevice). audio.setDevice with remember saves it, as Studio Setup does; a backend this build doesn’t have opens the dummy device instead; audio.blockSize (integer, 16 to 8192, default 256): Frames per audio block; audio.busPresets (object, default {“input”:{},”output”:{}}): The user’s own bus presets, per direction (input, output) by name: each a list of busses with their name, format, ports and child busses (bus.savePreset); audio.defaultSendLevel (number, -144 to 12, default 0.0): The level of the sends that track.add sends to a new effect channel, and the one Ctrl-click gives a send in the mixer, in dB from -144 to 12 (reference manual p. 1623); audio.device (string, default “”): The id of the audio device that the windowed app opens when it starts (see audio.backend), or empty for the backend’s default device. If it can’t be opened, the app starts on the dummy device and Studio Setup says why; audio.lastBusConfiguration (object, default {}): The bus configuration that was used last, per direction (input, output): each a list of busses with their name, format, ports and child busses, and for an output bus whether it is the main mix. project.new keeps the configuration of the project it replaces, and a new empty project gets it unless the user’s bus presets named Default say otherwise (reference manual p. 44); audio.listenDim (number, -144 to 0, default -144.0): How far the main mix is turned down on the monitoring bus while channels listen (channel.set listen), in dB from -144 (silence: only the listening channels are heard) to 0; audio.listenLevel (number, -144 to 12, default 0.0): The level at which listening channels play on the monitoring bus, in dB from -144 to 12; audio.mutePreSends (boolean, default false): Mute Pre-Send when Mute: muting a channel, with its mute button or its mute automation, also mutes its pre-fader sends (reference manual p. 1623); off, they play on while it is muted; audio.portSettings (object, default {}): How the audio devices’ ports are shown (audio.setPort), by backend/device id/in or out/system name, also for devices that aren’t connected: the name shown (showAs) and whether it is visible. Ports without an entry show their system name and are visible. Members of an entry that this GNUbase doesn’t know, from a later one, stay; audio.fallbackDevice (one of [“none”,”default”,”dummy”], default “none”): The device that plays while the chosen audio device is lost, until it returns: none, default (the lost device’s backend’s default device, or the dummy device if that doesn’t open), or dummy (the dummy device: no sound, but the transport moves and the project plays on). The engine switches back once the lost device returns. With default, a device that the windowed app can’t open when it starts gives way to its backend’s default device too, instead of the dummy device; audio.preRecordSeconds (number, 0 to 60, default 0.0): Audio pre-record: how many seconds of input from before recording starts go into the files of record-enabled audio tracks, 0 to 60 (0: none). The events start where recording started; resizing an event’s start to the left brings out what was played before; audio.stopAfterPunchOut (boolean, default false): Stop after automatic punch out: playback stops when recording punches out at the right locator, after the post-roll if it’s on (see transport.set), unless it cycles; audio.broadcastDescription (string, default “”): The description in the Broadcast Wave chunk of recorded Broadcast Wave files, cut to 256 bytes, and in the text of recorded Wave and AIFF files; empty for the track’s name; audio.broadcastAuthor (string, default “GNUbase”): The author (originator) in the Broadcast Wave chunk of recorded Broadcast Wave files, cut to 32 bytes, and in the text of recorded Wave and AIFF files; audio.broadcastReference (string, default “”): The reference (originator reference) in the Broadcast Wave chunk of recorded Broadcast Wave files, cut to 32 bytes, and in the text of recorded Wave and AIFF files; audio.waveOver4GB (one of [“rf64”,”split”], default “rf64”): When recording Wave files larger than 4 GB: rf64 (the default) makes such a file RF64, which only applications that support RF64 open; split goes on in a new file, as file systems such as FAT32 need. AIFF files are always split at 4 GB; audio.sampleRate (number, 8000.0 to 768000.0, default 48000.0): The audio device’s sample rate in Hz; chordPads.presets (object, default {}): The user’s own chord pads presets by name (chordPads.savePreset): each with pads (chord, voicings and adaptive of each pad), rootKey, scale, players (without their tracks), player, mode and pattern; editing.applyFolderColor (boolean, default false): Folder tracks give their color to the tracks inside them: when the folder’s color changes and when tracks are added or moved into it; editing.automaticHitpointDetection (boolean, default true): Enable Automatic Hitpoint Detection (reference manual pp. 636-637, 1598): when an audio file is added to the project by importing (audioFile.import) or recording (recording.add), its clip’s hitpoints are detected automatically, as clip.detectHitpoints does, in a job of its own; editing.autoTrackColor (one of [“default”,”previous”,”previousPlusOne”,”lastApplied”,”random”], default “default”): The color new tracks get when none is given (reference manual p. 1621): default (the default color), previous (the color of the track above), previousPlusOne (the color after that one in the project’s color set, or its first color), lastApplied (the color last given to events or parts) or random (a color of the set). With editing.applyFolderColor, a folder’s color wins inside it; editing.defaultColors (array, default []): The color set of new projects (project.new without a template), which the project colors setup’s Save Color Set as Default sets (reference manual p. 118): {name, color} entries as in project.set colors; empty for the factory set (project.factoryColors); editing.defaultCrossfade (object, default {“length”:0.01,”mode”:”equalGain”,”outShape”:”linear”,”shape”:”linear”}): The default crossfade (reference manual pp. 388, 391): its mode and the shapes of its fade in and fade out, which new crossfades get (event.crossfade, and crossfade.set without a mode, as audio quantize and closing gaps use it), and its length in seconds, by which event.crossfade makes events overlap whose clips overlap; the crossfade editor’s As Default sets it; editing.defaultFadeIn (object, default {“length”:0.01,”shape”:”linear”}): The default fade in (reference manual p. 385): its shape and length in seconds, which Apply Standard Fade In gives the selected audio events; the fade dialog’s As Default sets it; editing.defaultFadeOut (object, default {“length”:0.01,”shape”:”linear”}): The default fade out (reference manual p. 385): its shape and length in seconds, which Apply Standard Fade Out gives the selected audio events; the fade dialog’s As Default sets it; editing.defaultTimeBase (one of [“musical”,”linear”,”followTimeFormat”], default “musical”): The time base of new tracks when track.add gives none (Default Track Time Type, reference manual pp. 230, 1595): musical (bars and beats, so their events follow tempo changes), linear (time, so they stay), or followTimeFormat: musical while the project’s primary time format (project.set timeFormat) is barsBeats, linear with any other. Folder, ruler, tempo and signature tracks, which hold no events of their own, are musical; editing.importAudioConvert (boolean, default true): Use Settings imports audio files with Convert to Project Sample Rate (audioFile.import convert; see editing.onImportAudio); editing.importAudioCopy (boolean, default true): Use Settings imports audio files with Copy Files to Project Folder (audioFile.import copy); editing.importAudioNameFormat (one of [“dash”,”underscore”,”dot”,”space”], default “dash”): The names of the files Split Channels writes (audioFile.import nameFormat): dash (take-L.wav), underscore (take_L.wav), dot (take.L.wav) or space (take L.wav); editing.importAudioOneTrack (boolean, default false): Use Settings imports several audio files one after another on one track (audioFile.import oneTrack); editing.importAudioSplitChannels (boolean, default false): Use Settings imports audio files with Split Channels (audioFile.import splitChannels); editing.legatoBetweenSelected (boolean, default false): Legato Mode: Between Selected Notes Only (reference manual p. 1599): MIDI > Functions > Legato extends the selected notes to the next selected note, not to the next note; editing.legatoOverlap (integer, -1920 to 1920, default 0): Legato Overlap (reference manual p. 1599): how far MIDI > Functions > Legato extends notes past the start of the next note, in ticks of 480 per quarter note, -1920 to 1920; negative values leave a gap; editing.strumSpacing (integer, 1 to 1920, default 30): Strum (MIDI > Functions > Strum, #1856): the time between successive notes of a chord, in ticks of 480 per quarter note, 1 to 1920; editing.strumDirection (one of [“up”,”down”,”alternating”], default “up”): Strum’s direction (MIDI > Functions > Strum, #1856): up from the lowest note of each chord, down from the highest, or alternating one chord up and the next down; editing.strumRandom (number, 0 to 1, default 0.0): Strum’s random variation (MIDI > Functions > Strum, #1856): up to this part of the spacing added to each note’s offset, 0 to 1; editing.onImportAudio (one of [“openOptionsDialog”,”useSettings”], default “openOptionsDialog”): What importing audio files in the project window does (reference manual p. 357): openOptionsDialog opens the Import Options dialog, useSettings imports at once with the editing.importAudio* settings. The dialog’s Do not ask again switches to useSettings; editing.rangeToolSplitsPartlySelectedEvents (boolean, default false): Range Tool Splits Partly Selected Events (reference manual pp. 276-277, 293, 1595): Mute, Unmute, Invert Phase On/Off, and Range Start and Range End to Cursor on a selection range work on what lies in it, cutting the events and parts it reaches into at its edges (range.set, range.move). Off, they work on the selected events. Mute Source Events of a range render (track.renderInPlace, p. 1476) follows it too: on, it mutes what lies in the range, cut at its edges; off, every event and part the range reaches into, whole (range.set’s whole); editing.tempoType (one of [“ramp”,”step”,”auto”], default “auto”): The type of new tempo events (reference manual p. 1448): ramp changes the tempo gradually from the event before, step jumps, auto takes the type of the event before (tempo.add, tempo.tap); editing.treatMutedAudioLikeDeleted (boolean, default true): Treat Muted Audio Events like Deleted (reference manual p. 1597): a muted audio event plays nothing and hides nothing, so where it lies in front of another, that one plays. Off, a muted event keeps its place in the stack and silences what lies behind it, which p. 228 advises when assembling stacked takes; editing.wheelEventVolumeAndFades (boolean, default false): Use Mouse Wheel for Event Volume and Fades (reference manual p. 1597): the mouse wheel over an audio event in the project window changes its volume, and with Shift its fade in (in the event’s left half) or fade out (in its right half), instead of scrolling; editing.doubleClickOpensEditorIn (one of [“window”,”lowerZone”], default “lowerZone”): Double-click opens Editor in a Window/in Lower Zone (reference manual p. 1603): where a double click on a MIDI part or an audio part in the project window and Open/Close Editor (editor.openClose, Return) open the editor, the editor window or the project window’s lower zone, whose editor then takes the keyboard focus (p. 100); editing.useDrumEditor (boolean, default true): Use Drum Editor when Drum Map is assigned (reference manual p. 1603): a closed editor opens the parts of a track with a drum map in the drum editor (editor.open); meter.alignmentLevel (one of [-9,-12,-14,-15,-18,-20,-22], default -18.0): Alignment level (reference manual p. 534): where the meter display’s broadcast scales (meter.scale din, ebu, british and nordic) put their alignment level: -9, -12, -14, -15, -18, -20 or -22 dBFS; meter.colorHandleColors (array, default [“#3fae4f”,”#9fbf2f”,”#e0c020”,”#e08020”,”#d03030”]): The colors a new meter color handle gets (reference manual p. 468), in turn as handles are added, each “#rrggbb”: the colors are the user’s, not a theme’s; meter.colorHandles (object, default {}): The level meters’ color handles (reference manual pp. 467-468), by scale (meter.scale’s names): each a level in dB, where the meter changes its color, with the colors below it (lower) and above it (upper), “#rrggbb”. A meter whose scale has handles draws them as solid slices, blending between neighboring handles and stepping at its level where a handle’s colors differ; a scale without handles, and every scale until the user edits one, draws the theme’s meter fill. The channel meters draw the +3 dB digital scale’s (digital3); meter.fallback (number, 1 to 100, default 20.0): Meters’ Fallback (reference manual p. 1614): how fast the channel meters’ and the master meter’s bars fall after a peak, 1 to 100 dB per second; meter.holdForever (boolean, default false): Meter Peak - Hold Forever (reference manual p. 467): the channel meters’ peak marks hold the highest level until the meters are reset (meter.reset); off, for meter.peakHoldTime; meter.holdOnStop (boolean, default true): Hold on Stop (reference manual p. 540): the loudness measurement (meter.get’s integrated, range, seconds, the maxima and the main mix’s truePeakMax) stays when playback stops; off, it starts over there; meter.holdPeaks (boolean, default true): Meter Peak - Hold Peaks (reference manual p. 467): the channel meters show the highest levels as peak marks; meter.integratedReference (number, -70 to 0, default -23.0): Integrated threshold (reference manual p. 539): the meter display’s Integrated readout turns red above this reference plus meter.integratedTolerance, in LUFS; meter.integratedTolerance (number, 0 to 10, default 1.0): Integrated threshold’s tolerance (reference manual p. 539), 0 to 10, in LU; meter.loudnessScale (one of [“ebu9”,”ebu18”], default “ebu9”): EBU Scale (reference manual p. 539): the meter display’s loudness bars on the EBU +9 scale, -41 to -14 LUFS, or on the EBU +18 scale, -59 to -5 LUFS; meter.loudnessUnit (one of [“lufs”,”lu”], default “lufs”): Unit (reference manual p. 539): the meter display shows loudness in LUFS, or in LU relative to -23 LUFS; meter.measureLoudness (boolean, default true): Measure Loudness (reference manual p. 537): playback measures the loudness (see meter.get); off, it measures nothing, and the momentary and short-term loudness and the true peak still follow the signal; meter.momentaryMaxReference (number, -70 to 0, default -15.0): Momentary Max. threshold (reference manual p. 539): the meter display’s Momentary Max. readout turns red above this reference plus meter.momentaryMaxTolerance, in LUFS; meter.momentaryMaxTolerance (number, 0 to 10, default 0.0): Momentary Max. threshold’s tolerance (reference manual p. 539), 0 to 10, in LU; meter.peakHoldTime (integer, 500 to 30000, default 2000): Meters’ Peak Hold Time (reference manual p. 1614): how long the channel meters’ peak marks hold a peak, 500 to 30000 ms, unless meter.holdForever is on; meter.position (one of [“input”,”postFader”,”postPanner”], default “postPanner”): Meter Position (reference manual p. 467): where the channel meters measure (see meter.get): input, after the pre section (its input gain and low and high cut); postFader, after the fader and muting, without the panner; postPanner, after the panner too, both sides of a mono channel’s panner; meter.presets (object, default {}): The measurement presets of the meter display’s thresholds (reference manual p. 539), by name: each the values of the settings meter.momentaryMaxReference, meter.momentaryMaxTolerance and so on for shortTerm, integrated and truePeak (meter.savePreset). Loading one is settings.set with its values; meter.resetOnStart (boolean, default false): Reset on Start: the loudness meter, and the main mix’s peak and RMS maxima, start over when playback starts (see meter.get); meter.rmsAes17 (boolean, default false): AES 17 (reference manual p. 540): the master meter’s RMS level is 3 dB higher, so that a sine’s RMS level is its peak level (see meter.get); meter.rmsResolution (integer, 1 to 1000, default 300): Resolution (reference manual p. 540): how much of the signal the master meter’s RMS level averages, 1 to 1000 ms (see meter.get); meter.scale (one of [“digital”,”din”,”ebu”,”british”,”nordic”,”k20”,”k14”,”k12”,”digital3”,”digital6”,”digital12”], default “digital”): The master meter’s Peak Program Meter scale (reference manual p. 534): digital (-60 to 0 dBFS), din, ebu, british and nordic (the broadcast scales, at meter.alignmentLevel), k20, k14 and k12 (the K-System), or digital3, digital6 and digital12 (up to +3, +6 and +12 dBFS). Its headroom is a red line; meter.shortTermReference (number, -70 to 0, default -18.0): Short-Term threshold (reference manual p. 539): the meter display’s Short-Term readout turns red above this reference plus meter.shortTermTolerance, in LUFS; meter.shortTermTolerance (number, 0 to 10, default 0.0): Short-Term threshold’s tolerance (reference manual p. 539), 0 to 10, in LU; meter.truePeakReference (number, -20 to 3, default -1.0): True Peak threshold (reference manual p. 539): the meter display’s True Peak readout turns red above this reference plus meter.truePeakTolerance, in dBTP; meter.truePeakTolerance (number, 0 to 10, default 0.0): True Peak threshold’s tolerance (reference manual p. 539), 0 to 10, in dB; midi.chaseBeyondParts (boolean, default true): Chases controller events from the whole track; off, only from the MIDI parts under the position, so none outside parts; midi.chaseControllers (boolean, default true): Where playback starts or jumps, or the cursor moves while stopped, MIDI tracks send each control change’s last value before that position; midi.chaseNotes (boolean, default true): Where playback starts or jumps, MIDI tracks start the notes that sound at that position, after the last key switch of each pitch before it that an articulation map’s sound slots played, for a sample, so that the instrument plays the articulation it had there; midi.chasePitchBend (boolean, default true): Where playback starts or jumps, or the cursor moves while stopped, MIDI tracks send each channel’s last pitch bend before that position; midi.chasePrograms (boolean, default true): Where playback starts or jumps, or the cursor moves while stopped, MIDI tracks send each channel’s last program change before that position; midi.devices (object, default {}): The installed MIDI devices (midiDevice.install), by name: each has banks, an optional bankAssignment and an optional output, the MIDI output port it is connected to. Each bank has a name and patches, each patch a name, a program (0 to 127), an optional bank (0 to 16383, sent as bank select MSB and LSB) and an optional folder it is listed in, a path with / between nested folders; a bank’s optional folders are folders it keeps even while they are empty. bankAssignment gives MIDI channels “1” to “16” a bank by its index (midiDevice.set). A MIDI track that names a device (channel.set device) chooses its program and bank by patch, and plays to the device’s output when it plays to neither an instrument nor a port of its own; midi.importAutomation (boolean, default false): Import Controller as Automation Tracks (reference manual p. 365): importing a MIDI file in the project window moves its continuous controllers into automation lanes (midiFile.import automation); midi.importDestination (one of [“midi”,”instrument”], default “midi”): Destination (reference manual p. 365): importing a MIDI file in the project window makes midi or instrument tracks (midiFile.import trackType); midi.importDissolveFormat0 (boolean, default true): Auto Dissolve Format 0 (reference manual p. 365): a type 0 MIDI file imported in the project window gets a track per MIDI channel; off, one track (midiFile.import dissolve); midi.importExtractPatch (boolean, default true): Extract First Patch (reference manual p. 364): a MIDI file imported in the project window gives each MIDI track’s first program change and bank select to the track’s program and bank (midiFile.import extractPatch); midi.importExtractVolumePan (boolean, default true): Extract First Volume/Pan (reference manual p. 364): a MIDI file imported in the project window gives each MIDI track’s first MIDI volume and pan to the track’s (midiFile.import extractVolumePan); midi.importIgnoreTempo (boolean, default false): Ignore Master Track Events on Merge (reference manual p. 365): a MIDI file imported into the open project leaves its tempo and time signatures as they are (midiFile.import tempo false); a MIDI file imported into a new project always brings its own; midi.importMarkers (boolean, default true): Import Markers (reference manual p. 365): importing a MIDI file in the project window adds its markers (midiFile.import markers); midi.importSinglePart (boolean, default false): Import Dropped File as Single Part (reference manual p. 365): a MIDI file dropped on the project window goes into one part, on the MIDI or instrument track it is dropped on or a new one (midiFile.import singlePart); midi.importToLeftLocator (boolean, default false): Import to Left Locator (reference manual p. 365): File > Import > MIDI File places the file at the left locator instead of the project start (midiFile.import position); midi.portSettings (object, default {}): The MIDI ports’ settings (midi.setPort), by backend/in or out/port id, also for ports that aren’t connected: the name shown (showAs), whether it is visible, and for inputs whether it belongs to all MIDI inputs (inAllInputs) and its MPE input (mpe: the whole setup once a member differs from the defaults or the detected device’s preset). Ports without an entry show their system name, are visible, belong to all MIDI inputs and have no MPE input, but for a detected MPE device’s input (mpeDevice in midi.ports), which has the device’s preset. Members of an entry that this GNUbase doesn’t know, from a later one, stay; midi.recordCatchRange (number, 0 to 1000, default 0.0): MIDI record catch range in ms, 0 to 1000: MIDI input that comes this long before a recording starts is recorded at its start, so that the very start isn’t lost; midi.recordFilter (object, default {}): What MIDI recording leaves out (it still plays): types, of notes, controllers, pitchBend, channelPressure, polyPressure and programs; channels, MIDI channels 1 to 16; controllers, controller numbers 0 to 127; midi.retrospectiveEvents (integer, 0 to 100000, default 10000): How many MIDI events each MIDI or instrument track’s retrospective buffer keeps of what came from its MIDI input while it didn’t record (midi.insertRetrospective); 0 keeps none, only the catch range’s input (midi.recordCatchRange); midi.snapPartsToBars (boolean, default true): Recorded MIDI parts start and end at whole bars; preferences.presets (object, default {}): The preferences dialog’s presets (reference manual pp. 1593-1595), by name: each the values of the user settings it sets, all of them or only some (preferences.savePreset). Applying one is settings.set with its values; project.autoSave (boolean, default true): Saves a copy of a project with unsaved changes every project.autoSaveInterval minutes into the folder Auto Saves of its project folder (see project.autoSave); project.autoSaveFiles (integer, 1 to 100, default 5): How many auto saves a project keeps; the next one overwrites the oldest; project.autoSaveInterval (integer, 1 to 120, default 15): Minutes between auto saves; render.freezeTail (number, 0 to 60, default 30): The Freeze Channel Options dialog’s Tail Size in seconds (reference manual p. 992), which Freeze Selected Tracks (with Current Settings) freezes with too: track.freeze’s tail; render.freezeInserts (boolean, default true): The Freeze Channel Options dialog’s Include Inserts for Instrument Tracks (reference manual p. 992), which Freeze Selected Tracks (with Current Settings) freezes with too: track.freeze’s includeInserts; render.deleteFreezeFiles (boolean, default false): The Unfreeze Channel Options dialog’s Delete Freeze Files (reference manual p. 993), which Unfreeze Selected Tracks (with Current Settings) unfreezes with too: track.unfreeze’s deleteFiles. Off, Keep Freeze Files; render.options (object, default {}): The Render Tracks and Render Selection dialogs’ options (reference manual pp. 1471-1477), which Render (with Current Settings) renders with too: track.renderInPlace’s mode, processing, tail (Tail Mode Seconds) or tailBars (Bars & Beats; neither is Off), sampleFormat, sourceTracks, hideSourceTracks, sourceEvents, name, folder (File Path) and mixdown (Mix down to One Audio File, for several tracks that don’t render dry); transport.cycleFollowsMarkers (boolean, default false): Locating to a marker sets the left and right locators to it (marker.locate, marker.locateNext, marker.locatePrevious): a cycle marker’s range, or from a position marker to the next marker; transport.tapTempoMode (one of [“auto”,”selection”,”playbackStart”,”cursor”,”project”,”display”], default “auto”): Where a tapped tempo goes (Tap Tempo Mode, reference manual p. 1458; see tempo.tap): auto, selection, playbackStart, cursor, project or display; ui.eventColors (object, default {“channel”:[“#e64545”,”#e68145”,”#e6bd45”,”#d1e645”,”#95e645”,”#59e645”,”#45e66d”,”#45e6a9”,”#45e6e6”,”#45a9e6”,”#456de6”,”#5945e6”,”#9545e6”,”#d145e6”,”#e645bd”,”#e64581”],”gridMatch”:[“#e63838”,”#e67638”,”#e6a038”,”#d6d638”,”#a8e638”,”#6ee638”,”#38e660”,”#38e6a0”,”#38e6d6”,”#38a8e6”,”#3860e6”,”#5a38e6”,”#8c38e6”,”#c038e6”,”#e638a8”,”#e63860”,”#808080”],”pitch”:[“#e03838”,”#e08c38”,”#e0e038”,”#8ce038”,”#38e038”,”#38e08c”,”#38e0e0”,”#388ce0”,”#3838e0”,”#8c38e0”,”#e038e0”,”#e0388c”],”velocity”:[“#3050c0”,”#3080d0”,”#30b0b0”,”#40c050”,”#a0c830”,”#e0c030”,”#e08030”,”#e03030”]}): The colors of the MIDI editors’ Event Colors schemes, which their setup dialogs set (reference manual pp. 1133-1136): velocity, 8 colors for the velocities 0-15 up to 112-127; pitch, 12 for the pitch classes from C; channel, 16 for the MIDI channels from 1; gridMatch, 17 for the quantize grid’s positions in a bar (16, around at the end) and, last, notes off the grid (p. 1133). Colors are #rrggbb; ui.folderData (one of [“always”,”never”,”hideWhenExpanded”], default “always”): When folder tracks show the events and parts of the tracks inside them as data blocks in the event display: always, never, or hideWhenExpanded (only while the folder is folded); ui.showEventNames (boolean, default true): Whether the event display shows the names of events and parts on them; ui.hideTruncatedEventNames (boolean, default false): Whether the event display leaves out the names that don’t fit their event, instead of cutting them short; ui.highlightSelectedEventBorders (boolean, default false): Whether the event display outlines selected events and parts in red; ui.eventOpacity (integer, 0 to 100, default 100): How opaque the bodies of events and parts are in the event display, in percent; ui.smallestTrackHeightForData (integer, 0 to 400, default 20): The lowest track lane, in dp, that shows what its events and parts hold: waveforms and MIDI part contents; ui.smallestTrackHeightForName (integer, 0 to 400, default 28): The lowest track lane, in dp, that shows the names of its events and parts; ui.waveformBrightness (integer, 0 to 100, default 50): The brightness of audio events’ waveforms in the event display, in percent: 50 as the theme draws them, less dims them, more lightens them; ui.partDataMode (one of [“off”,”lines”], default “lines”): How MIDI parts in the event display show their notes: as lines (lines) or not at all (off); ui.showControllers (boolean, default true): Whether MIDI parts in the event display show their controllers and other events that aren’t notes, as bars from their bottom edge; ui.noteBrightness (integer, 0 to 100, default 50): The brightness of the notes MIDI parts show in the event display, in percent: 50 as the theme draws them, less dims them, more lightens them; ui.keyCommandPresets (object, default {}): The key commands presets (reference manual p. 1559), by name: each the key commands and macros as ui.keyCommands and ui.macros take them (keyCommands.savePreset). Loading one is settings.set with those two values; ui.keyCommands (array, default []): The key commands the user changed (docs/features/key-commands.md): each a command, the parameters it runs with (none for an empty object), and all its keys, which replace its default keys; without keys it has none. Keys are written as in the default key map, Mod for Ctrl (Cmd on macOS), e.g. Mod+Shift+K. A macro is the command macro.; `ui.macros` (array, default []): The key command macros (reference manual p. 1558): each a name and the commands it runs one after the other, with their parameters (none for an empty object). A macro runs as the key command macro.; `ui.layout` (object, default {}): The layout of the windows with zones: under windows, by window (project, editorWindow), its zones (left, right, lower) with whether each is visible, its size in dp, the order of its tabs, the tabs hidden and the active one, and its strips (menuBar, toolbar, infoLine, overviewLine, statusLine, transportBar) with whether each is shown, and its sets of sections (such as a mixer channel's) with the order of their sections, those hidden and as default those the window doesn't know yet, which keep their default visibility, and the sizes in dp of other elements that splitters size (trackList: the track list's width), and for the app's windows (project, mixer1 to mixer4, markers, onScreenKeyboard, tempoTrack, arranger, transportPanel, timeDisplay, scriptConsole) whether it is open, its bounds and the name of its monitor, and maximized if it is (its bounds the normal ones); under panels, by panel, whether it is in a window of its own and that window's bounds and monitor. What it leaves out has its default: a window is closed. A window whose monitor isn't connected goes onto the primary one, fully visible; `ui.markerLines` (one of ["active","all","off"], default "active"): Which markers the event display shows as lines across every track: the active marker track's (active), every marker track's (all), or none (off); `ui.markerColumns` (object, default {}): The markers window's columns: order, the columns after the locate column in order (number, type, position, end, length, description); hidden, those left out (all but the position); widths, each one's width in dp; sort, the column the list is sorted by, and descending. What it leaves out has its default; `ui.markerIds` (boolean, default true): Whether marker events on the marker tracks show their marker ids; `ui.markersAutoScroll` (boolean, default true): Whether the markers window scrolls to keep the marker at the project cursor (its locate arrow) in view; `ui.markersSyncSelection` (boolean, default true): Whether the markers window and the project window select the same markers. It pauses while recording; `ui.noWorkspaceLayout` (object, default {}): The window layout without a workspace (workspace.activate, docs/features/workspaces.md): a copy of ui.layout as it was when a workspace last became active while none was, which No Workspace brings back. Empty for none; `ui.poolColumns` (object, default {}): The pool's columns that its View/Attributes menu shows or hides (reference manual pp. 417, 741): used, status, key (Root Key), info and path, each whether it shows. What it leaves out has its default: the Key column hidden, the others shown; `ui.removeTracksWarning` (boolean, default true): Whether Remove Selected Tracks asks before it removes tracks that aren't empty: that hold events, parts, markers or automation, or are folders with such tracks inside (reference manual p. 213); `ui.scale` (number, 0.5 to 4, default 1.0): The UI scale, applied on top of each monitor's own scale; `ui.selectColorsByName` (boolean, default false): Whether the panes that pick a color of the project's color set (Colorize Selected Tracks, Choose Track Color, Choose Event Color) list the colors by name; otherwise they show them as swatches. The project colors setup's Options tab sets it (Select Colors by Name, reference manual p. 118); `ui.chordPads` (object, default {}): The chord pads zone's display settings (reference manual pp. 1390-1391): primary and secondary, the chord symbols' types (noteName, roman, nashville; the secondary also none), layout keyboard with startNote (Start Note, the first pad's key: 0 to 127; the pads' remote range stays as it is) or grid with columns (1 to 16), listColors (the List assistant's colors on the pads), voicingIndicators and patternProgress (Show Pattern Play Progress). What it leaves out has its default: note names over roman numerals, the keyboard layout from C1 (36), six columns, no colors and voicing indicators; `ui.showVersionName` (boolean, default true): Whether the track list shows the active version's name after the name of a track with more than one version: Show Version Name in Track List in the Track Versions pop-up menu (reference manual p. 231); `ui.theme` (string, default "gnubase"): The theme's folder name in resources/themes; `ui.timeDisplay` (object, default {"beatCountOnly":false,"size":1}): The time display window's options: beatCountOnly shows only the beat in its bar, size is the window's and its digits' size from 0 (smallest) to 4; `ui.timeFormats` (object, default {"secondary":"timecode","timeDisplay":"barsBeats"}): The time formats of the transport controls' displays: secondary in the transport bar and panel, timeDisplay in the time display window; each barsBeats, seconds, timecode, samples or userFrames. The primary format is the project's timeFormat (project.set); `ui.toolModifiers` (object, default {}): The modifier keys of the project window's tools, by action (docs/features/tools.md), each ctrl (Cmd on macOS), alt and shift joined with +, or empty for none: dragDrop.copy (default alt), dragDrop.sharedCopy (alt+shift), erase.deleteLaterEvents (alt), glue.glueAllFollowing (alt), range.selectFullVertical (alt+shift), select.setCursorPosition (alt+shift), select.splitEvent (alt), sizeObjects.disableSnapping (ctrl) and split.splitRepeated (alt). What it leaves out has its default; `ui.toolSwitchNotification` (boolean, default true): Whether choosing a project window tool with a key command shows the tool's name for a moment in the event display (docs/features/tools.md); `ui.toolboxOnRightClick` (boolean, default false): Whether a right click in the event display opens the toolbox, the toolbar's tools at the mouse, and a right click with a modifier key the context menu; when off, the other way round (docs/features/tools.md); `ui.trackControls` (object, default {"arranger":["arrangerMode","timeBase","arrangerChain","arrangerItem","arrangerRepeat","arrangerEditor"],"audio":["mute","solo","record","monitor","read"],"chord":["chordRecord","chordMute","showScales","timeBase","chordAudition"],"effect":["mute","solo","read"],"folder":["mute","solo","read","groupEditing"],"group":["mute","solo","read"],"instrument":["mute","solo","record","monitor","read"],"marker":["addPositionMarker","addCycleMarker","activateMarkerTrack","markerLocate","markerCycle","markerZoom"],"midi":["mute","solo","record","monitor","read"],"ruler":["timeFormat","timeOffsetOn","timeOffset","setTimeOffset"],"signature":["signatureLock","signatureOptions"],"tempo":["tempoTrack","currentTempo","tempoType"],"transpose":["transposeMute","keepInOctave","timeBase","transposeLock"]}): The controls the track list shows, by track type (audio, instrument, midi, group, effect, folder, marker, ruler, tempo, signature, transpose, chord, arranger), in order: mute, solo, record, monitor (audio, instrument and MIDI tracks), read (automation), timeBase, midiChannel (MIDI tracks: their channel.set midiChannel, Any or 1 to 16), program (Programs: on MIDI tracks their channel.set program and bank, by their device's patches with one; on instrument tracks their instrument's programs, instrument.loadProgram), editInPlace (MIDI and instrument tracks: Edit In-Place, which opens and closes the track's in-place editor), on the tempo track tempoTrack (Activate Tempo Track), currentTempo (Current Tempo) and tempoType (Type of New Tempo Points), for marker tracks addPositionMarker (Add Position Marker), addCycleMarker (Add Cycle Marker), activateMarkerTrack (Activate Track) and the menus markerLocate (Locate), markerCycle (Cycle) and markerZoom (Zoom), for ruler tracks timeFormat, timeOffsetOn, timeOffset and setTimeOffset (Set Time Offset to Project Cursor Position), and for the transpose track transposeMute (Mute Transpose Events), keepInOctave (Keep Transpose in Octave Range) and transposeLock (Lock), for the chord track chordRecord (Record Enable), chordMute (Mute Chord Track), chordAudition (Select Track for Auditioning) and showScales (Show Scales), for the arranger track arrangerChain (Select Active Arranger Chain), arrangerItem (Current Item), arrangerRepeat (Current Repeat, such as 2/4), arrangerMode (Activate Arranger Mode) and arrangerEditor (Open Arranger Editor), for the signature track signatureLock (Lock) and signatureOptions (Signature Track Options), and for folders groupEditing (Group Editing). Mute and solo always show on tracks with a channel; a type left out shows none; `ui.trackWidths` (object, default {"controls":{"arranger":160,"audio":120,"chord":160,"effect":120,"folder":120,"group":120,"instrument":120,"marker":140,"midi":120,"ruler":140,"signature":120,"tempo":144},"name":120}): The widths in the track list's rows, in dp: name, the track name's for every track type (20 to 400), and controls, by track type, the width of its controls area (0 to 800), whose controls go onto more lines when they don't fit. A width left out uses the type's default: 120, except marker and ruler tracks' 140, the tempo track's 144 and the chord and arranger tracks' 160; `ui.upDownSelectsTracksOnly` (boolean, default false): Whether Up and Down (track.selectPrevious, track.selectNext) only select tracks; when off, while an event or part is selected they also select the first one on the newly selected track (reference manual p. 218); `ui.controllerLanePresets` (array, default []): The controller lane presets of the MIDI editors (#128, reference manual p. 1166): each a name and the lanes it shows, as editor.set takes them; `ui.effectFavorites` (array, default []): The effect plugins the insert slots' effect selector lists under Favorites (#113, reference manual pp. 544, 563): each a plugin id, "builtin:" for a built-in effect or one of another format, that a star in the selector marked. The selector lists them above all the others; `ui.hiddenControllers` (array, default []): The MIDI controllers, 0 to 127, that the MIDI Controller Setup dialog hides (#737, reference manual pp. 1165, 1302): the controller lane menus and the Note Expression section's Input don't list them; `ui.samplerPanel` (object, default {"lockParameters":false,"normalizeLevel":0,"snapToZero":false}): The sampler panel's toolbar (#1122, reference manual pp. 712, 735): lockParameters, Lock Parameter Settings, whether a sample loaded into the sampler keeps its settings, and normalizeLevel, the Normalization Level in dBFS that Normalize Sample brings the peak to, and snapToZero, Snap to Zero Crossing (p. 713), whether a drag of a marker of the sample's start, end or loop ends where the sample crosses zero. Other properties, from later versions, are kept; `ui.setupPresets` (object, default {}): The setup panes' presets (reference manual p. 1575, docs/features/docking.md), by set of sections (transport, inspector, channel): each a name, the order of the set's sections and those hidden; `ui.onScreenKeyboard` (object, default {"display":"piano","octave":3,"velocity":100}): The on-screen keyboard's octave, 0 to 6 (the lowest key is C0 to C6), the velocity of its notes, 1 to 127, and its display mode, the piano or the computer keyboard (docs/features/onscreen-keyboard.md). Other properties, from later versions, are kept; `ui.workspaces` (array, default []): The global workspaces, for every project (workspace.* commands, docs/features/workspaces.md): each a name and its layout, a copy of ui.layout; `ui.zoomPresets` (array, default []): The horizontal zoom presets of the event display, for every project: each a name and the seconds the view shows; `ui.zoomToolHorizontalOnly` (boolean, default true): Zoom Tool Standard Mode: Horizontal Zooming Only: whether the zoom tool's rectangle zooms the event display across only; when off, it zooms the track heights too (docs/features/tools.md).

Arguments:

Result:

signature

signature_add

Engine command signature.add.

Adds a time signature event at bar (zero-based, or “cursor”: the bar the project cursor is in) with a signature of numerator (1 to 99) beats of denominator (1, 2, 4, 8 or 16), or changes the one there. The bars from there to the next event have that signature; a short first bar is a pickup bar. Musical positions stay in ticks, so events, parts and markers keep theirs while the bars move under them. Returns the bar and the project’s signatures as project.get and signature.changed report them. Refused while the signature track is locked (track.set lock).

Arguments:

Result:

signature_remove

Engine command signature.remove.

Removes time signature events by their bars. The first one stays. Refused while the signature track is locked.

Arguments:

Result:

signature_set

Engine command signature.set.

Changes time signature events, each named by its bar: to moves it to another bar (the first stays at bar 0, and no two events share a bar), numerator and denominator change its signature. All changes happen at once. Refused while the signature track is locked.

Arguments:

Result:

snap

snap_get

Engine command snap.get. Read-only.

The project’s snap settings. on: whether snap is on. type: grid (the nearest grid line), gridRelative (moves in grid steps, keeping the distance to the grid, none from a musical line’s own sample), events (the starts and ends of other events, audio events’ snap points and markers, when near), shuffle (events trade places with their neighbours, see event.shuffle), cursor (the project cursor, when near), or the combinations gridCursor, eventsCursor and eventsGridCursor. format: the time format the grid follows, the project window’s ruler: barsBeats, seconds, timecode, samples or userFrames. grid: the grid type in use, the format’s: for barsBeats bar, beat, quantize (the project’s quantize grid) or adaptToZoom (a note value that the view chooses); for seconds 1ms, 10ms, 100ms, 1000ms; for timecode and userFrames subframe, quarterFrame, halfFrame, frame, twoFrames, second; for samples 1sample, 10samples, 100samples, 44100samples. A grid type without a format switches to its format (the frames to timecode unless userFrames is in use). grids: the grid type each format keeps, by default bar, 100ms, frame, 100samples and frame. zeroCrossing: splitting and resizing audio events, and the edges of selection ranges, in the project window go where the audio crosses zero.

Result:

snap_position

Engine command snap.position. Read-only.

Snaps a position (project samples) as editing in the project window does, with the project’s snap settings, changed by settings: where a point that would go to position goes. from is where it was, for gridRelative; events are the events being edited, whose edges and snap points don’t attract; range is how near (project samples, default a tenth of a second) events, markers and the cursor attract; zoomStep is adaptToZoom’s note value in ticks (default: bars); framesPerSecond the frame grids’ rate (default: the project’s frameRate, see project.set, and for userFrames 30, as in the project window). The seconds and frame grids count from the project’s startTime, as the ruler does. Returns position in project samples, and ticks, which are exact when musical, that is when a bar, beat, quantize or zoom grid line put it there.

Arguments:

Result:

snap_set

Engine command snap.set.

Changes the project’s snap settings; what isn’t given stays. on: whether snap is on. type: grid (the nearest grid line), gridRelative (moves in grid steps, keeping the distance to the grid, none from a musical line’s own sample), events (the starts and ends of other events, audio events’ snap points and markers, when near), shuffle (events trade places with their neighbours, see event.shuffle), cursor (the project cursor, when near), or the combinations gridCursor, eventsCursor and eventsGridCursor. format: the time format the grid follows, the project window’s ruler: barsBeats, seconds, timecode, samples or userFrames. grid: the grid type in use, the format’s: for barsBeats bar, beat, quantize (the project’s quantize grid) or adaptToZoom (a note value that the view chooses); for seconds 1ms, 10ms, 100ms, 1000ms; for timecode and userFrames subframe, quarterFrame, halfFrame, frame, twoFrames, second; for samples 1sample, 10samples, 100samples, 44100samples. A grid type without a format switches to its format (the frames to timecode unless userFrames is in use). grids: the grid type each format keeps, by default bar, 100ms, frame, 100samples and frame. zeroCrossing: splitting and resizing audio events, and the edges of selection ranges, in the project window go where the audio crosses zero. Settings are not undo steps; they are saved with the project. Emits snap.changed.

Arguments:

Result:

snap_zeroCrossings

Engine command snap.zeroCrossings. Read-only.

Where Snap to Zero Crossing moves positions (project samples) on tracks, as the edges of a selection range: each to the nearest point within 50 ms where the audio event playing there crosses zero, on the first of the tracks where one plays, and where that event plays: inside it and its audio part, and not under an event in front of it. The event that plays is within its audio part, which isn’t muted, and where events overlap the one in front (event.toFront). A muted event plays nothing; as in playback, it hides nothing with the user setting editing.treatMutedAudioLikeDeleted on, and silences what lies behind it with it off. A position where no audio event plays, or without a zero crossing near, stays. Returns positions in the same order.

Arguments:

Result:

tempo

tempo_add

Engine command tempo.add.

Adds a tempo event to the tempo track at position, in ticks or “cursor”, with a tempo in BPM (1 to 999), or changes the one there. ramp true changes the tempo gradually from the event before it, false jumps there; without it the user setting editing.tempoType decides (ramp, step, or auto: the type of the event before it). The tempo track keeps its events in fixed tempo mode too, and plays them in tempo track mode (project.set tempoTrackActive). Returns the position in ticks and the tempo as tempo.changed reports it.

Arguments:

Result:

tempo_detect

Engine command tempo.detect.

Detects the tempo of an audio event or a MIDI part (event, its id) of at least 7 seconds with discernible beats (Tempo Detection), audio not in musical mode, and makes the tempo track follow it: where its sounds start (the hitpoints of the clip’s section, or the notes) give the beats, which may drift. The tempo events inside the event but the first go, which an earlier detection made, and a step tempo event at each beat but the last, a quarter apart, replaces those from the first beat, which keeps its position, to the last. factor (default 1) makes the beats that many times as fast: 2 (Multiply by 2), 0.5 (Divide by 2), 4/3 or 3/4. offbeat moves them by half a beat (Offbeat Correction), smooth puts them on one steady tempo (Smooth Tempo). Every musical track that holds events, parts, markers or automation becomes linear first, so nothing moves in time. reset only removes the tempo events inside the event (Reset the analysis result). Makes the tempo track active. One undo step. Returns the tempo as tempo.changed reports it and the number of beats.

Arguments:

Result:

tempo_export

Engine command tempo.export.

Exports the tempo track’s events, which fixed tempo mode keeps too, and the time signature events into an XML file at path (File > Export > Tempo Track), which tempo.import reads. Returns the number of tempo and time signature events.

Arguments:

Result:

tempo_fromMidi

Engine command tempo.fromMidi.

Calculates the tempo from MIDI notes tapped to freely played material (Calculate Tempo from MIDI Events): the notes of parts (MIDI part ids), or the selected ones among them (notes), are distance ticks apart (Distance of Notes, default a quarter). Notes that start within 30 ms of each other are one. A step tempo event at each note but the last replaces the tempo events from the first note to the last, so that each note is distance after the one before and keeps its time; the first one keeps its position, or with beginAtBarStart moves to the nearest bar start after the project start, where a tempo event at the bar before puts it. Notes on linear tracks stay at their time, those on musical ones follow the tempo. Makes the tempo track active; its events come from the tempo the project played. Returns the tempo as tempo.changed reports it.

Arguments:

Result:

tempo_import

Engine command tempo.import.

Imports a file that tempo.export wrote (File > Import > Tempo Track): its tempo events replace the tempo track’s and its time signature events the project’s. A file with tempo changes makes the tempo track active; the fixed tempo stays. Refused while the signature track is locked (track.set lock), unless the file’s time signature events are the project’s. One undo step. Returns the tempo as tempo.changed reports it and the time signature events as signature.changed does.

Arguments:

Result:

tempo_process

Engine command tempo.process.

Process Tempo (reference manual pp. 1463-1464): scales the tempo track’s tempo from start to end (ticks, default the locators) so that the range lasts newLength seconds, or ends at newEnd (seconds of project time). The tempo after the range stays, and musical tracks follow. A ramp across an edge of the range ends a tick before it. Needs tempo track mode. Returns the factor the tempo was multiplied by (Equivalent Tempo Scaling) and the tempo as tempo.changed reports it.

Arguments:

Result:

tempo_processBars

Engine command tempo.processBars.

Process Bars (reference manual p. 1464) from bar (zero-based) for bars bars, in the time signature events and the tempo track’s events: insert puts bars bars of numerator/denominator (default 4/4) there, at the tempo there, and moves the later events by them; delete removes the bars and moves the later events back; replace gives the bars the time signature, at the same tempo; reinterpret too, with the tempo scaled so that they last as long as before, and what musical tracks hold keeps its time. Otherwise events, parts, markers and automation keep their positions, as for any time signature change. Returns the tempo as tempo.changed and the time signature events as signature.changed report them. Refused while the signature track is locked (track.set lock).

Arguments:

Result:

tempo_remove

Engine command tempo.remove.

Removes tempo events from the tempo track, by their positions in ticks. The first one stays.

Arguments:

Result:

tempo_set

Engine command tempo.set.

Changes tempo events of the tempo track, each named by its position in ticks: to moves it (the first event stays at the project start, and no two events share a position), bpm sets its tempo and ramp its type. All changes happen at once.

Arguments:

Result:

tempo_tap

Engine command tempo.tap.

Applies a tempo found by tapping (Tap Tempo), rounded to 0.001 BPM, as mode says (default: the user setting transport.tapTempoMode): selection adds a tempo event at selection (ticks, the start of the selected events or range), playbackStart at the last playback start position, cursor at the project cursor; project sets the project tempo (the first tempo event in tempo track mode, the fixed tempo otherwise); display changes nothing. auto sets the project tempo in fixed tempo mode, else adds an event at selection if given, at the playback start while playing, or at the cursor. New events’ type follows editing.tempoType, as in tempo.add. Returns the tempo, what it did (applied: event, project or none) and an event’s position.

Arguments:

Result:

tempo_warp

Engine command tempo.warp.

Time warp in Warp Grid mode (reference manual pp. 1465-1466): makes the musical position position (ticks, after the project start) play at the time to (project samples) by changing the tempo of the last tempo event before it, to 1 to 360 BPM; if later tempo events exist, a tempo event at position keeps the tempo after it as it was. Musical tracks keep the time of what they hold (Warp Grid), or with follow it keeps its position and follows the tempo (Warp Grid, musical events follow). Needs tempo track mode. Returns the position of the tempo event changed, its tempo, and the tempo as tempo.changed reports it.

Arguments:

Result:

trackLayout

trackLayout_get

Engine command trackLayout.get. Read-only.

The track list’s track heights and folded folders (reference manual pp. 217, 225). heights: the tracks’ heights in the track list and event display, in dp before vertical zoom (20 to 400), by track id, sorted; tracks without one are 40 dp high. folded: the folded folder tracks, sorted, whose tracks the track list and event display don’t show. Tracks that are gone are left out.

Result:

trackLayout_set

Engine command trackLayout.set.

Changes the track list’s track heights and folded folders; what isn’t given stays. heights: the tracks’ heights in the track list and event display, in dp before vertical zoom (20 to 400), by track id, sorted; tracks without one are 40 dp high. folded: the folded folder tracks, sorted, whose tracks the track list and event display don’t show. Tracks that are gone are left out. heights sets the given tracks’ heights, the others keep theirs; folded replaces the folded folders. Settings, not an undo step, saved with the project. Emits trackLayout.changed, as undo and redo do when a track with a height or a fold state comes back or goes. Values the project has already change nothing: no event, and the project doesn’t count as modified.

Arguments:

Result:

trackVersion

trackVersion_activate

Engine command trackVersion.activate.

Activates the version with the ID version on each of the tracks that has one (pp. 233-234): its events and parts play and show, while those of the version that was active stay with that one. Fails if none of the tracks has such a version. tracks: audio, instrument and MIDI tracks; each has its first version, v1 with ID 1, until it gets more (versions and activeVersion in project.get). Returns the tracks with such a version, with their versions; emits track.changed for each that changed, and the events of the events and parts that come and go.

Arguments:

Result:

trackVersion_add

Engine command trackVersion.add.

New Version (reference manual p. 232): gives each of the tracks a new, empty version and activates it; the events and parts of the version that was active stay with it. The new versions share a new ID; each is named vN (N one more than the track’s number of versions, or the next number none of its versions’ names has) unless name is given. tracks: audio, instrument and MIDI tracks; each has its first version, v1 with ID 1, until it gets more (versions and activeVersion in project.get). Returns the tracks with their versions; emits track.changed for each, and the events of the events and parts that come and go.

Arguments:

Result:

trackVersion_assignCommonId

Engine command trackVersion.assignCommonId.

Assign Common Version ID (p. 233): gives the active versions of the tracks a new ID they share, so that trackVersion.activate activates them together. tracks: audio, instrument and MIDI tracks; each has its first version, v1 with ID 1, until it gets more (versions and activeVersion in project.get). Returns the tracks with their versions; emits track.changed for each, and the events of the events and parts that come and go.

Arguments:

Result:

trackVersion_duplicate

Engine command trackVersion.duplicate.

Duplicate Version (p. 234): gives each of the tracks a new version with a copy of the active one’s events and parts, named and with an ID as trackVersion.add gives them, and activates it. tracks: audio, instrument and MIDI tracks; each has its first version, v1 with ID 1, until it gets more (versions and activeVersion in project.get). Returns the tracks with their versions; emits track.changed for each, and the events of the events and parts that come and go.

Arguments:

Result:

trackVersion_remove

Engine command trackVersion.remove.

Delete Version (p. 235): deletes the active version of each of the tracks that have more than one, with its events and parts, and activates the version before it (the next one for the first). Fails if every track has only one version. tracks: audio, instrument and MIDI tracks; each has its first version, v1 with ID 1, until it gets more (versions and activeVersion in project.get). Returns the tracks that lost a version, with their versions; emits track.changed for each, and the events of the events and parts that come and go.

Arguments:

Result:

trackVersion_set

Engine command trackVersion.set.

Rename Version (p. 236): names the active version of each of the tracks. tracks: audio, instrument and MIDI tracks; each has its first version, v1 with ID 1, until it gets more (versions and activeVersion in project.get). Returns the tracks with their versions; emits track.changed for each, and the events of the events and parts that come and go.

Arguments:

Result:

trackVisibility

trackVisibility_get

Engine command trackVisibility.get. Read-only.

What the project window hides (reference manual pp. 58, 80-82). hidden: the tracks (by id) the project window’s track list and event display don’t show; the tracks inside a folder in it hide with it, nested ones too, also those that join it later, and are in the list while they are in the folder: one that leaves the folder leaves the list too, unless it was hidden on its own. sync: the mixer window (window1 to window4) whose channel visibility follows the tracks’, and back (Sync Visibility of Project and Mixer), or empty; the lower zone’s mixer always follows, so a hidden track’s channel is hidden in it, and a channel hidden there hides its track. configurations: the track visibility configurations, each a name and its hidden tracks, folders the same way; configuration: the active one’s name, or empty; modified: whether the hidden tracks differ from the active configuration’s. Tracks that are gone are left out.

Result:

trackVisibility_set

Engine command trackVisibility.set.

Changes what the project window hides; what isn’t given stays. hidden: the tracks (by id) the project window’s track list and event display don’t show; the tracks inside a folder in it hide with it, nested ones too, also those that join it later, and are in the list while they are in the folder: one that leaves the folder leaves the list too, unless it was hidden on its own. sync: the mixer window (window1 to window4) whose channel visibility follows the tracks’, and back (Sync Visibility of Project and Mixer), or empty; the lower zone’s mixer always follows, so a hidden track’s channel is hidden in it, and a channel hidden there hides its track. configurations: the track visibility configurations, each a name and its hidden tracks, folders the same way; configuration: the active one’s name, or empty; modified: whether the hidden tracks differ from the active configuration’s. Tracks that are gone are left out. configurations replaces the list; names are unique and not empty. Without the active one in it, none is active; the one new name in such a list is its rename and takes the tracks the active one hides on their own inside its folders. configuration makes one active and, without hidden, hides its tracks. A setting, not an undo step, saved with the project. Emits trackVisibility.changed, and mixer.changed for the mixers that follow.

Arguments:

Result:

track

track_add

Engine command track.add.

Adds a track and its channel. Tracks go into a folder with parent, at index among its tracks (default: last). Audio channels default to stereo; format or channels set another format, as in bus.add. timeBase is musical (positions in ticks, 1,720,320 to the quarter note, which follow tempo changes) or linear (in samples, which keep their time); without it the user setting editing.defaultTimeBase decides. Folders get a channel only with groupChannel. New channels play through the main output, or through the group channel of the nearest folder around them that has one, and audio tracks record from the first input bus; input, output and instrument set them as channel.set does. tracks moves those tracks, each listed once, into a new folder, in that order, as track.move does (Move Selected Tracks to New Folder); for a group track, their channels play into its channel (Group Track to Selected Tracks), and for an effect track, they send to its channel with send (1 to 8), or else their first send without a destination, switched on, after the fader and at the user setting audio.defaultSendLevel (Effect Track to Selected Tracks, Add Effect Track to Send); tracks without an audio channel, such as MIDI tracks and folders without a group channel, without send those with no free send, and those whose routing would close a loop are left out; for a VCA track, their channels go into a new link group that it controls (linkGroup.add; Add VCA Track to Selected Tracks), tracks without a channel left out. projectFolder puts a group, effect or VCA track into the project’s Group, FX or VCA folder, the first folder of that name at the top level, added at the end if there is none. With the user setting editing.applyFolderColor, a track added to a folder without a color takes the folder’s. Marker tracks have no channel and stay at the top level; a project has at most 10, and a new one becomes the active marker track. Ruler tracks have no channel either; timeFormat is the time format their ruler shows (default barsBeats), and with timeOffsetOn (default false) it counts from timeOffset, a position in the track’s time base or “cursor” (default 0, the project start), instead of the project setup’s start time and bar offset. The tempo track shows and edits the project’s tempo (tempo.), the signature track its time signatures (signature.), the arranger track its arranger events (arranger.), the transpose track its transpose events (transpose.), the chord track its chord and scale events (chord.*): a project has one of each at most, without a channel, at the top level. A VCA track’s channel is a VCA fader (reference manual p. 153): no audio, input or output, a fader that controls a link group (linkGroup.add).

Arguments:

Result:

track_addFromPreset

Engine command track.addFromPreset.

Adds the tracks of a track preset with its sound (Use Track Preset, reference manual p. 199), below track in its folder or else at the bottom of the track list. Sends to group and effect channels go to the project’s tracks with the same name, outputs to its busses with the same name or else the main output. Faders and send levels above the project’s fader top come down to it. Emits track.added and track.reordered. Returns the new tracks.

Arguments:

Result:

track_divideAtHitpoints

Engine command track.divideAtHitpoints.

Divides the audio events inside a folder with Group Editing enabled, including nested folders (reference manual p. 642). Uses quantize.slice with its default equal track priorities, 20 ms merge range and zero offset, cutting all enclosed audio tracks at the same project positions. MIDI parts and tracks outside the folder stay unchanged; locked events stay whole. Returns the events including their slices, and the cutting positions in project samples, as one undo step.

Arguments:

Result:

track_duplicate

Engine command track.duplicate.

Duplicates a track below it: its channel with every setting, its events, parts, patterns, markers and automation, and for a folder the tracks inside it, whose channels play through the copies of the group channels they played through. Returns the copy.

Arguments:

Result:

track_endRender

Engine command track.endRender.

Releases a background render’s track locks after failure or cancellation.

Arguments:

track_export

Engine command track.export.

Exports tracks as a track archive (Export Selected Tracks, reference manual pp. 205-206): a DAWproject file with the tracks, a folder with the tracks inside it, their channels, events, patterns and automation, which track.import imports into other projects and other applications open as a project. The project’s sample rate, tempo, time signatures, fader top and busses come along so that positions, volumes and routing mean the same. copyMedia (default true) copies the media files into the archive, otherwise it refers to them where they are; those that are missing it refers to where they were (missing). Marker and ruler tracks can be exported; tempo, signature, arranger, transpose, chord and VCA tracks not yet: listed, also inside a listed folder, they are refused, otherwise they stay behind. Changes nothing in the project. Returns the file, the tracks that stayed behind (skipped) and the media files that are missing.

Arguments:

Result:

track_finishRender

Engine command track.finishRender.

Applies a prepared background track render as one undo step; only its engine job may call it.

Arguments:

Result:

track_freeze

Engine command track.freeze.

Freezes audio and instrument tracks (reference manual pp. 219-220): renders what each plays after its plugin slots, before the strip’s other sections (the instrument, the events, the pre section and the inserts), offline from the project’s start to the end of its last event or note, with up to tail seconds more (0 to 60, default 30) that end after the last sample a 24-bit file doesn’t hold as silence, into a 32-bit float WAV file named after the track in the Freeze folder of the project’s folder (for a project without a file, of the folder its recordings go to, and refused without that folder). The track then plays the file from the project’s start instead of its events, parts, instrument, pre section and slots, which stay as they are; the strip’s other sections, the fader, pan, mute and sends still play, with their automation. Its monitor and record enable buttons go off, and those of the MIDI tracks that play it, and can’t be turned on while it is frozen (see channel.set). Renders as mixdown.export does, and is refused when it is, for a frozen or disabled track and for one with nothing to play. One undo step. includeInserts false (Include Inserts for Instrument Tracks, p. 992; default true) renders an instrument track’s instrument only, before its pre section and slots, which then still play on the file with their automation (the track’s frozen.inserts is false); an audio track’s file holds them in any case. Returns a cancellable background job; its result holds the tracks. Affected tracks are locked until the job applies the freeze as one undo step, fails or is cancelled.

Arguments:

Result:

track_import

Engine command track.import.

Imports tracks from a track archive (track.export) or a project file (Import Tracks from Project and Track Archive, reference manual pp. 200-205), in one undo step: tracks (ids in the file, see track.importSources; default: every top-level track it can import), a folder with the tracks inside it that can be imported, in the file’s order. They become new tracks below track in its folder or else at the bottom of the track list (Import Position for New Tracks); marker tracks go to the top level. destinations import some of tracks onto the project’s tracks of their type instead (Destination Track, p. 203), each source onto one track, not one inside a listed folder: a group, effect, folder, marker or ruler track replaces the track, with the tracks inside it, which can’t be destinations themselves, and takes what played or sent into it (a marker track replaced makes room for its copy within the limit of marker tracks); new tracks below a track inside it go below it instead; an audio, instrument or MIDI track gives the track its events and parts as existing says (On Import on Existing Tracks: replace replaces the track’s, add adds them, version, the default, puts them into a new version, which the tracks imported onto get together), with its other versions after the track’s, its settings and its automation, and the track keeps its name and buttons, all in the track’s time base. The version IDs of the file become new ones, shared by the versions that shared one there, on new tracks too; the new version of a track imported onto gets the ID its source’s active version has, so that the tracks imported onto get one ID when their sources played versions that shared one, and a version with the name of one of the track’s gets a name of its own. events (default true) brings their events, parts, patterns, markers and track versions, settings (default true) their channel settings and inserts, automation (default true) their automation, replacing the track’s; without automation, a track that events or settings are imported onto loses its automation (p. 204). position (Import Position) puts the events where they were in the file’s timecode (absolute, the default: moved by the difference of the project start times), as far from the project start as from the file’s (relative), or as far from the cursor (cursor); refused if they would start before the project start. range {start, end} imports only what starts from start up to end, in samples at the project’s sample rate from the file’s start (Range). The project’s length grows to the end of what is imported, up to 24 hours (p. 204). The buttons (mute, solo, listen, monitor, record enable) of new tracks are off and automation reads, as these states aren’t imported (p. 200). Routing between the imported tracks stays; sends and outputs to other channels go to the tracks the project had with the same name and type, outputs to busses to its busses with the same name or else the main output. Linear positions from a file at another sample rate are rescaled to keep their time, as project.set does; faders, send levels and volume automation above the project’s fader top come down to it. Clips come into the pool’s top folder, a drum machine pad’s into the folder Drum Machine, unless the project has the same clip already, as after importing the file before: then the tracks share it, and clips of the file that are the same become one; media files the project has, at the same path or with the same audio, are shared too. Media files embedded in the file are extracted next to it, as project.load does; media.prepareArchive and media.conform with the media it returns copy and convert them into the project folder (Media Files, p. 205). Tempo, signature, arranger, transpose, chord and VCA tracks can’t be imported yet: listed, also inside a listed folder, they are refused, otherwise they stay behind. Emits the events of what changed, as redoing it would. Returns the new tracks, also those that replace tracks, the tracks of the file that stayed behind (skipped), from top to bottom, and the media files it added (media).

Arguments:

Result:

track_importSources

Engine command track.importSources. Read-only.

The tracks of a DAWproject file that track.import can import from: a track archive (track.export) or a project. Each with its id in the file, name, type, parent (the folder it is in, or 0), whether track.import can import it (importable), and the sample rates of the media files its events and its sampler’s or drum machine’s samples play, each once from the lowest (mediaSampleRates), as media.conform converts those at another rate than the project’s (Convert Sample Rate); from top to bottom. With range {start, end} only the events that track.import brings with that range: what starts from start up to end, in samples at the project’s sample rate from the file’s start (Range, reference manual p. 204). With events false, as track.import without events (default true), none of the events and track versions: only the samplers’ and drum machines’ samples. And the file’s project settings as project.get has them, to compare them with the project’s (Project Settings, p. 205): name, sampleRate, frameRate and startTime. Extracts no media files.

Arguments:

Result:

track_loadPreset

Engine command track.loadPreset.

Gives tracks the sound of a track preset (Load Track Preset, reference manual pp. 239-243), in one undo step: what track.savePreset keeps, not their names, routing, sends or buttons. Their inserts are replaced by copies of the preset’s, the automation of the plugins they had goes with them. The tracks must be as many as the preset’s, and of the same types in the same order: the first of tracks gets the sound of the preset’s top track, and so on. Faders above the project’s fader top come down to it. A sampler’s sample and a drum machine’s pads with their names and samples come along, their clips into the pool unless it has the same ones, their files shared with the project’s that have the same audio, and the lanes of a drum track’s patterns take the pads’ names. Emits track.changed, channel.changed, plugin.removed, plugin.added, media.added, poolFolder.added (a drum pad’s clips go into the pool folder Drum Machine), clip.added and pattern.changed.

Arguments:

Result:

track_locateNextHitpoint

Engine command track.locateNextHitpoint.

Moves the project cursor to the next hitpoint after it of an audio event on a track (Alt+N, reference manual p. 641): the hitpoints that count, inside the section each event plays. Without one the cursor stays and event is null. Returns the event and the cursor in samples.

Arguments:

Result:

track_locatePreviousHitpoint

Engine command track.locatePreviousHitpoint.

Moves the project cursor to the previous hitpoint before it of an audio event on a track (Alt+B, reference manual p. 641), like track.locateNextHitpoint.

Arguments:

Result:

track_move

Engine command track.move.

Moves a track, with what it contains, into a folder (parent, 0 for the top level) at index among its tracks. Where the group channel of the nearest folder around a moved track changes, its audio and that of the tracks inside it follows: into a folder with a group channel it plays through that, out of it through the next group channel up, or the main output. Channels routed elsewhere by hand or disconnected, and routes that would make a loop, stay as they are. With the user setting editing.applyFolderColor, tracks moved into a folder with a color take it.

Arguments:

track_presets

Engine command track.presets. Read-only.

The track presets (track.savePreset), sorted by name: each a name, its file and the types of its tracks from top to bottom, which the tracks it goes to must have; keeps of a preset saved with keep: channel or patch, which of the two it gives MIDI tracks.

Result:

track_relinkFreeze

Engine command track.relinkFreeze.

Points frozen tracks at other freeze files, such as copies that media.prepareArchive made, as one undo step. An entry applies only if its track is still frozen and plays from, and the new file can be read and has the freeze file’s sample rate, channels and length; otherwise it is skipped, and with project every entry is skipped unless that project is still open (project.revision’s project). Returns the tracks it relinked and the ones it skipped.

Arguments:

Result:

track_relinkPicture

Engine command track.relinkPicture.

Points tracks at picture copies as one undo step. An entry applies only if its track still has the picture from and path is a readable regular file; otherwise it is skipped. Paths are kept absolute, as in track.set. With project, every entry is skipped unless that project is still open (project.revision’s project). Returns the tracks relinked and skipped; emits track.changed.

Arguments:

Result:

track_remove

Engine command track.remove.

Removes a track with its channel, events, parts or markers; a folder also removes the tracks inside it. The channel leaves its link group, which goes if it has no channels left (linkGroup.removed); a VCA track’s group links the volume again (linkGroup.changed). Without the active marker track, the topmost marker track becomes the active one.

Arguments:

track_removeEmpty

Engine command track.removeEmpty.

Removes the empty tracks (Remove Empty Tracks, reference manual p. 213): audio, instrument, MIDI and marker tracks without events, parts, markers or automation, and folders without tracks, unless another track’s channel plays or sends into theirs (an instrument track a MIDI track plays, a folder’s group channel). Plugins in a channel’s slots and an instrument track’s instrument don’t keep a track. Group, effect, VCA, ruler, tempo and signature tracks stay. The channels of the tracks it removes leave their link groups, and a group left without channels goes (linkGroup.removed). If the active marker track goes, the topmost marker track that stays becomes the active one. What it removes can leave others empty, such as a folder that held only empty tracks, so it looks again until no empty track is left. One undo step; none if nothing is empty. Returns the tracks removed, from top to bottom, with those inside removed folders.

Result:

track_renderInPlace

Engine command track.renderInPlace.

Renders audio and instrument tracks in place (reference manual pp. 1471-1477): what each plays from start to end, in project samples (a range selection; default: from the start of its first event or note to the end of its last), with up to tail seconds more (0 to 60, default 0) that end after the last sample a 24-bit file doesn’t hold as silence, into a WAV file (sampleFormat as in mixdown.export, default float32) in the project’s media folder (for a project without a file, the folder its recordings go to, and refused without that folder), named name or after the track, and puts it as one event at start on a new audio track below the track, named after it with (Rendered), which plays through the same output. processing: dry renders what plays on the channel, before its pre section and plugin slots, and the new track gets the channel’s slots, strip, fader, pan and sends; channelSettings (the default) renders after the slots and the strip, before the fader, and the new track gets the fader, pan and sends; completeSignalPath renders after the fader and panner, in the output’s format, and the new track gets no settings. sourceTracks: keep (the default), mute, disable or remove the tracks rendered; hideSourceTracks true hides them in the project window unless they are removed, as trackVisibility.set does, which undo leaves; sourceEvents mute (default keep) mutes the events and parts in events, or without events those the range from start to end reaches into on the tracks: with the user setting editing.rangeToolSplitsPartlySelectedEvents cut at its edges, only what lies in it (range.set), else whole (p. 1476). Renders as mixdown.export does, and is refused when it is, for a disabled track, with dry for a frozen track (its freeze file is already through the slots that dry copies), and with completeSignalPath for a silent track: muted, or silenced by another track’s solo. One undo step when the background job finishes. Returns a cancellable job whose result holds the new tracks, media files and events, in order. mode: oneEvent (default), separateEvents (one file per event or part), or blockEvents (combine adjacent or overlapping events and parts). Each source gets one destination track. events optionally limits the input to audio event, audio part and MIDI part ids on the selected tracks, excluding other material even where it overlaps or plays in the tail. start/end clips those event ranges. Event selection and separate/block modes require unfrozen tracks. Affected tracks and rendered events are locked until the job ends. tailBars (Tail Mode in bars and beats, p. 1473; 0 to 16) gives the tail in bars of the time signature at the range’s end instead of tail. folder (File Path) renders into that folder, an absolute path, instead of the media folder. mixdown true (Mix down to One Audio File) sums the tracks’ renders from the start of the earliest range to the end of the latest into one file on one new track, named name and (Rendered), or Mixdown (Rendered), below the first track; it needs several tracks that play through one output, oneEvent and no dry processing. With channelSettings it renders after the panners, without the faders and mutes, and the new track gets no settings: centred at 0 dB. The tracks’ panners must put out one format, the file’s.

Arguments:

Result:

track_renderLocks

Engine command track.renderLocks. Read-only.

The tracks locked by background rendering, with each job id.

Result:

track_savePreset

Engine command track.savePreset.

Saves the sound of tracks as the track preset name (Save Track Preset, reference manual p. 239), replacing a preset of that name: of one track, or of several as a multi-track preset (p. 241), which keeps them in the order of the track list, whatever the order of tracks. Audio, instrument, MIDI, group and effect tracks have one: their channel’s pre section, equalizer, strip, fader, pan and inserts, their MIDI modifiers, inserts, sends, volume, pan, program, bank and device, the MIDI channel (channel.set midiChannel), the instrument with its parameters and a drum machine’s pads, and the color. Presets are DAWproject files in the folder Track Presets in the user settings’ folder, with the media files of a sampler’s and drum pads’ samples in them; a file that is missing is referred to where it was (missing). keep: of the MIDI tracks’ MIDI channel and patch (program and bank) only the channel or only the patch (p. 238), the other left at its default, which loading the preset leaves as the track has it; without it both. Refused without a MIDI track among tracks. Changes nothing in the project. Returns the preset’s file and the media files that are missing.

Arguments:

Result:

track_set

Engine command track.set.

Changes a track’s name, color (#rrggbb, or null for the default), time base or, for ruler tracks, time format and time offset: timeOffset is a position in the track’s time base, after a new timeBase in the same command in the new one, or “cursor” (Set Time Offset to Project Cursor Position), and timeOffsetOn switches it on or off (see track.add). A new time base keeps its events, parts, markers and automation at the same time; on a linear track they keep their time when the tempo changes too, the notes in its MIDI parts with them. enabled false disables an audio, instrument or MIDI track: it keeps its events and channel settings but plays nothing and is silent. groupChannel turns a folder’s group channel on or off: a new one is stereo and plays through the next group channel up, or the main output; the audio of the tracks inside then plays through it, or without it through the next group channel up, or the main output, and its automation and the routing of other channels to it go, and it leaves its link group, which goes if it has no channels left (linkGroup.removed). Channels routed elsewhere by hand or disconnected keep their routing. With the user setting editing.applyFolderColor, a folder’s new color goes to the tracks inside it. groupEditing turns a folder’s Group Editing mode on or off (reference manual p. 274): in the project window, selecting an event, a part or a range on a track inside it then selects those of its other tracks with the same start and end too. picture is an image file (PNG, JPEG or SVG) that the mixer shows on the track’s channel, or empty for none; a relative path is taken from the working folder, and project.save embeds the file (or, without embedMedia, refers to it), as it does media files. drumMap is the drum map (drumMap.add) a MIDI or instrument track’s notes play through, or 0 for none; articulationMap its articulation map (articulationMap.add), or 0 for none, whose remote triggers also select the sound slot of the notes played into the track (midi.inject, its MIDI input): a trigger key or program doesn’t play but sends the slot’s output events, and the notes after it get the slot’s channel, transpose and velocity. nameList, for a MIDI or instrument track, is its name list (reference manual p. 1239), which names its pitches in the editors while it has no drum map: gm for GM Default, General MIDI’s percussion sounds, pads for the names of the pads of the drum machine it plays (drum.create), none for No Names. lock, for the signature track, is its Lock (reference manual p. 163): while it is on, signature.add, signature.set and signature.remove are refused.

Arguments:

Result:

track_unfreeze

Engine command track.unfreeze.

Unfreezes frozen tracks: they play their events, instrument and plugin slots again. Their freeze files stay, so the step can be undone. deleteFiles true (Delete Freeze Files, reference manual p. 993; default false) deletes them once the step can’t be undone anymore: when it is dropped from the history or the project is closed with it done, unless a track plays them then. One undo step. Returns the tracks.

Arguments:

Result:

transport

transport_exchangeLocators

Engine command transport.exchangeLocators.

Swaps the left and right locators.

Result:

transport_get

Engine command transport.get. Read-only.

Whether playback and recording run, the project cursor in samples, where the last playback started (start, in samples, without the pre-roll), the locators and the modes. After a locate the cursor is where it goes, even before the audio thread has applied it. countingIn: the metronome counts in before a recording from stop (see transport.record); meanwhile playing is true, and recording is whether recording starts where playback starts. recordWaiting: a recording waits for where it starts, the end of the pre-roll or the punch in at the left locator; meanwhile recording is false, and transport.toggle with record cancels it.

Result:

transport_locate

Engine command transport.locate.

Moves the project cursor to a position in samples, 0 to 2^48, by seconds from where it is (back if negative, not before the project start or past 2^48 samples: the transport bar’s rewind and forward), or to a target: projectStart, projectEnd (the end of the last event, at most 2^48 samples), leftLocator or rightLocator. While playing, playback continues from there.

Arguments:

Result:

transport_play

Engine command transport.play.

Starts playback from the project cursor, or from the left locator if startMode is cycleStart, less the pre-roll if preRoll is on (not before the project start); in arranger mode a start outside the chain’s events starts at the chain’s first step instead. While playing it does nothing, except that it ends a Repeat Forever loop: playback then goes on with the next chain step, or past the chain if the looping step is the last one.

Result:

transport_record

Engine command transport.record.

Starts recording (record true, the default): playback starts as with transport.play if it stood, and recording where playback would start without the pre-roll; or recording punches in where it plays. With punchIn before the left locator, recording starts at the left locator instead. From stop, with the metronome’s count-in on (metronome.set countIn), the metronome counts in first and playback starts at the exact sample where the count-in ends; transport.stop ends a count-in. record false punches out and playback goes on, while lockRecord is on only with confirmed; the takes come later, with recording.added, as for transport.stop. Record-enabled tracks may monitor their input meanwhile, by the user setting audio.autoMonitoring (see channel.set).

Arguments:

Result:

transport_set

Engine command transport.set.

Changes the given settings and keeps the rest. left and right: the locators, in samples (0 to 2^48), or “cursor” for the cursor position. cycle: cycle playback between the locators; with the right locator before the left one, playback skips the range instead. startMode: cursor or cycleStart (the left locator). returnToStart: on stop, return to where playback started. punchIn: playback that reaches the left locator starts recording there. punchOut: recording that reaches the right locator ends there and playback goes on, or stops with the user setting audio.stopAfterPunchOut, unless it cycles. preRoll and preRollAmount (samples, up to an hour at 768 kHz): playback starts that much before the cursor. postRoll and postRollAmount (the same): after an automatic punch out with audio.stopAfterPunchOut, playback goes on that much longer before it stops. Recording that punches in or out and playback that stops on their own announce transport.changed. metronome is the transport bar’s switch for the metronome click (metronome.set). audioRecordMode: what a recording does to the events it overlaps on its track (see recording.add): keepHistory (the default), cycleHistoryReplace or replace. midiRecordMode: what a MIDI recording does to the MIDI parts it overlaps (see recording.add): newParts (the default), merge or replace. midiCycleRecordMode: what a MIDI cycle recording makes of its laps (see recording.add): mix (the default), overwrite, keepLast, stacked or mixStacked. lockRecord: Lock Record, which keeps a recording from stopping or punching out by accident: transport.stop, transport.record and transport.toggle stop it or punch out only with confirmed, and recording ignores the punch out at the right locator; it stays on until it is set off. A count-in isn’t a recording yet: they end it without confirmed.

Arguments:

Result:

transport_stop

Engine command transport.stop.

Stops playback and recording. With returnToStart the cursor goes back to where playback started or was last located to. While lockRecord is on (see transport.set), a recording stops only with confirmed: the user confirmed it. A recording’s takes come into the project later, not with this command: once the input still on its way has come in and the files are closed, the engine runs recording.add, which announces recording.added; a file that can’t be created or written is announced with recording.failed. Wait for recording.added before project.save, or the project is saved without the takes; it follows unless no file could be written, which only recording.failed reports. project.load, project.new or project.revert before it drop them with recording.failed, and their files stay in the old project’s media folder.

Arguments:

Result:

transport_toggle

Engine command transport.toggle.

Stops playback if it plays, otherwise starts it. With setting, switches that on or off instead: cycle, punchIn, punchOut, preRoll, postRoll, metronome (see transport.set), or record (on as transport.record, off punches out, or cancels a recording that waits for its own start; with punchIn on, playback still punches in at the left locator). While lockRecord is on, it neither stops nor punches out a recording unless it gets confirmed.

Arguments:

Result:

transport_update

Engine command transport.update.

Takes over what the audio thread changed on its own: recording that punched in or out at the locators, and playback that stopped after a punch out, and announces it with transport.changed. The engine runs it itself when the audio thread played or recorded differently or applied a request; runs that change nothing stay out of engine.commandLog.

Result:

transpose

transpose_add

Engine command transpose.add.

Adds a transpose event to the transpose track, which is added if the project has none. From its position (in the track’s time base, ticks or samples; default the cursor) to the next event, MIDI parts that follow global transpose play value semitones (-24 to 24, default 0) higher; before the first event nothing is transposed. Refused while the track is locked and where an event is.

Arguments:

Result:

transpose_assignRootKey

Engine command transpose.assignRootKey.

Set Root Key for Unassigned Events: every MIDI part and audio event without a root key gets the project root key (project.set rootKey), so that it follows later changes of it. Refused without a project root key.

transpose_get

Engine command transpose.get. Read-only.

The transpose track: its id (0 for none), its events in timeline order (id, position in the track’s time base, start in samples, value in semitones), mute, keepInOctave and lock.

Result:

transpose_remove

Engine command transpose.remove.

Removes transpose events. Refused while the transpose track is locked.

Arguments:

transpose_set

Engine command transpose.set.

Changes transpose events: each moves to position (in the transpose track’s time base) or gets a new value (-24 to 24 semitones). Refused while the track is locked.

Arguments:

transpose_setTrack

Engine command transpose.setTrack.

Changes the transpose track’s controls: mute (Mute Transpose Events: the events don’t play), keepInOctave (Keep Transpose in Octave Range: what a part that follows plays — the root key’s step, the transpose events and the part’s own transpose together — stays within 7 semitones either way, 8 up plays 4 down) and lock (the events can’t be added, changed or removed).

Arguments:

Result:

ui

ui_click

Clicks the centre of the element that the CSS selector matches, or a point. The element must be visible. With action down the button stays pressed until an action up for it, and with neither selector nor x and y they press or release it where the mouse is: ui_move in between moves the mouse with the button held, and other tools run while it is, e.g. a settings change halfway through a drag. Returns the element under the mouse, the one that got the click unless another covers it.

Arguments:

Result:

ui_close

Asks to close a window as its title bar’s close button does: a panel’s own window docks the panel again, and the main window asks to quit, which asks about unsaved changes first. With quit, asks GNUbase to quit as the OS does, e.g. the macOS app menu’s Quit or a signal, without a window. The request runs in the UI’s next step, as the OS’s do: use ui_wait for what it opens, such as the unsaved changes question.

Arguments:

ui_dom

Read-only.

Reads a window’s DOM (RmlUi documents): its documents, or with selector the elements that the CSS selector matches (like querySelectorAll), each as a tree of elements with tag, id, classes, other attributes, a form control’s value, a drop-down list’s options (value, text and whether it’s selected), pseudo-classes such as hover, focus or checked, whether it’s visible, its border box in the window’s pixels and its children, depth levels deep. Text is a child {“text”: …}; an element whose children are left out has its text instead. Use depth 0 to get just the elements.

Arguments:

Result:

ui_drag

Drags with the left button between elements or points, e.g. a fader’s cap, finer with shift held. Fails if its ends can’t both be in view; scrolling done to show them stays after failure. Returns the element under the mouse at the end.

Arguments:

Result:

ui_drop

Drops files on an element or a point, as if dragged there from the OS’s file manager, e.g. audio or MIDI files on the project window’s event display to import them. Returns the element they were dropped on.

Arguments:

Result:

ui_file_dialog

Lists the file dialogs that wait for an answer, e.g. after File > Open: each with its id, kind (open, save or folder), title, filters and the location it starts in. With dialog, first answers that one as the user would: with files, the files chosen (the file to save as, the folder); with none, a cancel. A dialog the OS shows stays open until it is closed, and its answer is then ignored. Returns the dialogs still waiting.

Arguments:

Result:

ui_key

Presses and releases a key with modifiers, written like “Enter”, “Ctrl+Shift+S” or “Mod+Z”: letters, digits, F1 to F24, Enter, Escape, Tab, Backspace, Delete, Insert, Home, End, PageUp, PageDown, Up, Down, Left, Right, Space, . , - +, Alt on its own (which opens the menu bar on Windows and Linux), and on the keypad Num0 to Num9, NumEnter, Num* Num/ Num+ Num- Num.; modifiers Mod (the platform’s command key: Cmd on macOS, Ctrl elsewhere), Ctrl, Shift, Alt and Meta (Cmd). A key that the focused element doesn’t use runs its key command, e.g. Space starts or stops playback. With action down the key stays pressed until an action up for it, e.g. Num+, Forward, winds until then; action repeat after it is one of the OS’s key repeats, which only some key commands run again, such as the key editor’s Up and Down. Keys don’t type text: use ui_text for that. Returns the element with the keyboard focus.

Arguments:

Result:

ui_move

Moves the mouse to the centre of an element or to a point, e.g. to hover over it, or with a button that ui_click’s action down holds, to drag. Returns the element now under the mouse.

Arguments:

Result:

ui_screenshot

Read-only.

Takes a screenshot of a window, or with selector of the element it matches (its border box), as a PNG image in the window’s pixels.

Arguments:

ui_text

Types text into the element with the keyboard focus, e.g. a text field that ui_click focused. Returns that element.

Arguments:

Result:

ui_wait

Read-only.

Waits until an element that the CSS selector matches is visible, and has the text if one is given; with visible false, until none is. Returns the elements the selector matches then (with the text), like ui_dom with depth 0, or an error after the seconds have passed.

Arguments:

Result:

ui_wheel

Turns the mouse wheel over an element or a point, or where the mouse is, e.g. to scroll a list or turn a knob.

Arguments:

Result:

ui_window

Does what the Windows dialog does to a window: activate brings it to the front with the keyboard focus, restored if it is minimized; minimize minimizes it; restore restores it if it is minimized. deactivate makes it lose the keyboard focus, as when another application comes to the front: keys and buttons held there go up, e.g. Forward stops winding.

Arguments:

ui_windows

Read-only.

Lists GNUbase’s open windows: each window’s id, whether it’s the main window, its size in pixels, its dp ratio (pixels per density-independent pixel: its monitor’s scale times the UI scale) and its documents (title, source file, whether visible and modal), and cursor, the mouse pointer the UI shows as its style sheets name it (empty for the OS’s arrow). Coordinates in the other ui_ tools are in the window’s pixels, as in its screenshots.

Result:

workspace

workspace_activate

Engine command workspace.activate.

Shows a workspace: its layout becomes the user setting ui.layout, which opens, closes and places the windows as it says, and it becomes the active workspace. A window whose monitor isn’t connected goes onto the primary one, fully visible. Without a type (No Workspace) no workspace is active and the layout returns to the one there was when a workspace last became active while none was (the user setting ui.noWorkspaceLayout); it stays as it is if none was active. Emits workspace.changed with what workspace.get returns.

Arguments:

Result:

workspace_add

Engine command workspace.add.

Adds a workspace with the window layout as it is now (the user setting ui.layout), a global one for every project or a project one saved with the project, after the others of its type, and makes it the active one. Names are unique within a type. If no workspace was active, ui.noWorkspaceLayout keeps the layout for No Workspace. Emits workspace.changed with what workspace.get returns.

Arguments:

Result:

workspace_get

Engine command workspace.get. Read-only.

The workspaces (reference manual pp. 1576-1578). global: the global workspaces, for every project (the user setting ui.workspaces); project: the project workspaces, saved with the project; each a name and its layout, a copy of the user setting ui.layout with the windows that are open, their bounds and monitors. active: the workspace the project was last shown in, its type (global or project, empty for none) and name; none if that workspace is gone, such as a global one of another computer.

Result:

workspace_move

Engine command workspace.move.

Moves a workspace to a position among those of its type, 0 the first; positions past the end move it to the end. Emits workspace.changed with what workspace.get returns.

Arguments:

Result:

workspace_remove

Engine command workspace.remove.

Deletes a workspace; if it was the active one, no workspace is active. Emits workspace.changed with what workspace.get returns.

Arguments:

Result:

workspace_rename

Engine command workspace.rename.

Renames a workspace. Names are unique within a type. Emits workspace.changed with what workspace.get returns.

Arguments:

Result:

workspace_update

Engine command workspace.update.

Gives the active workspace the window layout as it is now (the user setting ui.layout). Emits workspace.changed with what workspace.get returns.

Result:

Resources

Queries without required arguments can also be read as resources, except those that write files or take what they return from a queue all clients share: