Skip to content

Bug: Slicing time conversion for take markers should not take account of offset or playback rate #28

@AlexHarker

Description

@AlexHarker

Please tell us what you were doing! You can include code and files by drag and dropping them into the text area.

The current code takes account of playback rate and take offset:

slice_points[i] = (slice_points[i] - data.take_ofs_samples) / data.playrate

However, testing with Reaper 7.34 shows that this ends up with incorrect results, as Reaper is already converting internally. The following screenshot using onsetslice shows two versions of a file (top is playback rate 1 and no offset, bottom is faster with an offset). It is clear that the alignment is not the same (as one would expect) of waveform and markers.

Image

This is solvable by simply removing this aspect of the conversion - it does appear that some accounting for reversal is necessary.

If you encountered an error processig a file, can you please upload the file here? Make sure to compress it beforehand or use a sharing service.

Any file will show the issue

What was the expected result?

Alignment of waveform and markers in a similar fashion regardless of playback rate and source offset.

What was the actual result?

See pic

FluCoMa Version

2.10

What operating system were you using?

Mac

Operating system version

Mac OS 14

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions