Studio Yotsuba
Back to Node List

Image To Automation

image_to_automation

Turns pixel art into sound: scans an image and reads its brightness (or a channel) as a curve. Feed a sprite in and wire the curve to an oscillator's pitch for an image-driven warble

Reviewed
Guide available

Input Ports

NameTypeDescription
Image
image
Image
Required
Image to scan

Output Ports

NameTypeDescription
Curve
curve
AutomationCurve
Time-domain control curve

Parameters

NameTypeDefaultRangeDescription / Options
Duration
duration
Float
0.350.01–5 / step 0.01

Length in seconds. Short SFX are usually 0.1-1.0s. Keep an oscillator and the curves feeding it at the same duration - past the end of a shorter curve its effect stops (gain snaps back to full volume)

Samples
samples
Int
2562–4096

Curve resolution: how many points record the shape. Values in between are connected smoothly, so the default is almost always fine. Lower it only if fine detail may be lost is acceptable; it does NOT change the sound's length or pitch

Axis
axis
Enum
Horizontal—

Which way time flows across the image. Horizontal = left edge is the start of the sound, each column is averaged; Vertical = top-to-bottom instead

  • horizontalHorizontal
  • verticalVertical
Channel
channel
Enum
Brightness—

What to read from each pixel. Brightness = perceived lightness (transparent counts as 0, usually what you want); Alpha = opacity only; R/G/B = one color channel (also reads color hidden under transparency)

  • brightnessBrightness
  • alphaAlpha
  • redRed
  • greenGreen
  • blueBlue
Output Min
output_min
Float
0-96–96 / step 0.1

What the BOTTOM of the curve means as a real value. Example: for a pitch curve, min 0 / max 12 turns the curve into a 0..+12 semitone sweep; min -30 / max 0 makes it a falling pitch. For gain curves keep 0..1

Output Max
output_max
Float
1-96–96 / step 0.1

What the TOP of the curve means as a real value. Works as a pair with Output Min - together they decide the range the curve actually moves through

Overview

Converts image brightness into a time curve (AutomationCurve). It treats the horizontal image axis as time and repurposes the brightness pattern as changes in volume or pitch. This makes gradients and noise useful as curve material.

Usage tips

  • Reading a noise image quickly creates a randomly fluctuating curve; reading a gradient creates a monotonic rising or falling curve. This is faster than writing automation_curve JSON.
  • A common destination is the pitch or gain curve of audio_oscillator.
  • To draw an exact curve shape, path_to_automation provides a more direct path-based method.

Related nodes

  • path_to_automation — the path-drawn counterpart
  • automation_curve — preset and JSON version
  • audio_oscillator — a common curve destination
  • noise_generate / coordinates — generate the image to read

Converts image brightness or channel values into a time-based AutomationCurve.

Ports

Direction Port Type Description
Input image Image Image to read
Output curve AutomationCurve Generated control curve

Parameters

  • duration: duration of the curve
  • samples: number of curve samples
  • axis: Horizontal / Vertical
  • channel: Brightness / Alpha / Red / Green / Blue
  • output_min: output value for curve value 0
  • output_max: output value for curve value 1

Notes

Horizontal scans left to right and Vertical scans top to bottom. Each sample averages every pixel on the perpendicular row or column. Brightness reads luminance × alpha; Alpha reads alpha directly. Red, Green, and Blue also read hidden RGB from fully transparent pixels. A missing or mistyped required image is an evaluation error rather than a valid zero curve. Known legacy lowercase enum values remain accepted, while any other unknown value is an error.

Back to Node List