Cnoidal Curve

Generates a curve based on a cnoidal wave — a periodic waveform with sharper peaks and flatter troughs than a standard sinusoid.

When to Use

Use a Cnoidal Curve for profiles where you need distinct crests separated by broad, flat valleys:

  • Terracing: Terracing patterns that repeat across the terrain.
  • Sharp ridgelines: Peaked crests rather than the rounded tops of a sine wave.
  • Cliff layering: Push Wave shape (m) toward 1.0 to get the characteristic sharp-peak, flat-trough profile that works well for layered cliff effects.

How to Use

The device has no inputs. Connect its output wherever a curve is expected, such as the External Curve Input of a Curves device or the HeightCurve input of a Gradient. By default you get one wave running from -1 to 1 with a distinctly cnoidal shape.

  1. Set Frequency sin1 to the number of waves you need.
  2. Set Wave shape (m) to choose how sharp the crests and how flat the troughs are.
  3. Use Amplitude sin1 and Phase sin1 to size and slide the wave.

Inputs

This device has no inputs.

Outputs

PortTypeDescription
Primary OutputCurveThe generated cnoidal curve.

Parameters

Frequency sin1 — How many complete waves fit across the curve. At the default of 1.0 there is one crest and one trough; higher values pack in more waves. Range: 0 to 30 (logarithmic slider). Default: 1.0.

Amplitude sin1 — The height of the wave. The curve swings between minus and plus this value, so the default of 1.0 produces a curve running from -1 to 1. Range: 0 to 10 (logarithmic slider). Default: 1.0.

Phase sin1 — Slides the wave along the curve. A value of 1.0 shifts it by half a wave, swapping the positions of crests and troughs; 2.0 is a full wave and returns to the starting position. Range: 0 to 2. Default: 0.

Wave shape (m) — How sharp the crests and how flat the troughs are. Range: 0.5 to 0.9999. Default: 0.9.

  • Values near 0.5 produce a rounded waveform that is close to a standard sine wave.
  • Values approaching 1.0 produce progressively sharper, more peaked crests and wider, flatter troughs.

Tips and Tricks

  • Pair with an Adjust Curve device to rescale or offset the output if you need to fit it into a specific value range.
  • The crests of a Cnoidal Curve line up with those of a Sinusoidal Curve at the same frequency and phase, so you can swap one for the other, or blend them with a Curve Combiner, without the pattern shifting. At m = 0.5 the two look similar; raising m sharpens the crests in place.
Updated on December 3, 2026
Was this article helpful?

Related Articles

Need Support?
Can't find the answer you're looking for?
Contact Support