Re: Issue 3918: Add \alternatingTimeSignatures (issue 97110045)

2014-06-07 Thread Paul Morris
teHead g'1 \once \substitute #(lambda (grob) ;; just an example procedure (display grob)(newline) #f) Staff.NoteHead a'1 } -- View this message in context: http://lilypond.1069038.n5.nabble.com/Re-Issue-3918-Add-alternatingTimeSignatures-issue-971100

Re: Issue 3918: Add \alternatingTimeSignatures (issue 97110045)

2014-06-05 Thread Thomas Morley
2014-06-05 15:12 GMT+02:00 Paul Morris : > Thomas Morley-2 wrote [...] >> And really hackish is: >> >> test = >> #(define-music-function (parser location test-arg mus) >>( >> ;very bad, kludgy and hacky, though valid: >> ((lambda (x) (or (boolean? x) (number? x) (procedure? x))) "") >>

Re: Issue 3918: Add \alternatingTimeSignatures (issue 97110045)

2014-06-05 Thread Paul Morris
.) What if a list of type predicates was a valid type predicate? '(boolean? number? procedure?) Their individual descriptions could be combined for error messages. At the end of the day this is a small and incremental thing and I don't want to belabor it. Cheers, -Paul

Re: Issue 3918: Add \alternatingTimeSignatures (issue 97110045)

2014-06-03 Thread Thomas Morley
2014-06-01 18:45 GMT+02:00 Paul Morris : > Paul Morris wrote >> #(define-music-function (parser location arg) >> (or (boolean?) (number?) (procedure?)) >> ...) > > I suppose it would need to be something like this to work for multiple > arguments: > > #(define-music-function (parser locatio

Re: Issue 3918: Add \alternatingTimeSignatures (issue 97110045)

2014-06-01 Thread Paul Morris
procedure?) pair?) ...) Anyway, you can see the idea despite my fumbling with the syntax. -Paul -- View this message in context: http://lilypond.1069038.n5.nabble.com/Re-Issue-3918-Add-alternatingTimeSignatures-issue-97110045-tp162462p162973.html Sent from the Dev mailing list a

Re: Issue 3918: Add \alternatingTimeSignatures (issue 97110045)

2014-06-01 Thread Paul Morris
ul -- View this message in context: http://lilypond.1069038.n5.nabble.com/Re-Issue-3918-Add-alternatingTimeSignatures-issue-97110045-tp162462p162970.html Sent from the Dev mailing list archive at Nabble.com. ___ lilypond-devel mailing list lilypo

Re: Issue 3918: Add \alternatingTimeSignatures (issue 97110045)

2014-05-25 Thread Paul Morris
then I don't have to learn a new way to do it. So maybe the question is whether we're talking about a general shortcut for tweaking stencils, or a new command for tweaking stencils with markups. If it is only for markups then maybe the name should be less general to indicate this specifi

Re: Issue 3918: Add \alternatingTimeSignatures (issue 97110045)

2014-05-24 Thread David Kastrup
Paul Morris writes: > Thomas Morley-2 wrote >> Maybe a step in this direction: >> >> \version "2.19.6" >> >> appear = >> #(define-music-function (parser location mrkp item) >>(markup? symbol-list-or-music?) >>(let ((stil (lambda (item) >> (grob-interpret-markup item mrk

Re: Issue 3918: Add \alternatingTimeSignatures (issue 97110045)

2014-05-24 Thread David Kastrup
James writes: > On 20/05/14 19:27, David Kastrup wrote: >> Paul Morris writes: >> >>> Thought of another idea for a name: >>> >>> \substitute \markup {...} Score.TimeSignature >>> >>> But maybe it's no better than \replace, which is shorter and basically >>> conveys the same thing. >> "replace"

Re: Issue 3918: Add \alternatingTimeSignatures (issue 97110045)

2014-05-24 Thread Paul Morris
nd.org/doc/v2.18/Documentation/notation/predefined-type-predicates Cheers, -Paul -- View this message in context: http://lilypond.1069038.n5.nabble.com/Re-Issue-3918-Add-alternatingTimeSignatures-issue-97110045-tp162462p162742.html Sent from the Dev mailing list archive at Nabble.com. ___

