C# Class CSharpSynth.Banks.Sfz.SfzInstrument

Inheritance: Instrument
Datei anzeigen Open project: joeriedel/DarkForcesUnity Class Usage Examples

Public Methods

Method Description
SfzInstrument ( string Instrumentfile, int sampleRate, InstrumentBank bank ) : System
allSamplesSupportDualChannel ( ) : bool
enforceSampleRate ( int sampleRate ) : void
getAttack ( int note ) : int
getDecay ( int note ) : int
getHold ( int note ) : int
getRelease ( int note ) : int
getSampleAtTime ( int note, int channel, int synthSampleRate, double &time ) : float

Private Methods

Method Description
CreateKeyMap ( ) : void
ParseInstrumentData ( string text, string InstrumentPath, InstrumentBank bank ) : void
ReadFromStream ( Stream InstrumentStream, string path, InstrumentBank bank ) : void

Method Details

SfzInstrument() public method

public SfzInstrument ( string Instrumentfile, int sampleRate, InstrumentBank bank ) : System
Instrumentfile string
sampleRate int
bank InstrumentBank
return System

allSamplesSupportDualChannel() public method

public allSamplesSupportDualChannel ( ) : bool
return bool

enforceSampleRate() public method

public enforceSampleRate ( int sampleRate ) : void
sampleRate int
return void

getAttack() public method

public getAttack ( int note ) : int
note int
return int

getDecay() public method

public getDecay ( int note ) : int
note int
return int

getHold() public method

public getHold ( int note ) : int
note int
return int

getRelease() public method

public getRelease ( int note ) : int
note int
return int

getSampleAtTime() public method

public getSampleAtTime ( int note, int channel, int synthSampleRate, double &time ) : float
note int
channel int
synthSampleRate int
time double
return float