fix non note samples

This commit is contained in:
Felix Roos 2022-12-12 20:53:11 +01:00
parent 09b06da403
commit c6d57f6a56
2 changed files with 3 additions and 4 deletions

View file

@ -25,7 +25,7 @@ export const getSampleBufferSource = async (s, n, note, speed, freq) => {
if (freq !== undefined && note !== undefined) {
logger('[sampler] hap has note and freq. ignoring note', 'warning');
}
let midi = valueToMidi({ freq, n, note }, 36);
let midi = valueToMidi({ freq, note }, 36);
transpose = midi - 36; // C3 is middle C
const ac = getAudioContext();