feat(tracker): add new instrument & new track buttons

This commit is contained in:
vsariola
2021-01-08 18:55:02 +02:00
parent e480622f57
commit cbf9d34738
7 changed files with 151 additions and 52 deletions

View File

@ -57,7 +57,9 @@ func (s *Sequencer) ReadAudio(buffer []float32) (int, error) {
gotRow := true
if s.rowTime >= s.rowLength {
var row []Note
s.mutex.Unlock()
row, gotRow = s.iterator()
s.mutex.Lock()
if gotRow {
for _, n := range row {
s.doNote(n.Voice, n.Note)