import { watch } from "rollup"
This is the source code for the aural.training website.
lein
must be installednpm
must be installedrollup
must be installedless
must be installed
npm install --global rollup
Run the clojure server
lein repl
aural-training.dev=> (dev-init!)
Watch for typescript changes
rollup -c -w
Open in browser
Connect to the websocket with wscat
wscat --connect ws://localhost:3000/ws
LESS is being used for the css. The following commands will compile and watch
npm run css
npm run watch
- MVP - note memorization lesson
- Public Release to https://aural.training
https://developer.mozilla.org/en-US/docs/Web/SVG/Attribute/stroke-opacity might have some interesting ideas for making the pluck strings circles more interesting
We investigated using the pipeline operator (|>) and stash some code locally for this. see: https://babeljs.io/docs/en/babel-plugin-proposal-pipeline-operator
Problems:
- We will lose Typescript warnings in the rollup compiliation step.
- The lsp linter does not like parsing |>
- It's not a R-style pipe or clojure thread, it needs a "topic token", like ^^
React (v18, latest) is not in a place that can be easily used with rollup/tsc. It's a configuration nightmare with no straight forward answer.
The websocket on the backend needs more work. The frontend dexie db sync seems to delay connecting, or not connect at all.
We will need to use something else to process notes. We will need something that uses Fast Fourier Transform (FFT)