Open groos opened 5 years ago
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 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'