build
This commit is contained in:
parent
d13bfa9220
commit
77fafd40fb
9 changed files with 1494 additions and 1466 deletions
6
docs/dist/shapeshifter.js
vendored
6
docs/dist/shapeshifter.js
vendored
|
|
@ -56,12 +56,6 @@ export default (code) => {
|
|||
return wrapLocationOffset(minified, node, ast.locations, artificialNodes);
|
||||
}
|
||||
|
||||
// replace double quote string "xxx" with 'xxx'.m
|
||||
if (isStringWithDoubleQuotes(node, ast.locations, code)) {
|
||||
const minified = getMinified(node.value);
|
||||
return wrapLocationOffset(minified, node, ast.locations, artificialNodes);
|
||||
}
|
||||
|
||||
// operator overloading => still not done
|
||||
const operators = {
|
||||
'*': 'fast',
|
||||
|
|
|
|||
3
docs/dist/static.js
vendored
3
docs/dist/static.js
vendored
|
|
@ -3,6 +3,8 @@ import {State, TimeSpan} from "../_snowpack/link/strudel.js";
|
|||
import {getPlayableNoteValue} from "../_snowpack/link/util.js";
|
||||
import {evaluate} from "./evaluate.js";
|
||||
async function playStatic(code) {
|
||||
Tone.getTransport().cancel();
|
||||
Tone.getTransport().stop();
|
||||
let start, took;
|
||||
const seconds = Number(prompt("How many seconds to run?")) || 60;
|
||||
start = performance.now();
|
||||
|
|
@ -11,7 +13,6 @@ async function playStatic(code) {
|
|||
took = performance.now() - start;
|
||||
console.log("evaluate took", took, "ms");
|
||||
console.log("querying..");
|
||||
Tone.getTransport().stop();
|
||||
start = performance.now();
|
||||
const events = pat?.query(new State(new TimeSpan(0, seconds)))?.filter((event) => event.part.begin.valueOf() === event.whole.begin.valueOf())?.map((event) => ({
|
||||
time: event.whole.begin.valueOf(),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue