Oscillator
Motion
A repeating waveform driven by the timeline. The simplest way to make anything in the graph move.
A repeating waveform driven by the timeline. The simplest way to make anything in the graph move.
Sockets#
| Input | Type | Default |
|---|---|---|
| Frequency | Float | 1 |
| Amplitude | Float | 1 |
| Phase | Float | 0 |
| Offset | Float | 0 |
| Output | Type | |
|---|---|---|
| Value | Float | — |
Settings#
| Setting | Type | Default | Choices / range |
|---|---|---|---|
| wave | enum | sine | Sine · Triangle · Saw · Square |
| bipolar (−1..1) | bool | off | — |
How it works#
Phase is time × frequency + offset, so frequency is in cycles per second and the wave never depends on frame rate. Switching the wave shape changes only the function applied to that phase, which means you can swap sine for square without retiming anything.
Things that catch people out#
Bipolar changes the resting value
Unipolar output sits in 0…1 and rests at 0.5. Bipolar sits in −1…1 and rests at 0. Feeding a unipolar oscillator into something that expects a signed offset gives you a permanent bias.
See also#
Something here wrong or missing? Tell us in the community.