public Note(int length = 0, int voiceId = 1, bool isChord = false) { Length = length; VoiceId = voiceId; IsChord = isChord; Accidental = NoteAccidental.nil; }
public Accidental(Point location, NoteAccidental accidental) : base() { this.Image = noteShapes[(int)accidental]; this.Location = location; this.BackColor = Color.Transparent; this.SizeMode = PictureBoxSizeMode.AutoSize; }
public Note(Pitch notePitch, int length, int voiceId, bool isChord, NoteAccidental accidental) { NotePitch = notePitch; Length = length; VoiceId = voiceId; IsChord = isChord; Accidental = accidental; }
private Point AddAccidental(NoteAccidental accidental, Point imagePosition) { switch (accidental) { case NoteAccidental.Flat: imagePosition.Y -= 5; var newAccidental = new Accidental(imagePosition, accidental); this.Controls.Add(newAccidental); nextX += 10; break; case NoteAccidental.Sharp: newAccidental = new Accidental(imagePosition, accidental); this.Controls.Add(newAccidental); nextX += 10; break; } return(imagePosition); }
public Note(string pitch, NoteAccidental accidental, Point location, NoteShape shape) : this(pitch, accidental) { Draw(location, shape); }
public Note(string pitch, NoteAccidental accidental) { this.Pitch = pitch; this.Accidental = accidental; }
public Pitch(NoteStep step, NoteAccidental accidental, string octove) { Step = step; Octove = octove; }