teoria icon indicating copy to clipboard operation
teoria copied to clipboard

Diatonic Major Scale Modes

Open groos opened this issue 6 years ago • 0 comments

  • Added modes object to Knowledge. Modes of the major scale now use the scale name defined in Knowledge.

  • Get a new Scale object representing the mode at the provided degree of the current scale:

var a4 = teoria.note('a4'); var ionian= a4.scale('ionian'); var newMode = ionian.mode(3); console.log(newMode.modeName); // 'phrygian'

// treat negative degrees as a subtraction var negativeMode = ionian.mode(-1); console.log(negativeModel.modeName); // 'locrian'

// wraps var locrian = a4.scale('locrian'); var otherMode = locrian.mode(3); console.log(otherMode.modeName); // 'dorian'

  • Added tests for Mode transformations

groos avatar Feb 12 '19 17:02 groos