On 09/04/2014 08:29 PM, Ian Sannar wrote:
> Vesa, could you take another look at what I've got so far?
> I made some changes to the .cpp also.
>

//What model would I use for a button? BooleanModel? ...wait, boolean
objects are C#... so IntModel?

BoolModels are for leds and buttons that have a clear on/off state.

For an automatableButtonGroup which has several states, you'll want an
IntModel.

//Which of these headers NEED to be included?
//Some of them are included in Karnex.h. If I recall correctly,
including a .h file sticks its contents at the top.
//Does that mean that I wouldn't have to include knob.h or other headers
that are included in Karnex.h?


Yep, they're just plain text replacements. And yes they're recursive, if
you include something in .h you don't need to include it again in .cpp

You might want to include lmms_math.h and lmms_constants.h, as you'll be
needing pi - lmms_constants has F_PI defined for your convenience, as
well as a couple other pi-based constants. lmms_math gets you some
convenience math functions.

If you're doing wavetable lookup, you might also want to include
interpolation.h for interpolating the wavetable. There's linear, cosine,
lagrange, cubic... all kinds of interpolation algos available.
------------------------------------------------------------------------------
Slashdot TV.  
Video for Nerds.  Stuff that matters.
http://tv.slashdot.org/
_______________________________________________
LMMS-devel mailing list
LMMS-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/lmms-devel

Reply via email to