C# Class CSharpSynth.Sequencer.MidiSequencer

Datei anzeigen Open project: joeriedel/DarkForcesUnity Class Usage Examples

Public Methods

Method Description
Dispose ( ) : void
HandleEndOfTrack ( StreamSynthesizer synth ) : bool
IncrementSampleCounter ( int amount ) : void
LoadMidi ( MidiFile midi, bool UnloadUnusedInstruments ) : bool
LoadMidi ( string file, bool UnloadUnusedInstruments ) : bool
MidiSequencer ( StreamSynthesizer synth ) : System
MuteAllChannels ( ) : void
MuteChannel ( int channel ) : void
Pause ( bool immediate ) : void
Play ( ) : void
Process ( int frame ) : CSharpSynth.Sequencer.MidiSequencerEvent
ProcessMidiEvent ( MidiEvent midiEvent ) : bool
ProcessSysExEvent ( MidiEvent midiEvent ) : bool
ResetControllers ( ) : void
SeekToFirstNote ( ) : void
Stop ( bool immediate ) : void
SwitchSection ( int trackIndex, MidiTrack section, float offset ) : void
UnMuteAllChannels ( ) : void
UnMuteChannel ( int channel ) : void
getProgramIndex ( int channel ) : int
getProgramName ( int channel ) : string
isChannelMuted ( int channel ) : bool
setProgram ( int channel, int program ) : void

Private Methods

Method Description
DeltaTimetoSamples ( uint DeltaTime ) : int
SetTime ( System.TimeSpan time ) : void
SilentProcess ( int amount ) : void

Method Details

Dispose() public method

public Dispose ( ) : void
return void

HandleEndOfTrack() public method

public HandleEndOfTrack ( StreamSynthesizer synth ) : bool
synth CSharpSynth.Synthesis.StreamSynthesizer
return bool

IncrementSampleCounter() public method

public IncrementSampleCounter ( int amount ) : void
amount int
return void

LoadMidi() public method

public LoadMidi ( MidiFile midi, bool UnloadUnusedInstruments ) : bool
midi CSharpSynth.Midi.MidiFile
UnloadUnusedInstruments bool
return bool

LoadMidi() public method

public LoadMidi ( string file, bool UnloadUnusedInstruments ) : bool
file string
UnloadUnusedInstruments bool
return bool

MidiSequencer() public method

public MidiSequencer ( StreamSynthesizer synth ) : System
synth CSharpSynth.Synthesis.StreamSynthesizer
return System

MuteAllChannels() public method

public MuteAllChannels ( ) : void
return void

MuteChannel() public method

public MuteChannel ( int channel ) : void
channel int
return void

Pause() public method

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

Play() public method

public Play ( ) : void
return void

Process() public method

public Process ( int frame ) : CSharpSynth.Sequencer.MidiSequencerEvent
frame int
return CSharpSynth.Sequencer.MidiSequencerEvent

ProcessMidiEvent() public method

public ProcessMidiEvent ( MidiEvent midiEvent ) : bool
midiEvent CSharpSynth.Midi.MidiEvent
return bool

ProcessSysExEvent() public method

public ProcessSysExEvent ( MidiEvent midiEvent ) : bool
midiEvent CSharpSynth.Midi.MidiEvent
return bool

ResetControllers() public method

public ResetControllers ( ) : void
return void

SeekToFirstNote() public method

public SeekToFirstNote ( ) : void
return void

Stop() public method

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

SwitchSection() public method

public SwitchSection ( int trackIndex, MidiTrack section, float offset ) : void
trackIndex int
section CSharpSynth.Midi.MidiTrack
offset float
return void

UnMuteAllChannels() public method

public UnMuteAllChannels ( ) : void
return void

UnMuteChannel() public method

public UnMuteChannel ( int channel ) : void
channel int
return void

getProgramIndex() public method

public getProgramIndex ( int channel ) : int
channel int
return int

getProgramName() public method

public getProgramName ( int channel ) : string
channel int
return string

isChannelMuted() public method

public isChannelMuted ( int channel ) : bool
channel int
return bool

setProgram() public method

public setProgram ( int channel, int program ) : void
channel int
program int
return void