Merge pull request #360 from tidalcycles/docs

doc structuring
This commit is contained in:
Felix Roos 2023-01-09 23:37:34 +01:00 committed by GitHub
commit e8b09f1124
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
22 changed files with 928 additions and 545 deletions

View file

@ -195,9 +195,14 @@ export const webaudioOutput = async (hap, deadline, hapDuration) => {
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`,
logger(
`hap.value "${hap.value}" is not supported by webaudio output. Hint: append .note() or .s() to the end`,
'error',
);
/* throw new Error(
`hap.value "${hap.value}"" is not supported by webaudio output. Hint: append .note() or .s() to the end`,
); */
return;
}
// calculate correct time (tone.js workaround)
let t = ac.currentTime + deadline;