元編程參考文件

Signal

50 個節點

本頁內容 50

Make Signal

函數

此節點沒有文件說明。

簽名
op_Implicit(value: 數字) -> Signal
Signal op_Implicit(double value)

參數

名稱型別預設值說明
value數字—

返回

SignalSignal
所屬發行版
元編程(教育版)元編程(專業版)
可用的圖種類
資料流 函數 事件 例程 藍圖 狀態機狀態
宣告於
Signal
所屬包
音訊處理

Abs

函數

The magnitude: full-wave rectification.

簽名
Abs(Signal: Signal) -> Signal
Signal Abs(Signal Signal)

參數

名稱型別預設值說明
SignalSignal—

返回

結果Signal
所屬發行版
元編程(教育版)元編程(專業版)
可用的圖種類
資料流 函數 事件 例程 藍圖 狀態機狀態
宣告於
Signal
所屬包
音訊處理

Bandpass

函數

A bandpass around the cutoff.

簽名
Bandpass(Signal: Signal, cutoff: Signal, q: Signal) -> Signal
Signal Bandpass(Signal Signal, Signal cutoff, Signal q)

參數

名稱型別預設值說明
SignalSignal—
cutoffSignal—
qSignal—

返回

結果Signal
所屬發行版
元編程(教育版)元編程(專業版)
可用的圖種類
資料流 函數 事件 例程 藍圖 狀態機狀態
宣告於
Signal
所屬包
音訊處理

Clip

函數

Hard clipping at ±Limit.

簽名
Clip(Signal: Signal, limit: Signal) -> Signal
Signal Clip(Signal Signal, Signal limit)

參數

名稱型別預設值說明
SignalSignal—
limitSignal—

返回

結果Signal
所屬發行版
元編程(教育版)元編程(專業版)
可用的圖種類
資料流 函數 事件 例程 藍圖 狀態機狀態
宣告於
Signal
所屬包
音訊處理

Compile

函數

Compiles the signal at a sample rate into a processor that renders it block by block from time zero.

簽名
Compile(Signal: Signal, sampleRate: 整數) -> Signal Processor
SignalProcessor Compile(Signal Signal, int sampleRate)

參數

名稱型別預設值說明
SignalSignal—
sampleRate整數—

返回

結果Signal Processor
所屬發行版
元編程(教育版)元編程(專業版)
可用的圖種類
資料流 函數 事件 例程 藍圖 狀態機狀態
宣告於
Signal
所屬包
音訊處理

Compress

函數

A 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: 數字
    ratio: 數字
    attack: 數字
    release: 數字
    knee: 數字
    makeup: 數字
    sidechain: Signal
Signal 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)

參數

名稱型別預設值說明
SignalSignal—
threshold數字-18dBFS where compression starts.
ratio數字4Decibels in for each decibel out above the threshold; 1 does nothing, a very large ratio limits.
attack數字0.01Seconds for the gain reduction to reach 63% of a step up.
release數字0.1Seconds for it to recover 63% of the way.
knee數字6Decibels over which the curve bends from 1:1 to the ratio, centred on the threshold.
makeup數字0Decibels of gain after compression.
sidechainSignal—What the detector listens to instead of the signal itself: a kick, to duck a bass under it.

返回

結果Signal
所屬發行版
元編程(教育版)元編程(專業版)
可用的圖種類
資料流 函數 事件 例程 藍圖 狀態機狀態
宣告於
Signal
所屬包
音訊處理

Crush

函數

A 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: 數字, rate: 數字) -> Signal
Signal Crush(Signal Signal, double bits = 8, double rate = 8000)

參數

名稱型別預設值說明
SignalSignal—
bits數字8
rate數字8000

返回

結果Signal
所屬發行版
元編程(教育版)元編程(專業版)
可用的圖種類
資料流 函數 事件 例程 藍圖 狀態機狀態
宣告於
Signal
所屬包
音訊處理

Delay

函數

The 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: 數字
Signal Delay(
    Signal Signal,
    Signal time,
    Signal feedback,
    Signal mix,
    double maximumTime = 2)

參數

名稱型別預設值說明
SignalSignal—
timeSignal—
feedbackSignal—
mixSignal—
maximumTime數字2

返回

結果Signal
所屬發行版
元編程(教育版)元編程(專業版)
可用的圖種類
資料流 函數 事件 例程 藍圖 狀態機狀態
宣告於
Signal
所屬包
音訊處理

Filter

函數

A 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: Signal
Signal Filter(
    Signal Signal,
    FilterMode mode,
    Signal cutoff,
    Signal q)

參數

名稱型別預設值說明
SignalSignal—
modeFilter Mode—What it passes.
cutoffSignal—Hertz.
qSignal—Resonance: 0.707 is flat, higher rings.

返回

結果Signal
所屬發行版
元編程(教育版)元編程(專業版)
可用的圖種類
資料流 函數 事件 例程 藍圖 狀態機狀態
宣告於
Signal
所屬包
音訊處理

Fold

函數

A 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)

參數

名稱型別預設值說明
SignalSignal—
gainSignal—

返回

結果Signal
所屬發行版
元編程(教育版)元編程(專業版)
可用的圖種類
資料流 函數 事件 例程 藍圖 狀態機狀態
宣告於
Signal
所屬包
音訊處理

Highpass

函數

A 12 dB an octave highpass.

簽名
Highpass(Signal: Signal, cutoff: Signal, q: Signal) -> Signal
Signal Highpass(Signal Signal, Signal cutoff, Signal q)

參數

名稱型別預設值說明
SignalSignal—
cutoffSignal—
qSignal—

返回

結果Signal
所屬發行版
元編程(教育版)元編程(專業版)
可用的圖種類
資料流 函數 事件 例程 藍圖 狀態機狀態
宣告於
Signal
所屬包
音訊處理

Ladder

函數

A 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: Signal
Signal Ladder(Signal Signal, Signal cutoff, Signal resonance)

參數

名稱型別預設值說明
SignalSignal—
cutoffSignal—
resonanceSignal—

返回

結果Signal
所屬發行版
元編程(教育版)元編程(專業版)
可用的圖種類
資料流 函數 事件 例程 藍圖 狀態機狀態
宣告於
Signal
所屬包
音訊處理

Lag

函數

A 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: 數字) -> Signal
Signal Lag(Signal Signal, double time = 0.1)

參數

名稱型別預設值說明
SignalSignal—
time數字0.1

返回

結果Signal
所屬發行版
元編程(教育版)元編程(專業版)
可用的圖種類
資料流 函數 事件 例程 藍圖 狀態機狀態
宣告於
Signal
所屬包
音訊處理

Lowpass

函數

A 12 dB an octave lowpass.

簽名
Lowpass(Signal: Signal, cutoff: Signal, q: Signal) -> Signal
Signal Lowpass(Signal Signal, Signal cutoff, Signal q)

參數

名稱型別預設值說明
SignalSignal—
cutoffSignal—
qSignal—

返回

結果Signal
所屬發行版
元編程(教育版)元編程(專業版)
可用的圖種類
資料流 函數 事件 例程 藍圖 狀態機狀態
宣告於
Signal
所屬包
音訊處理

Pan

函數

The 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)

參數

名稱型別預設值說明
SignalSignal—
positionSignal—

返回

結果Stereo Signal
所屬發行版
元編程(教育版)元編程(專業版)
可用的圖種類
資料流 函數 事件 例程 藍圖 狀態機狀態
宣告於
Signal
所屬包
音訊處理

Pitch Shift

函數

The 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: 數字
Signal PitchShift(
    Signal Signal,
    Signal semitones,
    double window = 0.05)

參數

名稱型別預設值說明
SignalSignal—
semitonesSignal—How far to move it, in semitones; 12 is an octave up, and it may move.
window數字0.05Seconds of the delay line the heads slide through, 0.01 to 0.5.

返回

結果Signal
所屬發行版
元編程(教育版)元編程(專業版)
可用的圖種類
資料流 函數 事件 例程 藍圖 狀態機狀態
宣告於
Signal
所屬包
音訊處理

Range

函數

The 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)

參數

名稱型別預設值說明
SignalSignal—
lowSignal—
highSignal—

返回

結果Signal
所屬發行版
元編程(教育版)元編程(專業版)
可用的圖種類
資料流 函數 事件 例程 藍圖 狀態機狀態
宣告於
Signal
所屬包
音訊處理

Render

函數

Renders a number of seconds of the signal, mono.

簽名
Render -> AudioBuffer
    Signal: Signal
    seconds: 數字
    sampleRate: 整數
    blockSize: 整數
AudioBuffer Render(
    Signal Signal,
    double seconds,
    int sampleRate = 44100,
    int blockSize = 256)

參數

名稱型別預設值說明
SignalSignal—
seconds數字—
sampleRate整數44100
blockSize整數256

返回

結果AudioBuffer
所屬發行版
元編程(教育版)元編程(專業版)
可用的圖種類
資料流 函數 事件 例程 藍圖 狀態機狀態
宣告於
Signal
所屬包
音訊處理

Render Samples

函數

Renders a number of frames of the signal into samples.

簽名
RenderSamples -> 低精度數字陣列
    Signal: Signal
    frames: 整數
    sampleRate: 整數
    blockSize: 整數
float[] RenderSamples(
    Signal Signal,
    int frames,
    int sampleRate = 44100,
    int blockSize = 256)

參數

名稱型別預設值說明
SignalSignal—
frames整數—
sampleRate整數44100
blockSize整數256

返回

結果低精度數字陣列
所屬發行版
元編程(教育版)元編程(專業版)
可用的圖種類
資料流 函數 事件 例程 藍圖 狀態機狀態
宣告於
Signal
所屬包
音訊處理

Reverb

函數

Reverberation 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: 數字
    damping: 數字
    mix: 數字
Signal Reverb(
    Signal Signal,
    double roomSize = 0.6,
    double damping = 0.5,
    double mix = 0.3)

參數

名稱型別預設值說明
SignalSignal—
roomSize數字0.60 to 1: how long the tail lasts.
damping數字0.50 to 1: how quickly the high frequencies die in it.
mix數字0.30 is dry, 1 only the reverb.

返回

結果Signal
所屬發行版
元編程(教育版)元編程(專業版)
可用的圖種類
資料流 函數 事件 例程 藍圖 狀態機狀態
宣告於
Signal
所屬包
音訊處理

Sample And Hold

函數

Sample 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)

參數

名稱型別預設值說明
SignalSignal—
triggerSignal—

返回

結果Signal
所屬發行版
元編程(教育版)元編程(專業版)
可用的圖種類
資料流 函數 事件 例程 藍圖 狀態機狀態
宣告於
Signal
所屬包
音訊處理

Saturate

函數

Soft 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)

參數

名稱型別預設值說明
SignalSignal—
driveSignal—

返回

結果Signal
所屬發行版
元編程(教育版)元編程(專業版)
可用的圖種類
資料流 函數 事件 例程 藍圖 狀態機狀態
宣告於
Signal
所屬包
音訊處理

Slew

函數

A 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: 數字, fall: 數字) -> Signal
Signal Slew(Signal Signal, double rise = 0.1, double fall = 0.1)

參數

名稱型別預設值說明
SignalSignal—
rise數字0.1
fall數字0.1

返回

結果Signal
所屬發行版
元編程(教育版)元編程(專業版)
可用的圖種類
資料流 函數 事件 例程 藍圖 狀態機狀態
宣告於
Signal
所屬包
音訊處理

Stereo Reverb

函數

The 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: 數字
    damping: 數字
    mix: 數字
    width: 數字
StereoSignal StereoReverb(
    Signal Signal,
    double roomSize = 0.6,
    double damping = 0.5,
    double mix = 0.3,
    double width = 1)

參數

名稱型別預設值說明
SignalSignal—
roomSize數字0.60 to 1: how long the tail lasts.
damping數字0.50 to 1: how quickly the high frequencies die.
mix數字0.30 is dry, 1 only the reverb.
width數字10 to 1: how wide the tail spreads.

返回

結果Stereo Signal
所屬發行版
元編程(教育版)元編程(專業版)
可用的圖種類
資料流 函數 事件 例程 藍圖 狀態機狀態
宣告於
Signal
所屬包
音訊處理

To String

函數

The signal as an expression, such as lowpass(saw(220), 800).

簽名
ToString(Signal: Signal) -> 文字
string ToString(Signal Signal)

參數

名稱型別預設值說明
SignalSignal—

返回

結果文字
所屬發行版
元編程(教育版)元編程(專業版)
可用的圖種類
資料流 函數 事件 例程 藍圖 狀態機狀態
宣告於
Signal
所屬包
音訊處理

Adsr

函數

An 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: 數字
    decay: 數字
    sustain: 數字
    release: 數字
Signal Adsr(
    Signal gate,
    double attack = 0.01,
    double decay = 0.1,
    double sustain = 0.7,
    double release = 0.3)

參數

名稱型別預設值說明
gateSignal—
attack數字0.01
decay數字0.1
sustain數字0.7
release數字0.3

返回

結果Signal
所屬發行版
元編程(教育版)元編程(專業版)
可用的圖種類
資料流 函數 事件 例程 藍圖 狀態機狀態
宣告於
Signal
所屬包
音訊處理

Constant

函數

A constant value.

簽名
Constant(value: 數字) -> Signal
Signal Constant(double value)

參數

名稱型別預設值說明
value數字—

返回

結果Signal
所屬發行版
元編程(教育版)元編程(專業版)
可用的圖種類
資料流 函數 事件 例程 藍圖 狀態機狀態
宣告於
Signal
所屬包
音訊處理

Control

函數

A 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)

參數

名稱型別預設值說明
valueControl Value—

返回

結果Signal
所屬發行版
元編程(教育版)元編程(專業版)
可用的圖種類
資料流 函數 事件 例程 藍圖 狀態機狀態
宣告於
Signal
所屬包
音訊處理

Gate

函數

A gate: 1 for On Seconds, then 0 - repeating every Period Seconds when that is positive.

簽名
Gate -> Signal
    onSeconds: 數字
    periodSeconds: 數字
    delaySeconds: 數字
Signal Gate(
    double onSeconds,
    double periodSeconds = 0,
    double delaySeconds = 0)

參數

名稱型別預設值說明
onSeconds數字—
periodSeconds數字0
delaySeconds數字0

返回

結果Signal
所屬發行版
元編程(教育版)元編程(專業版)
可用的圖種類
資料流 函數 事件 例程 藍圖 狀態機狀態
宣告於
Signal
所屬包
音訊處理

Grains

函數

Granular 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: 數字
    density: 數字
    jitter: 數字
    seed: 整數
Signal Grains(
    AudioBuffer clip,
    Signal position,
    Signal pitch,
    double grainSeconds = 0.08,
    double density = 25,
    double jitter = 0.01,
    int seed = 1)

參數

名稱型別預設值說明
clipAudioBuffer—The source, mixed to mono.
positionSignal—Where each grain starts, 0 to 1 of the clip; read when the grain starts.
pitchSignal—Each grain's playback speed: 2 is an octave up; read when the grain starts.
grainSeconds數字0.08How long each grain lasts.
density數字25Grains started a second; times Grain Seconds, at most 128 overlapping.
jitter數字0.01Seconds of random scatter in where each grain reads from.
seed整數1Which scatter.

返回

結果Signal

備註

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.

所屬發行版
元編程(教育版)元編程(專業版)
可用的圖種類
資料流 函數 事件 例程 藍圖 狀態機狀態
宣告於
Signal
所屬包
音訊處理

Input

函數

What 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: 文字, cushion: 數字) -> Signal
Signal Input(string device, double cushion = 0.01)

參數

名稱型別預設值說明
device文字—The device's name as the host lists it; empty for the system's default.
cushion數字0.01Seconds of sound kept waiting so the audio thread never runs dry between the device's chunks, 0 to 0.5; see Live.LiveInput.

返回

結果Signal
所屬發行版
元編程(教育版)元編程(專業版)
可用的圖種類
資料流 函數 事件 例程 藍圖 狀態機狀態
宣告於
Signal
所屬包
音訊處理

Mix

函數

Several signals summed.

簽名
Mix(signals: Signal 陣列) -> Signal
Signal Mix(params Signal[] signals)

參數

名稱型別預設值說明
signalsSignal 陣列—

返回

結果Signal
所屬發行版
元編程(教育版)元編程(專業版)
可用的圖種類
資料流 函數 事件 例程 藍圖 狀態機狀態
宣告於
Signal
所屬包
音訊處理

Noise

函數

Noise from -1 to 1, the same for the same seed.

簽名
Noise(color: Noise Color, seed: 整數) -> Signal
Signal Noise(NoiseColor color = NoiseColor.White, int seed = 1)

參數

名稱型別預設值說明
colorNoise ColorWhite
seed整數1

返回

結果Signal
所屬發行版
元編程(教育版)元編程(專業版)
可用的圖種類
資料流 函數 事件 例程 藍圖 狀態機狀態
宣告於
Signal
所屬包
音訊處理

Addition Operation

函數

The sum of two signals: mixing.

