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

1
Object Plugins / Re: MarkupPage.rg
"Page" list
 1 - 'All' (default)
 2 - 'Odd'
 3 - 'Odd (except 1)'
 4 - 'Even'

I thought there was missing a choice for 'First'. But, after experimenting a bit, I found out it can be obtained by setting the Class
to 'Standard'  (The "Page" list values work only with Class = 'StaffSig').
For Rick that must have been obvious offcourse.
 
2
Object Plugins / Re: MarkupPage.rg
This reminds me of something I wrote 2 years ago: Markup Composer

I don't have the time now to look at it, but I put it in my todo-list. So maybe one day (sooner are later)  Iwill write a 'MarkupPage Composer' tool.
But no promise.
5
User Tools / Re: NWCCONVERTOR 1.0.7.2
I do have a time signature in "P2, voice 1" as far as I can see. What's wrong?

You have a (grace, invisible, muted) chords and rests before the time signature.
Code: [Select · Download]
!NoteWorthyComposerClip(2.751,Single)
|Clef|Type:Treble
|User|RangePitchMarker.hmm|Pos:7|Class:Span|Color:1
|Chord|Dur:Half,Grace|Pos:-6,6|Opts:Stem=Down,Lyric=Never,Muted|Visibility:Never
|Rest|Dur:Half,Grace|Visibility:Never
|User|RangePitchMarker.hmm|Pos:7|Class:Span|Color:7
|Chord|Dur:Half,Grace|Pos:-5,4|Opts:Stem=Down,Lyric=Never,Muted|Visibility:Always
|Rest|Dur:Half,Grace|Visibility:Always
|User|RangePitchMarker.hmm|Pos:7|Class:Span|Color:2|Visibility:Always
|Chord|Dur:Half,Grace|Pos:-2,1|Opts:Stem=Down,Lyric=Never,Muted|Visibility:Always
|Bar|Visibility:Always
|Boundary|Style:Reset|Visibility:TopStaff
|User|PageTxt.nw|Pos:0|Fnt:PageTitleText|PgCtrl:Once|XLoc:Center|PgStyle:Title|YLoc:Top|Text:%Title%|Visibility:TopStaff
|User|PageTxt.nw|Pos:0|Fnt:PageText|PgCtrl:Once|PgStyle:Author|Text:%Author%|YLoc:Top|CY:10|XLoc:Right|Visibility:TopStaff
|User|PageTxt.nw|Pos:0|Fnt:PageText|YLoc:Top|CY:4|PgStyle:Lyricist|XLoc:Left|Text:%Lyricist%|Visibility:TopStaff
|User|PageTxt.nw|Pos:0|Fnt:PageSmallText|YLoc:Bottom|CY:-6|PgStyle:Copyright|XLoc:Center|Text:%Copyright1%%br%%Copyright2%|Visibility:TopStaff
|User|Acciaccatura.ms|Pos:0|Class:StaffSig
|User|CueHeads.ms|Pos:1|Class:StaffSig|Size:70
|User|Melismatic.nw|Pos:0|Class:StaffSig
|Key|Signature:F#|Tonic:G
|TimeSig|Signature:2/4
!NoteWorthyComposerClip-End

My convertor doesn't seem to like that.

7
General Discussion / Re: extra spaces
The anchor for a Boundary Change is a vertical line with an arrowhead on each end. The length of the line is dependent on the values set in its Properties, and it can extend into adjacent staves. But it must be selected in the staff that is assigned to. The first one is in the top staff, measure 5, just after the Text "1" and its note. If you select it and view its properties, you can see it has a lower boundary of 55. You can then delete it. If the cursor is at the beginning of the first staff, you can find them all, one at a time, using Find (Ctl-F), then click to the right of the "Find What" box on the "::".  Then click on "Boundary Change" in the drop-down. Click "Right then down" and "Find" and it should find the first instance. Pressing F3 will then find the next one on the same or next staff.

Using this procedure I deleted all these boundary changes and saved as a new file (starting with 'og.'), see attached
8
User Tools / Re: NWCCONVERTOR
Hi Harold,

