Skip to content

Commit

Permalink
Attempt to fix examples
Browse files Browse the repository at this point in the history
  • Loading branch information
dy committed Oct 4, 2024
1 parent 065eb12 commit 6d5616b
Show file tree
Hide file tree
Showing 9 changed files with 95 additions and 2,455 deletions.
88 changes: 88 additions & 0 deletions dist/piezo.js

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions docs/todo.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@
* [x] remove op `info`
* [x] unvoid `a ? b;`
* [x] make `/`, `/a` as function return
* [ ] make all viznut bytebeats work (ints rotate)
* [ ] make nan as null in fn arguments (`config(a,,b,c)`)
* [ ] range iterator via pipe
* [ ] convert all string instructions to builder calls
Expand Down
2 changes: 1 addition & 1 deletion examples/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ <h3><a :href="album.url" :text="album.name"></a></h3>
async function init() {
if (audioContext) return
audioContext = new AudioContext();
await audioContext.audioWorklet.addModule("processor.js");
await audioContext.audioWorklet.addModule("./processor.js");
processor = new AudioWorkletNode(
audioContext,
"processor",
Expand Down
5 changes: 3 additions & 2 deletions examples/processor.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import piezo from '../piezo.js'
import watr from '../node_modules/watr/watr.js'
import piezo from '../dist/piezo.js'
// import watr from '../node_modules/watr/watr.js'
import watr from 'https://unpkg.com/watr'

class MeloProcessor extends AudioWorkletProcessor {
f() { return Math.random() * 2 - 1 }
Expand Down
4 changes: 0 additions & 4 deletions examples/tejeez-2011-09-18.z

This file was deleted.

4 changes: 0 additions & 4 deletions examples/visy-2011-09-18.z

This file was deleted.

6 changes: 0 additions & 6 deletions examples/viznut-2011-09-18.z

This file was deleted.

4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@
"type": "module",
"scripts": {
"test": "node test",
"watch": "esbuild --bundle --watch ./index.js --outfile=./piezo.js --format=esm",
"build": "esbuild --bundle --minify ./index.js --outfile=./piezo.js --format=esm"
"watch": "esbuild --bundle --watch ./index.js --outfile=./dist/piezo.js --format=esm",
"build": "esbuild --bundle --minify ./index.js --outfile=./dist/piezo.js --format=esm"
},
"repository": {
"type": "git",
Expand Down
Loading

0 comments on commit 6d5616b

Please sign in to comment.