Re: Issue 3918: Add \alternatingTimeSignatures (issue 97110045)

2014-05-22 Thread Paul Morris
raw conveys replacement by a new version. But as you said, neither of them are two-object verbs so the usage is not as natural as with \substitute. Cheers, -Paul -- View this message in context: http://lilypond.1069038.n5.nabble.com/Re-Issue-3918-Add-alternatingTimeSignature

Re: Issue 3918: Add \alternatingTimeSignatures (issue 97110045)

2014-05-22 Thread David Kastrup
Paul Morris writes: > David Kastrup wrote >>> How about "\adorn"? >> >> Less cute: \retouch. > > I like \retouch better than \adorn. So far my favorites (for what it's > worth) are \redraw, \substitute, and \replace, since I think they convey > well what the user is doing, from the user's persp

Re: Issue 3918: Add \alternatingTimeSignatures (issue 97110045)

2014-05-22 Thread Paul Morris
rspective. I think you're right that \swap is not as good, for that reason. -Paul -- View this message in context: http://lilypond.1069038.n5.nabble.com/Re-Issue-3918-Add-alternatingTimeSignatures-issue-97110045-tp162462p162693.html Sent from the D

Re: Issue 3918: Add \alternatingTimeSignatures (issue 97110045)

2014-05-21 Thread David Kastrup
David Kastrup writes: > Paul Morris writes: > >> David Kastrup wrote >>> "replace" is a bit too generic in my opinion. I rather like the flair >>> of \behold. \substitute does not seem all that bad either, however. >> >> \behold does have flair, but I think it wouldn't really convey what we'd

Re: Issue 3918: Add \alternatingTimeSignatures (issue 97110045)

2014-05-21 Thread David Kastrup
Paul Morris writes: > David Kastrup wrote >> "replace" is a bit too generic in my opinion. I rather like the flair >> of \behold. \substitute does not seem all that bad either, however. > > \behold does have flair, but I think it wouldn't really convey what we'd > want. (i.e. pointing out what

Re: Issue 3918: Add \alternatingTimeSignatures (issue 97110045)

2014-05-21 Thread Colin Campbell
On 05/21/2014 12:54 AM, James wrote: On 20/05/14 23:38, Colin Campbell wrote: On 05/20/2014 02:44 PM, James wrote: On 20/05/14 21:42, James wrote: '\behold'? hmm.. Trying to understand how you (as a non-native English speaker) comes up with 'behold' as I am not seeing the relation. Although,

Re: Issue 3918: Add \alternatingTimeSignatures (issue 97110045)

2014-05-21 Thread Paul Morris
27;s already there or revealing something hidden (like James' \et_voila!), rather than making a change.) Anyway, I thought of another one: \swap ...to stick with four-letter words like \hide and \omit. Cheers, -Paul -- View this message in context: http://lilypond.106

Re: Issue 3918: Add \alternatingTimeSignatures (issue 97110045)

2014-05-20 Thread James
On 20/05/14 23:38, Colin Campbell wrote: > On 05/20/2014 02:44 PM, James wrote: >> On 20/05/14 21:42, James wrote: >>> On 20/05/14 19:27, David Kastrup wrote: >>> "replace" is a bit too generic in my opinion. I rather like the flair of \behold. \substitute does not seem all that bad eit

Re: Issue 3918: Add \alternatingTimeSignatures (issue 97110045)

2014-05-20 Thread Colin Campbell
On 05/20/2014 02:44 PM, James wrote: On 20/05/14 21:42, James wrote: On 20/05/14 19:27, David Kastrup wrote: "replace" is a bit too generic in my opinion. I rather like the flair of \behold. \substitute does not seem all that bad either, however. '\behold'? hmm.. Trying to understand how

Re: Issue 3918: Add \alternatingTimeSignatures (issue 97110045)

2014-05-20 Thread James
On 20/05/14 21:42, James wrote: > On 20/05/14 19:27, David Kastrup wrote: >> Paul Morris writes: >> >>> Thought of another idea for a name: >>> >>> \substitute \markup {...} Score.TimeSignature >>> >>> But maybe it's no better than \replace, which is shorter and basically >>> conveys the same thi

Re: Issue 3918: Add \alternatingTimeSignatures (issue 97110045)

2014-05-20 Thread James
On 20/05/14 19:27, David Kastrup wrote: > Paul Morris writes: > >> Thought of another idea for a name: >> >> \substitute \markup {...} Score.TimeSignature >> >> But maybe it's no better than \replace, which is shorter and basically >> conveys the same thing. > "replace" is a bit too generic in my

Re: Issue 3918: Add \alternatingTimeSignatures (issue 97110045)

2014-05-20 Thread David Kastrup
Paul Morris writes: > Thought of another idea for a name: > > \substitute \markup {...} Score.TimeSignature > > But maybe it's no better than \replace, which is shorter and basically > conveys the same thing. "replace" is a bit too generic in my opinion. I rather like the flair of \behold. \s

Re: Issue 3918: Add \alternatingTimeSignatures (issue 97110045)

2014-05-20 Thread Paul Morris
Thought of another idea for a name: \substitute \markup {...} Score.TimeSignature But maybe it's no better than \replace, which is shorter and basically conveys the same thing. Cheers, -Paul -- View this message in context: http://lilypond.1069038.n5.nabble.com/Re-Issue-391

Re: Issue 3918: Add \alternatingTimeSignatures (issue 97110045)

2014-05-18 Thread Paul Morris
the explanations. -Paul -- View this message in context: http://lilypond.1069038.n5.nabble.com/Re-Issue-3918-Add-alternatingTimeSignatures-issue-97110045-tp162462p162571.html Sent from the Dev mailing list archive at Nabble.com. ___ lilypond-devel mail

Re: Issue 3918: Add \alternatingTimeSignatures (issue 97110045)

2014-05-18 Thread David Kastrup
Paul Morris writes: > David Kastrup wrote >> There is not one "code that handles overriding stencils". Overrides are >> a general mechanism. So we are talking about the code _interpreting_ >> stencils. This code will tend to be some get_property ("stencil") call. >> There are a lot of those fr

Re: Issue 3918: Add \alternatingTimeSignatures (issue 97110045)

2014-05-18 Thread Paul Morris
ither markup or stencil since it's simpler for the user, but either way would work. Cheers, -Paul -- View this message in context: http://lilypond.1069038.n5.nabble.com/Re-Issue-3918-Add-alternatingTimeSignatures-issue-97110045-tp162462p162567.html Sent from the Dev mailing list archive

Re: Issue 3918: Add \alternatingTimeSignatures (issue 97110045)

2014-05-18 Thread David Kastrup
Paul Morris writes: > Just to make sure I'm communicating my other idea (above)... you're > saying the following wouldn't work well either (but would end up an > invasive mess)? > > The code that handles overriding stencils could accept either a > stencil or a markup, and when it received a marku

Re: Issue 3918: Add \alternatingTimeSignatures (issue 97110045)

2014-05-18 Thread Paul Morris
e user. I suppose it could accept either a markup or a stencil and just pass the stencil through to the override (or tweak) if a stencil was supplied. -Paul -- View this message in context: http://lilypond.1069038.n5.nabble.com/Re-Issue-3918-Add-alternatingTimeSignatures-issue-97110045-tp162462p162562.html Sent from the Dev mailing list archive at Nabble.com. ___ lilypond-devel mailing list lilypond-devel@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-devel

Re: Issue 3918: Add \alternatingTimeSignatures (issue 97110045)

2014-05-18 Thread Thomas Morley
2014-05-17 9:17 GMT+02:00 David Kastrup : > Thomas Morley writes: > >> I think David thought of something at the lines of the following function: >> >> appearance = >> #(define-music-function (parser location mrkp item) >>(markup? symbol-list-or-music?) >> (let ((stil (lambda (item) >>

Re: Issue 3918: Add \alternatingTimeSignatures (issue 97110045)

2014-05-17 Thread David Kastrup
Paul Morris writes: > David Kastrup wrote >> You mean with regard to patches? Let's first figure out what we want to >> arrive at. Personally, I'm not really enthused about any proposal >> including my own ones yet. But maybe we can manage to find something >> making most people happier yet. >

Re: Issue 3918: Add \alternatingTimeSignatures (issue 97110045)

2014-05-17 Thread Paul Morris
; #}) \time 2/4 c'2 %{ % the following doesn't work though: % error: markup outside of text script or \lyricmode % This object should be a markup: # \override Staff.TimeSignature.stencil = \markupToStencil \markup "33" \time 2/4 c2 %} } -- View this

Re: Issue 3918: Add \alternatingTimeSignatures (issue 97110045)

2014-05-17 Thread David Kastrup
Thomas Morley writes: > I think David thought of something at the lines of the following function: > > appearance = > #(define-music-function (parser location mrkp item) >(markup? symbol-list-or-music?) > (let ((stil (lambda (item) >(grob-interpret-markup item mrkp >#

Re: Issue 3918: Add \alternatingTimeSignatures (issue 97110045)

2014-05-17 Thread David Kastrup
Urs Liska writes: > That looks good. > With a little modification (just skipping the wrapping of the > generated markup to a stencil one could still use fractionList with > that like: > > \appearance \fractionList #'(#t (6 8)(7 8)) Score.TimeSignature > > What do you think? I don't know what you

Re: Issue 3918: Add \alternatingTimeSignatures (issue 97110045)

2014-05-17 Thread David Kastrup
Urs Liska writes: > Am 16.05.2014 09:41, schrieb d...@gnu.org: >> >> Well, we have \omit already. What if we had >> \appearance [markup] [grobname or music] >> >> Which would basically be the syntactic sugar for overriding the stencil >> with an appropriate grob-interpret-markup? >> >> That way

Re: Issue 3918: Add \alternatingTimeSignatures (issue 97110045)

2014-05-17 Thread Urs Liska
Am 17.05.2014 01:51, schrieb Thomas Morley: 2014-05-17 0:38 GMT+02:00 Urs Liska : Am 16.05.2014 09:41, schrieb d...@gnu.org: Well, we have \omit already. What if we had \appearance [markup] [grobname or music] Which would basically be the syntactic sugar for overriding the stencil with an

Re: Issue 3918: Add \alternatingTimeSignatures (issue 97110045)

2014-05-16 Thread Thomas Morley
2014-05-17 0:38 GMT+02:00 Urs Liska : > Am 16.05.2014 09:41, schrieb d...@gnu.org: >> >> Well, we have \omit already. What if we had >> \appearance [markup] [grobname or music] >> >> Which would basically be the syntactic sugar for overriding the stencil >> with an appropriate grob-interpret-mark

Re: Issue 3918: Add \alternatingTimeSignatures (issue 97110045)

2014-05-16 Thread Urs Liska
Am 16.05.2014 09:41, schrieb d...@gnu.org: On 2014/05/16 07:06:46, uliska wrote: It took a while because in the meantime Peter Bjuhr joined efforts, and we implemented the option of printing hyphens between the time signatures. While I don't like this and wouldn't use it personally, it's exp

Re: Issue 3918: Add \alternatingTimeSignatures (issue 97110045)

2014-05-16 Thread dak
On 2014/05/16 07:06:46, uliska wrote: It took a while because in the meantime Peter Bjuhr joined efforts, and we implemented the option of printing hyphens between the time signatures. While I don't like this and wouldn't use it personally, it's explicitly suggested by Gould. Additional

Re: Issue 3918: Add \alternatingTimeSignatures (issue 97110045)

2014-05-16 Thread lilyliska
It took a while because in the meantime Peter Bjuhr joined efforts, and we implemented the option of printing hyphens between the time signatures. While I don't like this and wouldn't use it personally, it's explicitly suggested by Gould. Additional changes: - change to \fractionList that only re