fix tests
This commit is contained in:
parent
43c2f46196
commit
788a4c9143
2 changed files with 8 additions and 2 deletions
|
|
@ -6,7 +6,13 @@ This program is free software: you can redistribute it and/or modify it under th
|
||||||
|
|
||||||
import { Pattern, patternify2 } from './index.mjs';
|
import { Pattern, patternify2 } from './index.mjs';
|
||||||
|
|
||||||
const synth = window?.speechSynthesis;
|
let synth;
|
||||||
|
try {
|
||||||
|
synth = window?.speechSynthesis;
|
||||||
|
} catch (err) {
|
||||||
|
console.warn('cannot use window: not in browser?');
|
||||||
|
}
|
||||||
|
|
||||||
let allVoices = synth?.getVoices();
|
let allVoices = synth?.getVoices();
|
||||||
// console.log('voices', allVoices);
|
// console.log('voices', allVoices);
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -10,7 +10,7 @@ import * as strudel from '@strudel.cycles/core';
|
||||||
const { isPattern, Pattern } = strudel;
|
const { isPattern, Pattern } = strudel;
|
||||||
|
|
||||||
export const extend = (...args) => {
|
export const extend = (...args) => {
|
||||||
console.warn('@strudel.cycles/eval extend is deprecated, please use evalScopep instead');
|
console.warn('@strudel.cycles/eval extend is deprecated, please use evalScope instead');
|
||||||
Object.assign(globalThis, ...args);
|
Object.assign(globalThis, ...args);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue