Table lookup oscillator
Name | Type | Opt | Description |
---|---|---|---|
initial-frequency (Hz/cycles-per-second) | float or int | opt | The initial frequency of the oscillator. If no frequency argument is present, the initial frequency is 0. |
buffer-object-name | symbol | opt | The name of a buffer~ object used to store the oscillator's wavetable. If a or frequency argument is present, the buffer~ name follows the frequency. (No frequency argument is required, however.) If no buffer~ name is given, cycle~ uses a stored cosine wave. |
sample-offset | int | opt | If a buffer~ name has been given, an additional final argument can used to specify the sample offset into the named buffer~ object's sample memory. cycle~ only uses the first channel of a multi-channel buffer~. |
int | frequency (Hz/cycles-per-second) [int] |
In left inlet: Sets the frequency of the oscillator. If there is a | connected to the left inlet, this number is ignored.
float | frequency (Hz/cycles-per-second) [float] |
In left inlet: Sets the frequency of the oscillator. If there is a | connected to the left inlet, this number is ignored.
(mouse) | When the cycle~ object is used as a buffer, double-clicking on buffer~ opens a display window where you can view the contents of the buffer~. object that it references. | |
set |
buffer-object-name [symbol] sample-offset [int] |
The word buffer~ object, changes the wavetable used by cycle~. The name can optionally be followed by an specifying the sample offset into the named buffer~ object's sample memory. cycle~ uses only the first (left) channel of a multi-channel buffer~. The word with no arguments reverts cycle~ to the use of its default cosine wave. |
, followed by the name of a
signal | In left inlet: Frequency of the oscillator. Negative values are allowed. In right inlet: Phase, expressed as a fraction of a cycle, from 0 to 1. Other values are wrapped around to stay in the 0 to 1 range. If the frequency is 0, connecting a phasor~ to this inlet is an alternative method of producing an oscillator. If the frequency is non-zero, connecting a cycle~ or other repeating function to this inlet produces phase modulation, which is similar to frequency modulation. |
Name | Description |
---|---|
buffer~ | Store audio samples |
buffir~ | buffer-based FIR filter |
cos~ | Signal cosine function (0-1 range) |
line~ | Linear ramp generator |
phasor~ | Sawtooth wave generator |
rect~ | Antialiased rectangular (pulse) oscillator |
saw~ | Antialiased sawtooth oscillator |
techno~ | Signal-driven step sequencer |
trapezoid~ | Trapezoidal wavetable |
tri~ | Antialiased triangular oscillator |
triangle~ | Triangle/ramp wavetable |
wave~ | Variable size wavetable |
2d.wave~ | Two-dimensional wavetable |
MSP Tutorial 2: Adjustable Oscillator | MSP Tutorial 2: Adjustable Oscillator |
MSP Tutorial 3: Wavetable Oscillator | MSP Tutorial 3: Wavetable Oscillator |
MSP Tutorial 12: Waveshaping | MSP Tutorial 12: Waveshaping |
MSP Tutorial 13: Recording and Playback | MSP Tutorial 13: Recording and Playback |