I just took a quick look and here are my first findings:
  • The GUI tool I use sets the window size  to the maximum size of any part of it. In your case it's the 'Staves/Parts' tab of the 'Setup' window, where  the staff name + checkbox is shown for 26 staves.
    So I think I can solve this by limiting the number of staves per line. (So when setting that limit to 6, there would be 5 lines needed for 26  staves.)
  • I tried Musescore 3 and that didn't crash.
  • When I played it, I heard only piano. Maybe due to unchecked  'Send Patch' in the staves?
9
Object Plugins / Re: GroupOp.hmm 0.3
I am unsure about the following code:
Code: [Select · Download]
item.Opts.Opts and item.Opts.Opts.Lyric == 'Always'
Does this work over all (newer) versions of NWC, i.e., do they all have this doubled Opts? (I seem to remember that with .Text, it is sometimes necessary to check both .Text and .Text.Text). Is there a more idiomatic way to write the access to the Lyric field?

Yes, that's the way to check the Lyric field. Maybe also some other fields have the double Opts, but I can't remember, since it's been a while I coded in Lua.
As for .Text and .Text.Text: That was changed in 2.8 Beta 1 (which I use).
10
General Discussion / Re: *.nwc file security
In the good old days we had floppy disks that could be 'write-protected' ;) 
Quote
To tell if a floppy disk is write-protected (locked), look at the underside of the disk (the part that's on the bottom when you put the disk in the drive). On one corner, there should be a sliding tab. If you hold the disk so that the edge that goes into the drive is at the bottom, this should be in the top left corner. If the movable part of the sliding tab is up, so that there's a hole in that corner of the disk, the disk is write-protected. If the movable part of the tab is down, the disk is write-enabled.
13
User Tools / Re: Very basic help with User Tools required, please
Hi Opagust - I hope you're well - and it was lovely to hear from you again!

I've sort of pieced together some of what you have to do when running a User Tool - though there still isn't a complete guide to how to do that. I had to trawl around to find any reference to Group, because the User Tool dialogue didn't explain what it found unacceptable in my attempt to use it.  Someone, somewhere, talked about renaming the .txt file to the php type; someone else said rename it to .js - again, no concerted authoritative source for that puzzle.

Then I ran your CopyVolVel in various modes, and all of them crashed with 'Command process failed'.  I have absolutely no idea where to turn now....

I looked again at my 'installation instructions' and I have to admit they are not as clear as I thought they were when I wrote them.

So here's a new version, which I hope is more intelligible (but you're the one to judge).

Installation instructions:
   - Change the extension of this file into '.js'.
   - Remember the folder where you saved the file, it has to be used in the command line,
      see below.
   - In NWC, choose 'Tools/User Tool...'.
   - Press the button 'New...' and fill the fields:
      - Group: Choose one of the ecisting groups or create a new one.
      - Name: Enter a name.
      - Command Line: Wscript YourScriptsFolder\CopyVolVel.js <PROMPT:Copy:=|Volume|Velocities|Both> <PROMPT:Act upon:=|Visible_Staffs|All_Staffs> <PROMPT:Execution Mode:=|Modify|Show|Help>
         * Change 'YourScriptFolder' in the name of the folder where you save this file.
      - Input Type: Choose 'File Text'
      - Options: Check 'Returns File text'


Note that the double apostrophes in the command line are no longer there. I have found that these can be the cause of 'Command process failed'.


If  you can confirm that these instructions are clear, I will put a new version of the file on the forum.
14
User Tools / Re: NWCCONVERTOR
Hi HM,

If invisible notes are ingnored, should they be replaced by rests?
An example file with such invisible cue notes should also be helpful.

I noticed you used them in the previous files you provided.
Aside of being invisible, they're also grace notes and muted.
So maybe I should add a checkbox 'Convert invisible muted grace notes' in the 'Options' (default unticked)?
15
User Tools / Re: NWCCONVERTOR
b) And would it be possible that invisible notes are not emitted into the MusicXML file? I use especially invisible cue notes for some purposes which should not be visible anywhere - but MusicXML files transport them as normal visible notes, and then they turn up in e.g. MuseScore.
This could of course also be a checkbox in the "Options", e.g. "Ignore invisible notes".

