C# Class Sources.Oscillators

Mostra file Open project: FacepunchProgrammers/coderelay-audio

Public Methods

Method Description
Pulse ( float frequency, float width, int length, int sampleRate ) : double[]
Saw ( float frequency, int length, int sampleRate ) : double[]
Sine ( float frequency, int length, int sampleRate ) : double[]
Square ( float frequency, int length, int sampleRate ) : double[]
Triangle ( float frequency, int length, int sampleRate ) : double[]

Method Details

Pulse() public static method

public static Pulse ( float frequency, float width, int length, int sampleRate ) : double[]
frequency float
width float
length int
sampleRate int
return double[]

Saw() public static method

public static Saw ( float frequency, int length, int sampleRate ) : double[]
frequency float
length int
sampleRate int
return double[]

Sine() public static method

public static Sine ( float frequency, int length, int sampleRate ) : double[]
frequency float
length int
sampleRate int
return double[]

Square() public static method

public static Square ( float frequency, int length, int sampleRate ) : double[]
frequency float
length int
sampleRate int
return double[]

Triangle() public static method

public static Triangle ( float frequency, int length, int sampleRate ) : double[]
frequency float
length int
sampleRate int
return double[]