Skip to main content

Show Posts

This section allows you to view all Show Posts made by this member. Note that you can only see Show Posts made in areas you currently have access to.

Messages - Bart

General Discussion / Re: Windows 11
Windows 11 cannot be installed on my (old) desktop PC because my PC lacks a needed piece of hardware [Trusted Platform Module (TPM)].  I found some (hacking) instructions to bypass that, and I tried that in a virtual box, but finally I doubt if I had more than just a Windows 10 with the Windows 11 look.
I saw the advertisement that it would be able to install smartphone apps in Windows 11, but this option - the only one that i liked in Windows 11 - wasn't ready at that moment.
As long as my current PC fulfills all my needs, I'll stay with Windows 10.
Only if I have to buy a new computer, I'll use the (preinstalled) Windows 11.
Or, if NWC is dead by that time, I may decide to switch to Linux or Apple.

General Discussion / Re: NWC MIDI sound on Ubuntu 20.04 ?
Dear Jonathan,

I have tested NWC in Ubuntu several years ago but I wasn't happy with the result.

After long hours struggling I was finally able to get NWC running and playing sound, but for some unknown reason it didn't work anymore a week later. After searching several hours it worked again, but because of what I call "instability" (to avoid calling it "my stupidity") I decided to stay on Windows (mainly because of NWC).

What I remember is that I first installed WINE and Timitidy, and in Wine I installed NWC.
Just like under Windows, I had to select a play device (Timidity) in the NWC configuration (TOOLS-OPTIONS-MIDI).

Of course now we are several years later and stuff can be easier today.

Unless you didn't configure NWC correctly, I fear there is little I can help you with.

User Tools / Re: USERTOOL: show_all_note_names.lua
Thank you for your suggestions.

A new version with check boxes to skip percussion, muted and hidden staves is now ready.
show_all_note_names_except_for_selected_staff_types.lua is the new name for this file.

User Tools / Re: USERTOOL: show_all_note_names.lua
Dear Lawrie,

Thank you for your feedback.   :)

I fully understand that percussion staves shouldn't be in the scope of this "note names" tool.

So I modified the script a little bit to skip percussion staves as well as hidden staves.

If you want some staves out of scope, just make them invisible before running the new tool, and make them visible again afterwards. Percussion staves are automatically excluded, so there is no need to make them temporarily hidden.

I didn't provide a selection window yet because my lack of LUA knowledge prevents me to implement this right now.  :(

I have tested the new tool on some midi files that I have imported in NWC and making for instance the Conductor staff hidden is indeed a very handy addition. Unless there are very strange rhythms in the score, it should work well.
By the way: the original tool can go wrong too if there are very small or too many different durations.

Please find the adapted script attached.  Until I have a tool where a selection box can check which staves are in scope I leave the original file also available.

General Discussion / Re: Is there a program to check harmony rules?
Dear H.M.

For a more manual check, you can try a user tool that I made a few years ago.

This tool adds a new staff with in the lyrics lines all notes that sound at that moment (across all staves). And to undo, just delete that staff.

As a supplement you will find behind the notes if they belong to Octaves or Fifths (O-o / F-f) with capitals for the lower parts and lowercase for the higher parts. This could help you find parallel octaves or fifths in consequent "chords".

I believe parallel fifths or parallel octaves can be heard also because these are less rich than when no such chord progressions are used. I used my tool as a support for finding the notes and harmony rules if my ears tell me that the sound is dull.

It is of course only helpful if your ears already informed you that there was something "missing", but I hope it may help you as it helped me. It isn't of course a full blown tool, but at least it allows you to stay in Noteworthy Composer for your analysis.

I think a better plugin exists for MuseScore (with red or blue lines for parallel octaves and fifths), but then you will have to export and import your score, and since this process has to be repeated until all parallel fifths/octaves are gone,  I preferred to stay within NWC.

General Discussion / Re: how to deal with orphan notes on a staff stretching to the right margin

Only the last line in a score can stop before the end of the line if you toggle the Page Setup Option "Extend last system.

Other lines will stretch if the next bar line has the "force system break" flag.
I don't think there is an automatic solution, but you can of course make manual modifications to change the layout.

