DocsDocsShowcaseShowcasePlaygroundPlayground
GitHubGitHub (opens in a new tab)DiscordDiscord (opens in a new tab)
  • Introduction
  • Motivation
  • In Depth
    • Making Sound
    • Virtual File System
    • Sample Accurate Rendering
    • Understanding Keys
    • Using Refs
    • Native Integrations
    • Custom Native Nodes
    • Distortion, Saturation, and Wave Shaping
    • Envelope Generators
    • Web MIDI
    • @elemaudio/core
    • @elemaudio/offline-renderer
    • @elemaudio/web-renderer
  • Playground API
    • Math
    • el.accum
    • el.adsr
    • el.allpass
    • el.bandpass
    • el.biquad
    • el.blepsaw
    • el.blepsquare
    • el.bleptriangle
    • el.capture
    • el.compress
    • el.const
    • el.convolve
    • el.counter
    • el.cycle
    • el.db2gain
    • el.dcblock
    • el.delay
    • el.df11
    • el.env
    • el.fft
    • el.hann
    • el.highpass
    • el.highshelf
    • el.latch
    • el.lowpass
    • el.lowshelf
    • el.maxhold
    • el.meter
    • el.metro
    • el.mm1p
    • el.ms2samps
    • el.noise
    • el.notch
    • el.peak
    • el.phasor
    • el.pink
    • el.pinknoise
    • el.pole
    • el.prewarp
    • el.rand
    • el.sample
    • el.sampleseq
    • el.saw
    • el.scope
    • el.sdelay
    • el.select
    • el.seq
    • el.seq2
    • el.skcompress
    • el.sm
    • el.smooth
    • el.snapshot
    • el.sparseq
    • el.sparseq2
    • el.sphasor
    • el.square
    • el.sr
    • el.svf
    • el.svfshelf
    • el.table
    • el.tapIn
    • el.tapOut
    • el.tau2pole
    • el.time
    • el.train
    • el.triangle
    • el.z
    • el.zero

On This Page

  • Props
Docs
Reference
el.triangle

el.triangle([props], rate)

Outputs a naive triangle oscillator at the given frequency. Expects exactly one child specifying the cycle frequency in hz.

Typically, due to the aliasing of the naive triangle at audio rates, this oscillator is used for low frequencly modulation.

Props

None

el.trainel.z

MIT 2024 © Nick Thompson