fix: web midi

This commit is contained in:
Felix Roos 2022-11-10 18:12:38 +01:00
parent 372bdf8be7
commit eca92cf5b5
6 changed files with 249 additions and 230 deletions

View file

@ -33,8 +33,9 @@ currently broken / buggy:
- [ ] repl log section => remove?
- [ ] hideHeader flag
- [ ] pending flag
- [ ] web midi
- [x] web midi, TODO: test
- [ ] draw / pianoroll
- [ ] repl url hash does not work
- [x] pause does stop
- [ ] pause then play logs "TOO LATE" and drops some events
- [x] random button triggers start

View file

@ -150,7 +150,7 @@ function App() {
// getTime: () => Tone.getTransport().seconds,
});
/* useWebMidi({
useWebMidi({
ready: useCallback(
({ outputs }) => {
pushLog(`WebMidi ready! Just add .midi(${outputs.map((o) => `'${o.name}'`).join(' | ')}) to the pattern. `);
@ -169,7 +169,7 @@ function App() {
},
[pushLog],
),
}); */
});
return (
<div className="min-h-screen flex flex-col">