NoteWorthy Composer Forum

Forums => General Discussion => Topic started by: melismata on 2026-03-18 11:30 AM

Title: Bar Numbering using the bar number user plug in
Post by: melismata on 2026-03-18 11:30 AM
Is there a way to RE-START bar numbering from "1" (or from any other number for that matter) MIDWAY through a piece of music using the bar number user plugin?

Thank you,
Noel
Title: Re: Bar Numbering using the bar number user plug in
Post by: Mike Shawaluk on 2026-03-18 04:46 PM
Couldn't be easier. Just insert a new object and specify the number you want it to start at. The numbers will continue from there.
Code: (nwc) [Select · Download]
!NoteWorthyComposerClip(2.751,Single)
|Clef|Type:Treble
|TimeSig|Signature:4/4
|User|BarCounter.nw|Pos:7|Class:StaffSig|AllBars:Y
|Rest|Dur:Whole
|Bar
|Rest|Dur:Whole
|Bar
|Rest|Dur:Whole
|Bar
|Rest|Dur:Whole
|Bar
|Rest|Dur:Whole
|Bar
|User|BarCounter.nw|Pos:7|Class:StaffSig|AllBars:Y
|Rest|Dur:Whole
|Bar
|Rest|Dur:Whole
|Bar
|Rest|Dur:Whole
|Bar
|Rest|Dur:Whole
|Bar
|Rest|Dur:Whole
|Bar
|Rest|Dur:Whole
!NoteWorthyComposerClip-End
Title: Re: Bar Numbering using the bar number user plug in
Post by: melismata on 2026-03-19 03:00 PM
Thank you!  that fixed the problem.

It appears that there are two bar counter user objects and it seems that I was playing with the wrong one.

Noel
Title: Re: Bar Numbering using the bar number user plug in
Post by: Mike Shawaluk on 2026-03-20 09:07 AM
I should have named the other object Rehearsal Mark.ms; it is probably a more accurate name for it. That would avoid some confusion.
Title: Re: Bar Numbering using the bar number user plug in
Post by: Flurmy on 2026-03-20 10:17 AM
I should have named the other object Rehearsal Mark.ms; it is probably a more accurate name for it. That would avoid some confusion.
??? ???
Probably you're talking about "BarLabel.ms".
Maybe Noel was referring to "BarCounter.nw" and "BarCounter.hmm", even if I don't see why they shouldn't both work as expected.
Title: Re: Bar Numbering using the bar number user plug in
Post by: melismata on 2026-03-22 10:05 AM
Quote
Maybe Noel was referring to "BarCounter.nw" and "BarCounter.hmm", even if I don't see why they shouldn't both work as expected.

Yes.  I put the barcounter.nw at the very beginning and then barcounter.hmm where I wanted the change.  Just like PageTxt and PageTxtMaestro.  But it did not give me the desired results.

Problem is now solved.
Title: Re: Bar Numbering using the bar number user plug in
Post by: Flurmy on 2026-03-22 12:19 PM
I put the barcounter.nw at the very beginning and then barcounter.hmm where I wanted the change.  Just like PageTxt and PageTxtMaestro.
Well, they are alternative, with barcounter.hmm being more advanced (more options).
It's not a good idea to mix them. As far as I know (I didn't try), they are not compatible.
Title: Re: Bar Numbering using the bar number user plug in
Post by: fathafluff on 2026-03-22 10:27 PM
I recently wanted a bar number at the start of each staff. I inserted BarCounter.hmm at the beginning of the staff with Pos: 7; Starting bar number: 1; Hide starting bar number checked; Every n-th bar: 0.  In what would become the fifth staff line I wanted to number ten bars 1-10. I added another BarCounter.hmm with Pos: -8.5; Starting bar number: 1; Every n-th bar: 1; Excluded bars: 11-999. The bars were numbered as expected, but the original entry was cancelled, so there were no more bar numbers at the start of the rest of the staves. The only way I could get all staff lines numbered was to replace the first entry with BarCounter.nw. So I would say they do work together.
Improvement to .hmm that would be nice: Allow Every n-th bar: 1 to not cancel Every n-th bar: 0.
Another improvement I would like: If Every n-th bar was not 0, provide an option to move the bar number a distance to the right (or left, though I'm not sure that would ever be needed) of the bar line, or to the first note or rest in the bar. Or to print the number in the middle of the measure, but I suspect that calculation would be difficult or impossible.
Title: Re: Bar Numbering using the bar number user plug in
Post by: Flurmy on 2026-03-23 09:27 AM
So I would say they do work together.
I would say they work independently as two different plugins, not surprising, having different names.
Title: Re: Bar Numbering using the bar number user plug in
Post by: hmmueller on 2026-04-05 05:24 PM
Improvement to .hmm ... Another improvement ...
I'll look into it!

H.M.