Bela
Real-time, ultra-low-latency audio and sensor processing system for BeagleBone Black
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups
Public Types | Public Member Functions | List of all members
Oscillator Class Reference

Public Types

enum  Type {
  sine, triangle, square, sawtooth,
  numOscTypes
}
 

Public Member Functions

 Oscillator (float fs, Oscillator::Type type=sine)
 
void setup (float fs, Oscillator::Type type=sine)
 
float process ()
 
float process (float frequency)
 
void setType (Oscillator::Type type)
 
void setFrequency (float frequency)
 
void setPhase (float phase)
 
float getPhase ()
 
float getFrequency ()
 
int getType ()
 

Detailed Description

Examples:
Gui/gui-to-bela/render.cpp, Gui/sliders/render.cpp, Trill/bar-sound/render.cpp, Trill/hex-sound/render.cpp, Trill/ring-sound/render.cpp, and Trill/square-sound/render.cpp.

The documentation for this class was generated from the following files: