C# Class GAudio.GATMidiHelper

显示文件 Open project: gregzo/G-Audio Class Usage Examples

Public Methods

Method Description
FrequencyToClosestMidiCode ( float frequency ) : int
FrequencyToMidiCode ( float frequency, float tuningA = 440f ) : float
MidiCodeToFrequency ( float midicode, float tuningA = 440f ) : float
MidiCodeToString ( int midiCode, bool flats = false ) : string

Method Details

FrequencyToClosestMidiCode() public static method

public static FrequencyToClosestMidiCode ( float frequency ) : int
frequency float
return int

FrequencyToMidiCode() public static method

public static FrequencyToMidiCode ( float frequency, float tuningA = 440f ) : float
frequency float
tuningA float
return float

MidiCodeToFrequency() public static method

public static MidiCodeToFrequency ( float midicode, float tuningA = 440f ) : float
midicode float
tuningA float
return float

MidiCodeToString() public static method

public static MidiCodeToString ( int midiCode, bool flats = false ) : string
midiCode int
flats bool
return string