C# Class MidiSheetMusic.MidiFile

显示文件 Open project: BYVoid/MidiToSheetMusic Class Usage Examples

Public Properties

Property Type Description
Instruments string[]

Public Methods

Method Description
ChangeMidiNotes ( MidiOptions options ) : List
ChangeSound ( string destfile, MidiOptions options ) : bool
CombineToSingleTrack ( List tracks ) : MidiTrack
CombineToTwoTracks ( List tracks, int measurelen ) : List
EndTime ( ) : int
GuessMeasureLength ( ) : List
HasLyrics ( ) : bool
Main2 ( string arg ) : void
MidiFile ( byte data, string title ) : System
MidiFile ( string filename ) : System
RoundDurations ( List tracks, int quarternote ) : void
RoundStartTimes ( List tracks, int millisec, TimeSignature time ) : void
ShiftTime ( List tracks, int amount ) : void
SplitTrack ( MidiTrack track, int measurelen ) : List
ToString ( ) : string
Transpose ( List tracks, int amount ) : void
Write ( Stream stream, MidiOptions options ) : bool
Write ( string destfile, MidiOptions options ) : bool
parse ( MidiFileReader file, string filename ) : void

Private Methods

Method Description
ApplyOptionsPerChannel ( MidiOptions options ) : List[]
ApplyOptionsToEvents ( MidiOptions options ) : List[]
CheckStartTimes ( List tracks ) : void
CloneMidiEvents ( List origlist ) : List[]
CreateTempoEvent ( int tempo ) : MidiEvent
EventName ( int ev ) : string
FindExactHighLowNotes ( List notes, int startindex, int starttime, int &high, int &low ) : void
FindHighLowNotes ( List notes, int measurelen, int startindex, int starttime, int endtime, int &high, int &low ) : void
GetTrackLength ( List events ) : int
HasMultipleChannels ( MidiTrack track ) : bool
IntToBytes ( int value, byte data, int offset ) : void
MetaName ( int ev ) : string
ReadTrack ( MidiFileReader file ) : List
SplitChannels ( MidiTrack origtrack, List events ) : List
StartAtPauseTime ( List list, int pauseTime ) : List[]
UpdateControlChange ( List newevents, MidiEvent changeEvent ) : void
VarlenToBytes ( int num, byte buf, int offset ) : int
WriteEvents ( Stream file, List events, int trackmode, int quarter ) : bool

Method Details

ChangeMidiNotes() public method

public ChangeMidiNotes ( MidiOptions options ) : List
options MidiOptions
return List

ChangeSound() public method

public ChangeSound ( string destfile, MidiOptions options ) : bool
destfile string
options MidiOptions
return bool

CombineToSingleTrack() public static method

public static CombineToSingleTrack ( List tracks ) : MidiTrack
tracks List
return MidiTrack

CombineToTwoTracks() public static method

public static CombineToTwoTracks ( List tracks, int measurelen ) : List
tracks List
measurelen int
return List

EndTime() public method

public EndTime ( ) : int
return int

GuessMeasureLength() public method

public GuessMeasureLength ( ) : List
return List

HasLyrics() public method

public HasLyrics ( ) : bool
return bool

Main2() public static method

public static Main2 ( string arg ) : void
arg string
return void

MidiFile() public method

public MidiFile ( byte data, string title ) : System
data byte
title string
return System

MidiFile() public method

public MidiFile ( string filename ) : System
filename string
return System

RoundDurations() public static method

public static RoundDurations ( List tracks, int quarternote ) : void
tracks List
quarternote int
return void

RoundStartTimes() public static method

public static RoundStartTimes ( List tracks, int millisec, TimeSignature time ) : void
tracks List
millisec int
time TimeSignature
return void

ShiftTime() public static method

public static ShiftTime ( List tracks, int amount ) : void
tracks List
amount int
return void

SplitTrack() public static method

public static SplitTrack ( MidiTrack track, int measurelen ) : List
track MidiTrack
measurelen int
return List

ToString() public method

public ToString ( ) : string
return string

Transpose() public static method

public static Transpose ( List tracks, int amount ) : void
tracks List
amount int
return void

Write() public method

public Write ( Stream stream, MidiOptions options ) : bool
stream Stream
options MidiOptions
return bool

Write() public method

public Write ( string destfile, MidiOptions options ) : bool
destfile string
options MidiOptions
return bool

parse() public method

public parse ( MidiFileReader file, string filename ) : void
file MidiFileReader
filename string
return void

Property Details

Instruments public_oe static_oe property

public static string[] Instruments
return string[]