void _noteSource_NotesDetected(object sender, NotesDetectedEventArgs e) { foreach (Note n in e.Notes) { PlayedNotes.Add(n); Notes.Add(n); } }
public void _noteSource_NotesDetected(object sender, NotesDetectedEventArgs e) { if (e.Notes.Length > 0) for (int i = 0; i < e.Notes.Length; i++) if (e.Notes[i].frequency > 0) { Frequency = e.Notes[i].frequency; break; } }
public void _noteSource_NotesDetected(object sender, NotesDetectedEventArgs e) { foreach (Note note in e.Notes) { NotesPlayed.Add(note); } CurrentTime = DateTime.Now; }
void musicalAnalyzer_NotesDetected(object sender, NotesDetectedEventArgs e) { this.Invoke(new UpdateNotesDelegate(this.UpdateNotes), e.MusicalNotes); }
private void onNotesDetected(object sender, NotesDetectedEventArgs e) { this.notesBeingPlayed = e.MusicalNotes; }