SPB Git

Repository Public

api-reference.md 22.7 KB 393 lines markdown

1> This chapter is generated from the language schema (`swift run orix-dj-bench docs`). Do not edit it by hand.23# Complete API reference45Generated from the language schema of ORIX Script 1.0. Every path listed here is accepted by the compiler; nothing else is.67# Decks89## Deck parameters and properties1011Decks are `deck.A`, `deck.B`, `deck.C` and `deck.D`. A variable of type `deck` can be used in place of `deck.X`.1213| Path | Type | Range | Default | Access | Description |14| --- | --- | --- | --- | --- | --- |15| `deck.X.volume` | gain | -60 dB … 0 dB | `0dB` | read, write, ramp | Channel fader. -60 dB is silence. A plain number or percentage is taken as a linear fader position. |16| `deck.X.gain` | gain | -24 dB … 12 dB | `0dB` | read, write, ramp | Input trim before the EQ. |17| `deck.X.eq.low` | gain | -26 dB … 6 dB | `0dB` | read, write, ramp | Low band of the channel EQ (-26 dB is a full kill). |18| `deck.X.eq.mid` | gain | -26 dB … 6 dB | `0dB` | read, write, ramp | Mid band of the channel EQ. |19| `deck.X.eq.high` | gain | -26 dB … 6 dB | `0dB` | read, write, ramp | High band of the channel EQ. |20| `deck.X.filter` | number | -1 … 1 | `0` | read, write, ramp | Bipolar filter knob: negative closes a low-pass, positive opens a high-pass, 0 is off. |21| `deck.X.filter.highpass` | frequency | 20 Hz … 20000 Hz | `20Hz` | read, write, ramp | Channel high-pass corner. 20 Hz is off. |22| `deck.X.filter.lowpass` | frequency | 20 Hz … 20000 Hz | `20kHz` | read, write, ramp | Channel low-pass corner. 20 kHz is off. |23| `deck.X.filter.resonance` | number | 0.5 … 10 | `0.9` | read, write, ramp | Resonance (Q) of the channel filters. |24| `deck.X.rate` | number | 0.5 … 2 | `1` | read, write, ramp | Playback speed factor (1 = original tempo). |25| `deck.X.bpm` | number | 20 … 400 BPM | `120` | read, write, ramp | Effective tempo of the deck. Writing it changes the playback rate; needs an analysed track. |26| `deck.X.keyShift` | number | -12 … 12 st | `0` | read, write, ramp | Pitch shift in semitones, independent of tempo. |27| `deck.X.keylock` | bool | true / false | `false` | read, write | Keeps the musical key when the tempo changes (time stretching). |28| `deck.X.sync` | bool | true / false | `false` | read, write | Follows the tempo and beat phase of the master deck. |29| `deck.X.quantize` | bool | true / false | `true` | read, write | Snaps cues, loops and jumps to the beat grid. |30| `deck.X.reverse` | bool | true / false | `false` | read, write | Plays the track backwards. |31| `deck.X.cue` | bool | true / false | `false` | read, write | Sends the channel to the headphone cue bus. |32| `deck.X.trackBpm` | number | – | – | read | Analysed tempo of the loaded track at original speed (0 when unknown). |33| `deck.X.position` | duration | – | – | read | Playhead position. |34| `deck.X.remaining` | duration | – | – | read | Time left until the end of the track. |35| `deck.X.duration` | duration | – | – | read | Length of the loaded track. |36| `deck.X.beat` | number | – | – | read | Fractional beat index of the playhead on the track's beat grid. |37| `deck.X.playing` | bool | – | – | read | True while the deck is playing. |38| `deck.X.loaded` | bool | – | – | read | True when a track is loaded. |39| `deck.X.looping` | bool | – | – | read | True while a loop is active. |40| `deck.X.level` | gain | -60 dB … 6 dB | – | read | Post-fader peak level of the channel. |41| `deck.X.key` | string | – | – | read | Estimated musical key of the loaded track ("8A" notation), empty when unknown. |42| `deck.X.title` | string | – | – | read | Title of the loaded track. |4344## Deck actions4546| Action | Arguments | Description |47| --- | --- | --- |48| `deck.X.play()` | – | Starts playback (on the next beat of the master clock when quantize and sync are on). |49| `deck.X.pause()` | – | Pauses playback. |50| `deck.X.toggle()` | – | Plays when paused, pauses when playing. |51| `deck.X.stop()` | – | Pauses and returns to the start of the track. |52| `deck.X.cue()` | – | Jumps to the cue point and pauses. |53| `deck.X.setCue()` | – | Stores the current position as the cue point. |54| `deck.X.seek(position: duration)` | `position`: duration. Beats count from the first beat of the grid, seconds from the start of the file. | Moves the playhead. |55| `deck.X.jump(amount: duration)` | `amount`: duration. Signed distance, e.g. 4beats or -1bar. | Beat jump relative to the playhead. |56| `deck.X.loop(length: duration)` | `length`: duration. Loop length, e.g. 4beats. | Starts a loop of the given length at the playhead. |57| `deck.X.loopIn()` | – | Marks the loop start at the playhead. |58| `deck.X.loopOut()` | – | Marks the loop end at the playhead and starts looping. |59| `deck.X.loopExit()` | – | Leaves the active loop. |60| `deck.X.reloop()` | – | Re-enters the last loop. |61| `deck.X.loopHalve()` | – | Halves the active loop length. |62| `deck.X.loopDouble()` | – | Doubles the active loop length. |63| `deck.X.hotcue(index: number)` | `index`: number. 1 to 8. | Jumps to a hot cue and plays. |64| `deck.X.setHotcue(index: number)` | `index`: number. 1 to 8. | Stores the playhead in a hot cue. |65| `deck.X.clearHotcue(index: number)` | `index`: number. 1 to 8. | Deletes a hot cue. |66| `deck.X.sync(on: bool?)` | `on`: bool (optional). Defaults to true. | Turns tempo and phase sync on or off. |67| `deck.X.brake(length: duration?)` | `length`: duration (optional). Time to stop, default 1beat. | Tape-stop: slows the deck to a halt, then pauses. |68| `deck.X.load(title: string)` | `title`: string. Title, or part of it, of a library track. | Loads the best matching library track. |69| `deck.X.loadNext()` | – | Loads the next track of the Auto DJ queue. |70| `deck.X.eject()` | – | Unloads the track (only while paused). |7172## Deck events7374| Event | Fires when |75| --- | --- |76| `on deck.X.trackEnd { … }` | The playhead reached the end of the track. |77| `on deck.X.play { … }` | The deck started playing. |78| `on deck.X.pause { … }` | The deck paused. |79| `on deck.X.loaded { … }` | A track finished loading. |80| `on deck.X.beat { … }` | The playhead crossed a beat of the track's grid. |8182# Mixer and master clock8384## Mixer parameters8586| Path | Type | Range | Default | Access | Description |87| --- | --- | --- | --- | --- | --- |88| `mixer.crossfader` | number | 0 … 1 | `0.5` | read, write, ramp | Crossfader position: 0 is the A side, 1 is the B side. |89| `mixer.curve` | string | "smooth" / "linear" / "cut" | `"smooth"` | read, write | Crossfader curve. |90| `mixer.master.volume` | gain | -60 dB … 6 dB | `0dB` | read, write, ramp | Master output level. |91| `mixer.master.limiter` | bool | true / false | `true` | read, write | Master peak limiter. |92| `mixer.master.level` | gain | -60 dB … 6 dB | – | read | Master output peak level. |93| `mixer.cue.mix` | number | 0 … 1 | `0` | read, write, ramp | Headphone blend: 0 is cue only, 1 is master only. |94| `mixer.cue.volume` | gain | -60 dB … 6 dB | `0dB` | read, write, ramp | Headphone level. |9596## Channel aliases9798`mixer.channel.X.<name>` addresses the same parameter as the deck path.99100| Alias | Same as |101| --- | --- |102| `mixer.channel.X.cue` | `deck.X.cue` |103| `mixer.channel.X.eq.high` | `deck.X.eq.high` |104| `mixer.channel.X.eq.low` | `deck.X.eq.low` |105| `mixer.channel.X.eq.mid` | `deck.X.eq.mid` |106| `mixer.channel.X.filter` | `deck.X.filter` |107| `mixer.channel.X.gain` | `deck.X.gain` |108| `mixer.channel.X.level` | `deck.X.level` |109| `mixer.channel.X.volume` | `deck.X.volume` |110111## Master clock112113| Path | Type | Range | Default | Access | Description |114| --- | --- | --- | --- | --- | --- |115| `master.bpm` | number | 20 … 400 BPM | `120` | read, write | Tempo of the master clock. It follows the master deck while one is playing; writing it sets the free-running tempo. |116| `master.beat` | number | – | – | read | Beat counter of the master clock. |117| `master.bar` | number | – | – | read | Bar counter of the master clock (4 beats per bar). |118| `master.deck` | string | – | – | read | Letter of the deck currently driving the master clock, empty when free-running. |119120## Global events121122| Event | Fires when |123| --- | --- |124| `on beat { … }` | Every beat of the master clock. |125| `on bar { … }` | Every bar of the master clock. |126| `on trigger(n) { … }` | Automation trigger n (1 to 16) fired from a MIDI mapping, the keyboard or the console. |127128# Effects129130## Racks131132`fx.<effect>` addresses the master rack. `deck.X.fx.<effect>` addresses the rack of a channel. A rack holds at most one unit of each effect and eight units in total. Writing a parameter of an effect that is not in the rack adds it, switched off.133134## Actions135136| Action | Arguments | Description |137| --- | --- | --- |138| `fx.<effect>.enable()` | – | Adds the effect to the rack when needed and switches it on. |139| `fx.<effect>.disable()` | – | Switches the effect off (it stays in the rack). |140| `fx.<effect>.toggle()` | – | Switches the effect on or off. |141142## Reverb — `fx.reverb`143144Algorithmic room reverb (feedback comb and all-pass network).145146| Path | Type | Range | Default | Access | Description |147| --- | --- | --- | --- | --- | --- |148| `fx.reverb.size` | number | 0 … 1 | `0.55` | read, write, ramp | Room size: longer decay as it grows. |149| `fx.reverb.damping` | number | 0 … 1 | `0.45` | read, write, ramp | High-frequency absorption inside the tail. |150| `fx.reverb.predelay` | duration | 0 … 200 ms | `15ms` | read, write | Gap before the first reflections. |151| `fx.reverb.width` | number | 0 … 1 | `1` | read, write, ramp | Stereo spread of the tail. |152| `fx.reverb.mix` | number | 0 … 1 | `0.3` | read, write, ramp | Wet/dry balance: 0 is dry, 1 is fully wet. |153| `fx.reverb.enabled` | bool | true / false | `false` | read, write | True while the effect is switched on. |154155## Delay — `fx.delay`156157Clean beat-synchronised stereo delay.158159| Path | Type | Range | Default | Access | Description |160| --- | --- | --- | --- | --- | --- |161| `fx.delay.time` | duration | 0.062 … 4 beats | `0.5beats` | read, write | Delay length in beats. Seconds are converted with the current tempo. |162| `fx.delay.feedback` | number | 0 … 0.95 | `0.35` | read, write, ramp | Amount of the delayed signal fed back. |163| `fx.delay.pingpong` | bool | true / false | `false` | read, write | Alternate repeats between left and right. |164| `fx.delay.mix` | number | 0 … 1 | `0.25` | read, write, ramp | Wet/dry balance: 0 is dry, 1 is fully wet. |165| `fx.delay.enabled` | bool | true / false | `false` | read, write | True while the effect is switched on. |166167## Echo — `fx.echo`168169Tape-style echo: repeats get darker through a low-pass in the feedback path.170171| Path | Type | Range | Default | Access | Description |172| --- | --- | --- | --- | --- | --- |173| `fx.echo.time` | duration | 0.062 … 4 beats | `0.75beats` | read, write | Echo length in beats. Seconds are converted with the current tempo. |174| `fx.echo.feedback` | number | 0 … 0.95 | `0.5` | read, write, ramp | Amount of each repeat fed back. |175| `fx.echo.tone` | frequency | 200 Hz … 12000 Hz | `4kHz` | read, write, ramp | Low-pass applied to every repeat. |176| `fx.echo.mix` | number | 0 … 1 | `0.35` | read, write, ramp | Wet/dry balance: 0 is dry, 1 is fully wet. |177| `fx.echo.enabled` | bool | true / false | `false` | read, write | True while the effect is switched on. |178179## Flanger — `fx.flanger`180181Short modulated delay with feedback (jet sweep).182183| Path | Type | Range | Default | Access | Description |184| --- | --- | --- | --- | --- | --- |185| `fx.flanger.rate` | frequency | 0.02 Hz … 5 Hz | `0.25Hz` | read, write, ramp | Sweep speed. |186| `fx.flanger.depth` | number | 0 … 1 | `0.7` | read, write, ramp | Sweep range. |187| `fx.flanger.feedback` | number | -0.95 … 0.95 | `0.5` | read, write, ramp | Resonance of the comb; negative inverts it. |188| `fx.flanger.mix` | number | 0 … 1 | `0.5` | read, write, ramp | Wet/dry balance: 0 is dry, 1 is fully wet. |189| `fx.flanger.enabled` | bool | true / false | `false` | read, write | True while the effect is switched on. |190191## Phaser — `fx.phaser`192193Six-stage all-pass phaser.194195| Path | Type | Range | Default | Access | Description |196| --- | --- | --- | --- | --- | --- |197| `fx.phaser.rate` | frequency | 0.02 Hz … 5 Hz | `0.4Hz` | read, write, ramp | Sweep speed. |198| `fx.phaser.depth` | number | 0 … 1 | `0.8` | read, write, ramp | Sweep range. |199| `fx.phaser.feedback` | number | 0 … 0.9 | `0.5` | read, write, ramp | Notch resonance. |200| `fx.phaser.mix` | number | 0 … 1 | `0.5` | read, write, ramp | Wet/dry balance: 0 is dry, 1 is fully wet. |201| `fx.phaser.enabled` | bool | true / false | `false` | read, write | True while the effect is switched on. |202203## Chorus — `fx.chorus`204205Three-voice stereo chorus.206207| Path | Type | Range | Default | Access | Description |208| --- | --- | --- | --- | --- | --- |209| `fx.chorus.rate` | frequency | 0.05 Hz … 5 Hz | `0.8Hz` | read, write, ramp | Modulation speed. |210| `fx.chorus.depth` | number | 0 … 1 | `0.5` | read, write, ramp | Pitch modulation amount. |211| `fx.chorus.mix` | number | 0 … 1 | `0.5` | read, write, ramp | Wet/dry balance: 0 is dry, 1 is fully wet. |212| `fx.chorus.enabled` | bool | true / false | `false` | read, write | True while the effect is switched on. |213214## Distortion — `fx.distortion`215216Soft-clipping overdrive with tone control and level compensation.217218| Path | Type | Range | Default | Access | Description |219| --- | --- | --- | --- | --- | --- |220| `fx.distortion.drive` | gain | 0 dB … 36 dB | `12dB` | read, write, ramp | Gain into the clipper. |221| `fx.distortion.tone` | frequency | 500 Hz … 16000 Hz | `8kHz` | read, write, ramp | Low-pass after the clipper. |222| `fx.distortion.mix` | number | 0 … 1 | `1` | read, write, ramp | Wet/dry balance: 0 is dry, 1 is fully wet. |223| `fx.distortion.enabled` | bool | true / false | `false` | read, write | True while the effect is switched on. |224225## Bitcrusher — `fx.bitcrusher`226227Bit-depth and sample-rate reduction.228229| Path | Type | Range | Default | Access | Description |230| --- | --- | --- | --- | --- | --- |231| `fx.bitcrusher.bits` | number | 2 … 16 | `8` | read, write, ramp | Quantisation depth. |232| `fx.bitcrusher.downsample` | number | 1 … 40 | `4` | read, write, ramp | Sample-and-hold factor. |233| `fx.bitcrusher.mix` | number | 0 … 1 | `1` | read, write, ramp | Wet/dry balance: 0 is dry, 1 is fully wet. |234| `fx.bitcrusher.enabled` | bool | true / false | `false` | read, write | True while the effect is switched on. |235236## High-pass — `fx.highpass`237238Resonant 12 dB/octave high-pass filter.239240| Path | Type | Range | Default | Access | Description |241| --- | --- | --- | --- | --- | --- |242| `fx.highpass.cutoff` | frequency | 20 Hz … 20000 Hz | `200Hz` | read, write, ramp | Corner frequency. |243| `fx.highpass.resonance` | number | 0.5 … 10 | `0.707` | read, write, ramp | Filter Q. |244| `fx.highpass.mix` | number | 0 … 1 | `1` | read, write, ramp | Wet/dry balance: 0 is dry, 1 is fully wet. |245| `fx.highpass.enabled` | bool | true / false | `false` | read, write | True while the effect is switched on. |246247## Low-pass — `fx.lowpass`248249Resonant 12 dB/octave low-pass filter.250251| Path | Type | Range | Default | Access | Description |252| --- | --- | --- | --- | --- | --- |253| `fx.lowpass.cutoff` | frequency | 20 Hz … 20000 Hz | `8kHz` | read, write, ramp | Corner frequency. |254| `fx.lowpass.resonance` | number | 0.5 … 10 | `0.707` | read, write, ramp | Filter Q. |255| `fx.lowpass.mix` | number | 0 … 1 | `1` | read, write, ramp | Wet/dry balance: 0 is dry, 1 is fully wet. |256| `fx.lowpass.enabled` | bool | true / false | `false` | read, write | True while the effect is switched on. |257258## Band-pass — `fx.bandpass`259260Resonant band-pass filter.261262| Path | Type | Range | Default | Access | Description |263| --- | --- | --- | --- | --- | --- |264| `fx.bandpass.cutoff` | frequency | 20 Hz … 20000 Hz | `1kHz` | read, write, ramp | Centre frequency. |265| `fx.bandpass.resonance` | number | 0.5 … 10 | `1.2` | read, write, ramp | Filter Q (narrower as it grows). |266| `fx.bandpass.mix` | number | 0 … 1 | `1` | read, write, ramp | Wet/dry balance: 0 is dry, 1 is fully wet. |267| `fx.bandpass.enabled` | bool | true / false | `false` | read, write | True while the effect is switched on. |268269## Tremolo — `fx.tremolo`270271Beat-locked amplitude modulation.272273| Path | Type | Range | Default | Access | Description |274| --- | --- | --- | --- | --- | --- |275| `fx.tremolo.rate` | duration | 0.031 … 4 beats | `0.25beats` | read, write | Length of one cycle in beats. Seconds are converted with the current tempo. |276| `fx.tremolo.depth` | number | 0 … 1 | `0.8` | read, write, ramp | Modulation depth. |277| `fx.tremolo.shape` | number | 0 … 1 | `0` | read, write, ramp | 0 = sine, 1 = square. |278| `fx.tremolo.mix` | number | 0 … 1 | `1` | read, write, ramp | Wet/dry balance: 0 is dry, 1 is fully wet. |279| `fx.tremolo.enabled` | bool | true / false | `false` | read, write | True while the effect is switched on. |280281## Auto-pan — `fx.autopan`282283Beat-locked left/right panning.284285| Path | Type | Range | Default | Access | Description |286| --- | --- | --- | --- | --- | --- |287| `fx.autopan.rate` | duration | 0.031 … 8 beats | `1beat` | read, write | Length of one cycle in beats. Seconds are converted with the current tempo. |288| `fx.autopan.depth` | number | 0 … 1 | `1` | read, write, ramp | Pan range. |289| `fx.autopan.mix` | number | 0 … 1 | `1` | read, write, ramp | Wet/dry balance: 0 is dry, 1 is fully wet. |290| `fx.autopan.enabled` | bool | true / false | `false` | read, write | True while the effect is switched on. |291292## Beat Gate — `fx.gate`293294Rhythmic gate locked to the beat grid.295296| Path | Type | Range | Default | Access | Description |297| --- | --- | --- | --- | --- | --- |298| `fx.gate.rate` | duration | 0.031 … 4 beats | `0.25beats` | read, write | Length of one gate cycle in beats. Seconds are converted with the current tempo. |299| `fx.gate.duty` | number | 0.05 … 0.95 | `0.5` | read, write, ramp | Open fraction of each cycle. |300| `fx.gate.depth` | number | 0 … 1 | `1` | read, write, ramp | Attenuation while closed. |301| `fx.gate.mix` | number | 0 … 1 | `1` | read, write, ramp | Wet/dry balance: 0 is dry, 1 is fully wet. |302| `fx.gate.enabled` | bool | true / false | `false` | read, write | True while the effect is switched on. |303304## Compressor — `fx.compressor`305306Feed-forward stereo-linked compressor.307308| Path | Type | Range | Default | Access | Description |309| --- | --- | --- | --- | --- | --- |310| `fx.compressor.threshold` | gain | -60 dB … 0 dB | `-18dB` | read, write, ramp | Level above which gain reduction starts. |311| `fx.compressor.ratio` | number | 1 … 20 | `4` | read, write, ramp | Compression ratio n:1. |312| `fx.compressor.attack` | duration | 0.1 … 200 ms | `10ms` | read, write | Attack time. |313| `fx.compressor.release` | duration | 10 … 2000 ms | `150ms` | read, write | Release time. |314| `fx.compressor.makeup` | gain | 0 dB … 24 dB | `0dB` | read, write, ramp | Gain applied after compression. |315| `fx.compressor.mix` | number | 0 … 1 | `1` | read, write, ramp | Wet/dry balance: 0 is dry, 1 is fully wet. |316| `fx.compressor.enabled` | bool | true / false | `false` | read, write | True while the effect is switched on. |317318## Limiter — `fx.limiter`319320Look-ahead peak limiter.321322| Path | Type | Range | Default | Access | Description |323| --- | --- | --- | --- | --- | --- |324| `fx.limiter.ceiling` | gain | -24 dB … 0 dB | `-1dB` | read, write, ramp | Maximum output peak. |325| `fx.limiter.release` | duration | 10 … 1000 ms | `100ms` | read, write | Recovery time. |326| `fx.limiter.mix` | number | 0 … 1 | `1` | read, write, ramp | Wet/dry balance: 0 is dry, 1 is fully wet. |327| `fx.limiter.enabled` | bool | true / false | `false` | read, write | True while the effect is switched on. |328329## Beat Repeat — `fx.beatrepeat`330331Captures the last slice and repeats it while enabled.332333| Path | Type | Range | Default | Access | Description |334| --- | --- | --- | --- | --- | --- |335| `fx.beatrepeat.length` | duration | 0.031 … 4 beats | `0.25beats` | read, write | Slice length in beats. Seconds are converted with the current tempo. |336| `fx.beatrepeat.mix` | number | 0 … 1 | `1` | read, write, ramp | Wet/dry balance: 0 is dry, 1 is fully wet. |337| `fx.beatrepeat.enabled` | bool | true / false | `false` | read, write | True while the effect is switched on. |338339## Noise Sweep — `fx.noise`340341Filtered white noise added to the signal, for risers and sweeps.342343| Path | Type | Range | Default | Access | Description |344| --- | --- | --- | --- | --- | --- |345| `fx.noise.level` | gain | -60 dB … 0 dB | `-18dB` | read, write, ramp | Noise level. |346| `fx.noise.cutoff` | frequency | 100 Hz … 16000 Hz | `1kHz` | read, write, ramp | Band-pass centre of the noise. |347| `fx.noise.resonance` | number | 0.5 … 10 | `2` | read, write, ramp | Sharpness of the noise band. |348| `fx.noise.mix` | number | 0 … 1 | `1` | read, write, ramp | Wet/dry balance: 0 is dry, 1 is fully wet. |349| `fx.noise.enabled` | bool | true / false | `false` | read, write | True while the effect is switched on. |350351352# Builtin functions353354| Function | Description |355| --- | --- |356| `min(a, b) -> same type` | Smaller of two values of the same type. |357| `max(a, b) -> same type` | Larger of two values of the same type. |358| `clamp(x, low, high) -> same type` | Limits x to the range low…high. |359| `abs(x: number) -> number` | Absolute value. |360| `round(x: number) -> number` | Nearest integer. |361| `floor(x: number) -> number` | Largest integer not above x. |362| `ceil(x: number) -> number` | Smallest integer not below x. |363| `lerp(a, b, t: number) -> same type` | Linear interpolation between a and b. |364| `random() -> number` | Pseudo-random number in 0…1. The sequence is the same on every run of an automation. |365| `len(a: array) -> number` | Number of elements of an array. |366| `db(x: number) -> gain` | Makes a gain from a number of decibels. |367| `hz(x: number) -> frequency` | Makes a frequency from a number of hertz. |368| `beats(x: number) -> duration` | Makes a musical duration from a number of beats. |369| `bars(x: number) -> duration` | Makes a musical duration from a number of bars. |370| `seconds(x: number) -> duration` | Makes an absolute duration from a number of seconds. |371| `toBeats(d: duration) -> number` | Length of a duration in beats at the current tempo. |372| `toSeconds(d: duration) -> number` | Length of a duration in seconds at the current tempo. |373| `toNumber(x: gain | frequency) -> number` | Plain number of decibels or hertz. |374| `print(values…)` | Writes the values to the automation console. |375376# Limits377378| Limit | Value |379| --- | --- |380| Script size | 256 KB |381| Statements per script | 20000 |382| Iterations of one loop | 10000 |383| Array length | 256 |384| Shortest `every` period | 1/64 beat |385| Event handlers per automation | 32 |386| Operations without a wait | 20000 |387| Operations over the life of an automation | 5000000 |388| Scheduled blocks at once | 256 |389| Ramps at once | 128 |390| Commands per beat (ramps excluded) | 512 |391| Longest wait or ramp | 100000 beats |392| Function call depth | 16 |393
Files main
Menu

Theme