Skip to content

Play position can escape very short loop, is caught again when increasing loop size #16889

Description

@ronso0

Bug Description

Noticed with the Traktor S4 Mk3 mapping.
This has a LoopOut adjust mode (activate with Shift + FLX button)

  • set a loop
  • enter LoopOut adjust mode
  • turn jogwheel CCW to move loop_out very close to loop_in
  • when loop gets incredibly short -> playpos escapes loop
  • eventually it's caught again by itself, but may escape again
  • increasing the loop size (still in LoopOut adjust mode, turn jogwheel slightly CW) also catches the playpos

My suspicion is that the ReadAheadManager fails to wrap around properly when the loop is shorter than the buffer.
-> I was using 5.8 ms buffer and the loop was so short that it almost created a const sine/sawtooth wave

The loopsize spinbox does not reflect loop sizes that don't match the 2^n presets (1/32, 1/16 .. 1, 2, .. 512) (see #12509 + #12522) so I'm gonna add some logging to check my assumption.

Version

No response

OS

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions