mirror of
https://github.com/scratchfoundation/scratch-vm.git
synced 2024-12-24 15:02:52 -05:00
play note block uses scale degree input
This commit is contained in:
parent
eb5f56edcc
commit
8bf2949eea
1 changed files with 3 additions and 2 deletions
|
@ -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);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue