[JW Lua] FCInstrumentDef feature request

Charles O. Lawrence charlesolawrence at bellsouth.net
Fri Jul 10 01:00:44 CEST 2015


Thanks for your info, Jan.  In the PDF, there are the UUID constants, but
the actual text instrument names are just added as additional info below the
constant.  You must have done a lot of work to put together the table that
you supplied in the sample JW Lua file.  Thanks for doing that!  I will make
use of iot.  The only drawback is you have to include all 786 instruments,
and in many cases, you only need a few, but which few is the question.
Wasted memory is probably not going to be an issue, though.  If I could
reach back into the Finale.instrument SQLite database and retrieve a few
instrument names based on their UUID's, it would be nice, in my way of
thinking.  There are all kinds of possibilities that would be opened up with
a SQLite module.  That's why I ask.

Regards,
Charles


-----Original Message-----
From: JWLua [mailto:jwlua-bounces at jwmusic.nu] On Behalf Of Jan Angermüller
Sent: Thursday, July 9, 2015 3:22 PM
To: The JW Lua script plug-in.
Subject: Re: [JW Lua] FCInstrumentDef feature request

Charles and Jari,

all instrument strings are probably already in JW Lua as they are in the
online documentation (
http://www.finaletips.nu/frameworkref/class_f_c_staff.html#a51b90068fd41fa3b
525abcb3a7c303af
)
Maybe Jari could move them from the documentation into constants ?
That would be much easier than adding SQLite support.

I attached a suggestion that I extracted from the FFUUIDs from the
documentation above.
It includes all instrument names that are included in JW Lua. The .lua file
can be used right away.
Example:
print(FFUUID_TEXT[finale.FFUUID_FFUUID_AGUNGATAMLANG] )
Output:
Agung a Tamlang

The c file will need some adjusting for the correct data format.

Best regards,
Jan

Am 09.07.2015 um 20:07 schrieb Charles O. Lawrence:
> Thanks for the info, Jari.  The method may not be what I need, as you 
> point out.
>
> I would be more interested in being able to use JW Lua together with 
> some SQLite module, such as LuaSQLite3.  I don't think the 5.1 that 
> you are currently using comes with any such package built in, or does 
> it?  I have so far been unsuccessful in any attempt to use a SQLite
module, even though
> there are YouTube videos that demonstrate that it can be done.   I know
you
> are extremely busy, and using SQLite from within JW Lua is probably 
> not something very many JW Lua users would be interested in, but if 
> you could provide any guidance on how to do it, it would be greatly
appreciated.
>
> Regards,
> Charles
>
> -----Original Message-----
> From: JWLua [mailto:jwlua-bounces at jwmusic.nu] On Behalf Of Jari 
> Williamsson
> Sent: Thursday, July 9, 2015 12:09 PM
> To: The JW Lua script plug-in.
> Subject: Re: [JW Lua] FCInstrumentDef feature request
>
> Charles,
>
> I added that method now for the next beta, but that might not be the 
> string you're looking for. I did a quick test, and that resulted in 
> device name strings ("SmartMusic SoftSynth 1") instead of a useful
instrument name.
>
> I haven't yet researched the reason why this happens, or what this 
> string should actually represent. I'll write it down and ask MakeMusic
about it.
>
>
> Best regards,
>
> Jari Williamsson
>
>
> On 2015-06-25 16:00, Charles O. Lawrence wrote:
>> Jari,
>>
>> Is it possible to implement the CreateString() method documented in 
>> the PDK for the class FCInstrumentDef?  I have a need to be able to 
>> retrieve the instrument name used for a staff, not necessarily the 
>> same as the full staff name.  Will this do it, or is there another 
>> way.  I cannot find a way to correlate the UUID with a text name, 
>> only a
> constant
>> name.   Would there be a way to use JW Lua to reach back into the
>> Finale.instruments SQLite database?
>>
>> Regards,
>>
>> Charles
>>
>>
>>
>> _______________________________________________
>> JWLua mailing list
>> JWLua at jwmusic.nu
>> http://jwmusic.nu/mailman/listinfo/jwlua_jwmusic.nu
>>
>
>
> _______________________________________________
> JWLua mailing list
> JWLua at jwmusic.nu
> http://jwmusic.nu/mailman/listinfo/jwlua_jwmusic.nu
>
>
> _______________________________________________
> JWLua mailing list
> JWLua at jwmusic.nu
> http://jwmusic.nu/mailman/listinfo/jwlua_jwmusic.nu
>


--
Jan Angermüller
Jevenstedter Str. 80
22547 Hamburg
Tel. 040 - 28 94 84 82
www.angermueller.com






More information about the JWLua mailing list