If invisible notes are ingnored, should they be replaced by rests?
An example file with such invisible cue notes should also be helpful.
16
User Tools / Re: NWCCONVERTOR
Hi HMM,

Can you send me a nwctxt file that creates a file that causes this error in Musiscore 4.1.1. ?
17
User Tools / Re: Very basic help with User Tools required, please
Hello Jonathan,

I suppose you're referring to my user tool 'copyvolvel' from 9 years ago, see https://forum.noteworthycomposer.com/?topic=8923.

I thought I included installation instructions on the forum, but obviously I didn't.

This tool was written in javascript, hence it needs extension '.js' to run. But files with that extension can't be uploaded on the forum, so I used the extension '.txt'.
This means the first thing you have to do after downloading is changing the extension from '.txt' to '.js'.

Next you can install it via 'Tools/User Tools.../New...'.
For filling in the command line and the options, I did include installation instructions in the first lines of the tool, I quote:
Installation instructions:
  
Quote
Command Line: "Wscript YourScriptsFolder\CopyVolVel.js <PROMPT:Copy:=|Volume|Velocities|Both> <PROMPT:Act upon:=|Visible_Staffs|All_Staffs> <PROMPT:Execution Mode:=|Modify|Show|Help>"
   Input Type: File Text
   Under 'Options: Check 'Returns File text'


(Replace 'YourscriptsFolder' into the folder where you downloaded the tool.)

There are 3 execution modes : 'Modify', 'Show' and 'Help'. 'Modify' is the normal mode, 'Show' shows the generated output in stdout (without modifying your file), 'Help' shows the help text.

18
User Tools / Re: NWCCONVERTOR
And again a new version, after bug report from Lawrie Pardie.
1.0.7.2:
- ignoring group symbols that are not supported in Noteworthy ('square' and 'line'), instead of crashing.
- bug fix for ending and starting orchestral bracket and grand staff brace.

see https://www.opagust.be/content/nwcconvertor
20
User Tools / Re: Number notation tool
And another new bug detected by FrankSit:

Corrected version  in original post: whole note translates to number + dot instead of 2 numbers
21
User Tools / Re: Number notation tool
New version in original post.
- Some positional finetuning.
- Correction of bugs that caused an error.
- Chords and restchords are now permitted, but when they are present, a warning is shown that only one note of the chord gets a number in the number staff.

With thanks to FrankSit who tested and commented on various intermediate versions.
23
User Tools / Re: Number notation tool
I had to do some extra changes in order to correct an issue reported by FrankSit.
Thank you Gust, the number note now works as I expected, the only thing maybe you can still fix is the slurs and tie in the nomral note were not shown in the number note.

Again thank you very much, it helps our church choir  learn the songs.

Frank

New version which shows slurs and ties available in original post. (User object 'slur.ms' needs to be installed)
24
User Tools / Re: Number notation tool
Gust, just for curiosity and to save me to reinstall 2.75a.2, what are the differences you discovered?

It's about the internal object representation (when you use nwcut.setlevel(2)) in the Lua API, for items with a 'Text' property. (staff name, staff label, text item, ...).

Example: in versions before 2.8 Beta 1, the staff name of the first staff was accessible as 'Staves[1].AddStaff.Opts.Name.Text'; in 2.8 Beta 1 it's 'Staves[1].AddStaff.Opts.Name'.

See also: https://forum.noteworthycomposer.com/?topic=9867.msg70615#msg70615
25
User Tools / Re: Number notation tool
Gust, just for curiosity and to save me to reinstall 2.75a.2, what are the differences you discovered?

It's about the internal object representation (when you use nwcut.setlevel(2)) in the Lua API, for items with a 'Text' property. (staff name, staff label, text item, ...).

Example: in versions before 2.8 Beta 1, the staff name of the first staff was accessible as 'Staves[1].AddStaff.Opts.Name.Text'; in 2.8 Beta 1 it's 'Staves[1].AddStaff.Opts.Name'.

