Skip to content

Harmonic Series

What It Does

Generates a sequence based on harmonic proportions, where values follow a pattern related to musical harmonics. The node creates a progression where each value is calculated by raising a ratio to a fractional power determined by the index and number of notes.

Inputs

NameDescriptionTypeRequired
baseThe central value of the seriesNumberNo
stepsDownNumber of steps to generate below the base valueNumberNo
stepsUpNumber of steps to generate above the base valueNumberNo
notesNumber of steps that make up a complete octave/cycleNumberNo
ratioThe harmonic ratio (typically 2 for musical octaves)NumberNo
precisionNumber of decimal places to round toNumberNo

Outputs

NameDescriptionType
arrayThe sequence of values as a simple arrayList
indexedThe values with their corresponding position indicesList

Harmonic Series Example

How to Use It

  1. Drag the Harmonic Series node into your graph.
  2. Set the "base" value (default is 16).
  3. Set how many steps you want below the base ("stepsDown", default is 0).
  4. Set how many steps you want above the base ("stepsUp", default is 5).
  5. Set the "notes" parameter to define the number of divisions in an octave (default is 5).
  6. Set the "ratio" (default is 2, which creates a standard octave relationship).
  7. Run the graph—with the default settings, your output will be a series that increases by harmonically related intervals.

Tips

  • With ratio=2 and notes=12, you'll get a chromatic musical scale (12 equal divisions of an octave).
  • For musical applications, the base is typically a frequency value.
  • The harmonic relationship creates a more natural-sounding progression than equal divisions.

See Also

  • Geometric Series: For sequences with constant multiplication between terms.
  • Arithmetic Series: For sequences with constant addition between terms.
  • Exponential Decay: For sequences that gradually decrease according to exponential decay.

Use Cases

  • Musical Scales: Generate frequencies for notes in various musical tuning systems.
  • Natural Proportions: Create sequences that follow ratios found in nature.
  • Harmonic Typography: Design type scales with proportional relationships between sizes.
  • Resonant Spacing: Generate spacing values that have harmonic relationships for UI design.