NoteWorthy Composer Forum

Forums => Tips & Tricks => Object Plugins => Topic started by: hmmueller on 2018-09-23 05:02 pm

Title: BarCounter.hmm 0.3
Post by: hmmueller on 2018-09-23 05:02 pm
This is my replacement for the original BarCounter.nw ( object, with a few extended features I found necessary on large scores. I'm very grateful to NWC for the initial code for this plugin, which I only extended at a few places:

The attached file shows a few demo cases and explains them. However, the real use of these feature can only be seen in larger scores. If someone is interested in such examples, please let me know.

Title: Re: BarCounter.hmm 0.1
Post by: Mike Shawaluk on 2018-09-24 01:48 pm
Nice work! I have one small suggestion that would make the object even more versatile: rather than have a "Use Lyrics Font" checkbox, why not just add a "Font" dropdown, which defaults to StaffBold but can be set to any of the available fonts? And if you want to really go whole hog, you could add a "Text Scale (%)" parameter.

Keep up the great work!

Title: Re: BarCounter.hmm 0.2
Post by: hmmueller on 2018-09-25 07:59 am
Thanks Mike - I have rewritten it per your suggestion; and also (hopefully) fixed a numbering bug when a bar has both "Force System Break" and "Exclude From Bar Count" checked.

Title: Re: BarCounter.hmm 0.3
Post by: hmmueller on 2018-09-25 06:53 pm
The plugin needed a tiny correction because of a bug; and the example score needed an update because it had some old fields in it. These changes bumped the version to 0.3.

Title: Re: BarCounter.hmm 0.3
Post by: EdFranks on 2019-02-08 08:01 pm
I have encountered a small bug.  I insert a "Boundary Change" to drop the start of the staff on the page.  This is followed a couple measures in with a "Boundary Change Reset" to return to the staff default.  The BarCounter is inserted as you would think, at the beginning.  Occasionally, a measure number is skipped over, eg, the measure count goes form 7 to 9.  It doesn't seem to be predictable.  When I scroll slowly to find where the problem lies, everything looks normal until one final scroll arrow click causes all the measure numbers to vanish momentarily and then reset to the +1 values.

As a workaround, I found that if I immediately follow the "Boundary Change reset" with an additional instance of BarCounter, everything works perfectly.  [Version 0.3}
Title: Re: BarCounter.hmm 0.3
Post by: hmmueller on 2019-02-08 08:38 pm
"Mhm" - yes, I think I have seen something like that, but only once or twice. Do you have a score that has this problem so that I can look into it? Thanks for the workaround, in any case!

Title: Re: BarCounter.hmm 0.3
Post by: EdFranks on 2019-02-12 10:10 pm
Hello there, HM.  I've stripped down the score to just one failing instrument (the tuba, of course).
It's pretty straightforward. Hopefully, it will reliably fail for you, too.

Title: Re: BarCounter.hmm 0.3
Post by: EdFranks on 2019-03-09 05:22 pm
I found an instance where the "workaround" also fails.  BarCounter absolutely does not like to precede the MMR plugin in a measure.  To correct the problem, I added an instance of BarCounter after each measure containing MMR (which worked).  Experimenting, I moved the "workaround" back one measure (to avoid the MMR).  Problem also went away.  I adjusted the previous-posted failing score for illustration.