Apart from hmmueller's solution, you can achieve a decent result by playing with system breaks (on visible or on - added - invisible bar lines).

In your example I think you have already system breaks at the end of measure 35 and at the end of measure 49. In this case I would try to add system breaks on some other bar lines as well. For instance after measure 26 (the text 43211234 would then start at the beginning of the next line) and also after measure 32 (the text Play the above... would then also start line "three").

Also 2 or 3 measures in line "five" should move to line "six", so another system break after measure 45 or 46 is needed. Depending on this you should move 1 or 2 measures from line "four" to line "five".

It is best to do this kind of modification at the very last moment, because if you change the margins of font size later, you may be forced to reorder your system breaks again.

General Discussion / Re: Chord/measure length problem
Well, opagust,

As far as I have understood, NWC always goes forward within a staff.  Going back does never happen. That’s why rest chords are needed. But if you would have more than two notes or rests with different durations, you cannot put them on a single staff (unless you “break” the longer objects into smaller parts and tie them again together). Then it “sounds” well, but “looks” ugly.
In such cases NWC users have solved this by adding additional “layered” staves.

With XMLmusic files being able to go back and NWC always going forward in a staff, you can only know how it should look like in an NWC after you have read all the notes that should appear at a particular position. Buffering them until you are sure to know all the notes is then inevitable.

The alternative is to put  the “backward notes” always in a seperate, layered staff. Probably this will be the easiest way to implement. You just need to keep track of the last position in the current and layered tracks and add (hidden) rests in the layered staff until you reach the position where the back-tag is poiting to. Probably - but this depends on what XMLMusic allows - you can synchronize your layered staff per measure. But when turns out that there are no backward directions at all in your score, you end up with empty layered staves that weren’t needed at all.

I hope this gives you some insight into possible solutions for your implementation.


User Tools / Re: Test Release: nwc2musicxml
Dear Opagust,

Musescore can export files into musicxml format.
So what you can do is to search for midi files on the internet (or create them from NWC files), import them in Musescore and export as musicxml file.
With this detour you can create for your tests more musicxml files that you can ever verify. See one attached example.

General Discussion / Re: Midi messages
Dear Jmoly,

First of all, you can export NWC files as MIDI 0 and MIDI 1 files. That's probably not what you want, but I mention it because it is easy and may be useful to get an idea on how NWC is transcoding the scores into MIDI.

An other approach is to install specific midi tools and send the NWC output not to your speakers, but to this software.

A (very) old tool is Midi-ox ( ). Only Windows NT and Windows 2000 are mentioned, but - with adapted compatibility mode - I was able to install it on Windows 10.

Don't forget to install also virtual patch cables. Midi Yoke can be found on the same website, but there are also alternatives available like for instance LoopBe.

Once you have installed the patch cable(s) and the midi software, you can select the virtual patch cable as midi-output in NWC. I don't know, but you may need to reboot before the patch cables are recognized.
Start midi-ox, configure it to capture the data on the (in NWC selected) patch-cable, and open the input monitor. When you start playing a score in NWC, you should now see the midi commands in the window. If you have also correctly configured an output device you will also hear your music. There are a lot of different options, but documentation is hard/impossible to find. So it is up to you to check if there are other options that will serve your project.

General Discussion / Re: instrument setting
*** There is a problem if the same note is played on different staves with the same channel if the note lengths are different: Then the first ending of the same notes will truncate that note on that channel; if this happens, you ... well ... need different channels again for the staves.

Some virtual synthesizers like CoolsoftVirtualMIDISynth have an option to only release the oldest instance when a note off midi event comes in. In that case a note with N "note on commands" will be muted only after N "note off commands".

I think this is not the default behavior in CoolsoftVirtualMIDISynth, so you'll have to modify the properties (under options) to achieve this result. But that removes the obligation to use different channels.

General Discussion / Re: Using Soundfonts with NoteWorthy Composer
I am using Coolsoft VirtualMIDISynth already for a long time, but I recently noticed the following strange behavior:
When my PC goes in sleep mode, and has woken up again, NWC cannot find the VirtualMIDISynth driver anymore.
Did someone else perceive the same behavior?

The only solution that I found yet is to close NWC and start it up again (if not changing the midi output device).


