Merge branch 'tidalcycles:main' into envelope_improvements

This commit is contained in:
Jade (Rose) Rowland 2024-01-01 18:47:28 -05:00 committed by GitHub
commit 3eface706c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
9 changed files with 195 additions and 6 deletions

View file

@ -30,11 +30,12 @@ let audioContext;
export const setDefaultAudioContext = () => {
audioContext = new AudioContext();
return audioContext;
};
export const getAudioContext = () => {
if (!audioContext) {
setDefaultAudioContext();
return setDefaultAudioContext();
}
return audioContext;
};