play note block uses scale degree input

This commit is contained in:
Eric Rosenbaum 2016-09-06 12:54:58 -04:00
parent eb5f56edcc
commit 8bf2949eea

View file

@ -115,9 +115,10 @@ function VirtualMachine () {
}; };
function playNoteForBeats(note, beats) { function playNoteForBeats(note, beats) {
// var midiNote = scaleNoteToMidiNote(note, currentScale, rootNote); // var freq = midiToFreq(note);
var freq = midiToFreq(note); var midiNote = scaleNoteToMidiNote(note, currentScale, rootNote);
var freq = midiToFreq(midiNote);
synth.triggerAttackRelease(freq, beats, quantizeUnit); synth.triggerAttackRelease(freq, beats, quantizeUnit);
} }