public Note(string instrument, Synthy.Note note, InstancedPattern instancedPattern) { this.instrument = instrument; this.note = note; start = note.start + instancedPattern.time; end = note.end + instancedPattern.time; }
private Note Get(Synthy.Note note) { for (int i = 0; i < notesPlaying.Count; i++) { if (notesPlaying[i].note == note) { return(notesPlaying[i]); } } return(null); }
private bool Exists(Synthy.Note note) { for (int i = 0; i < notesPlaying.Count; i++) { if (notesPlaying[i].note == note) { return(true); } } return(false); }