Divooka Reference

Audio Processing

Usable

Audio clips: read and write six file formats; generate tones, noise, effects and speech; cut, mix, filter, measure, plot waveforms and play

Guide on the Methodox Wiki

347 nodes in 37 categories

Ships with
Divooka ExploreDivooka Compute
Support tier
Tier 2 (proposed)
Package
Audio Processing
Audio Processing

Load, generate, edit, filter, measure, draw and play sound: audio files, tones, noise, sound effects and speech.

Signal

Make SignalAbsThe magnitude: full-wave rectification.BandpassA bandpass around the cutoff.ClipHard clipping at ±Limit.CompileCompiles the signal at a sample rate into a processor that renders it block by block from time zero.CompressA 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.CrushA bitcrusher: the signal quantized to Bits bits and held at Rate samples a second, for the grit of an early sampler.DelayThe 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).FilterA state-variable filter - Simper's trapezoidal form, so its cutoff and Q can move every sample without zipper noise or blowing up.FoldA 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.HighpassA 12 dB an octave highpass.LadderA 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.LagA one-pole lag: the output moves toward the input exponentially, 60 dB of the way in Time seconds, as SuperCollider's Lag does.LowpassA 12 dB an octave lowpass.PanThe 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.Pitch ShiftThe 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.RangeThe signal scaled from -1..1 to Low..High: an LFO turned into a cutoff sweep.RenderRenders a number of seconds of the signal, mono.Render SamplesRenders a number of frames of the signal into samples.ReverbReverberation by Jezar's Freeverb: eight parallel comb filters with damped feedback into four series allpasses, the room every open-source synthesizer reaches for.Sample And HoldSample and hold: the input's value at each rise of Trigger past one half, held until the next; 0 before the first.SaturateSoft saturation: tanh of the signal times Drive, so a hot signal rounds off instead of clipping.SlewA 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.Stereo ReverbThe 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.To StringThe signal as an expression, such as lowpass(saw(220), 800).AdsrAn 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.ConstantA constant value.ControlA value set from outside while the signal runs - a knob, a gate a key holds - read every sample.GateA gate: 1 for On Seconds, then 0 - repeating every Period Seconds when that is positive.GrainsGranular 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.InputWhat 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.MixSeveral signals summed.NoiseNoise from -1 to 1, the same for the same seed.Addition OperationThe sum of two signals: mixing.Op ImplicitMultiply OperationThe product of two signals: gain, ring modulation, an envelope applied.Subtraction OperationThe difference of two signals.Unary Negation OperationThe signal upside down.OperatorA 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.OscillatorAn oscillator from -1 to 1 at a frequency in hertz, which may itself be a signal - vibrato, FM, a glide.PluckA 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.PulseA band-limited pulse whose high part lasts Width of a cycle; a width that moves is pulse-width modulation.RampA straight line from one value to another over some seconds, then held.Render StereoRenders two signals as the left and right of a stereo clip, compiled together so a signal both share is computed once.SampleA 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.SawA band-limited saw.SineA sine.SquareA band-limited square.TriangleA band-limited triangle.WavetableA 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.

Audio Signals

ChorusA stereo chorus: the signal beside two copies of itself delayed by a few milliseconds that slowly drift, one side against the other, so one voice sounds like several.Compress SignalA compressor: everything over the threshold turned down by the ratio, with a soft knee and true attack and release times.Constant SignalA value that does not change.Bitcrush SignalA bitcrusher: fewer bits and a lower sample rate, for the grit of an early sampler.Delay SignalA signal through a delay line: echoes, or with a short moving time, chorus and flanging.EnvelopeAn ADSR envelope following a gate - rising, settling, holding and dying away - for multiplying into a voice or wiring into a cutoff.Filter SignalA signal through a state-variable filter whose cutoff can move every sample.FM OperatorAn FM operator, as on a DX7: a sine whose phase another signal pushes.WavefolderA wavefolder: the louder the signal is driven, the more it folds back on itself and the brighter it gets, without getting louder.Signal GainA signal turned up or down.GateA gate: 1 while a note is held, 0 otherwise - once, or every period.GranularGranular synthesis: a clip broken into short overlapping grains and played back from wherever position points - frozen when it stands still, stretched when it crawls, shifted in pitch without changing speed.Ladder FilterA signal through a four-pole ladder lowpass, the classic synthesizer filter: 24 dB an octave, singing as the resonance rises.Smooth SignalA signal smoothed: it follows its input exponentially, all but a thousandth of the way in the time given.LFOA low-frequency oscillator moving between two values: the hand that turns a knob.Mix SignalsSignals added together.Mix Stereo SignalsStereo signals added together, left to left and right to right.Multiply SignalsOne signal times another: an envelope applied to a voice, or ring modulation.Noise SignalNoise from -1 to 1, the same every run for the same seed.OscillatorAn oscillator from -1 to 1.Pan SignalA signal placed between the speakers, as loud wherever it is put; a moving position sweeps it across.Pitch Shift SignalA signal raised or lowered in pitch as it plays, without being sped up or slowed down: a voice an octave up for a chipmunk, down for a giant, or a fifth up mixed with the original for a harmony.PluckA plucked string: a burst of noise ringing in a delay line one period long, dying away high harmonics first.PulseA band-limited pulse, high for Width of each cycle; moving the width is pulse-width modulation.RampA straight line from one value to another, then held: a glide, a fade, a pitch drop.Render SignalA signal turned into a clip.Render Stereo SignalTwo signals turned into the left and right of a stereo clip; what they share is computed once.Render Stereo MixA stereo signal turned into a clip.Reverb SignalA signal in a room: Freeverb's combs and allpasses, the tail as long as the room is big.Play SampleA clip played back as a signal, at a speed: 2 is an octave up, -1 backwards.Sample And HoldA random value held until the next trigger, then a new one: the stepped random modulation of a sample-and-hold module.SaturateSoft saturation: a hot signal rounds off instead of clipping, and gains harmonics as it is driven.Slew LimiterA signal that can move only so fast: a glide between notes, a softened gate.Stereo ReverbA signal in a stereo room: the two sides' tails differ, so the room has width.Wavetable From ClipA wavetable cut from a recording, one wave every cycle length - the layout of Serum and Vital wavetable files at 2048.Wavetable From HarmonicsA wavetable drawn from harmonic amplitudes: the first wave from one list, the last from another, and the waves between morphing from one to the other.Wavetable OscillatorA wavetable oscillator: a row of single-cycle waves played at a pitch and morphed by position, band-limited for every note so the top octave is as clean as the bottom.Stereo WidthA stereo image narrowed or widened: 0 is mono, 1 unchanged, above 1 wider.

