-3

I faced the same issue as in the following question: Recording midi with Audiokit

The problem is pauses in record differs the real pauses.

Evgenii Shishko
  • 142
  • 2
  • 8

1 Answers1

0

The issue was in source code of the linked question:

track.add(noteNumber: b, velocity: c, position: startPosition, duration: currentPosition - startPosition, channel: 0)

It has been passed currentPosition, not startPosition.

Evgenii Shishko
  • 142
  • 2
  • 8