small fixes

This commit is contained in:
Felix Roos 2022-05-18 00:07:37 +02:00
parent fdb60a3fc1
commit 43c2f46196
2 changed files with 6 additions and 3 deletions

View File

@ -14,5 +14,6 @@ export * from './signal.mjs';
export * from './state.mjs';
export * from './timespan.mjs';
export * from './util.mjs';
export * from './speak.mjs';
export * as gist from './gist.js';
// export * from './value.mjs';

View File

@ -9,11 +9,13 @@ import * as strudel from '@strudel.cycles/core';
import { Tone } from '@strudel.cycles/tone';
const { Pattern, getFrequency, patternify2 } = strudel;
// let audioContext;
/* if (!audioContext) {
let audioContext;
export const getAudioContext = () => {
if (!audioContext) {
audioContext = new AudioContext();
}
return audioContext; */
return audioContext;
};
const lookahead = 0.2;