mirror of
https://codeberg.org/uzu/strudel
synced 2026-07-22 13:13:10 -04:00
Compare commits
5 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| d42cd6efaf | |||
| 2cf129408b | |||
| 0ed1c75c38 | |||
| 5588b62b40 | |||
| 03cb80b75b |
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "@strudel.cycles/mini",
|
"name": "@strudel.cycles/mini",
|
||||||
"version": "0.0.6",
|
"version": "0.0.7",
|
||||||
"description": "Mini notation for strudel",
|
"description": "Mini notation for strudel",
|
||||||
"main": "mini.mjs",
|
"main": "mini.mjs",
|
||||||
"type": "module",
|
"type": "module",
|
||||||
@@ -25,6 +25,7 @@
|
|||||||
},
|
},
|
||||||
"homepage": "https://github.com/tidalcycles/strudel#readme",
|
"homepage": "https://github.com/tidalcycles/strudel#readme",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
|
"@strudel.cycles/core": "^0.0.5",
|
||||||
"@strudel.cycles/eval": "^0.0.5",
|
"@strudel.cycles/eval": "^0.0.5",
|
||||||
"@strudel.cycles/tone": "^0.0.6"
|
"@strudel.cycles/tone": "^0.0.6"
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -26,5 +26,4 @@ scheduler.start()
|
|||||||
```
|
```
|
||||||
|
|
||||||
A more sophisticated example can be found in [examples/repl.html](./examples/repl.html).
|
A more sophisticated example can be found in [examples/repl.html](./examples/repl.html).
|
||||||
You can run it inside this directory with `npm run example`.
|
You can run it by opening the html file with your browser!
|
||||||
|
|
||||||
|
|||||||
@@ -3,7 +3,7 @@
|
|||||||
<button id="stop" style="font-size: 2em">stop</button>
|
<button id="stop" style="font-size: 2em">stop</button>
|
||||||
</div>
|
</div>
|
||||||
<textarea
|
<textarea
|
||||||
style="font-size: 2em; background: #e8d565; color: #323230; height: 100%; width: 100%; outline: none; border: 0"
|
style="font-size: 2em; background: #bce865; color: #323230; height: 100%; width: 100%; outline: none; border: 0"
|
||||||
id="text"
|
id="text"
|
||||||
spellcheck="false"
|
spellcheck="false"
|
||||||
>
|
>
|
||||||
@@ -11,9 +11,10 @@ Loading...</textarea
|
|||||||
>
|
>
|
||||||
<script type="module">
|
<script type="module">
|
||||||
document.body.style = 'margin: 0';
|
document.body.style = 'margin: 0';
|
||||||
import * as strudel from '@strudel.cycles/core';
|
import * as strudel from 'https://cdn.skypack.dev/@strudel.cycles/core';
|
||||||
import '@strudel.cycles/core/euclid.mjs';
|
import 'https://cdn.skypack.dev/@strudel.cycles/core/euclid.mjs';
|
||||||
import { Scheduler, getAudioContext } from '@strudel.cycles/webaudio';
|
import 'https://cdn.skypack.dev/@strudel.cycles/mini';
|
||||||
|
import { Scheduler, getAudioContext } from 'https://cdn.skypack.dev/@strudel.cycles/webaudio@0.0.4';
|
||||||
|
|
||||||
const { cat, State, TimeSpan } = strudel;
|
const { cat, State, TimeSpan } = strudel;
|
||||||
Object.assign(window, strudel); // add strudel to eval scope
|
Object.assign(window, strudel); // add strudel to eval scope
|
||||||
|
|||||||
Generated
+1
-1
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "@strudel.cycles/webaudio",
|
"name": "@strudel.cycles/webaudio",
|
||||||
"version": "0.0.3",
|
"version": "0.0.5",
|
||||||
"lockfileVersion": 2,
|
"lockfileVersion": 2,
|
||||||
"requires": true,
|
"requires": true,
|
||||||
"packages": {
|
"packages": {
|
||||||
|
|||||||
@@ -1,14 +1,11 @@
|
|||||||
{
|
{
|
||||||
"name": "@strudel.cycles/webaudio",
|
"name": "@strudel.cycles/webaudio",
|
||||||
"version": "0.0.3",
|
"version": "0.0.5",
|
||||||
"description": "Web Audio helpers for Strudel",
|
"description": "Web Audio helpers for Strudel",
|
||||||
"main": "index.mjs",
|
"main": "index.mjs",
|
||||||
"directories": {
|
"directories": {
|
||||||
"example": "examples"
|
"example": "examples"
|
||||||
},
|
},
|
||||||
"scripts": {
|
|
||||||
"example": "parcel examples/repl.html"
|
|
||||||
},
|
|
||||||
"repository": {
|
"repository": {
|
||||||
"type": "git",
|
"type": "git",
|
||||||
"url": "git+https://github.com/tidalcycles/strudel.git"
|
"url": "git+https://github.com/tidalcycles/strudel.git"
|
||||||
@@ -26,7 +23,7 @@
|
|||||||
"url": "https://github.com/tidalcycles/strudel/issues"
|
"url": "https://github.com/tidalcycles/strudel/issues"
|
||||||
},
|
},
|
||||||
"homepage": "https://github.com/tidalcycles/strudel#readme",
|
"homepage": "https://github.com/tidalcycles/strudel#readme",
|
||||||
"devDependencies": {
|
"dependencies": {
|
||||||
"parcel": "^2.4.1"
|
"@strudel.cycles/core": "^0.0.5"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user