Skip to main content

Messages

This section allows you to view all Messages made by this member. Note that you can only see Messages made in areas you currently have access to.

Messages - Opagust

251
User Tools / Re: Multitool PYNWC
Version 1.1 added wit a new tool 'Construct a medley'


Combine several song files into 1 medley file.

    To create a medley file, you have to start this tool from a blank score:
    Choose 'File/New' and select <blank score> from the 'Song Templates/General' tab and save it before you go to 'Tools/User Tools'.
    This file will be the destination file, in which you add the songs that will make up the medley.
    You can create the medley file in several steps, so you can also start this tool from an earlier created medley file.
    (The tool checks the presence of 'song lines'(1) in the Comments section of the Song Info to decide whether it's a valid medley file.)

    Via the tool parameters you can specify:
   
     - Include song titles at the start of each song (top staff).
     - Position, scale and font for the Song Title text objects.
     - Type of separation bar between the songs (except when the previous song ends with a Repeat Close): Single, Double or Section Close.
     - Page break, System Break or no break between the songs.

    The tool consists of several stages:

     - A popup window 'Select Songs'.
        - If you press 'Add a file', a Windows Explorer window will be opened.
        - Important: Only files in NWC Text format can be processed. So maybe you'll have to open and 'save as' one or more of your songs first.
        - A selected song can be removed from the list by clicking on it.
        - In this stage you can also set or change the Medley Title.
        - 'Cancel' will exit the tool without any changes.
        - If you have chosen your files, press 'Continue >'.

     - A popup window 'Arrange Staves'. Via this window you can:
        - Reorder the staves
        - Change song titles(2)
        - Change staff names and labels
        - Join staves (by assigning the same name and label)
        - Press '?' to see more detailed help info
        - Press '< Back' to return to the 'Adding Songs' window.

     - Review of the staff properties:
        - For each staff that appears in several songs, the properties from the different songs are compared.
          For each mismatch(except for 'visibility' and 'muted'), a popup window is presented where you can choose which values to retain(2).
          If there are to many mismatches, you may want to  press 'Cancel', in which the tool is ended without any change.
          When there's a mismatch for 'visibility', the part of the song with property invisible will be collapsed.
          When there's a mismatch for 'muted', the appropriate notes will be muted.

     - Construction of the medley, according the choices in the Tool Parameters:
        - Adding 'song lines(1)' to the Comments Section of the Song Info.
        - Adding song titles at the start of each song.
        - Creating delimiter objects: separation bar, new system or new page.
        - Inserting rests measures in staves that aren't part of every song, surrounded by boundary collapse and end collapse objects (3).

    Notes:
        (1) A 'song line' is of the form "Song:{song title}#{starting measure}-{ending measure}"
        (2) Changing the song titles and/or staff properties has only effect in the destination file. The original song files will not be modified.
        (3) The inserted boundary changes don't always give the expected result between the songs, so may be you'll have to delete or replace some of them.

See link in original post
252
General Discussion / Re: Creating a .bat file to convert all files of a folder to NWCTXT.
This worked fine
Code: [Select · Download]
cd C:\Program Files (x86)\Noteworthy Software\NoteWorthy Composer 2
for /F "delims=" %%i in ('dir /b C:\Users\gustv\Documents\Music\NWC2\Kaaterliedjes\*.nwc ^| findstr /e .nwc') do (
nwc-conv  "C:\Users\gustv\Documents\Music\NWC2\Kaaterliedjes\%%i" NWCTXT > "C:\Users\gustv\Documents\Music\NWC2\Kaaterliedjes\NWCTXT\%%itxt".
)
256
General Discussion / Re: Creating a .bat file to convert all files of a folder to NWCTXT.
Code: [Select · Download]
for %%i in (*.nwc) do "C:\Programs\NoteWorthy Composer 2\nwc2.exe" -convert "%%i" "%%~dpni.nwctxt"

Edit: N.B. this is for a batch file!
For the command line:
Code: [Select · Download]
for %i in (*.nwc) do "C:\Programs\NoteWorthy Composer 2\nwc2.exe" -convert "%i" "%~dpni.nwctxt"

Thanks for the quick answer. I like this solution without any goto (Sory H.M :)) ), but I can't get it right.

