Beispiel #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);
 }
Beispiel #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);
 }