C# Class MidiSheetMusic.ChordSymbol

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

Public Methods

Method Description
CanCreateBeam ( ChordSymbol chords, TimeSignature time, bool startQuarter ) : bool
ChordSymbol ( List midinotes, KeySignature key, TimeSignature time, Clef c, MidiSheetMusic.SheetMusic sheet ) : System
CreateBeam ( ChordSymbol chords, int spacing ) : void
Draw ( Graphics g, Pen pen, int ytop ) : void
DrawAccid ( Graphics g, Pen pen, int ytop ) : int
DrawNoteLetters ( Graphics g, Pen pen, int ytop, WhiteNote topstaff ) : void
DrawNotes ( Graphics g, Pen pen, int ytop, WhiteNote topstaff ) : void
ToString ( ) : string

Private Methods

Method Description
BringStemsCloser ( ChordSymbol chords ) : void
CreateAccidSymbols ( NoteData notedata, Clef clef ) : MidiSheetMusic.AccidSymbol[]
CreateNoteData ( List midinotes, KeySignature key, TimeSignature time ) : MidiSheetMusic.NoteData[]
GetAboveStaff ( ) : int
GetBelowStaff ( ) : int
GetMinWidth ( ) : int
Letter ( int notenumber, WhiteNote whitenote ) : string
LineUpStemEnds ( ChordSymbol chords ) : void
NoteName ( int notenumber, WhiteNote whitenote ) : string
NotesOverlap ( NoteData notedata, int start, int end ) : bool
StemDirection ( WhiteNote bottom, WhiteNote top, Clef clef ) : int

Method Details

CanCreateBeam() public static method

public static CanCreateBeam ( ChordSymbol chords, TimeSignature time, bool startQuarter ) : bool
chords ChordSymbol
time TimeSignature
startQuarter bool
return bool

ChordSymbol() public method

public ChordSymbol ( List midinotes, KeySignature key, TimeSignature time, Clef c, MidiSheetMusic.SheetMusic sheet ) : System
midinotes List
key KeySignature
time TimeSignature
c Clef
sheet MidiSheetMusic.SheetMusic
return System

CreateBeam() public static method

public static CreateBeam ( ChordSymbol chords, int spacing ) : void
chords ChordSymbol
spacing int
return void

Draw() public method

public Draw ( Graphics g, Pen pen, int ytop ) : void
g System.Drawing.Graphics
pen System.Drawing.Pen
ytop int
return void

DrawAccid() public method

public DrawAccid ( Graphics g, Pen pen, int ytop ) : int
g System.Drawing.Graphics
pen System.Drawing.Pen
ytop int
return int

DrawNoteLetters() public method

public DrawNoteLetters ( Graphics g, Pen pen, int ytop, WhiteNote topstaff ) : void
g System.Drawing.Graphics
pen System.Drawing.Pen
ytop int
topstaff WhiteNote
return void

DrawNotes() public method

public DrawNotes ( Graphics g, Pen pen, int ytop, WhiteNote topstaff ) : void
g System.Drawing.Graphics
pen System.Drawing.Pen
ytop int
topstaff WhiteNote
return void

ToString() public method

public ToString ( ) : string
return string