General Discussion / Re: Changing Page Size

Some tricks that I am using sometimes to reduce pages per score are:

(1) There is a default option in the Page Setup\Options : "increase spacing for longer notes" which is checked by default. But it can explode the pages (unless there are many short notes in other "visible" staves). Unchecking that option can be beneficial.

(2) Also by playing with the upper and lower boundary for staves (in staff properties - visual) you can sometimes achieve more systems per page.

General Discussion / Re: Uninstall nwc 1
Yes, I guess it’s that or a new computer but I’m not thrilled about that option.

Another option could be to resize the video files without changing the sound quality - if that is OK for you.

FFMPEG  is a very good (command line) tool with which this can be accomplished very easily.  This tools is used in the background of almost all current video applications.  leads you (today) to where you can download the zipfile with the windows binaries and all the documentation.
After downloading, just extract the 3 files in the bin subfolder to a directory on your hard drive at your choice.

Usefull commands for resizing:
Code: [Select · Download]
<dir>/ffprobe -i <source file>                                  this shows the source file specifications (video and sound)
<dir>/ffplay  -i <source file> -vf scale=640:-1                 this plays the film while applying the video filter "scale" (needs width and height parameters)
<dir>/ffmpeg  -i <source file> -vf scale=640:-1 <output file>   this effectively creates a new "scaled" output file. 
With this tools you can also change the video format (avi, mov, mkv, flv, ... ) into another format. Just specify a different video extension for the output file and it is automatically converted.

Tips & Tricks / Re: Sharp in stead of flat, how to change?
With my mouse I select multiply notes to make chords in one layer.

That is something that I never did before.
I had to look in the user guide to see how I could add chords - but it is clear that this is also easy to do : first left click on the piano keyboard for the first note - hold down the left mouse button - and then add chord notes by right clicking.

Nevertheless, I am convinced that using the computer keyboard is even easier and faster. And you automatically get more flexibility. That's why I always use the computer keyboard to enter notes in Noteworthy Composer.

Position the cursor vertically with the up and down keys and add a note as a new note with ENTER, or as a chord note with CTRL+ENTER.
Duration, accidentals and special attributes like slurs, ties, ... can be modified "before adding the note" with the number keys (1-6 for duration, 7-9 for accidentals, "/" for tie, ";" for slur, "." for adding a dot to the duration, ...). Other attributes for which I don't know the keyboard shortcuts, can also always be manipulated with the button bar or with the menu items.

So to add a quarter chord F#-A in a staff with treble clef, this is what I have to type:
- key up or down until the cursor is between the first and the second line (in a staff with treble clef this is the F)
- 3 (to select a quarter note - can be skipped if the previous note was also a quarter note)
- 9 (to select a sharp)
- ENTER to place the note F#
- up twice (to place the cursor between the second and the third line)
- CTRL+ENTER to add the A chord note

Also with CTRL+BACKSPACE you can remove a chord note without touching the other notes in the chord. I don't think this is possible with the piano keyboard.

A black note on the piano keyboard can be interpreted as a flat or as a sharp. As John explained, Noteworthy Composer chooses the note with a flat for a key signature that have flats and the note with the sharp for a key signature which has already sharps.

General Discussion / Re: MPCs

All modifications in the midi-stream remain even in new files (instrument changes propagate also in other files for instance) unless they are reset (by double F6) or when new midi events override the current values.

The reason why volume is reset is because this is a staff property and restarting will read again the staff property and thus the new volume event is sent.
Here is a default sound staff property as found in nwctxt format for a "new" file :
That suggests that also the pan parameter will be reset.

There is however no tempo parameter (unless you set it explicitly), so there is no real reason why this is reset also. But the default value for tempo is quarter = 120, Therefore, I suppose that this is always set by NWC, even if there is no explicit parameter.

General Discussion / Re: Uninstall nwc 1

I cannot believe that you will empty more then a few megabytes by deleting a software application like Notewothy Composer, especially an older version.

Why don’t you measure the disk occupation with tools like “spacesniffer” or “windirstats”. Then you see immediately which files are taking most of the diskspace, which you then can remove or transfer to an external disk.

