public float getFrequency(Note note, int octave) { var noteAndOctave = new NewNoteAndOctave(note, octave); return noteFrequencyList.Find(x => x.Item1 == noteAndOctave).Item2; }
public float getFrequency(NewNoteAndOctave noteAndOctave) { return noteFrequencyList.Find(x => x.Item1 == noteAndOctave).Item2; }
public bool doesInstrumentSupportNoteAndOctave(EInstrument instrument, Note note, int octave) { var noteAndOctave = new NewNoteAndOctave(note, octave); return new SoundKnowledge().GetInstrumentNotesWithFrequencies(instrument).Exists(x => x.Item1 == noteAndOctave); }