Merge branch 'main' into documentation
This commit is contained in:
commit
20ea2980a2
4 changed files with 7 additions and 5 deletions
|
|
@ -103,8 +103,10 @@ export async function renderPatternAudio(
|
|||
}
|
||||
|
||||
export function webaudioRepl(options = {}) {
|
||||
const audioContext = options.audioContext ?? getAudioContext();
|
||||
setAudioContext(audioContext);
|
||||
options = {
|
||||
getTime: () => getAudioContext().currentTime,
|
||||
getTime: () => audioContext.currentTime,
|
||||
defaultOutput: webaudioOutput,
|
||||
...options,
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue