Skip to main content

Topic: Set up a NoteWorthy Viewer play list running under Windows 10 (Read 900 times) previous topic - next topic

Set up a NoteWorthy Viewer play list running under Windows 10
This is an update to a previous play list tip running under older version of Windows.

These are the instructions you need to set up a NoteWorthy Viewer play list running under Windows 10.

A bit tricky to set up, but once done, is easy to manipulate and change.

Play list functionality is set up using the NoteWorthy Viewer and the old batch file command system.
You will have to set up 2 files. The first will be the actual play list. As an example, let's call it PLAY.TXT

In it, you will need to put in each file you want in your play list. This will need to be the full path and filename within quotes. One NoteWorthy song file to each line.

So let's suppose you want to play one file from your NoteWorthy Samples directory on the C Drive , one from your Viewer directory on your C Drive and one from a NoteWorthy directory on say the F drive.

The format of the file will be :

Code: [Select · Download]
"C:\Program Files (x86)\Noteworthy Software\NoteWorthy Composer 2\SAMPLES\Anchors Aweigh.nwc"
"C:\Program Files (x86)\Noteworthy Software\NoteWorthy Composer 2 Viewer\MOONLITE.NWC"
"F:\NoteWorthy Files\Version 2\SAMPLES\hoolchris.nwc"

So in other words, it doesn't matter where your files are in your computer as long as you give the drive, full path and file name.
(A single click on the file and then a click in the address bar will give you the drive and path, but you will need to add the file name)
So that's set up your play list. Save it in an appropriate directory (folder).

Now you have to set up the file that starts up the NoteWorthy Viewer and gives it the  instructions it needs.
Let's call it Play.bat (you can call it anything you like but it must end with .bat).

The following two lines need to be in the file exactly as displayed here except that some parts need to be relevant to your system and also the name you gave to your play list file. (above)
 

Code: [Select · Download]
for /f "delims=" %%q in (play.txt) do (
"C:\Program Files (x86)\Noteworthy Software\NoteWorthy Composer 2 Viewer\NWC2View.exe" %%q /play /close /wait)

So of particularly note : The set of brackets on the first line contains the name of the file that you set up as the play list. You will need to change this if you called the file something else.

In the second line, in quotes, is the drive and full path to your NoteWorthy Viewer and the Viewer executable which may be different on your system.
So save this file (Play.bat) in the same directory (folder) as your play list file. Now you just need to double click play.bat to play your list in the viewer.

You can set up as many play lists as you like but you will either need to change the name in Play.bat when you want to play a different list or you could have several batch files each one containing a different play list. (There is a way of playing different play lists from the same batch file - but that's for another day perhaps)

That's it - happy playing. For those that are interested, here is what is going on in the batch file.

/f tells the command processor to process an input file (Play.txt) a line at a time.

"delims=" tells the command processor that when it's reading in a file, to read all of the line - no delimiters.
(If you don't have this instruction then it will read the first line only as far as the first space)

%%q is the variable to which it assigns the record from the file.

do - do the following set of commands for each record read in

/wait - wait till the program has finished before looping back to the beginning

/play - tells the NoteWorthy Viewer to automatically play. (It doesn't wait for you to tell it to play).

/close - tells the viewer to close when it has finished playing the file. (It doesn't wait for you to close it).
Rich.

Re: Set up a NoteWorthy Viewer play list running under Windows 10
Reply #1
So in other words, it doesn't matter where your files are in your computer as long as you give the drive, full path and file name.
(A single click on the file and then a click in the address bar will give you the drive and path, but you will need to add the file name)

Just for information, from Windows 8.1 onward, you can simply select the file in the File Explorer and click on the "Copy path" tool. This will place just what you need in the clipboard. (The attached screen capture is in French. I hope that it's still helpful.)

And for those stuck with Windows 7, or if you want to copy the full path from the File Open box in NWC, you can do Shift+right click on the file and select "Copy as path" in the context menu.

Re: Set up a NoteWorthy Viewer play list running under Windows 10
Reply #2
Windows 10 users need to select the file(s) with Control-Shift-RightClick to do a Copy Path.