A newer version of Max is available. Click here to access the latest version of the documentation

saw~ Reference

Antialiased sawtooth oscillator

saw~

Description

Use the saw~ object to generate an anti-aliased sawtooth wave.

Examples

Spectral comparison of saw~ and phasor~

Arguments

initial-frequency [number]

Optional
Unitshz

Sets the initial frequency of the oscillator. The default is 0.

Attributes

Common Box Attributes

Messages

int

Arguments

frequency [int]
In left inlet: Sets the frequency of the oscillator.

float

Arguments

frequency [float]
In left inlet: Sets the frequency of the oscillator.

signal

In left inlet: Sets the frequency of the oscillator.

In right inlet: (optional) A sync signal. When the control signal crosses from below 0.5 to above 0.5, the oscillator resets itself. A phasor~ object works well for this purpose. The classic use is to set this control signal to your fundamental frequency and "sweep" the left frequency input in a range somewhere several octaves higher than the fundamental.

synctrig

Arguments

trigger-value [float]
Sets the value which an input signal crosses at which the oscillator will reset itself.

Output

signal

An antialiased sawtooth waveform. An ideal, straight-line sawtooth wave generated in a computer contains aliased frequencies that can sound irritating. saw~ produces a nice, analog-esque output waveform.

See Also

Name Description
cycle~
phasor~
rect~
techno~
tri~
MSP Basics Tutorial 3: Wavetable Oscillator MSP Basics Tutorial 3: Wavetable Oscillator