C# Class CSharpSynth.Synthesis.StreamSynthesizer

Show file Open project: joeriedel/DarkForcesUnity Class Usage Examples

Public Methods

Method Description
AddEffect ( CSharpSynth.Effects.BasicAudioEffect effect ) : void
ClearEffects ( ) : void
Dispose ( ) : void
GetNext ( byte buffer ) : void
GetNext ( float buffer ) : void
LoadBank ( string filename ) : bool
NoteOff ( int channel, int note ) : void
NoteOffAll ( bool immediate ) : void
NoteOn ( int channel, int note, int velocity, int program ) : void
RemoveEffect ( int index ) : void
Stop ( ) : void
StreamSynthesizer ( int sampleRate, int audioChannels, int bufferSize, int maxpoly ) : System
SwitchBank ( int index ) : void
UnloadBank ( ) : bool
UnloadBank ( int index ) : bool
resetSynthControls ( ) : void
setAllChannelPitchBend ( float semitones ) : void
setAllChannelSlowPitchBend ( float semitones ) : void
setPan ( int channel, float position ) : void
setPitchBend ( int channel, float semitones ) : void
setSequencer ( MidiSequencer sequencer ) : void
setVolume ( int channel, float position ) : void

Private Methods

Method Description
ClearWorkingBuffer ( ) : void
ConvertBuffer ( float from, byte to ) : void
ConvertBuffer ( float from, float to ) : void
FillWorkingBuffer ( ) : void
getFreeVoice ( ) : Voice
getUsedVoice ( NoteRegistryKey r ) : Voice
setupSynth ( ) : void

Method Details

AddEffect() public method

public AddEffect ( CSharpSynth.Effects.BasicAudioEffect effect ) : void
effect CSharpSynth.Effects.BasicAudioEffect
return void

ClearEffects() public method

public ClearEffects ( ) : void
return void

Dispose() public method

public Dispose ( ) : void
return void

GetNext() public method

public GetNext ( byte buffer ) : void
buffer byte
return void

GetNext() public method

public GetNext ( float buffer ) : void
buffer float
return void

LoadBank() public method

public LoadBank ( string filename ) : bool
filename string
return bool

NoteOff() public method

public NoteOff ( int channel, int note ) : void
channel int
note int
return void

NoteOffAll() public method

public NoteOffAll ( bool immediate ) : void
immediate bool
return void

NoteOn() public method

public NoteOn ( int channel, int note, int velocity, int program ) : void
channel int
note int
velocity int
program int
return void

RemoveEffect() public method

public RemoveEffect ( int index ) : void
index int
return void

Stop() public method

public Stop ( ) : void
return void

StreamSynthesizer() public method

public StreamSynthesizer ( int sampleRate, int audioChannels, int bufferSize, int maxpoly ) : System
sampleRate int
audioChannels int
bufferSize int
maxpoly int
return System

SwitchBank() public method

public SwitchBank ( int index ) : void
index int
return void

UnloadBank() public method

public UnloadBank ( ) : bool
return bool

UnloadBank() public method

public UnloadBank ( int index ) : bool
index int
return bool

resetSynthControls() public method

public resetSynthControls ( ) : void
return void

setAllChannelPitchBend() public method

public setAllChannelPitchBend ( float semitones ) : void
semitones float
return void

setAllChannelSlowPitchBend() public method

public setAllChannelSlowPitchBend ( float semitones ) : void
semitones float
return void

setPan() public method

public setPan ( int channel, float position ) : void
channel int
position float
return void

setPitchBend() public method

public setPitchBend ( int channel, float semitones ) : void
channel int
semitones float
return void

setSequencer() public method

public setSequencer ( MidiSequencer sequencer ) : void
sequencer MidiSequencer
return void

setVolume() public method

public setVolume ( int channel, float position ) : void
channel int
position float
return void