C# Class CSharpSynth.Banks.InstrumentBank

Show file Open project: joeriedel/DarkForcesUnity Class Usage Examples

Public Properties

Property Type Description
nullSample CSharpSynth.Wave.Sample

Public Methods

Method Description
Clear ( ) : void
InstrumentBank ( int sampleRate, string bankfile ) : System
InstrumentBank ( int sampleRate, string bankfile, byte Programs, byte DrumPrograms ) : System
addInstrument ( CSharpSynth.Banks.Instrument inst, bool isDrum ) : void
deleteUnusedSamples ( ) : void
getInstrument ( int index, bool isDrum ) : CSharpSynth.Banks.Instrument
getInstruments ( bool isDrum ) : List
loadBank ( byte Programs, byte DrumPrograms ) : void
loadBank ( string bankfile ) : void
loadStream ( Stream bankStream, string directory, byte Programs, byte DrumPrograms ) : void
removeInstrument ( int index, bool isDrum ) : void

Private Methods

Method Description
loadAnalog ( string args, byte Programs, byte DrumPrograms ) : void
loadFm ( string args, string bankpath, byte Programs, byte DrumPrograms ) : void
loadSfz ( string args, string bankpath, byte Programs, byte DrumPrograms ) : void
reCalculateMemoryUsage ( ) : void

Method Details

Clear() public method

public Clear ( ) : void
return void

InstrumentBank() public method

public InstrumentBank ( int sampleRate, string bankfile ) : System
sampleRate int
bankfile string
return System

InstrumentBank() public method

public InstrumentBank ( int sampleRate, string bankfile, byte Programs, byte DrumPrograms ) : System
sampleRate int
bankfile string
Programs byte
DrumPrograms byte
return System

addInstrument() public method

public addInstrument ( CSharpSynth.Banks.Instrument inst, bool isDrum ) : void
inst CSharpSynth.Banks.Instrument
isDrum bool
return void

deleteUnusedSamples() public method

public deleteUnusedSamples ( ) : void
return void

getInstrument() public method

public getInstrument ( int index, bool isDrum ) : CSharpSynth.Banks.Instrument
index int
isDrum bool
return CSharpSynth.Banks.Instrument

getInstruments() public method

public getInstruments ( bool isDrum ) : List
isDrum bool
return List

loadBank() public method

public loadBank ( byte Programs, byte DrumPrograms ) : void
Programs byte
DrumPrograms byte
return void

loadBank() public method

public loadBank ( string bankfile ) : void
bankfile string
return void

loadStream() public method

public loadStream ( Stream bankStream, string directory, byte Programs, byte DrumPrograms ) : void
bankStream Stream
directory string
Programs byte
DrumPrograms byte
return void

removeInstrument() public method

public removeInstrument ( int index, bool isDrum ) : void
index int
isDrum bool
return void

Property Details

nullSample public static property

public static Sample,CSharpSynth.Wave nullSample
return CSharpSynth.Wave.Sample