C# Class Symphonary.MidiInfo

ファイルを表示 Open project: tfreedman/Symphonary Class Usage Examples

Public Properties

Property Type Description
a_ChannelInstrumentNames string[]
a_ChannelInstrumentNumbers int[]
a_ExistingChannelOrder int[]
a_UsedChannels bool[]
d_MilisecondsPerQuarterNote double
d_MilisecondsPerTick double
debugConsole DebugWindow
i_DeltaTicksPerQuarterNote int
i_MicrosecondsPerQuarterNote int
i_NumMusicChannels int
i_TempoInBPM int
i_TempoInNanoseconds int
i_TimeSignatureDenominator int
i_TimeSignatureNumerator int
l_Metadata List
midiEventCollection MidiEventCollection
notesForAllChannels List[]
s_TimeSignature string

Public Methods

Method Description
MidiInfo ( DebugWindow console ) : System

Constructor

Refresh ( string filename, int selectedChannel ) : void

Private Methods

Method Description
ActualTime ( long timeInMIDIFile ) : long

Calcuates the actual clock time given the time unit found in MIDI file

GetAllTimingInformation ( ) : void

Gets all the timing information: delta ticks per quarter note, tempo (in BPM and nanoseconds), microseconds per quarter note, miliseconds per quarter note, miliseconds per tick, time signature (numerator and denominator)

GetAllTimingInformationHelper_GetTempo ( ) : void

Calculate the tempo. This should only be called from GetAllTimingInformation.

GetAllTimingInformationHelper_GetTimeSignature ( ) : void

Gets the time signature. This should only be called from GetAllTimingInformation.

GetChannelInstruments ( ) : void

Gets the channel instruments

GetNotesForAllChannels ( ) : void

Gets all the notes for every used channel in the midi file

GetTitle ( string filename ) : void
GetUsedChannels ( ) : void

Gets the channels being used

Method Details

MidiInfo() public method

Constructor
public MidiInfo ( DebugWindow console ) : System
console DebugWindow
return System

Refresh() public method

public Refresh ( string filename, int selectedChannel ) : void
filename string
selectedChannel int
return void

Property Details

a_ChannelInstrumentNames public_oe property

public string[] a_ChannelInstrumentNames
return string[]

a_ChannelInstrumentNumbers public_oe property

public int[] a_ChannelInstrumentNumbers
return int[]

a_ExistingChannelOrder public_oe property

public int[] a_ExistingChannelOrder
return int[]

a_UsedChannels public_oe property

public bool[] a_UsedChannels
return bool[]

d_MilisecondsPerQuarterNote public_oe property

public double d_MilisecondsPerQuarterNote
return double

d_MilisecondsPerTick public_oe property

public double d_MilisecondsPerTick
return double

debugConsole public_oe property

public DebugWindow,Symphonary debugConsole
return DebugWindow

i_DeltaTicksPerQuarterNote public_oe property

public int i_DeltaTicksPerQuarterNote
return int

i_MicrosecondsPerQuarterNote public_oe property

public int i_MicrosecondsPerQuarterNote
return int

i_NumMusicChannels public_oe property

public int i_NumMusicChannels
return int

i_TempoInBPM public_oe property

public int i_TempoInBPM
return int

i_TempoInNanoseconds public_oe property

public int i_TempoInNanoseconds
return int

i_TimeSignatureDenominator public_oe property

public int i_TimeSignatureDenominator
return int

i_TimeSignatureNumerator public_oe property

public int i_TimeSignatureNumerator
return int

l_Metadata public_oe property

public List l_Metadata
return List

midiEventCollection public_oe property

public MidiEventCollection midiEventCollection
return MidiEventCollection

notesForAllChannels public_oe property

public List[] notesForAllChannels
return List[]

s_TimeSignature public_oe property

public string s_TimeSignature
return string