Be also aware that recent Windows versions may take automatic backups, and if they aren’t cleaned up manually, they may be the culprit too.

General Discussion / Re: Best wishes to all here
With the former measures not being followed as intended, every x days more severe measures are announced in Belgium.
These are similar as those in other countries - more or less severe like: a group of 3 or more persons is not allowed anymore on the streets and a safety distance of 1,5 m is recommended.
It is clear that Belgium tries to get as much lessons as possible from Italy - which was sadly hit first in Europe.
We are told that Belgium is just a few (10?) days behind Italy.

General Discussion / Re: How to indicate parameter values?

I think that what you ask is not available.

But there is a good search function (alt+E - F) and the button with the four dots after the input screen let you select specific objects like instrument change en multipoint controller. That way you could find what has been changed.

Be aware that, if there is no such an object in the staff or score, a value can be used from the staff properties or even from the midi channel that was used before. 

For instance: When your previous song used a string instrument for the first channel, and a new song doesn't have instrument information, you will hear also in you new song the string instrument in your first channel.

Be also aware that one tempo object impacts all staves, while velocity and volume only impacts the staff with that object. Some objects can also influence all staves that share the same channel.

A usertool cannot give information that is not available in the file and could foul you if it existed.


General Discussion / Re: Printing multiple songs per page

I don't think this is possible "out of the box".

But NWC is flexible enough to fake it yourself if you have the different songs in one file:
  • with text objects you can create titles and information about the authors and the copyright
  • with boundary changes you can get a large vertical spacing after the last line of a song
  • with forced system breaks you control the horizontal spacing
  • and of course there are a bunch of user objects that may be useful for special wishes

With another work around, you don't need to put the songs in the same file.
Just "print preview" your songs, and use the snipping tool to get fragments that you can paste into a word processor (like Wordpad) or a desktop publishing program.

User Tools / Re: Copy and past measures of mutiple staves

I know that user tools are always working from within an open NWC file, but I never saw a user tool that opens a file from disk.
But, of coarse, it is not because I never saw it, that it must be impossible. Therefore, I looked at the source code for nwcut in github, but nothing there suggests that a usertool can open other NWC file.
So, I fear it is not possible to copy/cut/paste items between files with usertools.


General Discussion / Re: Producing a "jazzy" feel

Someone in this forum once pointed me to a simple and effective solution that worked for me: grace notes

(Muted) grace notes (without ledger lines and some extra note spacing) let me "make" exactly what I needed, only the equal sign needs some special attention.

Code: [Select · Download]

Object Plugins / Re: Rehearsal.og

The original dynamic is :
Code: (nwc) [Select · Download]

After running the tool, this dynamic remains the same.

In your version this dynamic has been changed into
Code: (nwc) [Select · Download]

Also the modification in the Staffproperties does not go back into the file;

Code: (nwc) [Select · Download]
|StaffProperties|EndingBar:Section Close|Visible:Y|BoundaryTop:12|BoundaryBottom:24|Lines:5|WithNextStaff:Bracket,ConnectBars,Layer|Color:Default

Again, after running the tool, this StaffProperties remain the same.

And in your version it becomes (what I expected)

Code: (nwc) [Select · Download]
|StaffProperties|EndingBar:Section Close|Visible:Y|BoundaryTop:12|BoundaryBottom:24|Lines:5|WithNextStaff:Bracket,ConnectBars,Layer|Color:Highlight 2

I suppose for some - still unknown - reason, the tool does not write this modification back into the file on my system?

Object Plugins / Re: Rehearsal.og

This is indeed the screen that I see when I run the tool.
After clicking on OK, I also get the window with the question if the file should be saved.
That all suggests that the tool is working fine.

But I don’t hear or see any difference before or after running the tool, even having or not having objects in the score makes a difference.

I had added the example because I was not sure I added the objects correctly. But if it works for you and others, I must search in my NWC configuration, I suppose.

Should it work also for the latest beta version? Or is this tool intended for stable versions ? My NWC version is 2.75a.2
Object Plugins / Re: Rehearsal.og
Thank you, Mike and Opagust.

I see the tool in the .plugin folder.

When running it, the effect is the same - no changes in sound, color, or whatever I try.
Is that not the purpose of this object?

