Hi,

2013/7/6 Johannes Lorenz <[email protected]>:
> Hi,
>
> sorry to ask again. As far as I guess from the LMMS sources, a model for a
> spin box or knob is something that just tells what values it can take: min,
> max, maybe step size etc.
>
>   (1) Why do models need parents? In my case, the models for the spin boxes
> take a subclass of "Instrument" as a parent.

This is for example used for automation patterns when the model is
attached to it. Instead of just displaying "Volume" as label you will
see "Instrument track foo > Volume" which is quite helpful for
determining which knob really is attached to that pattern.

>   (2) Do I need two different model objects for two spin boxes which shall
> behave equal? (I guess not?)

A model represents both behavioural information (min, max, step size
etc.) and the actual data. I guess you want to display and control
independent values so you need two models.

Best regards

Toby

------------------------------------------------------------------------------
This SF.net email is sponsored by Windows:

Build for Windows Store.

http://p.sf.net/sfu/windows-dev2dev
_______________________________________________
LMMS-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/lmms-devel

Reply via email to