26
User Tools / Re: Number notation tool
Hi Lawrie,

I've been using version 2.8 Beta 1 also, but reinstalled 2.75a.2 to test the changes I made to solve FrankSit's problem. But it seems these changes now cause problems in 2.8 Beta 1 (your error1).

So now, after investigating it, I made the changes that are ment to work in both versions.
And I tested it successfully in both versions.

As for your error2: this is caused by a restchord, which has no 'Pos' field, only a 'Pos2'.
But the original post says: 'Remark: Chords are not supported.'
(A 'normal' (not rest)chord doesn't cause any error, but only one note is being handled.)
So now I added a check: if there's any chord or restchord, it will cause an error with the massage "Sorry, chords are not supported.".



 
28
User Tools / Re: Number notation tool
In older versions of NWC, text items (such as staff name, label, ... are stored in a different way, which caused an error when trying to change it.
I made some changes to deal with both methods.
See original post for the latest version

I had to do some extra changes in order to correct an issue reported by FrankSit.
30
General Discussion / Re: Number note
Hi Gust,

I do not understand, I tried in the 2nd song, and the third, there is no more additional texts hiding the notes, but it still hides the normal note and it's staff.

The 2nd problem, it works only in the first staf, of we run again the 2nd staff it won't work, it shows erro message like the attached.

Thank you

Frank

Hi Frank,

Thanks for sending me your file.

- About the additional text: it seems to occur when there is a natural accidental. I investigated my code, but with base = '1=C', a natural accidental should be ignored.
And when I ran the tool myself on the same staff, there was no additional text.
- About the second problem: as I see on the attached image, you ran it on the second staff indeed, but that is the original first staff. The third staff should be the original second.
  If you had given your staves a label, you should see the same label in the first (number) staff and the second (originally first). The number staff is created from a copy of the original, with the notes being hidden. They are necessary to keep the numbers aligned with the original staff.
But it shouldn't give you this error. It seems to me you ran the old version of the tool. Did you download the new version? Or perhaps you have 2 versions in different folders?
31
General Discussion / Re: Number note

Thank you Gust for your new file that I can download. My version is 2.75a.2. Was it old?. Actually now it works for me but my question are as follows:
1. Why there is a words that says " Visibilty is Alwasy" it hides the number notes (see attached)
2. I already chose not to hide the original staff, but it still hides. How can we make it  to place exacty at the top of the staff, and all the non number notes are shown exactly below the number note, so when we play it it still can see the non number notes are highlighted.
3. How can I change the command path not from the "C\Situmorang\documen\download\thename of your file

Thank you
Frank

Hi Frank
1. About the 'Visibility Always' words: that's weird, I can't imagine where they come from. Maybe you can send me the file? I will give you my email address in a personal message.
2. Is the original staff really hidden?. By running the tool the lyrics are placed above the staff so maybe that's why it seems that the staff is hidden.
3. In the window from 'Tools/User Tools', there is a button 'Edit...'. When you press it you can change the command.
32
General Discussion / Re: Number note

It didn't work for me because the error code as in the attached. Is it because the file name is wrong?

Thank you
Frank

I think you have an older version of NWC, where text items such as the staff name are stored in a different way, which caused this error when trying to change it.
So I made some changes to deal with both methods.
You can download the new version here
I couldn't test this changes myself, since with my version of NWC is newer, so I hope the problem is solved now.

Gust
33
User Tools / Re: Number notation tool
In older versions of NWC, text items (such as staff name, label, ... are stored in a different way, which caused an error when trying to change it.
I made some changes to deal with both methods.
See original post for the latest version
34
General Discussion / Re: Number note
Thank you Opagust, I already installed it, then the next step, I need more explanation on how to key in the number, expecially if the note is slured or tied.

Thank you

Frank
You don't have to key in the numbers yourself. Just position your cursor on the staff for which you want to have numbers, then select 'Tools/User Tools...', select the tool 'NoteNumbers.og' and press Run.
You will see a dialog box, with two choises: 'Insert note numbers' or Help.

I suggest that you choose 'Help' the first time and you will see a window with explanation how the tool works.

If you choose 'Insert note numebers, you'll have to choose two other options. After running the tool, a new 'number staff' will be created. Choose 'Viewer mode' or 'Print review' to see how it will look like on your printed score.
35
General Discussion / Re: Number note

Hi Opagust,

How can I use it, because I tried to go to User tool, there is no menu for number user tool.

Thank you,

Frank

Hi Frank,

You will have to download and install the tool first. The simplest way to do this:
- Start NWC and open a song file.
- Then go to
'Number Notation Tool'
and download the attached file 'NoteNumbers.og.lua'
- Drag and drop the downloaded file onto your NWC window
- You'll get a popup where you can confirm
- Then The 'User Tool' window appears, where you can see the tool in the right column
- Click 'Run' to execute it.
From now on, it will be permanently present in the User Tool window, which you can open with 'Tools/User Tool...' or Alt+F8
36
General Discussion / Re: Number note
Hi Frank,

If you want the numbers in the lyric line, I don't think you can add the dashes and dots.
But a few years ago I wrote this user tool:
Number Notation Tool

It creates a separate staff with the number notation. The result doesn't look readable in edit mode so you have to switch to view mode or do a print preview to see the result.
You can choose 'Help' in the dialog box to see how it works and what it does. But if you have any problems or questions, don't hesitate to communicate them.
38
Object Plugins / Re: PageTxtMaestro.nw
Hi,

Although I have set Page Display Control set to "All" for the title, it's only printed on the first and the last page.

Code: (nwc) [Select · Download]
!NoteWorthyComposerClip(2.751,Single)
|User|PageTxt.nw|Pos:-4|XLoc:Center|CY:-10|Text:%Title%|PgStyle:TopCenter|Fnt:PageTitleText|YLoc:Top|PgCtrl:All
!NoteWorthyComposerClip-End

See complete file in attachment.
40
User Tools / Re: NWCCONVERTOR
Version 1.0.6.9 is available at
https://www.opagust.be/content/nwcconvertor

    - bug fix concerning multirest.
    - bug fix concerning assigning part-group symbol to staff.
    - corrected calculation of note position for percussion clef.
    - changing text color for warnings from red to black.
    - changing text for warning 'InvalidChord Error' into 'Chord with same duration and position.
    - adding warning for note lengths not supported by NWC.
41
User Tools / Re: NWCCONVERTOR
Opagust,
I'm not sure the problem is all in your convertor, but I get various errors converting the attached file.
It was generated by MuseScore and, I know, there are some odd notes (MIDI value around 100) in channel 10.
In case you're interested to investigate...

Hi Flurmy,

The 'Batteria' staff of the input file contains, in a number of measures,  chords of 2 notes  with same position and same duration (but with different instruments), see example in code snippet below. This is impossible in NWC: each element in a chord must have different position or different duration. So the Warnings frame shows a 'InvalidChordError' in these cases. But this is no 'fatal error', nwcconvertor just removes the double position. (And in this case with 2 instrument change objects, but of course the second overrules the first one.

So, because it's not a fatal error, you can click 'SAVE' and get a valid nwctxt file.
Maybe I should not call it 'error' in the warnings frame (and print it in black instead of red)?

But then there were two other things I noticed in the output file:
1) The bars in the piano staves didn't line up correctly after measure 45. The reason was the presence of rests and notes with a duration of a 128th (see 2nd code snippet), which is not possible for NWC (nor for many pianists I guess). NWC removes the duration part in the nwctxt line, which results in a quarter note or rest.
2) The calculation of the positions for a percussion clef was wrong (12 positions to high).

Code: [Select · Download]
      <note dynamics="92.22">
        <unpitched>
          <display-step>F</display-step>
          <display-octave>5</display-octave>
          </unpitched>
        <duration>48</duration>
        <instrument id="P5-I25"/>
        <voice>1</voice>
        <type>eighth</type>
        <stem>up</stem>
        <beam number="1">begin</beam>
        </note>
      <note dynamics="64.44">
        <chord/>
        <unpitched>
          <display-step>F</display-step>
          <display-octave>5</display-octave>
          </unpitched>
        <duration>48</duration>
        <instrument id="P5-I70"/>
        <voice>1</voice>
        <type>eighth</type>
        <stem>up</stem>
        </note>

Code: [Select · Download]
      <note>
        <rest/>
        <duration>3</duration>
        <voice>5</voice>
        <type>128th</type>
        <staff>2</staff>
        </note>
      <note dynamics="84.44">
        <pitch>
          <step>B</step>
          <octave>3</octave>
          </pitch>
        <duration>3</duration>
        <tie type="start"/>
        <voice>5</voice>
        <type>128th</type>
        <stem>up</stem>
        <staff>2</staff>
        <beam number="1">begin</beam>
        <beam number="2">begin</beam>
        <beam number="3">forward hook</beam>
        <beam number="4">forward hook</beam>
        <beam number="5">forward hook</beam>
        <notations>
          <tied type="start"/>
          </notations>
        </note>

Conclusion:
I will soon publish a new version with:
- corrected positions for the percussion clef
- text 'InvalidChordError' replaced by 'Chord with duplicate positions ans same duration'
- warnings printed in black instead of red.
- print a warning in case of a 128th duration.
43
User Tools / Re: NWCCONVERTOR
A small request: allowing the drag & drop of the nwctxt file?
I'm hard to please.  :)
I found out that it's possible just by using Windows:
- Open the folder of your nwctxt file in Windows Explorer
- Open in another Window Explorer window the folder where you stored nwcconvertor.
- Drag and drop the file onto the nwcconvertor program name or icon (depending on your Explorer setttings).
45
User Tools / Re: NWCCONVERTOR
Version 1.0.6.8 is available at
https://www.opagust.be/content/nwcconvertor

    - bug fix in xml to nwctxt conversion: 64th notes converted as quarter notes.
    - checking for missing Time Signature.
    - bug fix concerning transpose instrument.

A small request: allowing the drag & drop of the nwctxt file?
I'm hard to please.  :)

Sorry, Flurmy, that's to hard for me to please you. The Gui application I use  (PySimpleGui) doesn't support it. You will still have to use click & click.
46
General Discussion / Re: Final variant
Here are the results
res. 1. from staves
res. 2. from the print preview
I couldn't get the wording "variant ad libitum" to stay more to the left, even if I inserted it in two lines. That is land of the gap and woe to penetrate it!
Well so too! I worked with Opagust's markup composer (thanks!) to create the copy/paste and then in the properties for later, small adjustments.
Grazie!
Lorenzo

Maybe you can try to place  "variant ad libitum" where you want it with the markup composer too?
47
User Tools / Re: NWCCONVERTOR
Hi Lawrie,

I just downloaded the latest version myself and let it scan by my antivirus software Mcafee. No virus found.

As for the transposing problem, if you send me the input file, I could investigate it. I'll send you a personal message with my email address.

Gust
48
User Tools / Re: MUSICXML TO NOTEWORTHY CONVERTER
Hi David,

I think the problem is the space after the equal sign in 'measure number = "1"''.
You may try to download and run my NWCCONVERTOR program.

I wrote this  program after MXML2NWC and it can convert both ways.
NwcConvertor has had several updates, but MXML2NWC is no longer maintained.

I tried myself to run NwcConvertor with a XML file where I put spaces around the equal sign and it ran without any error. 

I hope this will solve your problem, otherwise please let me know.

Gust 
49
General Discussion / Re: Oblique lines between two staves
I also suffer from music theory ignorance, so I can't answer your question about the meaning of these lines.

But I know in nwc they can be produced by the markup.rg user plugin.
This user plugin was created by the late NWC virtuoso Rick G.
It's very powerful but also very obscure.

So 6 months ago I wrote a dialog based user tool to compose a markup object:
https://forum.noteworthycomposer.com/?topic=10207.msg73592#msg73592

Maybe this can be helpful.

Hope your 1st question will be answered soon by 1 of the music theory experts in the forum.

Gust