Signal
50 nodes
On this page 50
Make Signal
FunctionThis node carries no documentation.
op_Implicit(value: Number) -> Signal
Signal op_Implicit(double value)
Parameters
| name | type | default | description |
|---|---|---|---|
| value | Number | — |
Returns
| Signal | Signal |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Signal
- Package
- Audio Processing
Abs
FunctionThe magnitude: full-wave rectification.
Abs(Signal: Signal) -> Signal
Signal Abs(Signal Signal)
Parameters
| name | type | default | description |
|---|---|---|---|
| Signal | Signal | — |
Returns
| result | Signal |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Signal
- Package
- Audio Processing
Bandpass
FunctionA bandpass around the cutoff.
Bandpass(Signal: Signal, cutoff: Signal, q: Signal) -> Signal
Signal Bandpass(Signal Signal, Signal cutoff, Signal q)
Parameters
| name | type | default | description |
|---|---|---|---|
| Signal | Signal | — | |
| cutoff | Signal | — | |
| q | Signal | — |
Returns
| result | Signal |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Signal
- Package
- Audio Processing
Clip
FunctionHard clipping at ±Limit.
Clip(Signal: Signal, limit: Signal) -> Signal
Signal Clip(Signal Signal, Signal limit)
Parameters
| name | type | default | description |
|---|---|---|---|
| Signal | Signal | — | |
| limit | Signal | — |
Returns
| result | Signal |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Signal
- Package
- Audio Processing
Compile
FunctionCompiles the signal at a sample rate into a processor that renders it block by block from time zero.
Compile(Signal: Signal, sampleRate: Integer) -> Signal Processor
SignalProcessor Compile(Signal Signal, int sampleRate)
Parameters
| name | type | default | description |
|---|---|---|---|
| Signal | Signal | — | |
| sampleRate | Integer | — |
Returns
| result | Signal Processor |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Signal
- Package
- Audio Processing
Compress
FunctionA feed-forward compressor as Giannoulis, Massberg and Reiss set it out (, JAES 60(6), 2012): a gain computer with a soft knee in decibels, then a smooth peak detector on the gain reduction, so attack and release are true time constants and the static curve is exact.
Compress -> Signal
Signal: Signal
threshold: Number
ratio: Number
attack: Number
release: Number
knee: Number
makeup: Number
sidechain: SignalSignal Compress(
Signal Signal,
double threshold = -18,
double ratio = 4,
double attack = 0.01,
double release = 0.1,
double knee = 6,
double makeup = 0,
Signal sidechain)Parameters
| name | type | default | description |
|---|---|---|---|
| Signal | Signal | — | |
| threshold | Number | -18 | dBFS where compression starts. |
| ratio | Number | 4 | Decibels in for each decibel out above the threshold; 1 does nothing, a very large ratio limits. |
| attack | Number | 0.01 | Seconds for the gain reduction to reach 63% of a step up. |
| release | Number | 0.1 | Seconds for it to recover 63% of the way. |
| knee | Number | 6 | Decibels over which the curve bends from 1:1 to the ratio, centred on the threshold. |
| makeup | Number | 0 | Decibels of gain after compression. |
| sidechain | Signal | — | What the detector listens to instead of the signal itself: a kick, to duck a bass under it. |
Returns
| result | Signal |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Signal
- Package
- Audio Processing
Crush
FunctionA bitcrusher: the signal quantized to Bits bits and held at Rate samples a second, for the grit of an early sampler.
Crush(Signal: Signal, bits: Number, rate: Number) -> Signal
Signal Crush(Signal Signal, double bits = 8, double rate = 8000)
Parameters
| name | type | default | description |
|---|---|---|---|
| Signal | Signal | — | |
| bits | Number | 8 | |
| rate | Number | 8000 |
Returns
| result | Signal |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Signal
- Package
- Audio Processing
Delay
FunctionThe signal through a delay line: what went in Time seconds ago, fed back by Feedback so it repeats, mixed with the dry signal by Mix (1 is only the echo). The time may move - chorus, flanging - and is read between samples.
Delay -> Signal
Signal: Signal
time: Signal
feedback: Signal
mix: Signal
maximumTime: NumberSignal Delay(
Signal Signal,
Signal time,
Signal feedback,
Signal mix,
double maximumTime = 2)Parameters
| name | type | default | description |
|---|---|---|---|
| Signal | Signal | — | |
| time | Signal | — | |
| feedback | Signal | — | |
| mix | Signal | — | |
| maximumTime | Number | 2 |
Returns
| result | Signal |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Signal
- Package
- Audio Processing
Filter
FunctionA state-variable filter - Simper's trapezoidal form, so its cutoff and Q can move every sample without zipper noise or blowing up.
Filter -> Signal
Signal: Signal
mode: Filter Mode
cutoff: Signal
q: SignalSignal Filter(
Signal Signal,
FilterMode mode,
Signal cutoff,
Signal q)Parameters
| name | type | default | description |
|---|---|---|---|
| Signal | Signal | — | |
| mode | Filter Mode | — | What it passes. |
| cutoff | Signal | — | Hertz. |
| q | Signal | — | Resonance: 0.707 is flat, higher rings. |
Returns
| result | Signal |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Signal
- Package
- Audio Processing
Fold
FunctionA wavefolder: the signal times Gain, reflected back off ±1 as often as it crosses it, so a sine pushed harder grows harmonics without growing louder - the west-coast synthesizer's way of brightening.
Fold(Signal: Signal, gain: Signal) -> Signal
Signal Fold(Signal Signal, Signal gain)
Parameters
| name | type | default | description |
|---|---|---|---|
| Signal | Signal | — | |
| gain | Signal | — |
Returns
| result | Signal |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Signal
- Package
- Audio Processing
Highpass
FunctionA 12 dB an octave highpass.
Highpass(Signal: Signal, cutoff: Signal, q: Signal) -> Signal
Signal Highpass(Signal Signal, Signal cutoff, Signal q)
Parameters
| name | type | default | description |
|---|---|---|---|
| Signal | Signal | — | |
| cutoff | Signal | — | |
| q | Signal | — |
Returns
| result | Signal |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Signal
- Package
- Audio Processing
Ladder
FunctionA four-pole, 24 dB an octave ladder lowpass in zero-delay feedback form, with its passband gain kept at 1 as the resonance rises; a resonance of 1 is the edge of self-oscillation.
Ladder -> Signal
Signal: Signal
cutoff: Signal
resonance: SignalSignal Ladder(Signal Signal, Signal cutoff, Signal resonance)
Parameters
| name | type | default | description |
|---|---|---|---|
| Signal | Signal | — | |
| cutoff | Signal | — | |
| resonance | Signal | — |
Returns
| result | Signal |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Signal
- Package
- Audio Processing
Lag
FunctionA one-pole lag: the output moves toward the input exponentially, 60 dB of the way in Time seconds, as SuperCollider's Lag does.
Lag(Signal: Signal, time: Number) -> Signal
Signal Lag(Signal Signal, double time = 0.1)
Parameters
| name | type | default | description |
|---|---|---|---|
| Signal | Signal | — | |
| time | Number | 0.1 |
Returns
| result | Signal |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Signal
- Package
- Audio Processing
Lowpass
FunctionA 12 dB an octave lowpass.
Lowpass(Signal: Signal, cutoff: Signal, q: Signal) -> Signal
Signal Lowpass(Signal Signal, Signal cutoff, Signal q)
Parameters
| name | type | default | description |
|---|---|---|---|
| Signal | Signal | — | |
| cutoff | Signal | — | |
| q | Signal | — |
Returns
| result | Signal |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Signal
- Package
- Audio Processing
Pan
FunctionThe signal placed between the speakers by the equal-power law: at Position -1 it is all left, at 1 all right, and in the middle each side carries it 3 dB down, so it is as loud wherever it is put. The position may move.
Pan(Signal: Signal, position: Signal) -> Stereo Signal
StereoSignal Pan(Signal Signal, Signal position)
Parameters
| name | type | default | description |
|---|---|---|---|
| Signal | Signal | — | |
| position | Signal | — |
Returns
| result | Stereo Signal |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Signal
- Package
- Audio Processing
Pitch Shift
FunctionThe signal raised or lowered in pitch without being sped up or slowed down, as it plays: read from a short delay line by two heads sliding through it at the new speed, half a window apart, each faded out as it wraps round while the other is at its loudest, by an equal-power law, since the two heads read the sound at different moments and only partly agree. The classic real-time shifter, the Eventide H910's: it adds no more delay than Window, and a longer window warbles less on a held note at the cost of smearing a sharp one.
PitchShift -> Signal
Signal: Signal
semitones: Signal
window: NumberSignal PitchShift(
Signal Signal,
Signal semitones,
double window = 0.05)Parameters
| name | type | default | description |
|---|---|---|---|
| Signal | Signal | — | |
| semitones | Signal | — | How far to move it, in semitones; 12 is an octave up, and it may move. |
| window | Number | 0.05 | Seconds of the delay line the heads slide through, 0.01 to 0.5. |
Returns
| result | Signal |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Signal
- Package
- Audio Processing
Range
FunctionThe signal scaled from -1..1 to Low..High: an LFO turned into a cutoff sweep.
Range(Signal: Signal, low: Signal, high: Signal) -> Signal
Signal Range(Signal Signal, Signal low, Signal high)
Parameters
| name | type | default | description |
|---|---|---|---|
| Signal | Signal | — | |
| low | Signal | — | |
| high | Signal | — |
Returns
| result | Signal |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Signal
- Package
- Audio Processing
Render
FunctionRenders a number of seconds of the signal, mono.
Render -> AudioBuffer
Signal: Signal
seconds: Number
sampleRate: Integer
blockSize: IntegerAudioBuffer Render(
Signal Signal,
double seconds,
int sampleRate = 44100,
int blockSize = 256)Parameters
| name | type | default | description |
|---|---|---|---|
| Signal | Signal | — | |
| seconds | Number | — | |
| sampleRate | Integer | 44100 | |
| blockSize | Integer | 256 |
Returns
| result | AudioBuffer |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Signal
- Package
- Audio Processing
Render Samples
FunctionRenders a number of frames of the signal into samples.
RenderSamples -> Low Accuracy Number Array
Signal: Signal
frames: Integer
sampleRate: Integer
blockSize: Integerfloat[] RenderSamples(
Signal Signal,
int frames,
int sampleRate = 44100,
int blockSize = 256)Parameters
| name | type | default | description |
|---|---|---|---|
| Signal | Signal | — | |
| frames | Integer | — | |
| sampleRate | Integer | 44100 | |
| blockSize | Integer | 256 |
Returns
| result | Low Accuracy Number Array |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Signal
- Package
- Audio Processing
Reverb
FunctionReverberation by Jezar's Freeverb: eight parallel comb filters with damped feedback into four series allpasses, the room every open-source synthesizer reaches for. Mix is how much of the result is reverb.
Reverb -> Signal
Signal: Signal
roomSize: Number
damping: Number
mix: NumberSignal Reverb(
Signal Signal,
double roomSize = 0.6,
double damping = 0.5,
double mix = 0.3)Parameters
| name | type | default | description |
|---|---|---|---|
| Signal | Signal | — | |
| roomSize | Number | 0.6 | 0 to 1: how long the tail lasts. |
| damping | Number | 0.5 | 0 to 1: how quickly the high frequencies die in it. |
| mix | Number | 0.3 | 0 is dry, 1 only the reverb. |
Returns
| result | Signal |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Signal
- Package
- Audio Processing
Sample And Hold
FunctionSample and hold: the input's value at each rise of Trigger past one half, held until the next; 0 before the first. Noise sampled by a clock is the classic random-step modulation.
SampleAndHold(Signal: Signal, trigger: Signal) -> Signal
Signal SampleAndHold(Signal Signal, Signal trigger)
Parameters
| name | type | default | description |
|---|---|---|---|
| Signal | Signal | — | |
| trigger | Signal | — |
Returns
| result | Signal |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Signal
- Package
- Audio Processing
Saturate
FunctionSoft saturation: tanh of the signal times Drive, so a hot signal rounds off instead of clipping.
Saturate(Signal: Signal, drive: Signal) -> Signal
Signal Saturate(Signal Signal, Signal drive)
Parameters
| name | type | default | description |
|---|---|---|---|
| Signal | Signal | — | |
| drive | Signal | — |
Returns
| result | Signal |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Signal
- Package
- Audio Processing
Slew
FunctionA slew limiter: the output follows the input but moves at most one unit every Rise seconds going up and every Fall seconds going down - portamento for a pitch, de-clicking for a gate.
Slew(Signal: Signal, rise: Number, fall: Number) -> Signal
Signal Slew(Signal Signal, double rise = 0.1, double fall = 0.1)
Parameters
| name | type | default | description |
|---|---|---|---|
| Signal | Signal | — | |
| rise | Number | 0.1 | |
| fall | Number | 0.1 |
Returns
| result | Signal |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Signal
- Package
- Audio Processing
Stereo Reverb
FunctionThe signal through Freeverb on each side, the right channel's combs tuned 23 samples longer so the two tails are uncorrelated and the room has width; Width 0 sums the tails to the middle.
StereoReverb -> Stereo Signal
Signal: Signal
roomSize: Number
damping: Number
mix: Number
width: NumberStereoSignal StereoReverb(
Signal Signal,
double roomSize = 0.6,
double damping = 0.5,
double mix = 0.3,
double width = 1)Parameters
| name | type | default | description |
|---|---|---|---|
| Signal | Signal | — | |
| roomSize | Number | 0.6 | 0 to 1: how long the tail lasts. |
| damping | Number | 0.5 | 0 to 1: how quickly the high frequencies die. |
| mix | Number | 0.3 | 0 is dry, 1 only the reverb. |
| width | Number | 1 | 0 to 1: how wide the tail spreads. |
Returns
| result | Stereo Signal |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Signal
- Package
- Audio Processing
To String
FunctionThe signal as an expression, such as lowpass(saw(220), 800).
ToString(Signal: Signal) -> Text
string ToString(Signal Signal)
Parameters
| name | type | default | description |
|---|---|---|---|
| Signal | Signal | — |
Returns
| result | Text |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Signal
- Package
- Audio Processing
Adsr
FunctionAn ADSR envelope following a gate: rising to 1 over Attack while the gate is above one half, falling to Sustain over Decay and holding, and falling to 0 over Release once the gate drops. Each segment is a straight line from wherever the envelope stands, so a retrigger never jumps.
Adsr -> Signal
gate: Signal
attack: Number
decay: Number
sustain: Number
release: NumberSignal Adsr(
Signal gate,
double attack = 0.01,
double decay = 0.1,
double sustain = 0.7,
double release = 0.3)Parameters
| name | type | default | description |
|---|---|---|---|
| gate | Signal | — | |
| attack | Number | 0.01 | |
| decay | Number | 0.1 | |
| sustain | Number | 0.7 | |
| release | Number | 0.3 |
Returns
| result | Signal |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Signal
- Package
- Audio Processing
Constant
FunctionA constant value.
Constant(value: Number) -> Signal
Signal Constant(double value)
Parameters
| name | type | default | description |
|---|---|---|---|
| value | Number | — |
Returns
| result | Signal |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Signal
- Package
- Audio Processing
Control
FunctionA value set from outside while the signal runs - a knob, a gate a key holds - read every sample.
Control(value: Control Value) -> Signal
Signal Control(ControlValue value)
Parameters
| name | type | default | description |
|---|---|---|---|
| value | Control Value | — |
Returns
| result | Signal |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Signal
- Package
- Audio Processing
Gate
FunctionA gate: 1 for On Seconds, then 0 - repeating every Period Seconds when that is positive.
Gate -> Signal
onSeconds: Number
periodSeconds: Number
delaySeconds: NumberSignal Gate(
double onSeconds,
double periodSeconds = 0,
double delaySeconds = 0)Parameters
| name | type | default | description |
|---|---|---|---|
| onSeconds | Number | — | |
| periodSeconds | Number | 0 | |
| delaySeconds | Number | 0 |
Returns
| result | Signal |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Signal
- Package
- Audio Processing
Grains
FunctionGranular synthesis from a clip: short Hann-windowed grains, Density a second, each read from where Position points when it starts, give or take Jitter seconds, at the speed Pitch says. A position that stands still freezes the sound; one that crawls stretches it without changing its pitch.
Grains -> Signal
clip: AudioBuffer
position: Signal
pitch: Signal
grainSeconds: Number
density: Number
jitter: Number
seed: IntegerSignal Grains(
AudioBuffer clip,
Signal position,
Signal pitch,
double grainSeconds = 0.08,
double density = 25,
double jitter = 0.01,
int seed = 1)Parameters
| name | type | default | description |
|---|---|---|---|
| clip | AudioBuffer | — | The source, mixed to mono. |
| position | Signal | — | Where each grain starts, 0 to 1 of the clip; read when the grain starts. |
| pitch | Signal | — | Each grain's playback speed: 2 is an octave up; read when the grain starts. |
| grainSeconds | Number | 0.08 | How long each grain lasts. |
| density | Number | 25 | Grains started a second; times Grain Seconds, at most 128 overlapping. |
| jitter | Number | 0.01 | Seconds of random scatter in where each grain reads from. |
| seed | Integer | 1 | Which scatter. |
Returns
| result | Signal |
Remarks
Grains overlapping by two or more are scaled so the windows sum to about one, so a clip granulated at its own speed and position comes out at its own level.
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Signal
- Package
- Audio Processing
Input
FunctionWhat a recording device hears, live: silence until a live session opens the device for it, then the device's sound, mixed to mono, about Cushion seconds after it arrives.
Input(device: Text, cushion: Number) -> Signal
Signal Input(string device, double cushion = 0.01)
Parameters
| name | type | default | description |
|---|---|---|---|
| device | Text | — | The device's name as the host lists it; empty for the system's default. |
| cushion | Number | 0.01 | Seconds of sound kept waiting so the audio thread never runs dry between the device's chunks, 0 to 0.5; see Live.LiveInput. |
Returns
| result | Signal |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Signal
- Package
- Audio Processing
Mix
FunctionSeveral signals summed.
Mix(signals: Signal Array) -> Signal
Signal Mix(params Signal[] signals)
Parameters
| name | type | default | description |
|---|---|---|---|
| signals | Signal Array | — |
Returns
| result | Signal |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Signal
- Package
- Audio Processing
Noise
FunctionNoise from -1 to 1, the same for the same seed.
Noise(color: Noise Color, seed: Integer) -> Signal
Signal Noise(NoiseColor color = NoiseColor.White, int seed = 1)
Parameters
| name | type | default | description |
|---|---|---|---|
| color | Noise Color | White | |
| seed | Integer | 1 |
Returns
| result | Signal |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Signal
- Package
- Audio Processing
Addition Operation
FunctionThe sum of two signals: mixing.
op_Addition(a: Signal, b: Signal) -> Signal
Signal op_Addition(Signal a, Signal b)
Parameters
| name | type | default | description |
|---|---|---|---|
| a | Signal | — | |
| b | Signal | — |
Returns
| result | Signal |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Signal
- Package
- Audio Processing
Op Implicit
FunctionThis node carries no documentation.
op_Implicit(value: Number) -> Signal
Signal op_Implicit(double value)
Parameters
| name | type | default | description |
|---|---|---|---|
| value | Number | — |
Returns
| result | Signal |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Signal
- Package
- Audio Processing
Multiply Operation
FunctionThe product of two signals: gain, ring modulation, an envelope applied.
op_Multiply(a: Signal, b: Signal) -> Signal
Signal op_Multiply(Signal a, Signal b)
Parameters
| name | type | default | description |
|---|---|---|---|
| a | Signal | — | |
| b | Signal | — |
Returns
| result | Signal |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Signal
- Package
- Audio Processing
Subtraction Operation
FunctionThe difference of two signals.
op_Subtraction(a: Signal, b: Signal) -> Signal
Signal op_Subtraction(Signal a, Signal b)
Parameters
| name | type | default | description |
|---|---|---|---|
| a | Signal | — | |
| b | Signal | — |
Returns
| result | Signal |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Signal
- Package
- Audio Processing
Unary Negation Operation
FunctionThe signal upside down.
op_UnaryNegation(a: Signal) -> Signal
Signal op_UnaryNegation(Signal a)
Parameters
| name | type | default | description |
|---|---|---|---|
| a | Signal | — |
Returns
| result | Signal |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Signal
- Package
- Audio Processing
Operator
FunctionA phase-modulation operator, the building block of the Yamaha DX7 and every FM synthesizer since: a sine at Frequency whose phase is pushed by Modulation radians every sample, and by its own last output times Feedback.
Operator -> Signal
frequency: Signal
modulation: Signal
feedback: Number
phase: NumberSignal Operator(
Signal frequency,
Signal modulation,
double feedback = 0,
double phase = 0)Parameters
| name | type | default | description |
|---|---|---|---|
| frequency | Signal | — | Hertz; read every sample. |
| modulation | Signal | — | Radians added to the phase; a modulator of amplitude I gives sidebands at the Bessel amplitudes J_n(I). |
| feedback | Number | 0 | Radians of its own output fed back into its phase, 0 to about 1.5. |
| phase | Number | 0 | Where in its cycle it starts, 0 to 1. |
Returns
| result | Signal |
Remarks
Chain operators by wiring one's output, scaled by a modulation index, into the next one's modulation. The feedback path averages the last two outputs, as the DX7's does, so a feedback near 1.5 turns the sine into a clean saw instead of noise.
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Signal
- Package
- Audio Processing
Oscillator
FunctionAn oscillator from -1 to 1 at a frequency in hertz, which may itself be a signal - vibrato, FM, a glide.
Oscillator -> Signal
shape: Oscillator Shape
frequency: Signal
phase: NumberSignal Oscillator(
OscillatorShape shape,
Signal frequency,
double phase = 0)Parameters
| name | type | default | description |
|---|---|---|---|
| shape | Oscillator Shape | — | The waveform. |
| frequency | Signal | — | Hertz; read every sample. |
| phase | Number | 0 | Where in its cycle it starts, 0 to 1. |
Returns
| result | Signal |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Signal
- Package
- Audio Processing
Pluck
FunctionA plucked string by the Karplus-Strong algorithm with Jaffe and Smith's extensions: each rising edge of Trigger fills a delay line one period long with a burst of noise, and the burst circulates through a gentle lowpass, losing its high harmonics first as a string does.
Pluck -> Signal
trigger: Signal
frequency: Signal
decay: Number
brightness: Number
seed: IntegerSignal Pluck(
Signal trigger,
Signal frequency,
double decay = 2,
double brightness = 0.5,
int seed = 1)Parameters
| name | type | default | description |
|---|---|---|---|
| trigger | Signal | — | Plucks on every rise past one half. |
| frequency | Signal | — | Hertz, read at each pluck. |
| decay | Number | 2 | Seconds for the fundamental to fall 60 dB. |
| brightness | Number | 0.5 | 0 to 1: how much the loop and the pluck keep the high harmonics. |
| seed | Integer | 1 | Which noise each pluck starts from. |
Returns
| result | Signal |
Remarks
The period is tuned to a fraction of a sample with a first-order allpass, so notes are in tune across the keyboard rather than flat in the top octaves, and the loop gain is set from Decay, so the fundamental is 60 dB down after that many seconds whatever the pitch; high notes, whose loop filter alone would take them down faster, get a lighter filter and so keep a little more brightness. Every pluck starts at the same level, so brightness changes the tone and not the loudness, and the string stays within ±1.
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Signal
- Package
- Audio Processing
Pulse
FunctionA band-limited pulse whose high part lasts Width of a cycle; a width that moves is pulse-width modulation.
Pulse(frequency: Signal, width: Signal, phase: Number) -> Signal
Signal Pulse(Signal frequency, Signal width, double phase = 0)
Parameters
| name | type | default | description |
|---|---|---|---|
| frequency | Signal | — | |
| width | Signal | — | |
| phase | Number | 0 |
Returns
| result | Signal |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Signal
- Package
- Audio Processing
Ramp
FunctionA straight line from one value to another over some seconds, then held.
Ramp(from: Number, to: Number, seconds: Number) -> Signal
Signal Ramp(double from, double to, double seconds)
Parameters
| name | type | default | description |
|---|---|---|---|
| from | Number | — | |
| to | Number | — | |
| seconds | Number | — |
Returns
| result | Signal |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Signal
- Package
- Audio Processing
Render Stereo
FunctionRenders two signals as the left and right of a stereo clip, compiled together so a signal both share is computed once.
RenderStereo -> AudioBuffer
left: Signal
right: Signal
seconds: Number
sampleRate: Integer
blockSize: IntegerAudioBuffer RenderStereo(
Signal left,
Signal right,
double seconds,
int sampleRate = 44100,
int blockSize = 256)Parameters
| name | type | default | description |
|---|---|---|---|
| left | Signal | — | |
| right | Signal | — | |
| seconds | Number | — | |
| sampleRate | Integer | 44100 | |
| blockSize | Integer | 256 |
Returns
| result | AudioBuffer |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Signal
- Package
- Audio Processing
Sample
FunctionA clip played back, mixed to mono, at a speed that may itself be a signal - 2 an octave up, -1 backwards; silence once it runs out unless it loops.
Sample(clip: AudioBuffer, speed: Signal, loop: Truth) -> Signal
Signal Sample(AudioBuffer clip, Signal speed, bool loop = false)
Parameters
| name | type | default | description |
|---|---|---|---|
| clip | AudioBuffer | — | |
| speed | Signal | — | |
| loop | Truth | False |
Returns
| result | Signal |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Signal
- Package
- Audio Processing
Saw
FunctionA band-limited saw.
Saw(frequency: Signal, phase: Number) -> Signal
Signal Saw(Signal frequency, double phase = 0)
Parameters
| name | type | default | description |
|---|---|---|---|
| frequency | Signal | — | |
| phase | Number | 0 |
Returns
| result | Signal |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Signal
- Package
- Audio Processing
Sine
FunctionA sine.
Sine(frequency: Signal, phase: Number) -> Signal
Signal Sine(Signal frequency, double phase = 0)
Parameters
| name | type | default | description |
|---|---|---|---|
| frequency | Signal | — | |
| phase | Number | 0 |
Returns
| result | Signal |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Signal
- Package
- Audio Processing
Square
FunctionA band-limited square.
Square(frequency: Signal, phase: Number) -> Signal
Signal Square(Signal frequency, double phase = 0)
Parameters
| name | type | default | description |
|---|---|---|---|
| frequency | Signal | — | |
| phase | Number | 0 |
Returns
| result | Signal |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Signal
- Package
- Audio Processing
Triangle
FunctionA band-limited triangle.
Triangle(frequency: Signal, phase: Number) -> Signal
Signal Triangle(Signal frequency, double phase = 0)
Parameters
| name | type | default | description |
|---|---|---|---|
| frequency | Signal | — | |
| phase | Number | 0 |
Returns
| result | Signal |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Signal
- Package
- Audio Processing
Wavetable
FunctionA wavetable oscillator: the table's frames played at a frequency, morphing between neighbouring frames as Position moves from 0 to 1, from a copy of the table band-limited for the frequency it is playing.
Wavetable -> Signal
table: Wavetable
frequency: Signal
position: Signal
phase: NumberSignal Wavetable(
Wavetable table,
Signal frequency,
Signal position,
double phase = 0)Parameters
| name | type | default | description |
|---|---|---|---|
| table | Wavetable | — | The frames. |
| frequency | Signal | — | Hertz; read every sample. |
| position | Signal | — | Where across the frames, 0 to 1; read every sample. |
| phase | Number | 0 | Where in its cycle it starts, 0 to 1. |
Returns
| result | Signal |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Signal
- Package
- Audio Processing