-
-
Notifications
You must be signed in to change notification settings - Fork 1k
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 "Remove unused channels" option to FX-Mixer #1545
Conversation
This makes it easier to delete all FX-Channels that are not in use.
On 01/02/2015 11:09 PM, Daniel Winzen wrote:
How is "in use" determined? Also how is the UI implemented for this?
Ok well, how about fixing that first? If you've found a condition that |
An FX-Channel is "in use" as soon as an instrument is set to use this FX-Channel.
I agree, but I don't think that I am able to find a solution for this, as I don't have enough skill. Maybe someone more experienced should try fixing this. |
On 01/02/2015 11:27 PM, Daniel Winzen wrote:
Ok so what about channels that only get input from other channels?
Where is the segfault originating from? What does the backtrace say? |
I hadn’t thought about that. This is not considered and I should fix this.
The backtrace when deleting with this function:
|
I'm on |
In my case, the channels that were removed were just like the OPs tests, it was a 1.0.x project with the extra empty channels. Removing the empty channels triggers this. It isn't every time an unused channel is removed, but it has crashed twice on me now so it's easy enough to reproduce, at least on the OS I'm using at this very moment (Apple). |
On 01/02/2015 11:43 PM, Daniel Winzen wrote:
Yep.
Seems familiar. Looks very much like a bug I ran into in the lmms2 |
tracks += Engine::getBBTrackContainer()->tracks(); | ||
|
||
// go through all FX Channels | ||
for(int i = m_fxChannelViews.size()-1; i>0; --i) |
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.
coding style: always put spaces between operators and values
i > 0 // right
i>0 // wrong
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.
Ok, adjusted. But for some reason this isn't consistently used everywhere in the code. Sometimes there are spaces and sometimes not.
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.
On 01/04/2015 05:38 PM, Daniel Winzen wrote:
Ok, adjusted. But for some reason this isn't consistently used
everywhere in the code. Sometimes there are spaces and sometimes not.
That's why we have this
Add "Remove unused channels" option to FX-Mixer
This makes it easier to delete all FX-Channels that are not in use.
It addresses Issue #1206
Side effect: If many (20+) channels get removed, this causes a segmentation fault. I could reproduce it by opening Zakarra-OneDay.mmpz in CoolSongs and going to the end of the FX-Line, clicking on the last FX-Channel and holding delete. So this is not my fault, but should be fixed somewhere else.