Reference+
Name
freq()
Class
TriOsc
Description
Sets the frequency of the oscillator.
Examples
import processing.sound.*; TriOsc triangle; void setup() { size(640, 360); background(255); // Create triangle wave oscillator. triangle = new TriOsc(this); triangle.play(); triangle.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.