Signal Processing

Apply FilterRuns a clip through a filter, once, forward - the way any real-time filter would.Apply Zero-Phase FilterRuns a clip through a filter forward and then backward, so nothing is delayed or phase-shifted and the magnitude response is squared - MATLAB's filtfilt.Audio FeaturesA table of the features audio analysis starts from, one row per frame: level, zero-crossing rate, spectral centroid, spread, rolloff, flatness and flux, and the MFCCs - ready for statistics, plotting or a classifier.Cross CorrelateHow alike two clips are at every relative shift - their cross-correlation - MATLAB's xcorr.Design FilterDesigns an IIR filter - Butterworth, Chebyshev I or II, elliptic or Bessel - as a cascade of second-order sections, by the bilinear transform with prewarped edges.Design FIR FilterDesigns a linear-phase FIR filter by the Kaiser window method, long enough to reach the attenuation over the transition width - MATLAB's kaiserord and fir1.Draw Constant-Q SpectrogramA picture of a clip's constant-Q spectrogram: time left to right, pitch bottom to top with the same number of rows every octave, so notes sit on evenly spaced lines - the musician's spectrogram.Draw Frequency ResponseA picture of a filter's magnitude response on a logarithmic frequency axis from 20 Hz to Nyquist, 0 dB at the top and -100 dB at the bottom.Draw Mel SpectrogramA picture of a clip's mel spectrogram: time left to right, mel bands bottom to top, level as brightness over the top 80 dB - the picture a speech or music model sees.EnvelopeA clip's amplitude envelope: the magnitude of its analytic signal (the Hilbert transform), channel by channel.Estimate DelayHow far one clip runs behind another - where their cross-correlation peaks - for lining up two recordings of the same thing, MATLAB's finddelay.Frequency ResponseA filter's frequency response: magnitude in dB, phase in degrees and group delay in milliseconds, at frequencies spaced evenly from 0 to Nyquist - MATLAB's freqz and grpdelay.Impulse ResponseA filter's response to a single click: how it rings - MATLAB's impz, as a clip at the filter's rate.Instantaneous FrequencyThe frequency a clip has from moment to moment, from the rate its analytic signal's phase turns - meaningful for one tone, a sweep or an FM sound.Linear PredictionThe all-pole model that predicts each sample from the ones before it - the vocal tract's resonances in speech - by the autocorrelation method, MATLAB's lpc.MFCCMel-frequency cepstral coefficients frame by frame, as librosa computes them by default - the timbre features speech and music classifiers start from.Octave Band LevelsA clip's level in each octave or fractional-octave band of ANSI S1.11 and IEC 61260, through sixth-order Butterworth band filters - MATLAB's octaveFilterBank, as a table.Power Spectral DensityA clip's power spectral density by Welch's method - Hann segments overlapping by half, averaged - in dB per hertz, MATLAB's pwelch.Prediction EnvelopeA linear-prediction model as a filter: its all-pole resonances, whose frequency response is the spectral envelope - the formants.Real CepstrumThe real cepstrum - the spectrum of the log spectrum - whose peaks are periodicities in the spectrum: a voice's pitch period, an echo's delay.Spectral DescriptorsThe eleven spectral descriptors of MATLAB's Audio Toolbox, one row per frame of the power spectrum: centroid, spread, skewness, kurtosis, entropy, flatness, crest, flux, slope, decrease and rolloff.Transfer FunctionThe transfer function from one clip to another and how linearly they are related at each frequency - measuring a room, a speaker or an effect from what went in and what came out.Weighted LevelA clip's equivalent continuous level through a frequency weighting, in dB relative to a full-scale sine's RMS - the dB(A) or dB(C) of a sound level meter, uncalibrated: digital full scale stands for whatever level the recording chain puts there.Weighting FilterThe A or C frequency weighting of IEC 61672 as a filter, 0 dB at 1 kHz - MATLAB's weightingFilter.Zeros And PolesA filter's zeros and poles in the z-plane - MATLAB's zplane as a table: a filter is stable when every pole lies inside the unit circle.

Edit

Mix Track

Analysis

Audio Spectrum

Stereo Signal

Audio Spectrogram

Live Latency

Effects

Wavetable

Live Signal Session

Format

Music Analysis

Spectral

Live Input

Generate

Pitch Point

Files

Dynamics

Equalizer

Digital Filter

Speech

Pronunciation

Phonics Part

Spoken Word

Aligned Phone

Key Phrase Detection

Time and Pitch

Studio Effects

Aligned Word

Speech Interval

Noise Profile Data

Pictures

Audio Mixing

Playback