Skip to content

Commit

Permalink
Update documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
freitagbr committed Apr 30, 2016
1 parent b4536b9 commit 9c22b19
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,22 @@ stepSequencer.resume();
// 3 ...
```

## StepSequencer.prototype.setTempo

Sets the tempo, even if the `stepSequencer` is playing:
```javascript
stepSequencer.setTempo(120);
```

## StepSequencer.prototype.setSequence

Sets the division and sequence, even if the `stepSequencer` is playing.

The tempo is updated as well, if the division changes:
```javascript
stepSequencer.setSequence(4, [1, 2, 3, 4]);
```

# License

MIT

0 comments on commit 9c22b19

Please sign in to comment.