I changed it a little bit to include my input folder, to: 
Code: [Select · Download]
for %%i in (C:\Users\gustv\Documents\Music\NWC2\Kaaterliedjes\Testcopies\*.nwc) do "C:\Programs\NoteWorthy Composer 2\nwc2.exe" -convert "%%i" "%%~dpni.nwctxt
But that gave errors "Het systeem kan het opgegeven pad niet vinden.", which means, according to Google translate: "The system cannot find the path specified."
My input folder is correct (I can see all the input files in the echo lines), so maybe I have to specify the output path also, but how?
I don't know what "~dpni" means.
257
General Discussion / Creating a .bat file to convert all files of a folder to NWCTXT.
I'd like to convert all my NWC files to NWCTXT.

For 1 file, I know I can do this with a command like:
"C:\Program Files (x86)\Noteworthy Software\NoteWorthy Composer 2\nwc-conv  "nwc_folder\song.nwc" NWCTXT > "nwctxt_folder\song.nwctxt".

So what I need is a .bat file where I can specify the input and output folder and create a loop to convert every file with .nwc extension from the input folder to a .nwctxt file in the output folder.

But my knowledge of the syntax of .bat files is hidden far away in my memory.

So any help would be appreciated.
261
User Tools / Multitool PYNWC
In NWC you'll have to install PYNWC as 1 tool, but when invoking it, it's like a second layer: the PYNWC environment, where you have access to a number of tools that I developed using the Python programming language. The reason is that Python has several possibilities that are missing in the Lua language, of which on of the most important is the use of a flexible graphical user interface.

Within this environment you can:
 - see information about the score
 - see help information about the PYNWC environment
 - select a tool
 - see help information about the selected tool
 - see and change parameters for the selected tool
 - run the selected tool
 - see the results after running a tool (before saving)
 - save the changes to the score (if any) in the input file
 - depending on the tool:
   - save the changed score as another NWC file
   - save a generated report into a txt file
   - save a generated worksheet into a xlsx file

You can download the Windows installation file and a link to the full documentation (including installation instructions) in:
https://www.opagust.be/content/nwctools-environment.
In order to download the installation file, you'll now have to be logged in.
You may use an account I created:
- username: 'NWC User'
- password: 'Usertools'
Or you can create your own account, so you can be informed of future updates.
262
General Discussion / Re: Using Soundfonts with NoteWorthy Composer
Thanks Rich!

Very cool and comprehensive.
I knew about soundfonts but never got into it. But this pdf was very very useful.
I'm  now exploring the 'Top 15 free Choir Soundfonts'.

And it set me to read further about nwcitrees, and I even managed to create one (for the 'all voices.sf'), and it works.

So again: many thanks!
267
User Tools / Re: File Organization
In the statistics of my website I noticed that there ware recently some downloads of another tool: NWCTOOLS ENVIRONMENT.
This is a tool which is still in development. The version on my website is a test version from two months ago.
I hope I will be able to publish the final version 1.0 in the near future.
But in the mean time: if you downloaded the tesst version an tried it out: all feedback is welcome!
268
General Discussion / Re: Arpeggio settings in NWC2.75a
Quote
And I just did my own "undo" tests, confirming what you said. It even supports multiple undo levels (which after thinking about it, it only makes sense that this should work fine).


If you have to change to input type 'File Text' in your 'Test Toggle' tool,  instead of 'Clip Text', the undo won't do anymore.
269
User Tools / Re: File Organization
28/07/2020: version 1.1 added: see https://www.opagust.be/?q=content/nwc-file-organization

- correction of a bug when reading 'localrepeatclose' bar from the inputfile.

- Added possibility to change the default location of the 'print object' via arguments in the command line of the User Tool Description window.
* Arguments (with the dashes, without the quotes, case sensitive): '-XLoc', '-YLoc', '-X', '-Y', each followed by the desired value.
* Leave a space between the argument names and the values, use no commas.
*Valid values:
   -XLoc: Left, Center, Right (default = Left)
   -YLoc: Top, Bottom (default = Top)
   -X and -Y: horizontal and vertical offset (default = 0)
* Example: With the arguments "-XLoc Left -Yloc Bottom -Y 10", the date modified will be printed at the bottom left of the page, with a vertical offset of 10.
272
User Tools / Re: File Organization
I’m getting an error message when I try to use that function. It asks me if I want to save the change. I say yes. And then it takes me to the screen with my score and I can’t do anything else from there except cancel. I cannot do a print preview. What am I doing wrong?
It's not sure that you did something wrong, maybe the program did (wich implies it was me that did something wrong ::) )
Have you tried it on another file with the same result?
You mention you get an error message, what does it exactly say?
Maybe you can include the file, then I can try it myself to search what causes the problem.
273
User Tools / Re: File Organization
Can you explain how to use the "create user objects to print date modified" option?
Thanks
If you check this action, and  save the changes, a user object 'PageTxtMaestro.nw' (if not already present) and  'PageTxt.nw' with 'Page Style' = 'Modified' will be inserted in your score.
This will print the date modified in the bottom left corner of each page. If you want it to be printed at another position, you can change the PageTxt object.
I suggest you just try it and do a 'Print Review'.
274
General Discussion / Re: Deciding About BAK files
I've recently started having that message pop up when saving that the program is unable to save a BAK file, and do I want to save anyway (which I do). It's possible that I have changed something I shouldn't during a computer housecleaning episode.
I've had the same message and after investigating the properties of the BAK file I discovered it was read-only. When testing my tool 'File Organization' I had locked and unlocked the original nwc file. I presume that the BAK file was last created when the original file was locked.
275
User Tools / Re: File Organization
Thanks for developing this tool. I’m going to try it out later today.
Hi SEBC,
I noticed you've been quite busy these days, but I wonder: have you already found time to try this tool?
I'm curious if it satisfies your needs.
Let me know if it can be improved.
279
User Tools / File Organization
The purpose of this tool is to provide a sort of 'version management'.
A possible scenario:
- When you think a draft version of your score is ready to be 'promoted' or secured,
you can register the date last modified in the File Info comments section, create a
read-only copy in a dedicated folder, with one or more suffixes added to the file
name to see at a glance the date last modified, the creation date of the copy and/or
a 'version text'.
- Then you can safely continue working with the original draft version.
- If you want to work again with the secured version, you could unlock it, or leave
it locked and create a new, writable copy in your 'working' folder. 

The tool window:
- The date modified, shown at the top of the window, is extracted from the Windows
file system.
- The 'File Info Comments' frame shows the comment section of the 'File Info' from
the input file. 
- The actions that you select in the 'Actions' frame are not accomplished until you
click one of the buttons 'Save changes' or 'Save copy'.

If you save a copy of the input file, you can add one or more suffixes:
- #m, followed by the date modified
- #c, followed by the creation date of the copy
- #v, followed by a self chosen text
(Remark: Any suffixes of the input file are not retained in the name of the copy.)
Via a popup window you can choose the folder for the copy. (Remark: If the folder
doesn't exist, you'll be ask if it should be created.)

Installation:
Since the script is written in the Python programming language, it can't be run directly in the NWC Tools environment, so I have build an executable file from it (file_organization.exe) and a Windows installation file.
I can't attach it here, bt you can find the zipped installation file in my website: https://www.opagust.be/content/nwc-file-organization.
In order to download the installation file, you'll now have to be logged in.
You may use an account I created:
- username: 'NWC User'
- password: 'Usertools'
Or you can create your own account, so you can be informed of future updates.
 
After you have downloaded that file, you can unpack and run it. It will install the tool as a Windows application. It will suggest a folder, but you can change that. Copy that folder name.
The next step is the installation in NWC:
- Open the User Tools window (via Tools/User Tool...)
- Click 'New...' and fill in the dialog box:
  - Choose e group and a name
  - In the command line, paste the folder name where the tool is installed, followed by '/file_organization.exe' (without the quotes)
   - Choose 'File Text' as Input Type
   - In the Options section: leave 'Compress Input' unchecked and chek the other ones.
- Click 'OK'
280
General Discussion / Re: File and Project Organization
I only see 2 concerns:
1) you would need to install a python interpreter - not really a big deal I wouldn't think.
2) it needs to be run manually each time you go to edit the file whereas an object would just happen.
1) I plan to create a windows installer for it. So after running that, the result will be an executable file.
2) It doesn't run automatically like a user object, but it can do things a user object can't do. That's the reality we have to deal with. But you won't have to run it each time you edit the file, just when you think you have a 'tentative final version'. ::)
282
General Discussion / Re: File and Project Organization
I have an idea for a tool I could write in the Python language, with which you could do some or all of the the following things:

- Add the 'date modified' to the File info comments.
- Insert a User Object 'PageTxt.nw'(+ PageTxtMaestro.nw, if not yet present) in the first not-hidden staff, that will print the' date modified' at the bottom left of each page.
- Save a read-only copy of the file with the date modified (or a 'blocking date'?) added as suffix to the file name.

A second (or the same tool) could take the read-only file as input, and save a new, writable version with an extra suffix to indicate the 'unblocking date'.
283
Tips & Tricks / Re: User Object suggestion: filesystem metadata with option to be a watermark.
I have an idea for a tool I could write in the Python language, with which you could do some or all of the the following things:

- Add the 'date modified' to the File info comments.
- Insert a User Object 'PageTxt.nw'(+ PageTxtMaestro.nw, if not yet present) in the first not-hidden staff, that will print the' date modified' at the bottom left of each page.
- Save a read-only copy of the file with the date modified (or a 'blocking date'?) added as suffix to the file name.

A second (or the same tool) could take the read-only file as input, and save a new, writable version with an extra suffix to indicate the 'unblocking date'.
288
User Tools / Timeout problem with Python tool
I'm experimenting with a user tool written in Python, since I like Python more then Lua. In this tool I use the module PySimpleGui to create a popup  window to accept some user input (see attachment 'Knipsel1'). The problem is: there seems to a timeout after about 10 seconds. If nothing is entered within that time, the tool aborts (see attachment 'Knipsel2').
I use the module PySimpleGui in other Python scripts and never had that problem. So I think the timeout is generated by the user tool environment of NWC.
Is there anyone who has an idea how to solve this?
Thanks.
290
User Tools / Re: AddRestMeasures
Maybe just a single question whether to include hidden staves. Is there a way for a user tool to have a parameter passed in on the command line, so that the tool won't prompt for it when it is run? That would allow people to customize it so it doesn't ask questions that they will always answer the same.
I think that's possible. I'll look into it.
Any suggestion for the command line parameter, something like 'hidden=no'?
291
User Tools / Re: AddRestMeasures
Does it affect ALL inactive staves, or only the visible ones?

I ask because I use templates that often have many more staves than I might use for any particular work and filling staves I'm not going to use would be something of a nuisance I reckon.

Yes, it affects all inactive staves. May seem a nuisance, but who cares? Do you?
I could add a dialog to indicate the staves (not) to be affected, but that would make the tool less handy.
293
User Tools / AddRestMeasures
The reason I wrote this tool is this topic.
This tool add 'rest measures' to every visible staff that has less measures then the active staff. Each 'rest measure' contains a copy of the corresponding measure in the active staff, replacing notes, chords and restchords with rests of the same duration.
Edit 03/05/2020: hidden staves remain unchanged
Installation: download the attached script, start NWC, open any file and drag anddrop the downloaded script onto the NWC window.
299
User Tools / ColoringBeamsSlursTriplets.og
Quote from @fathafluff in topic Note Color Question

Quote
When I select the notes and change the color, the note heads, stems and accents change to the new color, but the beams, slurs and leger lines do not.


Thanks to the replies of @Rick G. and @hmmueller, we know there are workarounds: markers for slurs and triplets, user object beam.hmm for the beams (with the appropriate color set).

With this tool, the necessary markers and beam objects are cretaed. It contains an algorithm to determine the position and final stemlength of the beam object and the position af the triplet marker, but maybe you need to change them for an optimal result.

Installation: After downloading this tool, start NWC, open any file and drag and drop the tool onto the NWC window and confirm.

Use: Select a group of notes ( only the first note needs to be colored), and press ALt-F8 to run the tool.
300
User Tools / Re: ExportImportMeasures.og
Thanks Horst, for these useful remarks.

Just one small clarification: the size restriction is not on the clipboard, but on the input box of the user tool environment, during import. After some trial and error, I found that the maximum size was something above 5000 characters. Since the output size during export doesn't have that restriction, my tool now checks for that limit in the export phase (after a suggestion of you, Horst).