コード例 #1
0
ファイル: Chord.cs プロジェクト: mweechzing/Theory
 /// <summary>
 /// Initializes a new instance of the <see cref="Chord"/> class.
 /// </summary>
 /// <param name="newKey">Desired Key</param>
 /// <param name="newType">Desired Scale Type</param>
 public Chord(note newKey, chordType newType)
 {
     Key       = newKey;
     Name      = newKey.ToString() + " " + type.ToString();
     Intervals = ChordSpellings.intervalsIn[type];
     Notes     = GenerateNotes(newKey, Intervals);
 }
コード例 #2
0
 /// <summary>
 /// Initializes a new <see cref="Tetrachord"/>.
 /// </summary>
 /// <param name="_chord">Desired Chord Type.</param>
 /// <param name="_offset">Desired offset if upper.</param>
 public Tetrachord(chordType desiredChordType, interval desiredOffset)
 {
     Name             = desiredChordType.ToString();
     currentChordType = desiredChordType;
     offset           = desiredOffset;
     Intervals        = ChordSpellings.intervalsIn[currentChordType];
 }