build tutorial after repl

This commit is contained in:
Felix Roos 2022-02-18 13:45:15 +01:00
parent aa850918ad
commit 7b28a620a9
3 changed files with 4 additions and 14 deletions

View File

@ -1,16 +1,5 @@
# Strudel REPL
## TODO
### mini notation ([krill docs](https://github.com/Mdashdotdashn/krill#general-principles))
- "@" aka elongation / weight: how to write in strudel?
- "%" fixed step: how to write in strudel?
- "struct" not sure how to do this
- "c3(5,8)" bjorklund algorithm
- more [mini notation features](https://tidalcycles.org/docs/patternlib/tutorials/mini_notation)
- not tested
## Default Snowpack Readme
> ✨ Bootstrapped with Create Snowpack App (CSA).

View File

@ -1,13 +1,14 @@
{
"scripts": {
"start": "snowpack dev",
"build": "snowpack build && cp ./public/.nojekyll ../docs",
"build": "snowpack build && cp ./public/.nojekyll ../docs && npm run build-tutorial",
"static": "npx serve ../docs",
"test": "web-test-runner \"src/**/*.test.tsx\"",
"format": "prettier --write \"src/**/*.{js,jsx,ts,tsx}\"",
"lint": "prettier --check \"src/**/*.{js,jsx,ts,tsx}\"",
"peggy": "peggy -o krill-parser.js --format es ./krill.pegjs",
"tutorial": "parcel src/tutorial/index.html"
"tutorial": "parcel src/tutorial/index.html",
"build-tutorial": "parcel build src/tutorial/index.html --dist-dir ../docs/tutorial --public-url /tutorial --no-optimize --no-scope-hoist"
},
"dependencies": {
"@tonaljs/tonal": "^4.6.5",

View File

@ -58,7 +58,7 @@ function useCycle(props: UseCycleProps) {
useEffect(() => {
ready && query();
}, [onEvent, onSchedule, onQuery]);
}, [onEvent, onSchedule, onQuery, ready]);
const start = async () => {
console.log('start');