started removing primitive haps from tutorial
This commit is contained in:
parent
dac906a79d
commit
5d7e46b246
2 changed files with 113 additions and 29 deletions
|
|
@ -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`,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue