hoshikitsunoda/react-synth

The sequencer needs to be moved outside of handler

Closed this issue · 1 comments

  • define sequence outside the handler

  • toggle sequence.start() and .stop() with handler

create function to create sequence, call it when steps or note state changes.

ex:

handleArpeggiatorNotes = steps => { this.setState({ steps: steps }, this.handleGenerateSequence) }