Object Plugins / Re: Rehearsal.og

I am not getting the result that I expected. So I suppose I didn't fully understand how this objects and tool work.

I was thinking that, by moving the foreground/background objects to other staves and running the usertool again, these staves would become outstanding (or not) - but I don't hear any difference.

Can you explain me what is wrong (or missing, or superfluous) in this song "vonkenvanliefde"?
Or should I maybe have to modify something specific in my NWC configuration?

I have copied your file in "C:\ProgramData\Noteworthy Software\nwc2\UserPlugins" and created the usertool as in the attached screenshot.

Thanks in advance.
General Discussion / Re: Where is "In Port" on Options/Record tab?

I find an entry for this device in my Windows 10 under SETTINGS - DEVICES - BLUETOOTH & OTHER DEVICES.
So, this should be a device with a specific device driver. I don't remember if I have installed a driver for my "midi-usb cable" manually or that Windows automatically recognized my "cable" and installed a suitable driver.

What options do you have in the NWC record screen?
Be aware that sometimes a device is only found when active at the moment that you start a program. Especially my midi device can be hidden if powered on after a music program is already running.

General Discussion / Re: Move Staff

I experience the same issue.

My Windows version is : Windows 10 Home 1903
My NWC version is : 2.8 Beta 1

I also use a simple, old text editor (Crimson Editor), and I noticed to my surprise that, when trying to select several lines with CTRL+SHIFT+PAGEDOWN nothing is selected anymore. I was not sure that it worked before, but it is something that I do in an automatic mode, so it must have been possible before.

I think we must blame MicroSoft that now blocks the CTRL+SHIFT+PAGE XXX key combination.

General Discussion / Re: Where is "In Port" on Options/Record tab?

I don't know Scarlett Focusrite but I have been looking around for some information about it.
In the configuration tutorials that I have found, everyone always explains how to setup the sound for Scarlett Focusrite but no-one is explaining the MIDI setup. It looks as if Focusrite is not designed to transfer MIDI signals to a PC.

If I also looked again closely at your device settings in the NWC Record tab, it says : Focusrite USB Audio. I suppose this isn't a MIDI device, but an AUDIO device. An AUDIO device cannot talk with NWC. Recording in NWC must be done in MIDI-language, so unless your Focusrite also has an option to behave as a MIDI device, you probably won't be able to use it with NWC.
The message that the device failed to open is logical if you try to connect an AUDIO device when a MIDI device is expected.

As you told us, I saw that recent versions of AUDACITY now has MIDI capabilities, which are handled in the time tracks. I didn't find the possibility to capture MIDI signals in such a track.
AUDACITY was always good in handling (recording, manipulating, ...) AUDIO. So, I think you may have recorded audio in AUDACITY. But, as said, audio cannot be used in NWC.

You can of course always try to connect your keyboard directly to your PC - without Focusrite. Then you can "talk" in MIDI and that's what NWC understands. When you connect your keyboard directly to your PC, you should find a new MIDI-device in your devices list, for which you may have to install a new driver and which doesn't appear as an audio device.


General Discussion / Re: Where is "In Port" on Options/Record tab?

clicking for Midi Input Active brings the message that the device fails to open

That's not good. I am not sure, but I suppose that you shouldn't search for the problem and a solution in NWC in this situation.

It seems that your driver on Windows doesn't recognize your external keyboard correctly - at least not your IN-port.

Is the OUT-port working correctly?  With older keyboards you always had two different MIDI ports for IN and OUT - And you had to connect them in a - for me - very illogical way. That's what I remember.

I would suggest you first to try that your IN and OUT-ports are working correctly with other (windows) software, but I don't know with which software you could do that easily.

MIDI-OX is an old software that I know it did the job, but I don't know if it still can be found.

I know this is not a good answer to your question, but that's all I have.

General Discussion / Re: Where is "In Port" on Options/Record tab?

There is a "keyboard" icon in the "file bar" and when you hover over it, it will display: MIDI Input Active.
If you "enable" that button, your midi notes should be captured in NWC.

I don't know if it is really useful, since all notes are quarter notes when I try it. Maybe I miss something, but at least the notes come through.

