Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Sampler: rework handling of notes with custom length on tempo changes #1881

Conversation

theGreatWhiteShark
Copy link
Contributor

  • Note::SelectedLayerInfo was refactored to comply with your naming conventions
  • Note::SelectedLayerInfo::nNoteLength was introduced to store the length of a note once it is first rendered in the Sampler. Doing it at each rendering cycles causes issues on manual tempo changes.
  • Sampler::handleTimelineOrTempoChange does now also scale the part of a note/sample still left for rendering in case rendering already has begun. This is important in case of manual tempo changes for notes with user defined length.

Addresses #1873

- `Note::SelectedLayerInfo` was refactored to comply with your naming conventions
- `Note::SelectedLayerInfo::nNoteLength` was introduced to store the length of a note once it is first rendered in the `Sampler`. Doing it at each rendering cycles causes issues on manual tempo changes.
- `Sampler::handleTimelineOrTempoChange` does now also scale the part of a note/sample still left for rendering in case rendering already has begun. This is important in case of manual tempo changes for notes with user defined length.

Addresses hydrogen-music#1873
@theGreatWhiteShark theGreatWhiteShark merged commit 531f627 into hydrogen-music:releases/1.2 Oct 18, 2023
1 check passed
@theGreatWhiteShark theGreatWhiteShark deleted the phil-address-1873 branch October 18, 2023 19:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant