Ejemplo n.º 1
0
        public float getFrequency(Note note, int octave)
        {
            var noteAndOctave = new NewNoteAndOctave(note, octave);

            return noteFrequencyList.Find(x => x.Item1 == noteAndOctave).Item2;
        }
Ejemplo n.º 2
0
 public float getFrequency(NewNoteAndOctave noteAndOctave)
 {
     return noteFrequencyList.Find(x => x.Item1 == noteAndOctave).Item2;
 }
Ejemplo n.º 3
0
        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);
        }