Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
reindernijhoff authored Apr 15, 2024
1 parent 41682d7 commit f206c33
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ dittytoy.addListener(MSG_INIT, (data:any) => {
During playback, the `MSG_UPDATE` event is emitted each time the ditty is updated. This will be ~60 times per second.

```ts
dittytoy.addEventListener(MSG_UPDATE, (data:any) => {
dittytoy.addListener(MSG_UPDATE, (data:any) => {
// data.amp contains information about the volume of the ditty and the separate loops
const state = data.state;
if (state) {
Expand Down

0 comments on commit f206c33

Please sign in to comment.