元编程参考文档

音频处理

可用

音频片段:读写六种格式的文件;生成音调、噪声、音效和语音;剪切、混音、滤波、测量、绘制波形和播放

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

可视化

混音

播放