-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Removed the first recording button from SongEditor as it has no use #7899
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
base: feature/recording-stage-one
Are you sure you want to change the base?
Removed the first recording button from SongEditor as it has no use #7899
Conversation
I added the changes you asked me. |
I modified the logic of the set up for all the buttons so when adding the conditions, the code looks as compact and simplified as much as possible. The code order was: And now I changed it to: I made this change because otherwise I would have to add 9 "ifs" if I wanted to keep the previous order. So for adding just 3 "ifs" I reordered the logic of the code grouping by button instead of by set up stage. I also changed the order of the bools in the constructor and updated the change for the constructor of the PianoRoll and SongEditor |
Nice! That does look much cleaner |
The error is now fixed. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please could you address my suggestions? Also I did not test this PR.
@szeli1 I will adress all your naming and commenting suggestions as soon as I can. |
@szeli1 I made the changes you requested but I kept the amount of documentation as I think it is useful. In the future, I will adress your suggestion for refactoring some bad variable names (in another PR). |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I will approve this, but I did not test. I still don't like how many comments there are.
Don't bother with it, thanks for working on this issue. |
I would like to know the opinion from the other devs. If another devs says it is too much commenting, then I will remove them. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Making a lambda was a good Idea, I couldn't find any issues, so I will approve this
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I only have 3 style suggestions left, but overall this PR is good and can go into testing phase.
You changed all TABs to spaces, can you please fix? Also, what about the unique_ptr question? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
3 Approvals, ready for testing phase.
Feel free to fix the whitespace comment.
So, this PR just nuked one recording button from the Song-Editor, not touching anything else. I can confirm it's not there for SDL, Jack, PulseAudio and ALSA, which I think is sufficient. |
What I'm wondering is this: Are we completely removing it, or is it still possible to get it to happen via the add IMO, it shouldn't be able to happen at all. We should have one type of recording, that being the "accompanying recording". If the user chooses to keep certain items unmuted while recording, we shouldn't stop him. If he sets the recording sample track to solo, we record to that track only. This raises the question of what happens when the recording track is (un)muted, but that might be a problem for the future. Still, would be good to discuss it. |
I trust @regulus79, @szeli1 and @JohannesLorenz that the PR is well made, and the button is not there, so I approve it. Still, please change the following before merging. |
@@ -503,7 +502,7 @@ private slots: | |||
bar_t m_elapsedBars; | |||
|
|||
VstSyncController m_vstSyncController; | |||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
.
@@ -456,7 +456,7 @@ bool Song::isExportDone() const | |||
int Song::getExportProgress() const | |||
{ | |||
TimePos pos = getPlayPos(); | |||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
.
@@ -740,7 +731,7 @@ void Song::startExport() | |||
|
|||
if (!m_exportLoop) | |||
m_exportSongEnd += TimePos(1,0); | |||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Remove unneeded whitespace.
Changes:
How to test?:
This PR just removes the button in the Song Editor. So one only has to make sure that the correct buttons are shown on each editor and that they work properly as intended.
All of these was decided because there is no really a use for a button that records without playing the song. So the only audio recording button left is the "RecordAccompany". Also this PR solves the first issue out of 4 in #7786.