started removing primitive haps from tutorial

This commit is contained in:
Felix Roos 2022-10-29 14:58:50 +02:00
parent dac906a79d
commit 5d7e46b246
2 changed files with 113 additions and 29 deletions

View file

@ -238,10 +238,10 @@ function effectSend(input, effect, wet) {
export const webaudioOutput = async (hap, deadline, hapDuration) => {
try {
const ac = getAudioContext();
if (isNote(hap.value)) {
/* if (isNote(hap.value)) {
// supports primitive hap values that look like notes
hap.value = { note: hap.value };
}
} */
if (typeof hap.value !== 'object') {
throw new Error(
`hap.value ${hap.value} is not supported by webaudio output. Hint: append .note() or .s() to the end`,