\version "2.11.31"
\header { texidoc = " If the music is broken on an invisble bar (dividing in the middle of a normal bar), the bar number should be printed in parentheses.
Currently, no bar number is printed. " }
{ c'2 c' c' \bar "" \break c' c' c' \break c' c' }
\paper { ragged-right = ##t }
% EOF
Comment #1
Posted on Sep 11, 2007 by Quick Cat(No comment was entered for this change.)
Comment #2
Posted on Dec 12, 2009 by Helpful Dog(No comment was entered for this change.)
Comment #3
Posted on Dec 6, 2011 by Quick HorseAdds parenthesized measure numbers at mid-bar breaks.
Comment #4
Posted on Dec 6, 2011 by Quick HorseAdds parenthesized measure numbers at mid-bar breaks.
Comment #5
Posted on Dec 6, 2011 by Happy PandaCould it be possible (as an option) to print it in parentheses but also in italic?
I do not know if this is "standard practice" but IIRC I have seen it this way somewhere.
Comment #6
Posted on Dec 6, 2011 by Quick HorseI'm not sure if it's standard practice either...
The easiest way for me to do this would be to figure out all of the different options and then roll them into one function.
Currently, I've heard: --) italic --) parenthesized --) not visible at partial measures
It's easy to create booleans for all of these things in a central function and then create wrapper functions (italic-parenthesized-at-partial-measure, parenthesized-at-partial-measure, italic-at-partial-measure, not-visible-at-partial-measures, etc.).
Once I get a solid list, I'll build it into the function.
Comment #7
Posted on Dec 7, 2011 by Helpful PandaPatchy the autobot says: patch does not apply
Comment #8
Posted on Dec 7, 2011 by Quick HorseAdds parenthesized measure numbers at mid-bar breaks.
Comment #9
Posted on Dec 8, 2011 by Helpful PandaPatchy the autobot says: LGTM. in tuplet-broken.ly, I see a bar number on the third system but not the second. I assume that's correct?
Comment #10
Posted on Dec 8, 2011 by Quick HorseI'm not sure if it's correct. The first measure number is normally never printed in a score, but I'm not sure about the first parenthesized measure number.
Cheers, MS
Comment #11
Posted on Dec 8, 2011 by Helpful DogI suggest to interpret the rule as don't print a bar number at the beginning of the first system of a piece'. Consequently, I favour that we have
(1)' in the second system for a broken first bar.
Comment #12
Posted on Dec 8, 2011 by Quick HorseAdds parenthesized measure numbers at mid-bar breaks.
Comment #13
Posted on Dec 8, 2011 by Helpful PandaPatchy the autobot says: does not apply to master
Comment #14
Posted on Dec 8, 2011 by Quick HorseAdds parenthesized measure numbers at mid-bar breaks.
Comment #15
Posted on Dec 8, 2011 by Helpful PandaPatchy the autobot says: LGTM. Patchy isnt going to reject this, but as a reviewer I want this behavior turned off by default. Seeing regtests with no bar numbers adding a bunch of (1) looks weird and wrong.
Comment #16
Posted on Dec 8, 2011 by Helpful DogI don't disagree. But: How many regtests do we have with a single broken bar? Shouldn't we rather disable bar numbers in those tests?
Comment #17
Posted on Dec 8, 2011 by Happy LionI've deleted the regtest by now, but there were something like 5 regtests effected. The single broken bar didn't disturb me as much as
======
(1)======
======
(1)======
======
(1)======
that was present in Mike's favorite regtests of feathered beams. Come to think of it, shouldn't the parenthesized measures be disabled if you're not printing bar numbers?
Comment #18
Posted on Dec 8, 2011 by Helpful DogOf course! Everything else is a bug. Mike?
Comment #19
Posted on Dec 8, 2011 by Quick HorseAdds parenthesized measure numbers at mid-bar breaks.
Comment #20
Posted on Dec 8, 2011 by Quick HorsePatchy's ability to communicate like a human, analyze musical information, and make musically-informed commentary is astounding.
New patch set up making this not a default.
Comment #21
Posted on Dec 8, 2011 by Happy LionWell, although I ended up dropping the artificial intelligence class, I've been having a blast with the machine learning class. http://www.ml-class.org/
BTW, it's running again in the spring, and I highly highly recommend it. Andrew Ng is an excellent professor (and I say this as somebody who spent 8 years full-time undergraduate, 1 year part-time undergraduate, and 2 years Masters -- I've seen a lot of professors). And it's free!
Comment #22
Posted on Dec 8, 2011 by Helpful PandaPatchy the autobot says: tuplet-broken.ly goes from nothing to (2). Look, this is supposed to catch unintentional problems. Are you testing these at all yourself?
Comment #23
Posted on Dec 9, 2011 by Quick HorseAdds parenthesized measure numbers at mid-bar breaks.
Comment #24
Posted on Dec 9, 2011 by Helpful PandaPatchy the autobot says: LGTM. no changes is good changes
Comment #25
Posted on Dec 12, 2011 by Happy CamelComments by Reinhold on Rietveld
Comment #26
Posted on Dec 12, 2011 by Quick HorseAll the comments from Reinhold (and Neil) were addressed in the patch set from Dec 8. Is it ok to push the patch?
Cheers, MS
Comment #27
Posted on Dec 12, 2011 by Happy LionYes, LGTM.
Comment #28
Posted on Dec 12, 2011 by Happy PandaJust to make sure:
- It will be possible to set the visibility of such "bar numbers for broken bars" independently of the visibility of bar numbers for normal (unbroken) bar?
- It will be possible to print bar numbers for broken bars both in parentheses and in italic?
- I do not see on Rietveld additions to the Doc; this new feature should be documented (as a snippet) in NR 1.2.5 Bars > Bar numbers IMHO. Please do not tag this issue as fixed unless it is documented or a new issue, type Documentation, has been added regarding this.
Thank you Mike!
Comment #29
Posted on Dec 13, 2011 by Happy LionIgnore Xavier's point 3. As per our usual patch-handling process, mark this fixed as soon as it is pushed (after another countdown). New features show up on a git diff of regtest directory.
Comment #30
Posted on Dec 13, 2011 by Quick HorseFixed as 123b51c50a462b14d3cbffe2f354eaa8ec772dc2.
- It will be possible to set the visibility of such "bar numbers for broken bars" independently of the visibility of bar numbers for normal (unbroken) bar?
Yup
- It will be possible to print bar numbers for broken bars both in parentheses and in italic?
Yup
The advantage of using a formatter function is that you can bend it however you want. Just copy and paste the function from translation-functions.scm (robust-bar-number-function) into your .ly file and tweak it however you like. If it gets to the point where users are using a specific tweak all the time, it'd be worth it to add that to LilyPond proper.
Comment #31
Posted on Dec 15, 2011 by Swift DogI've verified that the default behaviour is not to add parenthesized bar numbers, see image. I had a look at the patch and could not see how to turn on the new behaviour.
If one of the devs could advise how to turn on the enhanced behaviour, we can verify it.
Comment #32
Posted on Dec 15, 2011 by Happy Lionhmm, there isn't even a regtest for this feature! Mike, could you add one?
Comment #33
Posted on Dec 30, 2011 by Quick OxIf users cannot use the enhancement, then I suppose it is not fixed.
The only doc for barNumberVisibility is http://lsr.dsi.unimi.it/LSR/Item?id=592 so we could expand that. There were never any regression tests, so we could also expand ‘bar-number.ly’
There choices seem to be barNumberVisibility = #first-bar-number-invisible % #all-bar-numbers-visible % #(every-nth-bar-number-visible n) % #(modulo-bar-number-visible n m) % #first-bar-number-invisible-save-broken-bars % #first-bar-number-invisible-and-no-parenthesized-bar-numbers
Comment #34
Posted on Dec 30, 2011 by Happy LionUser-oriented documentation is a completely distinct issue from new code features. If you don't trust a diff of regtests to spot such new features, then add a separate issue for that.
However, we do need a regtest, so I agree with marking this as not fixed.
Comment #35
Posted on Dec 30, 2011 by Quick HorseAdds barNumberVisibility regtest
Comment #36
Posted on Dec 31, 2011 by Helpful PandaPatchy the autobot says: does not apply to current master
Comment #37
Posted on Feb 22, 2012 by Happy PandaShould be "fixed", it was pushed months ago.
Mike could you do what Patchy wants in order to close this issue? Should I ask to open a new issue on the tracker in order to document this in NR 1.2.5 Bars > Bar numbers ? The regtest "bar-number-visibility.ly" is almost self-explanatory.
Thank you!
Comment #38
Posted on Feb 23, 2012 by Helpful BearOK, marking as Fixed and Verified. Documentation should be added soon-ish; I'll open another issue if it isn't.
Comment #39
Posted on Feb 23, 2012 by Quick HorseFixed with 8d8982cc88ba1d0b20df5aff22b9555f76976a26.
Comment #40
Posted on Feb 23, 2012 by Swift DogVerified that a couple of commits were present in the repo:
For the new bar-number-visibility.ly regression test:
83c269ea982eea8b8b97c021844b3dfa91b56649
And for the code changes 8d8982cc88ba1d0b20df5aff22b9555f76976a26
Looks good.
Comment #41
Posted on Apr 8, 2014 by Quick LionRegarding comment #38: "Documentation should be added soon-ish; I'll open another issue if it isn't.". A cursory glance at the manuals does not reveal any documention. If documentation and/or an issue have been added, please add a reference to them to this issue so that people might find them when looking here.
Thanks
Status: Verified
Labels:
Type-Enhancement
fixed_2_15_24