General Discussion / Re: Disappearing Notes

There is definitely nothing wrong with the part that you gave us. Does NWC print it correctly if you disable layering?
With layers you can get strange results if the layered staves don't have their bar lines on the same positions.
Maybe there are "missing" bars in one of the other staves.

User Tools / USERTOOL: show_all_note_names.lua
You probably all know the usertool "show note names" which can be found in the .Automatic group and was delivered by Noteworthy self.

I have made an extension of this tool. It does not only show the note names in the current staff, but it shows all the sounding note names in all staves. An additional staff with rests and note names in the Lyrics is added at the end of the score where up to 8 sounding note names can be displayed.

I also added information about the fact that an instrument can sound lower or higher then the displayed notes (> when it sounds higher, < when it sounds lower). A trumpet in B flat will produce a Bb when a C is played.  "< C" will be shown.

For composing reasons, I finally added for each chord if the notes in a chord are part of an octave or a fifth (upper case for the bottom octave/fifth, lower case for the upper octave/fifth). This information could be helpful when checking for unwanted parallel fifths and octaves, since these sometimes unwanted parallels can only appear when these intervals are present.

To undo: just delete the (last) staff with the chord information.

A few remarks:
* triplets are converted into non-triplet duration notations and may therefore be slightly out-of-sync - but that is automatically corrected in the following chords.
* if staves have different time signatures, bar lines don't always appear at the same time. A bar line is added in the new chord names staff whenever a bar is present in one or more "normal" staves.
* this tool doesn't take care of scores where measures are added in between (but skipped) to cope with different verse texts, because it ignores master and local repeats. For this kind of scores the tool  will produce a useless chord name staff!
* this version of the tool treats drum staves as normal staves, which may also show useless and confusing information!

General Discussion / Re: How to separate percussion into individual staffs?
The optimized (and corrected) version of SplitStaff.lua is now available.
It now also works for very crowded staves without the 'Long Task Handling' option.

The built-in Module nwcPlayContext gave me hot water instead of the warm water that I was trying to invent.


Wrong chord handling detected in this version. Script is deleted.
New version can be found in Reply #21.
General Discussion / Re: How to separate percussion into individual staffs?
Thank you, Rick.

You might try checking: 'Long Task Handling' on your user tool setup.

Good suggestion!  8)

