Skip to content

AceForge 0.6.21

Choose a tag to compare

@DjagbleyEmmanuel DjagbleyEmmanuel released this 21 Oct 05:13
· 2 commits to main since this release

Fixes a 4-minute song getting a sidecar two minutes longer than itself

Two bugs behind one symptom.

The duration reader divided the data chunk by the bytes per SAMPLE and ignored
the channel count. That is right for mono and exactly wrong for stereo, which
has two samples per frame. Every stereo track came out twice as long as it is:
a 253 second render reported 506, and the evenly-spread sidecar then spread 56
lines across 506 seconds of a 253 second song.

The score was then read from the wrong place. The staged render composes a
score, hands it to the audio job, and read the score back out of the audio
job's status. When the engine did not volunteer it a second time, the sidecar
fell all the way through to the evenly-spread fallback -- skipping the
score-derived timings, which are the second-best answer.

What the timings are now, in order of preference:

  1. Measured by the forced aligner, listening to the finished track. Needs about
    1.2 GB of card of its own, so it fits tracks of roughly two minutes.
  2. Derived from the composed score, which is exact to the bar. The real score
    is 2/4 at 64bpm, so a bar is 1.875s, and the verse starts after nine bars of
    intro: 16.875s. Pinned in a test against a real SheetSage score.
  3. Evenly spread, only when the score is unusable.

The score-derived timings are now checked against a real SheetSage score, with
chord symbols, a rest-only voice alternating with a sounding one, and lowercase
section names -- none of which the hand-written fixtures had.

267 tests.