Skip to main content
Recent Posts
81
User Tools / Re: Repeated Measures
Last post by Flurmy -
Some notes:
  • if the tool is in the standard directory (usually your suggested path) the calling line can be simply
    Code: [Select · Download]
    wscript Scripts\repMeas.js <PROMPT:Tot Times?=#>
  • Boxmark2 as User 1 can seamlessly be replaced by one of the most recent  ;)  fonts created by Lawrie: MusikDingsSans.ttf or MusikDingsSerif.ttf
  • I usually use the same size of Staff Metrics for User 1 in the whole score. Warren, you can add your scaling factor 1.375 to that specific text only.
83
User Tools / Repeated Measures
Last post by Warren Porter -
This tool allows the user to repeat a measure many times. After selecting the measure to be repeated, there will be a prompt for the total number of times that measure will be played. For example, if you answer 10 to the prompt, the measure will be repeated 9 times showing only bar lines, the repeat measure sign, and repetition number on every 4th bar.

Staff Bold is 0.5 the size of Staff Metrics and Boxmark2 under User1 is 1.375 that of Staff Metrics.

 wscript "'Browse can insert the path for you' \repMeas.js <PROMPT:Tot Times?=#>"
     Suggested path \Program Files (x86)\Noteworthy Software\Noteworthy Composer 2\Scripts\

Rename the attachment removing .txt before installing.

This was my sample file, but you will have to change the User1 font if it doesn't contain Boxmark2.
Code: (nwc) [Select · Download]
!NoteWorthyComposerClip(2.751,Single)
|Clef|Type:Treble
|Key|Signature:F#|Tonic:G
|TimeSig|Signature:5/4
|Note|Dur:8th|Pos:-4
|Note|Dur:4th|Pos:-2
|Note|Dur:8th|Pos:-4
|Note|Dur:4th|Pos:-2
|Note|Dur:4th|Pos:-7
|Note|Dur:4th|Pos:-5
|Bar
!NoteWorthyComposerClip-End

You may need to change lines 58 and/or 59 to use a different font or User font number.
Enjoy!
** Updated attachment 02/28/2024 **
85
User Tools / Re: Examine clipboard
Last post by Warren Porter -
This is the newest version--I also tested the Wscript.Echo statement
Code: [Select · Download]
WScript.StdOut.Write(WScript.StdIn.ReadAll());
WScript.Echo("Testing");   // This line may be taken out.
WScript.quit(99);
/*
WScript.StdErr.Write(WScript.StdIn.ReadAll());
WScript.quit(1);
 */
Same information, just in a different tab.

This might be helpful when working on scripts that change the staff (Return Code == zero).
87
User Tools / Re: Examine clipboard
Last post by Flurmy -
N.B. of course you can always change the return code of the tool.
Quote
The following return codes are recognized:
  • 0 Text in STDOUT is processed and anything found in STDERR is presented as a warning to the user
  • 1 Anything found in STDERR is shown to the user, and nothing else is done
  • 99 Anything found in STDOUT is shown to the user, and nothing else is done
88
User Tools / Re: Examine clipboard
Last post by Flurmy -
It's already visible in the stdin tab of the tool result dialog.
There is also the stdout tab.
The only problem is that, as far as I know, it's visible only if there is something in the stderr.
89
User Tools / Examine clipboard
Last post by Warren Porter -
When working on a script for a NWC tool, it can be helpful to see what is being passed to the script, especially the Fake and Context lines. This reads the clipboard and copies it to StdErr where a return code of 1 will display it. I called it seeClip.js:
Code: [Select · Download]
WScript.StdErr.Write(WScript.StdIn.ReadAll());
WScript.quit(1);

Create the file in your usual Scripts folder (must end in .js). When installing it as a new script, browse for the name of it, then add "wscript " (note trailing space) to the beginning of the line. No prompts.

90
General Discussion / Re: Percusion
Last post by Pedro V -
Hi, thanks for your quick answer. That would help me a lot.
Now I know I can ask for help through this medium.
Thanks again.