After accepting "several" times ( >:( ) the warning about a long running script, STAIRWAY_TO_HEAVEN transforms into the attached file.
I never used this option before (and didn't notice that it exists).

Nevertheless, a user tool shouldn't work so long to achieve a decent result, so I will continue to elaborate my redesigned script.


General Discussion / Re: How to separate percussion into individual staffs?
User Tool "SplitStaff"

I have been working too on a user tool "SplitStaff".
And I also had more difficulties then initially expected (and it is still not always working as desired).
But in certain/most circumstances it works well, so I nevertheless decided to publish it already in the current (sometimes failing) state.

How to install
Just go to the configuration screen for usertools (Tools\User Tool) and click on the "new" button where the tool can be added.
I added my configuration in SplitStaff.jpg.

How to use
Click in a staff, run the tool, and every item will be copied in added staves, but only if the note/chord is/contains the target "midi-note".  Chords with several different midi-notes will show multiple times.
It is possible to run the tool several times for different staves. The label of the "mid-staves" will be the same, but the staff name is different.
To undo, just delete the generated staves which were added at the end of the score.

And yes, it is possible to have even more than one hundred staves in one NoteWorthyComposer score !!!

The tool seems to run flawlessly on staves with not too many items. But from a certain number of items (for instance on the whole percussion staff of "stairway to heaven"), the tool doesn't give the desired output anymore on my computer but just shows a window with nothing more then "ERROR".  (see SplitStaff_error.jpg)
I think it must be related with the fact that I allocate too much memory, since after deleting some measures, it works as expected. But if someone recognizes this behavior and knows a work around, I would be happy to learn how to avoid this.

For relatively small scores however, the tool should be useful.


General Discussion / Re: No MIDI Devices Listed -- New Windows 10 Laptop
The latest NWC has built-in the viewer (File -> send to built-in viewer) and the viewer has Bass (a soft synth) built-in.

Which version is the one with the built-in viewer?
I have version 2.75a.2 and get the message that it is the latest version (when I click on help -> access
But I don't see the option "send to built-in viewer" in the File menu of this latest "stable" version.
Is it only available in new, yet unreleased versions?

General Discussion / Re: With a little help from my friends...
This little lua-script can help coloring objects in collapsed sections.

This script supposes that every object in the collapsed section has the color-option. If this is not the case, I don't know what happens with your score. It may corrupt your file !!!  So, use with care.

The code should be self explanatory and can be adapted if more options are needed.

Code: [Select · Download]
-- $NWCUT$CONFIG: FileText $
nwcut.status = nwcut.const.rc_Succes
--nwcut.status = nwcut.const.rc_Report

local progname = 'change_collapse_color'
local HelpMsg = [[
This tool changes the color of items in a collapse boundery

-- Main processing -------------------
assert(nwcut.getprop('Mode')       == nwcut.const.mode_FileText, "Input type must be 'File Text'")
assert(nwcut.getprop('ReturnMode') == nwcut.const.mode_FileText, "Under 'Options', check 'Returns File Text'")

collapse_color = nwcut.prompt("collapse_color N ", "#",0,5)
collapse = 0

for item in nwcut.items() do
    if collapse == 1 then item.Opts.Color = collapse_color ; end--if
    if item:Is('Boundary') then
         if item.Opts.Style == 'Collapse'    then collapse = 1  end--if
         if item.Opts.Style == 'EndCollapse' then collapse = 0  end--if

User Tools / Usertool : CHANGE_TEMPO
Did you ever want to listen to your NWC-file in the composer, but with another tempo? That is easy, isn't it? Just add a tempo object at the beginning of the file - or change the tempo in the - already present - tempo object!
Until ... all of a sudden, in measure 216 or so, your speed changes are gone just because another tempo object is present at that spot.

This little tool overcomes this issue. It just scans the whole file for tempo objects (also the hidden staves if available) and modifies the value in all tempo objects with a scaled value (in percent).

You will get feedback of the number of tempo changes that were made. Modifications are also made in hidden staves.

Be aware that, before the first tempo object appears in your score, a default tempo (quarter = 120) is used. This default tempo cannot be changed with this tool. So, when you want to speed up or slow down these files, first add a tempo object with default tempo (quarter = 120) manually at the beginning of a staff.


download the lua-file to a folder of choice
ALT+F8 (Tools - User Tools)
GROUP ==> choose a name for the group (an existing or new one)
NAME ==> choose a name for the tool (for instance CHANGE_TEMPO)
COMMAND ==> Browse to the downloaded lua file
Check "Returns File Text"  (Radio Button File Text is automatically selected)
Check "Prompts for user input"


ALT+F8 (Tools - User Tools)
GROUP ==> Select group in which you have put the tool
AVAILABLE COMMANDS ==> Select the name that you gave to this tool (for instance CHANGE_TEMPO)
Fill in the percentage for the tempo modifier

User Tools / (un)mute extreme notes
I created two Staff User Tools to (un)mute extreme notes - or chords with extreme notes - in the active staff.

A parameter (default = 10) is used to define which notes/chords may be changed : only objects  are affected when they have notes N or more positions away from the middle staff line.

With N = 0 all notes/chords can be muted or unmuted in the active staff.

To define the usertools in NWC, you first have to create references in NWC following these instructions:
  • copy the lua files in a folder on your own computer and memorize the location
  • in NoteWorthyComposer, with a score open, go to menu Tools \ User Tools
  • click on the NEW button
  • Fill out the information as in the example in the attached image: user_tool_description.png
  • Group and Name can be chosen freely
  • Command should point to the lua-file (memorized location)
  • Be sure to select File Text as Input Type
  • Be sure to select Returns File Text as Option

To Run a usertool (when already defined in NWC):
  • in NoteWorthyComposer, with a score open, go to menu Tools \ User Tools
  • navigate to the usertool by selecting the correct item in Group and Available Commands
  • click on the RUN button
  • change or use the default value (N) (see attached file user_prompt.png)
  • click OK
  • Since the unmute script can undo the mute script and vice versa, the "Save Recommendation" may be denied