NoteWorthy Composer Forum

Forums => Tips & Tricks => User Tools => Topic started by: Opagust on 2014-11-06 11:01 am

Title: Courtesy Accidentals
Post by: Opagust on 2014-11-06 11:01 am
Update: Don't use the links below, use http://opagust.wordpress.com/my-user-tools/ (http://opagust.wordpress.com/my-user-tools/) instead and click on the name of the tool to download (changing the extension into '.js').


http://opagust.wordpress.com/courtesyaccidentals-js/ (http://opagust.wordpress.com/courtesyaccidentals-js/)

With this tool you can create courtesy accidentals according to the Key Signature. It acts on a selection, if present, or on the whole active staff.

The courtesy accidentals are inserted as text items,
 - with the font StaffSymbols(normal size) or StaffCueSymbols(small size);
 -  with or without parentheses;
 - repeated or not if the same note occurs more than once within a measure.

If you choose 'Undo', all 'texted' accidentals are removed, regardless of the choices on size, parentheses or repeats.

To download the tool from the link above :
- Select and copy all the text within the frame
- Open a text editor like Wordpad or a Java Script Editor and past the copied text
- Click on the name of the tool
- Save as ’CourtesyAccidentals.js' in YourScriptFolder

To Install in NoteWorthy:
- Open a NoteWorthy File
- Choose ‘Tools’, ‘User Tool…’ or enter Alt-F8
- Click ‘New…’
-  Enter the name of the tool and choose a group or enter the name of a new group
-  Command Line: "Wscript YourScriptsFolder\CourtesyAccidentals.js <PROMPT:Action:=|Create_CourtesyAccidentals|Undo|Help> <PROMPT:Parenthesize?=|Yes|No> <PROMPT:Repeat in same measure?=|Yes|No> <PROMPT:Size:=|Normal|Small>"
-  Input Type: Clip Text
-  Under 'Options: Uncheck 'Returns File Text'

P.S.I also modified the tool http://opagust.wordpress.com/changeclef-js/ (http://opagust.wordpress.com/changeclef-js/) to also move the courtesy accidentals, inserted by CourtesyAccidentals.js.
Title: Re: Courtesy Accidentals
Post by: Haymo on 2014-11-07 06:09 am
Thank you Opagust for the tools and extensive instructions.

The following needs a bit of correction:

- Save as’ in YourScriptFolder
Title: Re: Courtesy Accidentals
Post by: Opagust on 2014-11-07 10:28 am
The following needs a bit of correction:

- Save as’ in YourScriptFolder

Thanks, Haymo.

I corrected the instructions a bit.
Title: Re: Courtesy Accidentals
Post by: Opagust on 2014-11-07 07:25 pm
There seemed to be some problems with my website, where I had copied the code of my tools as text in specifiic webpages.

So now I've changed my method: I uploaded all tools in my website (with extension '.doc') and provided  links to these files, instead of pages with the copied code.

You can download them on http://opagust.wordpress.com/my-user-tools/ (http://opagust.wordpress.com/my-user-tools/)