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

Add upgrade for CMT delays #7206

Merged

Conversation

michaelgregorius
Copy link
Contributor

@michaelgregorius michaelgregorius commented Apr 13, 2024

Add an upgrade routine for CMT delays. This fix will only work in conjunction with a fix in the CMT delay itself.

The CMT delay uses sprintf calls to generate the technical names and display names of the delays. These calls are locale dependent. As a consequence for example the feedback delay might have been saved either as "fbdelay_0.1s" (point) or "fbdelay_0,1s" (comma) in a save file.

The CMT fix makes sure that all delays use points in their names. Therefore we must upgrade all names that contain commas to ones that contain points.

This pull request must only be merged once LMMS/cmt#6 is merged so that the the LMMS CMT submodule can be bumped to the corresponding commit.

Add an upgrade routine for CMT delays. This fix will only work in conjunction with a fix in the CMT delay itself.

The CMT delay uses `sprintf` calls to generate the technical names and display names of the delays. These calls are locale dependent. As a consequence for example the feedback delay might have been saved either as "fbdelay_0.1s" (point) or "fbdelay_0,1s" (comma) in a save file.

The CMT fix makes sure that all delays use points in their names. Therefore we must upgrade all names that contain commas to ones that contain points.
src/core/DataFile.cpp Outdated Show resolved Hide resolved
src/core/DataFile.cpp Outdated Show resolved Hide resolved
src/core/DataFile.cpp Outdated Show resolved Hide resolved
src/core/DataFile.cpp Outdated Show resolved Hide resolved
@PhysSong
Copy link
Member

@michaelgregorius I merged the CMT PR. You can update the submodule in this PR as well.

* Static map
* Braces around continue
* Make const_iterator itself const as well
* Remove output
Bump the CMT submodule to commit d8bf8084aa3 which contains the fixes for issue LMMS#5167. The delays now always report the same name strings.
@michaelgregorius
Copy link
Contributor Author

@michaelgregorius I merged the CMT PR. You can update the submodule in this PR as well.

Thanks @PhysSong! I have bumped the version of the CMT submodule with commit 0e3ee2f.

So this PR should be ready to go now.

src/core/DataFile.cpp Outdated Show resolved Hide resolved
src/core/DataFile.cpp Outdated Show resolved Hide resolved
* Map is now const and initialized iIn place
* Use `constFind` and `constEnd` when searching for an element
@Veratil
Copy link
Contributor

Veratil commented Apr 14, 2024

Be sure to update the PR title to upgrading CMT submodule too

@michaelgregorius michaelgregorius merged commit d2c2a80 into LMMS:master Apr 14, 2024
9 checks passed
@michaelgregorius michaelgregorius deleted the 5167-UpgradeForCMTDelays branch April 14, 2024 16:04
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.

Unknown LADSPA plugin fbdelay_0.1s
3 participants