NoteWorthy Composer Forum

Forums => General Discussion => Topic started by: guidovanh on 2013-03-20 02:17 PM

Title: installing user tool
Post by: guidovanh on 2013-03-20 02:17 PM
Recently I reinstalled Noteworthy Composer and I also tried to install the user tool to change the clef
nwc-scriptorium.org/nwc2scripts_kbsc_clef_change.html, such as described at noteworthysoftware.com/forum/?topic=8100.msg56865#msg56865.

I think I did wrong something. First, I downloaded the script and saved it to the Scripts folder
Where do I have to place the line "php scripts kbsc..."?
Who can give me additional (step by step) instructions?
Title: Re: installing user tool
Post by: Warren Porter on 2013-03-20 08:08 PM
Start NWC and open a file.  Enter Alt/F8 and choose New.  Assign it to a group, give it a name, then choose Browse.  Find the file you just downloaded (hopefully the name ends in .php) and click OK.  At this point the line should start with php\php.exe, a space, and the address of your new tool.  Adding the prompts comes next.  Going back to http://nwc-scriptorium.org/nwc2scripts_kbsc_clef_change.html (http://nwc-scriptorium.org/nwc2scripts_kbsc_clef_change.html), note the "Usage" and copy to the end of the line the part that starts with

"/clef= ......... Octave Down|>" 

Paste that onto the end of the Command line (note the space before "/clef).  Click on OK and the script should be ready to roll.

HTH
Title: Re: installing user tool
Post by: guidovanh on 2013-03-27 06:15 PM
Thanks for your help.

You wrote that the line should start with php\php.exe. Where should Windows find the php executable? The command line is now:
Code: [Select · Download]
php\php.exe scripts\kbsc_clef_change.php "/clef= <PROMPT: Select Clef:=|help|Treble|Bass|Alto|Tenor|Percussion|>" "/octave=<PROMPT:Select Octave Shift:=|None|Octave Up|Octave Down|>" Scripts\kbsc_clef_change.php 
When I run the script, I see a window with 2 tabs (Prompt 1 and Prompt 2). When I answer 'Bass' onto Prompt 1 and 'Down' to Prompt 2 (my song contains 4 staffs and the cursor is at staff 3), the OK button results in 'Command process failed'.
Title: Re: installing user tool
Post by: Rick G. on 2013-03-27 06:46 PM
Where should Windows find the php executable?
NoteWorthy Composer 2 User Tools (http://ntworthy.com/nwc2/usertools/)
Title: Re: installing user tool
Post by: guidovanh on 2013-03-27 07:53 PM
Step by step your help results!
Again my cursor is on the 3rd staff and I run the script. After 'OK' on the second prompt tab, the next screen results in:
Code: [Select · Download]
Note: [in C:\Program Files (x86)\Noteworthy Software\NoteWorthy Composer 2\Scripts\kbsc_clef_change.php, at line 68]
--> Undefined index:  Bass

In the music sheet the bass clef is replaced by the text:
Code: [Select · Download]
|Text|Text:"\|Clef\|Type: Bass\|Oc ..."|Font:StaffBold|Pos:8|Wide:Y|Justify:Left|Placement:BestFit|Color:0|Visibility:Default
Title: Re: installing user tool
Post by: Rick G. on 2013-03-27 08:58 PM
It looks like the tool doesn't like your selection. Probably, it expects the first selected object to be a Clef (http://ntworthy.com/nwc2/help/MNU_ADDCLEF.htm) and that some Notes/Chords/RestChords follow it in the selection.

Or possibly, it doesn't allow a Clef in the selection. I'd try various selections until it worked. As a last resort, I might read the documentation that came with the tool, or try the 'help' option :)
Title: Re: installing user tool
Post by: guidovanh on 2013-03-27 09:45 PM
May be you can also have a look at my music sheet, you can download it from cantorijdekoningshof.samendienen.nl/map/509.nwc
I would like to change the 3rd staff and then layer it to the 4th. The 3rd staff should also start with a bass clef.

(Although I have a registered version of NWC, I lost my CD cover with registration, so I cannot register on this site as a forum member and also I am not able to place a URL.)
Title: Re: installing user tool
Post by: Rick G. on 2013-03-27 10:35 PM
May be you can also have a look at my music sheet
That helps. I would change the Treble Clef to a Bass Clef, select the entire staff and use Ctrl+Shift+Up 5 times to shift the notes into position.

With some further manipulation, I get the pdf attachment. A bit of "slur taming" should finish things off.
Title: Re: installing user tool
Post by: guidovanh on 2013-03-28 11:08 AM
So, in my case I didn't need the user tool, but I only have to press 5 times the (entire) selected bar?
What is the difference between using the user tool and 'manually' change the bar?
Title: Re: installing user tool
Post by: Flurmy on 2013-03-28 12:54 PM
Quote
What is the difference between using the user tool and 'manually' change the bar?

You have to remember which way and how much to shift, and you must change clef manually too.
Operating manually, you must be sure you take care of clef changes along the score or it's a mess.

That's all, as far as I can tell.