Skip to main content
Recent Posts
21
General Discussion / Re: Scriptorium Update
Last post by Richard Woodroffe -
The Scriptorium has been updated with works submitted by :

Stuart Moffatt   Theresienstadt (Webber Ilse)
Stuart Moffatt   Dorogoy dlinnoyu  (Fomin, Boris)
Stuart Moffatt   Vier Lieder Opus 13 (Webern Anton)
Stuart Moffatt   Wenn der Schnee(Ein Winterabend (Moffatt)
Stuart Moffatt   Siebenmal   (Moffatt)
Stuart Moffatt   In vain  (Moffatt)
Stuart Moffatt   Therefore the redeemed (Leek)
Stuart Moffatt   Ten pieces in the forms of a hoop  (Moffatt)
Stuart Moffatt   In the form of a hoop - seven - for wind  (Moffatt)
Stuart Moffatt   In the form of a hoop - nine - for wind  (Moffatt)
Richard woodroffe   Die drei Sänger  (fragment)  D329   (Schubert)

If you would like to be notified every time the Scriptorium is updated, please send an e-mail  requesting Scriptorium Update    notification to nwcscriptorium "at" gmail "dot" com

https://nwc-scriptorium.org/whatsnew.html

Stay safe 

Richard
25
User Tools / Re: Percussion splitter
Last post by Flurmy -
Since I don't want to roll back my NWC installation and I'm almost sure I forgot to change some items :P , yukulele, could you please try this (beta) version? Thanks.

[edit: tool version officially released and attached to the first message]
28
User Tools / Re: Percussion splitter
Last post by Flurmy -
Quote
In the new beta, the |Text:*| property and User object properties are now stored as strings (replaces the nwcOptText object).

In the current general release, text properties use a nwcOptText class for storage. This is a heavy operation that requires an additional allocated table just to store the encoded string.
In this same release, user object properties are all stored as raw, encoded strings. This creates a complicated approach to handling the text properties.

In the new beta, all of these text properties are maintained as simple decoded strings. All simple strings are passed through an encoding filter before writing them back into a nwctxt file stream, which strives to make scripting changes to these properties much simpler.
It does create an issue for current tools.

As it currently stands, changes will be required in tool code when accessing these text properties. Perhaps the easiest way to handle this is by two utility functions:
Code: [Select · Download]
local function GetTextProp(item,lbl)
  local t = item.Opts[lbl]
  return (t and t.Text) and t.Text or t
end
Code: [Select · Download]
local function SetTextProp(item,lbl,txt)
  item:Provide(lbl,'')

  if item.Opts[lbl].Text then
    item.Opts[lbl].Text = txt
  else
    item.Opts[lbl] = txt
  end
end
30
User Tools / Re: Percussion splitter
Last post by Flurmy -
A-ha!
I seem to remember (quite surprising for me!  ;D ) that a small change about this was made in the lua libraries in NWC 2.8 Beta 1 (the one I'm using).
Which version of NWC are you using?