Skip to content

Commit

Permalink
docs: update readme
Browse files Browse the repository at this point in the history
  • Loading branch information
arnoson committed Oct 11, 2023
1 parent c408d3b commit ce6da13
Showing 1 changed file with 2 additions and 9 deletions.
11 changes: 2 additions & 9 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ A utility script for using midi with https://hydra.ojack.xyz.
Start (and optionally show) midi and use midi inputs as parameters for hydra:

```js
// You can either use `@latest` or load a specific version with, for example, `@0.4.0`.
// You can either use `@latest` or load a specific version with, for example, `@0.4.1`.
await loadScript('https://cdn.jsdelivr.net/npm/hydra-midi@latest/dist/index.js')

// Use midi messages from all channels of all inputs.
Expand Down Expand Up @@ -198,14 +198,7 @@ You can define an event to trigger when a particular note is played on a specifi
```js
myController = midi.input(3).channel(15)

myController.onNote('c1', () => {
osc().out()
})

// or listen to all notes:
myController.onNote('*', ({ note, velocity, channel }) => {
osc().out()
})
myController.onNote('c1', () => osc().out())
```
Or listen to any note:
Expand Down

0 comments on commit ce6da13

Please sign in to comment.