Skip to main content

Recent Posts

1
General Discussion / Re: Scriptorium Update
Last post by Richard Woodroffe -
Folks,   

The Scriptorium has been updated with works submitted by :
Bertrand Vanbrabant    Auf Ferienreisen - Polka, Op. 135   (Strauss J)
Maurizio Spagni   La danza (Tarantella) (Rossini)
Joel Clement   Concerto No 1 for piano and orchestra   (Chopin)
Joel Clement   Concerto No 1 for Violin and orchestra   (Mendelssohn)
Joel  Clement   Fantaisie pour piano a  quatre mains   (Schubert)
Richard Woodroffe   Winterreise -Im Dorfe (In the village) (Schubert)
Mike Gibson   Tantum Ergo   (Mozart)


If you would like to be notified every time the Scriptorium is updated, please send an e-mail  requesting Scriptorium Update
notification to scriptoman "at" tiscali "dot" co "dot" uk

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

2
General Discussion / Re: Playback problem in Linux
Last post by Geoff Walker -
Sorry for not responding. Life took over and I forgot about this for a while.

I put together a script similar to Francis but I'm not much further forward. At least Timidity shows up in the Midi devices but still silence. I notice the wine midi mapper is still not present so I don't know what's happened to that. It was what I used in NWC2.5 and worked fine.
Playing back through my external midi player works fine so I can use that for the time being but I have to connect it to the computer (via USB) and turn it on at the mains too. having internal playback ready to go is useful for checking purposes. The external device gives better audio quality and is more comprehensive since Timidity seems to rely on freepats which does not implement the full standard midi patches.

Has anyone tried using fluidsynth with NWC at all?

I suspect some of the problem is a wine issue rather than a NWC one.
3
If you're printing them to a pdf file, you could do it with two files.  Print the first nwc file to pdf with normal font.  The second nwc file, an duplicate copy of the first -- except remove all the text with the normal font and put the italicized text where it belongs.  Then print the second file using the pdf created by the first nwc file as an overlay.  File > Printer Setup > Properties > Overlay.   I'm using NovaPDF Pro v7 as my print driver, which I only mention because the overlay function may not be available with other drivers.  I discovered the property quite by accident, and it has been happily useful for doing such things as printing two short tunes onto one page.
4
In a way, I kinda did make an option to revert back.  In case I botched it, I copied the php tool to another folder, edited it, and renamed it to "nwsw_ShapeNotesSkipSOL.php."  Then copied it back to the script folder and made a new command/link to run it.  If I'd run into problems, I still had a backup.  But, it worked out so I have either as an option now.

That is more efficient than the "brute force" change that I mocked up here. (I didn't realize that the "o" note shape had the same effect as a blank one).

Rick's change will make the tool always leave "sol" notes unchanged. One could instead add another item to the $AllShapeNotes array,  called "7-shape-no-sol" for example, so that the user can choose either behavior. (The command line options would also need to be updated to allow the addition prompt drop down).
5
I have noticed that where there are courtesy accidentals, the script turns those notes into ties in the conversion process.  Maybe there is a place on here to submit suggestions for fixes, but I've lost track of it if there was.
Since courtesy accidentals are a new feature added since the user tool was written, it's not a surprise that the tool is misinterpreting them. The user tool was written by @NoteWorthy Online so hopefully by tagging him here, he will see this thread and be aware that a fix is needed.
6
Thanks!!!  I tried a little trial-and-error with the command line, which didn't work out too well.

Did what you suggested, which perfectly addressed the main issue that was perplexing me. 

I have noticed that where there are courtesy accidentals, the script turns those notes into ties in the conversion process.  Maybe there is a place on here to submit suggestions for fixes, but I've lost track of it if there was.


Down around line 40 you will see this:
Code: (php) [Select · Download]
$AllShapeNotes = array("4-shape" => "dfgdfgc", "7-shape" => "abcdfgh");
I suggest a change to:
Code: (php) [Select · Download]
$AllShapeNotes = array("4-shape" => "dogdogc", "7-shape" => "abcdogh");
Since you have been brave enough to look at the code, this should not be too shocking  :)

7
That is more efficient than the "brute force" change that I mocked up here. (I didn't realize that the "o" note shape had the same effect as a blank one).

Rick's change will make the tool always leave "sol" notes unchanged. One could instead add another item to the $AllShapeNotes array,  called "7-shape-no-sol" for example, so that the user can choose either behavior. (The command line options would also need to be updated to allow the addition prompt drop down).
8
I don't understand PHP and the usage is unclear to me, but it would appear I should be able to convert standard to shape noteheads and make the tool just leave off converting one of the notes.  Am I reading that correctly?  If so, that might simplify things a great deal to just leave SOL out of the conversion altogether.
Down around line 40 you will see this:
Code: (php) [Select · Download]
$AllShapeNotes = array("4-shape" => "dfgdfgc", "7-shape" => "abcdfgh");
I suggest a change to:
Code: (php) [Select · Download]
$AllShapeNotes = array("4-shape" => "dogdogc", "7-shape" => "abcdogh");
Since you have been brave enough to look at the code, this should not be too shocking  :)
9
I've always understood it to be SOL as well, but read recently that for pronunciation sake schools that use the fasola teaching method are now dropping the "L." 

Anyway, I used the insert text functiion/char map and can see the shapes.... (the microsoft font viewer didn't show me down that far in the list) so it does appear editable.

Just peeked into the nwsw_ShapeNotes.php file using notepad and I noticed this little thing:

"/skip=<PROMPT:Skip:=*xXzy>"
   Defines the existing note heads that should be ignored during shape assignment

I don't understand PHP and the usage is unclear to me, but it would appear I should be able to convert standard to shape noteheads and make the tool just leave off converting one of the notes.  Am I reading that correctly?  If so, that might simplify things a great deal to just leave SOL out of the conversion altogether.
10
I created this a number of years ago, don't know if it will fly or not.
Code: [Select · Download]
/*
 unShape.js  by Warren Porter


                                  Un-shape Tool
 This tool will remove the shape attribute

 This tool can operate on ONLY a selected part of a staff, or, if nothing has been selected, the entire staff.

 To install:
 1) Save this file with the name unShape.js on your computer and remember its location.
 2) Start NWC and press Alt/F8.  Pick new
 3) After choosing a name and group, browse for this file and click "Open".
 4) Insert "wscript " at the beginning of the command.
 5) Clip text should be selected and check no options.
 */

rc=0, errMsg="";

function doProcess(clip) {
var displ=0, upDispl=0;
var result = new Array();
var lines = clip.split("\r\n");
  for (i = 1; i < lines.length; i++) {           // Main processing loop
  if (/Fake/.test(lines[i]))
    lines[i] = "#";
  else {
    result = lines[i].match(/(\|Note.*Pos:)([n#bvx]?)(-?\d+)([a-h])(\^?)(.*)$/) // 1. Note thru Pos 2. Accidental 3. Position 4. Shape 5. Ties 6. To end of line
if (result != null) {
  lines[i] = result[1] + result[2] + result[3] + result[5] + result[6] }
   } }    // End main loop
  return lines;
}

var myLines;
  myLines=doProcess(WScript.StdIn.ReadAll()).join("\r\n");

if (rc == 0)
  WScript.StdOut.Write(myLines);
else
  WScript.StdErr.Write(errMsg);
WScript.quit(rc);

Save it as unShape.js and follow installation steps at the top.