Esempio n. 1
0
 public static AcademicChord[] GenerateSingleNoteAcademicChords(AcademicScale academicScale)
 {
     AcademicChord[] chords = new AcademicChord[academicScale.notes.Length];
     for (int i = 0; i < academicScale.notes.Length; ++i)
     {
         Note[] notes = { academicScale.notes[i] };
         chords[i] = new AcademicChord(notes[0], notes);
     }
     return(chords);
 }
Esempio n. 2
0
 public static AcademicChord[] GenerateAcademicChords(AcademicScale academicScale)
 {
     AcademicChord[] chords = new AcademicChord[academicScale.notes.Length];
     for (int i = 0; i < academicScale.notes.Length; ++i)
     {
         Note[] notes = new Note[3];
         notes[0]  = academicScale.notes[i];
         notes[1]  = academicScale.notes[(i + 2) % academicScale.notes.Length];
         notes[2]  = academicScale.notes[(i + 4) % academicScale.notes.Length];
         chords[i] = new AcademicChord(notes[0], notes);
     }
     return(chords);
 }
Esempio n. 3
0
 public PhysicalChord(Pitch root, Pitch[] pitches, AcademicChord academicChord)
 {
     this.root          = root;
     this.pitches       = pitches;
     this.academicChord = academicChord;
 }