-
-
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
Automation editor still displays mouse cursor frequency linear. #664
Comments
Good question. AutomationPattern could provide an hasLogarithmicObjects() hint (or similiar name) which retrieves it from the connected object. |
Am Mittwoch, 30. April 2014, 14:34:42 schrieb Tobias Doerffel:
IIRC, the problem is that the user could drag a logarithmic and a linear knob Also, the window title is not updated correctly for this case. Maybe we could delete this feature. Or better: restrict the user to only allow What do you think? |
On 05/01/2014 01:56 PM, JohannesLorenz wrote:
The scale may show that you can pan "up to 20000 hz" but that's just
Those kinds of restrictions would break backwards compatibility, and I I think it'd be easier to simply determine whether the automation |
|
imo multiple controls in one auto-track are -so- rarely used, (like volume control for a group of instruments) that it would be a shame to make serious changes to a working model. If peeps drags weird controller combos together, would it be weird if they get weird results? -I think no. |
On 05/01/2014 02:34 PM, JohannesLorenz wrote:
Well, not necessarily. The numbers on the ranges may be different, but For example: 100% volume is equivalent to 0dBV volume, or 1.0 gain... It's not just volume... for time/frequency as well: there's Hz, there's The user may, however, still want to apply the same curve shape to two |
Ok, convinced. I'll write code that will just look at the first |
On 05/01/2014 07:25 PM, JohannesLorenz wrote:
Yeah, I think that's for the best. Thanks. |
Currently, I'm trying to set that number display in the AutomationEditor (that AutomationEditor::getLevel ? Or is this the wrong function? Thanks on advance. |
On 1 May 2014 17:40, "Vesa V" [email protected] wrote:
I guess the % values could be applied to anything as a position on relation I think the users will understand that once they try making some strange
|
@tobydox I could need your help with my last question. Can you please try to answer it? Thanks. |
I'm really sorry but I can't help here as I didn't develop the Automation Editor at all and I'm not very familiar with the code base - maybe someone else can help out here? From what I can see getLevel() just does a linear mapping from screen coordinates (based on current zoom) settings to the current value. You probably have to apply the used function (such as log) afterwards, if possible using existing functionality (in AutomationPattern? I don't know, @diizy any clue?) |
On 05/22/2014 12:14 PM, Tobias Doerffel wrote:
I'm not really familiar with AutomationEditor either... haven't looked However: I know that AutomationPattern doesn't have any code for converting From quick thinking, I don't think we need to touch the screen |
It's indeed all about the displaying; the models itself works correct. The Maybe one might, in the future, draw the horizontal lines with logarithmic |
Don't look at me... I've mostly tweaked the grid drawing on the time axis, haven't really gone deeper into the rest of the code. |
Ok, from a cursory look, it seems there's only few changes required in The code for drawing the values on the side takes the values from For the tooltip, it's a bit different - the level is taken from the |
Ah, it's drawCross()... I see. Thanks. I'll try to write the code next week. |
I agree. @tobydox is it ok to put this into lmms_math.h? |
Yes. Maybe we can even introduce a MathHelper class/namespace so the global namespace doesn't get polluted. |
Am Freitag, 30. Mai 2014, 13:28:58 schrieb Tobias Doerffel:
Ok, you probably suggest a new namespace because it is not as often needed as If so, I'd also add a new header for the new namespace. Hopefully, in the |
I'm working on fixing some bugs with logscales and I'll probably be able to do this too while I'm at it. |
Ok, I originally wanted to do it, but didn't have time for it, so just go ahead. |
On 06/20/2014 01:46 PM, JohannesLorenz wrote:
Already done. Now I'm working on the knobs ;) |
Should we move this to the 1.3.0 milestone? |
I'm not sure why this has not been finished. Actually I planned to do it, but then @diizy said he'd do it. What exactly is missing and why should it not be coded for an earlier version? |
@diizy hasn't been around the project for a while, and well no work has been done concerning this issue. We're short on devs, so if you would like to work on it, that would be really appreciated. If you want to work on it sometime soon and if it's not a too complex patch, please target it at the |
It could be confirmed that both mentioned issues (cursor tooltip in the automation editor and knob tooltip) are not present in the stable-1.2 branch (for whatever reason). This bug is solved. |
Even if the model is logarithmic, the mouse cursor displays a value as if handled linearly.
@tobydox For fixing this, the AutomationEditor needs to know the AutomatableModel. Should it find that in AutomationPattern::m_objects (or in a similar place?), or should the model be passed from outside?
The text was updated successfully, but these errors were encountered: