Skip to content

Use previous offset when recording #62

@glynnbird

Description

@glynnbird

The "offset" - the time correction required to align the second recorded part with the leader is pretty much a constant. Here's some experimental data:

  • Chrome: fail, 163, 144, 141, 148, 155 = 150ms +- 13ms
  • Firefox: 183, 165, 165, 176, fail, 165, 157, 159, 166 = 167 +- 16ms

Applying an offset of zero is pretty disastrous for the use-case where completely different parts are being recorded e.g. a garage band. The Librosa-offset calculator can't hope to help matching a piano to a drum machine

I propose that once a valid offset is recorded, it is stored in the browser's local storage we then have two choices:

  • don't bother calibrating for every recording, just use the one from localstorage
  • or. DO try to calibrate every time but fall back on reading from localstorage i.e try not to supply a reading with zero offset (other than the leader part)

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions