元編程參考文件

音訊處理

可用

音訊片段:讀寫六種格式的檔案;生成音調、噪聲、音效和語音;剪下、混音、濾波、測量、繪製波形和播放

Methodox Wiki 上的使用指南

37 個類別,共 347 個節點

所屬發行版
元編程(教育版)元編程(專業版)
支援等級
第 2 級(擬定)
所屬包
音訊處理
音訊處理

載入、生成、編輯、濾波、測量、繪製與播放聲音:音訊檔案、音調、噪聲、音效與語音。

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.

訊號

合唱A 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.壓縮訊號A compressor: everything over the threshold turned down by the ratio, with a soft knee and true attack and release times.常量訊號A value that does not change.降取樣失真訊號A bitcrusher: fewer bits and a lower sample rate, for the grit of an early sampler.訊號延遲A signal through a delay line: echoes, or with a short moving time, chorus and flanging.包絡An ADSR envelope following a gate - rising, settling, holding and dying away - for multiplying into a voice or wiring into a cutoff.訊號濾波A signal through a state-variable filter whose cutoff can move every sample.FM 運算元An FM operator, as on a DX7: a sine whose phase another signal pushes.波形摺疊A wavefolder: the louder the signal is driven, the more it folds back on itself and the brighter it gets, without getting louder.訊號增益A signal turned up or down.門限A gate: 1 while a note is held, 0 otherwise - once, or every period.顆粒合成Granular 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.梯形濾波器A signal through a four-pole ladder lowpass, the classic synthesizer filter: 24 dB an octave, singing as the resonance rises.平滑訊號A signal smoothed: it follows its input exponentially, all but a thousandth of the way in the time given.低頻振盪器A low-frequency oscillator moving between two values: the hand that turns a knob.混合訊號Signals added together.混合立體聲訊號Stereo signals added together, left to left and right to right.訊號相乘One signal times another: an envelope applied to a voice, or ring modulation.噪聲訊號Noise from -1 to 1, the same every run for the same seed.振盪器An oscillator from -1 to 1.聲像訊號A signal placed between the speakers, as loud wherever it is put; a moving position sweeps it across.訊號變調A 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.撥絃A plucked string: a burst of noise ringing in a delay line one period long, dying away high harmonics first.脈衝波A band-limited pulse, high for Width of each cycle; moving the width is pulse-width modulation.斜坡A straight line from one value to another, then held: a glide, a fade, a pitch drop.渲染訊號A signal turned into a clip.渲染立體聲訊號Two signals turned into the left and right of a stereo clip; what they share is computed once.渲染立體聲混音A stereo signal turned into a clip.混響訊號A signal in a room: Freeverb's combs and allpasses, the tail as long as the room is big.播放取樣A clip played back as a signal, at a speed: 2 is an octave up, -1 backwards.取樣保持A random value held until the next trigger, then a new one: the stepped random modulation of a sample-and-hold module.飽和Soft saturation: a hot signal rounds off instead of clipping, and gains harmonics as it is driven.擺率限制A signal that can move only so fast: a glide between notes, a softened gate.立體聲混響A signal in a stereo room: the two sides' tails differ, so the room has width.由片段生成波表A wavetable cut from a recording, one wave every cycle length - the layout of Serum and Vital wavetable files at 2048.由諧波生成波表A 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.波表振盪器A 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.立體聲寬度A stereo image narrowed or widened: 0 is mono, 1 unchanged, above 1 wider.

訊號處理

應用濾波器Runs a clip through a filter, once, forward - the way any real-time filter would.應用零相位濾波器Runs 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.音訊特徵A 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.互相關How alike two clips are at every relative shift - their cross-correlation - MATLAB's xcorr.設計濾波器Designs 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.設計 FIR 濾波器Designs 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.繪製常數 Q 頻譜圖A 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.繪製頻率響應A 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.繪製梅爾頻譜圖A 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.包絡A clip's amplitude envelope: the magnitude of its analytic signal (the Hilbert transform), channel by channel.估計延遲How far one clip runs behind another - where their cross-correlation peaks - for lining up two recordings of the same thing, MATLAB's finddelay.頻率響應A 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.衝激響應A filter's response to a single click: how it rings - MATLAB's impz, as a clip at the filter's rate.瞬時頻率The 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.線性預測The 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.倍頻程聲級A 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.功率譜密度A clip's power spectral density by Welch's method - Hann segments overlapping by half, averaged - in dB per hertz, MATLAB's pwelch.預測包絡A linear-prediction model as a filter: its all-pole resonances, whose frequency response is the spectral envelope - the formants.實倒譜The real cepstrum - the spectrum of the log spectrum - whose peaks are periodicities in the spectrum: a voice's pitch period, an echo's delay.頻譜描述符The 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.傳遞函數The 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.計權聲級A 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.計權濾波器The A or C frequency weighting of IEC 61672 as a filter, 0 dB at 1 kHz - MATLAB's weightingFilter.零極點A 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.

編輯

混音軌道

分析

音訊頻譜

Stereo Signal

短時頻譜

Live Latency

效果

Wavetable

Live Signal Session

格式

音樂分析

頻譜

即時輸入

生成

音高點

檔案

動態處理

均衡器

數字濾波器

語音

發音

自然拼讀分組

聽到的詞

對齊的音素

關鍵短語檢出

時間與音高

錄音室效果

對齊的詞

語音區間

Noise Profile Data

視覺化

混音

播放