C# Class UnityGB.SquareWaveGenerator

Mostrar archivo Open project: Takohi-Jona/unity-gb Class Usage Examples

Public Methods

Method Description
Play ( byte b, int numSamples, int numChannels ) : void
SetChannel ( int chan ) : void
SetDutyCycle ( int duty ) : void
SetEnvelope ( int initialValue, int numSteps, bool increase ) : void
SetFrequency ( int gbFrequency ) : void
SetLength ( int gbLength ) : void
SetLength3 ( int gbLength ) : void
SetSampleRate ( int sr ) : void
SetSweep ( int time, int num, bool decrease ) : void
SetVolume3 ( int volume ) : void
SquareWaveGenerator ( int rate ) : System.Collections
SquareWaveGenerator ( int waveLength, int ampl, int duty, int chan, int rate ) : System.Collections

Method Details

Play() public method

public Play ( byte b, int numSamples, int numChannels ) : void
b byte
numSamples int
numChannels int
return void

SetChannel() public method

public SetChannel ( int chan ) : void
chan int
return void

SetDutyCycle() public method

public SetDutyCycle ( int duty ) : void
duty int
return void

SetEnvelope() public method

public SetEnvelope ( int initialValue, int numSteps, bool increase ) : void
initialValue int
numSteps int
increase bool
return void

SetFrequency() public method

public SetFrequency ( int gbFrequency ) : void
gbFrequency int
return void

SetLength() public method

public SetLength ( int gbLength ) : void
gbLength int
return void

SetLength3() public method

public SetLength3 ( int gbLength ) : void
gbLength int
return void

SetSampleRate() public method

public SetSampleRate ( int sr ) : void
sr int
return void

SetSweep() public method

public SetSweep ( int time, int num, bool decrease ) : void
time int
num int
decrease bool
return void

SetVolume3() public method

public SetVolume3 ( int volume ) : void
volume int
return void

SquareWaveGenerator() public method

public SquareWaveGenerator ( int rate ) : System.Collections
rate int
return System.Collections

SquareWaveGenerator() public method

public SquareWaveGenerator ( int waveLength, int ampl, int duty, int chan, int rate ) : System.Collections
waveLength int
ampl int
duty int
chan int
rate int
return System.Collections