簽名
op_Addition(a: Signal, b: Signal) -> Signal
Signal op_Addition(Signal a, Signal b)

參數

名稱型別預設值說明
aSignal—
bSignal—

返回

結果Signal
所屬發行版
元編程(教育版)元編程(專業版)
可用的圖種類
資料流 函數 事件 例程 藍圖 狀態機狀態
宣告於
Signal
所屬包
音訊處理

Op Implicit

函數

此節點沒有文件說明。

簽名
op_Implicit(value: 數字) -> Signal
Signal op_Implicit(double value)

參數

名稱型別預設值說明
value數字—

返回

結果Signal
所屬發行版
元編程(教育版)元編程(專業版)
可用的圖種類
資料流 函數 事件 例程 藍圖 狀態機狀態
宣告於
Signal
所屬包
音訊處理

Multiply Operation

函數

The product of two signals: gain, ring modulation, an envelope applied.

簽名
op_Multiply(a: Signal, b: Signal) -> Signal
Signal op_Multiply(Signal a, Signal b)

參數

名稱型別預設值說明
aSignal—
bSignal—

返回

結果Signal
所屬發行版
元編程(教育版)元編程(專業版)
可用的圖種類
資料流 函數 事件 例程 藍圖 狀態機狀態
宣告於
Signal
所屬包
音訊處理

Subtraction Operation

函數

The difference of two signals.

簽名
op_Subtraction(a: Signal, b: Signal) -> Signal
Signal op_Subtraction(Signal a, Signal b)

參數

名稱型別預設值說明
aSignal—
bSignal—

返回

結果Signal
所屬發行版
元編程(教育版)元編程(專業版)
可用的圖種類
資料流 函數 事件 例程 藍圖 狀態機狀態
宣告於
Signal
所屬包
音訊處理

Unary Negation Operation

函數

The signal upside down.

簽名
op_UnaryNegation(a: Signal) -> Signal
Signal op_UnaryNegation(Signal a)

參數

名稱型別預設值說明
aSignal—

返回

結果Signal
所屬發行版
元編程(教育版)元編程(專業版)
可用的圖種類
資料流 函數 事件 例程 藍圖 狀態機狀態
宣告於
Signal
所屬包
音訊處理

Operator

函數

A 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: 數字
    phase: 數字
Signal Operator(
    Signal frequency,
    Signal modulation,
    double feedback = 0,
    double phase = 0)

參數

名稱型別預設值說明
frequencySignal—Hertz; read every sample.
modulationSignal—Radians added to the phase; a modulator of amplitude I gives sidebands at the Bessel amplitudes J_n(I).
feedback數字0Radians of its own output fed back into its phase, 0 to about 1.5.
phase數字0Where in its cycle it starts, 0 to 1.

返回

結果Signal

備註

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.

所屬發行版
元編程(教育版)元編程(專業版)
可用的圖種類
資料流 函數 事件 例程 藍圖 狀態機狀態
宣告於
Signal
所屬包
音訊處理

Oscillator

函數

An 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: 數字
Signal Oscillator(
    OscillatorShape shape,
    Signal frequency,
    double phase = 0)

參數

名稱型別預設值說明
shapeOscillator Shape—The waveform.
frequencySignal—Hertz; read every sample.
phase數字0Where in its cycle it starts, 0 to 1.

返回

結果Signal
所屬發行版
元編程(教育版)元編程(專業版)
可用的圖種類
資料流 函數 事件 例程 藍圖 狀態機狀態
宣告於
Signal
所屬包
音訊處理

Pluck

函數

A 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: 數字
    brightness: 數字
    seed: 整數
Signal Pluck(
    Signal trigger,
    Signal frequency,
    double decay = 2,
    double brightness = 0.5,
    int seed = 1)

參數

名稱型別預設值說明
triggerSignal—Plucks on every rise past one half.
frequencySignal—Hertz, read at each pluck.
decay數字2Seconds for the fundamental to fall 60 dB.
brightness數字0.50 to 1: how much the loop and the pluck keep the high harmonics.
seed整數1Which noise each pluck starts from.

返回

結果Signal

備註

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.

所屬發行版
元編程(教育版)元編程(專業版)
可用的圖種類
資料流 函數 事件 例程 藍圖 狀態機狀態
宣告於
Signal
所屬包
音訊處理

Pulse

函數

A 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: 數字) -> Signal
Signal Pulse(Signal frequency, Signal width, double phase = 0)

參數

名稱型別預設值說明
frequencySignal—
widthSignal—
phase數字0

返回

結果Signal
所屬發行版
元編程(教育版)元編程(專業版)
可用的圖種類
資料流 函數 事件 例程 藍圖 狀態機狀態
宣告於
Signal
所屬包
音訊處理

Ramp

函數

A straight line from one value to another over some seconds, then held.

簽名
Ramp(from: 數字, to: 數字, seconds: 數字) -> Signal
Signal Ramp(double from, double to, double seconds)

參數

名稱型別預設值說明
from數字—
to數字—
seconds數字—

返回

結果Signal
所屬發行版
元編程(教育版)元編程(專業版)
可用的圖種類
資料流 函數 事件 例程 藍圖 狀態機狀態
宣告於
Signal
所屬包
音訊處理

Render Stereo

函數

Renders 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: 數字
    sampleRate: 整數
    blockSize: 整數
AudioBuffer RenderStereo(
    Signal left,
    Signal right,
    double seconds,
    int sampleRate = 44100,
    int blockSize = 256)

參數

名稱型別預設值說明
leftSignal—
rightSignal—
seconds數字—
sampleRate整數44100
blockSize整數256

返回

結果AudioBuffer
所屬發行版
元編程(教育版)元編程(專業版)
可用的圖種類
資料流 函數 事件 例程 藍圖 狀態機狀態
宣告於
Signal
所屬包
音訊處理

Sample

函數

A 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: 真否) -> Signal
Signal Sample(AudioBuffer clip, Signal speed, bool loop = false)

參數

名稱型別預設值說明
clipAudioBuffer—
speedSignal—
loop真否False

返回

結果Signal
所屬發行版
元編程(教育版)元編程(專業版)
可用的圖種類
資料流 函數 事件 例程 藍圖 狀態機狀態
宣告於
Signal
所屬包
音訊處理

Saw

函數

A band-limited saw.

簽名
Saw(frequency: Signal, phase: 數字) -> Signal
Signal Saw(Signal frequency, double phase = 0)

參數

名稱型別預設值說明
frequencySignal—
phase數字0

返回

結果Signal
所屬發行版
元編程(教育版)元編程(專業版)
可用的圖種類
資料流 函數 事件 例程 藍圖 狀態機狀態
宣告於
Signal
所屬包
音訊處理

Sine

函數

A sine.

簽名
Sine(frequency: Signal, phase: 數字) -> Signal
Signal Sine(Signal frequency, double phase = 0)

參數

名稱型別預設值說明
frequencySignal—
phase數字0

返回

結果Signal
所屬發行版
元編程(教育版)元編程(專業版)
可用的圖種類
資料流 函數 事件 例程 藍圖 狀態機狀態
宣告於
Signal
所屬包
音訊處理

Square

函數

A band-limited square.

簽名
Square(frequency: Signal, phase: 數字) -> Signal
Signal Square(Signal frequency, double phase = 0)

參數

名稱型別預設值說明
frequencySignal—
phase數字0

返回

結果Signal
所屬發行版
元編程(教育版)元編程(專業版)
可用的圖種類
資料流 函數 事件 例程 藍圖 狀態機狀態
宣告於
Signal
所屬包
音訊處理

Triangle

函數

A band-limited triangle.

簽名
Triangle(frequency: Signal, phase: 數字) -> Signal
Signal Triangle(Signal frequency, double phase = 0)

參數

名稱型別預設值說明
frequencySignal—
phase數字0

返回

結果Signal
所屬發行版
元編程(教育版)元編程(專業版)
可用的圖種類
資料流 函數 事件 例程 藍圖 狀態機狀態
宣告於
Signal
所屬包
音訊處理

Wavetable

函數

A 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: 數字
Signal Wavetable(
    Wavetable table,
    Signal frequency,
    Signal position,
    double phase = 0)

參數

名稱型別預設值說明
tableWavetable—The frames.
frequencySignal—Hertz; read every sample.
positionSignal—Where across the frames, 0 to 1; read every sample.
phase數字0Where in its cycle it starts, 0 to 1.

返回

結果Signal
所屬發行版
元編程(教育版)元編程(專業版)
可用的圖種類
資料流 函數 事件 例程 藍圖 狀態機狀態
宣告於
Signal
所屬包
音訊處理