BASS.NET API for the Un4seen BASS Audio LibraryMidiMIDI_Note2Frequency Method BASS.NET API for the Un4seen BASS Audio Library
Converts a MIDI note number to its corresponding frequency.

Namespace: radio42.Multimedia.Midi
Assembly: Bass.Net (in Bass.Net.dll) Version: 2.4.13.3
Syntax

public static int MIDI_Note2Frequency(
	int noteNumber
)

Parameters

noteNumber
Type: SystemInt32
The number of the note to convert.

Return Value

Type: Int32
The frequency of the specified note in Hz.
Remarks

MIDI notes will typically be numbered from 0 (C-1) to 127 (G8). The reference is the standard pitch (A3) which has the number 69 and represents 440 Hz.

See the MIDINote enummeration for possible note values.

Examples

VB
' the following code will return 440Hz for the C
Dim freq As Integer = Utils.NoteToFrequency(69)
// the following code will return 440Hz for the C
int freq = Utils.NoteToFrequency(69);
See Also

Reference