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

Loop first bar until input is received when recording in PianoRoll #7616

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

regulus79
Copy link
Contributor

@regulus79 regulus79 commented Dec 5, 2024

At least two users in the span of a few days have requested a pre-roll/countdown feature in the discord. This is not that, but it is something similar:

This PR makes it so that when you press the circle record button in the PianoRoll, it will loop the first bar until you press a key. This helps when the user wants to have a "pre-roll" or countdown before you start recording so that you have time to prepare. Or if you are like me and can't figure out what to play until many bars of silence have past, this removes the need to move all the notes back to the start of the clip.

The looping does not happen if the midi clip already has notes in it, or if the loop points are enabled.

I had to add a couple functions to Song.h so that I could change the looping status of the playback mid-way through playing, so that I could disable the loop once input is received.

Additionally, I changed the name of m_timeLine in the PianoRoll code to m_timeLineWidget, since that more accurately reflects what it is (It's a TimeLineWidget, not a Timeline). On second thought, this may be out of the scope of this PR.

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