Reference+
Name
freq()
Class
Pulse
Description
Sets the frequency of the oscillator.
Examples
import processing.sound.*; Pulse pulse; void setup() { size(640, 360); background(255); // Create the pulse oscillator pulse = new Pulse(this); pulse.play(); pulse.freq(200); } void draw() { }
Syntax
oscillator.freq(freq)
oscillator.freq(modulator)
Parameters
freq
(float)
the desired oscillator frequency in Hertz
Return
void

This work is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License.