[JW Lua] Defaults for multi-measure rest creation

Charles O. Lawrence charlesolawrence at bellsouth.net
Thu Sep 3 17:47:41 CEST 2015


Great idea, Jan!

-----Original Message-----
From: JWLua [mailto:jwlua-bounces at jwmusic.nu] On Behalf Of Jan Angermüller
Sent: Thursday, September 3, 2015 10:10 AM
To: The JW Lua script plug-in. <jwlua at jwmusic.nu>
Subject: [JW Lua] Defaults for multi-measure rest creation

Hi Jari,

a nice to have feature for FCMultiMeasureRest would be, filling all
properties automatically with the values from FCMultiMeasureRestPrefs when
creating a new FCMultiMeasureRest object. Then creating new multi-measure
rests would (probably) only require the start and end measure and calling
the Save() function. Now it's a bit tedious with crawling through all the
properties from FCMultiMeasureRestPrefs.

I haven't checked how it's done in other classes that have properties that
also have default values in a prefs-class. But maybe a method like
"FillWithDefaults()" would be great for these cases if the initialization of
the properties is not done directly in the class creation.

All the best,
Jan

_______________________________________________
JWLua mailing list
JWLua at jwmusic.nu
http://jwmusic.nu/mailman/listinfo/jwlua_jwmusic.nu





More information about the JWLua mailing list