Square Wave

Animation control node. Square Wave provides animation-related values or timing control.

intermediate
Since P00

Input Ports

Input

入力値(未接続時はNormalized timeを使用)

Float

Output Ports

Output

矩形波の出力値

Float

Parameters

NameTypeDefaultDescription
FrequencyFloat1.0波の繰り返し回数
AmplitudeFloat1.0波のピーク振Width
Duty CycleFloat0.5ON 期間の比率(0.5=標準矩形波)
OffsetFloat0.0Vertical offset

波形の数式

frac = (frequency * input) - floor(frequency * input)
square = frac < duty ? +1 : -1
output = offset + amplitude * square

Usage Examples

  • duty=0.5 — 標準的な矩形波(点滅アニメーション)
  • duty=0.1 — 短いパルス(ストロボ効果)
  • duty=0.9 — 長い ON 期間(ほぼ常時 ON で一瞬 OFF)
Square Wave — PixPipeline Node Reference