Skip to content

Conversation

@oxygen-dioxide
Copy link
Collaborator

@oxygen-dioxide oxygen-dioxide commented Jan 21, 2024

There are some reports of projects with wrong bpm but correct absolute timing (in seconds). Here I add a function to fix this kind of projects.
Changes:

  • Input dialog: support showing help messages
  • Add a "remap timeaxis" button that changes the tempo of the project without changing the positions of each note (in seconds)
  • Add a "Project" menu in the menu bar of the main window for the function that affects the project being edited, including "expressions" and "remap timeaxis".

My English is not good, so please tell me if you come up with a better name or message for this function.

image

image

@oxygen-dioxide
Copy link
Collaborator Author

oxygen-dioxide commented Jan 21, 2024

Changed the name of this function to "Adjust Tempo (Preserve Timing)"

/// Remap the starting and ending positions of all the notes and parts in the whole project
/// from the old time axis to the new time axis, without changing their absolute positions in ms.
/// </summary>
private void RemapTimeAxis(TimeAxis oldTimeAxis, TimeAxis newTimeAxis){
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could you move real logic to view model?

@stakira stakira merged commit ad0ea1c into stakira:master Feb 6, 2024
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.

2 participants