Artificial harmonics with sounding pitch in parenthesis
Hello List is it possible to combine harmonics notation with a small stemless parenthesized note indicating the sounding pitch of a string harmonic? Something like -but also including a small stemless notehead (\tiny?) for the e'' This is common in C20th notation. I'm not familiar enough with lily tweaks and complex syntax to know how to combine these properties, so any help appreciated. Regards Tom ___ lilypond-user mailing list lilypond-user@gnu.org http://lists.gnu.org/mailman/listinfo/lilypond-user
Re: Artificial harmonics with sounding pitch in parenthesis
Thanks Jon that was really helpful. From your post and lily docs, I've cobbled together the following below, which seems to work OK, aiming to use a global variable to save some space. A question about this: is there a way to move the parenthesisation (\parenthesize) to within the global variable harmonicPitch, similary to how the small notehead is there specified, rather than having to specify both \harmonicPitch and \parenthesize in the body of the temporary voice? Any other comments regarding coding style also welcome. Regards Tom %% \version "2.12.1" harmonicPitch = { \override Stem #'stencil = ##f \override NoteHead #'font-size = #-4 } { \clef "treble" \override Staff.NoteColumn #'ignore-collision = ##t \override NoteHead #'style = #'harmonic-mixed \new Voice { b4 a << { } \\ { \harmonicPitch \parenthesize e'' } >> c' } } %% ___ lilypond-user mailing list lilypond-user@gnu.org http://lists.gnu.org/mailman/listinfo/lilypond-user
Beam collision next note's accidental within single voice
Hello list how can I move a beamed note (the e-flat below) to the right, to avoid collision of the accidental with the beam of the preceding note? I've managed to lift the beams OK by overriding the beam positions, but what's needed i think is a horizontal right shift e-flat. I've looked at posts and LM section 4.5.2. on \override NoteColumn #'force-hshift, but am thinking this only applies to multiple voices, as seems to have no effect on the below. I imagine that this is straightforward, but am fairly new to tweaks... Regards Tom \version "2.12.1" \new Staff \relative c'' { \time 3/8 d,4 ~ d32 % attempt to move eb right from LM section 4.5.2, doesn't work \once \override NoteColumn #'force-hshift = #0.5 ees'16. | } % ___ lilypond-user mailing list lilypond-user@gnu.org http://lists.gnu.org/mailman/listinfo/lilypond-user
Re: Beam collision next note's accidental within single voice
Hello Nick Nick Payne internode.on.net> writes: > Why not move the beam instead. A few choices: > > %== > \version "2.12.1" > > \new Staff \relative c'' { > \time 3/8 > d,4 ~ \once\override Beam #'damping = #+inf.0 d32 ees'16. | > d,4 ~ \once\override Beam #'positions = #'(5.5 . 6.5) d32 ees'16. | > d,4 ~ \stemDown d32 ees'16. | > } > %== Thanks for your reply Nick. The second solution was where I got to before posting, and though the third is tempting because simple, it goes against my strict self-enforced stem direction policy. I think the e-flat shifting to the right is what _should_ happen since horizontal spacing is always less strict than, say, stem legnths? So I'd be interested to know how to do a horizontal shift, or isn't that a trivial matter? Regards Tom > Nick > Behalf Of Tom Hall > > Sent: Tuesday, 13 January 2009 07:57 > > how can I move a beamed note (the e-flat below) to the right, to avoid > > collision > > of the accidental with the beam of the preceding note? > > > > I've managed to lift the beams OK by overriding the beam positions, but > > what's > > needed i think is a horizontal right shift e-flat. > > > > I've looked at posts and LM section 4.5.2. on \override NoteColumn > > #'force-hshift, but am thinking this only applies to multiple voices, > > as seems > > to have no effect on the below. > > > > Regards > > > > Tom > > > > > > > > > > \version "2.12.1" > > > > \new Staff \relative c'' { > > \time 3/8 > > d,4 ~ d32 > > % attempt to move eb right from LM section 4.5.2, doesn't work > > \once \override NoteColumn #'force-hshift = #0.5 > > ees'16. | > > } > > > > % ___ lilypond-user mailing list lilypond-user@gnu.org http://lists.gnu.org/mailman/listinfo/lilypond-user
Re: Artificial harmonics with sounding pitch in parenthesis
Carl D. Sorensen byu.edu> writes: > Yes, this is a job for scheme, because parenthesize is a music function, and > it needs to have music following it. That's why you can't move it into an > identifier. > > The custosNote example in Section 6.1.2 of the Notation Reference should > give you the pattern you need to use to define a music function > harmonicParenthesize (or hP for short, if you desire). thanks Carl, with some prodding I've now written my first lily scheme function as below, seems to work fine, was surprised that I could just plonk in \parenthesize as below. harmonicPitch = #(define-music-function (parser location note) (ly:music?) #{ \once \override Voice.Stem #'stencil = ##f \once \override Voice.NoteHead #'font-size = #-4 \parenthesize $note #}) > If you can't figure it out, ask a question or two. > > HTH, Yes indeed! Tom > Carl > ___ lilypond-user mailing list lilypond-user@gnu.org http://lists.gnu.org/mailman/listinfo/lilypond-user
tuplet bracket required, override doesn't work?
Hello List A triplet that begins with a quaver (8) rest, followed by a crotchet (4) note, by default prints no bracket. This I thought unusual, more so that an overide as below seems to make no change either. Is there a simple way to have brackkets print by default in such cases? \override TupletBracket #'bracket-visibility = ##t \times 2/3 { r8 e4 } %Build 2.12.1-1, OSX.4.11 PPC Regards Tom ___ lilypond-user mailing list lilypond-user@gnu.org http://lists.gnu.org/mailman/listinfo/lilypond-user
Re: tuplet bracket required, override doesn't work?
Thanks guys for your responses, most helpful! Regards Tom. ___ lilypond-user mailing list lilypond-user@gnu.org http://lists.gnu.org/mailman/listinfo/lilypond-user
Stopwatch time in markup
Hello List I want to print stopwatch timings in a score, surrounded by a little box. I've been through the help files and the archives of this list, but since quotation marks are special characters, it's not straight-forward and I've not managed to get this right. I'm aiming for somthing like: --- | 4'33" | --- The closest I've managed is below, but that results in 2 boxes, one surrounding 4' and the other surrounding 33". Any ideas how to get what I'm after? Regards Tom \version "2.12.1" { \mark \markup{ \rounded-box \small { 4'"33\"" } } c'2 } ___ lilypond-user mailing list lilypond-user@gnu.org http://lists.gnu.org/mailman/listinfo/lilypond-user
Re: Stopwatch time in markup
Hello Neil Neil Thornock gmail.com> writes: > See the change below: thanks for that, but it's the same difference here using your suggestion (Mac PPC X.4.11). Is it working for you? Regards Tom > > > > \version "2.12.1" > { > \mark \markup \rounded-box { \small { 4'"33\"" } > } > c'2 > } > ___ lilypond-user mailing list lilypond-user@gnu.org http://lists.gnu.org/mailman/listinfo/lilypond-user
utf-8 characters
Hello List I understand the way to put special characters into markup is as below (from Mark's reply to the stopwach question below - although missing the struck out letters - read on). But how do I strike out the "char" part in LilyPond (Mac X.4.11)? Unlike, other charcters, like 中, for example, it doesn't seem possible to cut and paste these struck out letters into the lily editor. Excuse this basic question, but I can't spot references to this issue in the lily docs. Regards Tom min = \markup { %% 2032 = PRIME #(ly:export (format "~a" (ly:wide-char-≥utf-8 #x2032))) } ___ lilypond-user mailing list lilypond-user@gnu.org http://lists.gnu.org/mailman/listinfo/lilypond-user
Re: utf-8 characters
James E. Bailey googlemail.com> writes: > > There may be an easier way. In osx, you have utf-8 on by default. So > you don't need to use the lilypond special of inserting utf-8 > characters. Which, by the way, mark's way I don't understand, it uses > scheme. The easier way is to just use \markup \concat { 4/char ##x2032 } > But, since on osx, you have utf8 on by default, you should just be > able to copy and paste something from the character palette directly > into the editor. > { > \mark \markup \rounded-box { > \small { > 4′33″ > } > } c'2 > } Hmm, trying the code directly above, gives me the following error (3 times) (process:398): Pango-WARNING **: Error loading GDEF table 28333 I also get an error as follows when trying the code below: Regards Tom error: syntax error, unexpected SCM_TOKEN \concat { 4/char ##x2032 } %% { \mark \markup \rounded-box { \small { \concat { 4/char ##x2032 } } } c'2 } ___ lilypond-user mailing list lilypond-user@gnu.org http://lists.gnu.org/mailman/listinfo/lilypond-user
Re: utf-8 characters
James E. Bailey googlemail.com> writes: Hello James > > I also get an error as follows when trying the code below: > > > > Regards > > > > Tom > > > > > > error: syntax error, unexpected SCM_TOKEN > > \concat { 4/char > > ##x2032 } > > > > %% > > > > { > > \mark \markup \rounded-box { > > \small { > > \concat { 4/char ##x2032 } > > } > > } c'2 > > } > > this would probaly be due to using a forward slash instead of a > backwards slash in front of char yes, careless typo, however the below also gives an error Regards Tom { \mark \markup \rounded-box { \small { \concat { 4\char ##x2032 } } } c'2 } error: (process:440): Pango-WARNING **: Error loading GDEF table 28333 ... Wrong number of arguments to # ___ lilypond-user mailing list lilypond-user@gnu.org http://lists.gnu.org/mailman/listinfo/lilypond-user
Re: Stopwatch time in markup
Ole Schmidt gmx.net> writes: > > when I move the brace: > % > \version "2.12.1" > > { > \mark \markup { \rounded-box > \small \concat { 4' 33'' } > } c'2 > } > % > > it works but not with the prime and double prime characters copy and pasted in, that gives the Pango-WARNING error I've mentioned in the utf-8 characters thread. tom { \mark \markup { \rounded-box \small \concat { 4′33″} } c'2 } > ole > > Am 24.01.2009 um 11:31 schrieb James E. Bailey: > > That's odd, there are extra spaces in there too. What if you try just > copying and pasting in the ′ and ″ characters? Or what about using > \char ##x2032? Does that help? > Am 24.01.2009 um 11:04 schrieb Ole Schmidt: > ___ lilypond-user mailing list lilypond-user@gnu.org http://lists.gnu.org/mailman/listinfo/lilypond-user
Re: utf-8 characters
James E. Bailey googlemail.com> writes: > > { > > \mark \markup \rounded-box { > > \small { > > \concat { 4\char ##x2032 } > > } > > } c'2 > > } > > > > error: > > > > (process:440): Pango-WARNING **: Error loading GDEF table 28333 > > > > ... > > > > Wrong number of arguments to # > (name file-name > > font-index)> > Oh yeah, that's a problem. Apparently it's been fixed, it's just not > in the distributed binary. There's a thread on the list that shows > how to fix it. Thanks James, fixing the .scm file as indicated in your Stopwatch time in markup post did the trick, so that the below now works fine. Regards Tom \version "2.12.1" { \mark \markup { \rounded-box \small \concat { 4\char ##x2032 33 \char ##x2033 } } c'1 | \mark \markup { \rounded-box \small \concat { 4′33″ } } d'1 } % ___ lilypond-user mailing list lilypond-user@gnu.org http://lists.gnu.org/mailman/listinfo/lilypond-user
Re: Stopwatch time in markup
Hello Mark Mark Polesky yahoo.com> writes: > Don't forget you can store all the formatting as a music-function: ... > { c'1 \timestamp #4 #33 c' } Thanks very much Mark, for this. I had been trying to make just such a function earlier today, after reading through 6.1.3 Paired substitution functions, so am very pleased you've shown how to do this! I think this could go in as a snippet under this part of the manual? Regards Tom > > - Mark ___ lilypond-user mailing list lilypond-user@gnu.org http://lists.gnu.org/mailman/listinfo/lilypond-user
Re: Stopwatch time in markup
Hello Mark Mark Polesky yahoo.com> writes: > Don't forget you can store all the formatting as a music-function: > > { c'1 \timestamp #4 #33 c' } This works well for most times, except when secs <10 { c'1 \timestamp #4 #03 c' } Here 03 gets passed in as an integer of 3 I guess so the result looks not so good: 4"3' WOuld you know how to add to the func a way to pad a zero in case of situations like the above? Any other thoughts? Regards Tom > - Mark > > > ___ lilypond-user mailing list lilypond-user@gnu.org http://lists.gnu.org/mailman/listinfo/lilypond-user
Re: Stopwatch time in markup
OK, I'll do it this way, the arguments to the music-fn are now strings and not integers, so no integer-> string conversion needed. It would be better to still use integers and then pad a 0 where required, but I'm not sure how to do this. stopwatch = #(define-music-function (parser location minutes seconds) (string? string?) #{ \mark \markup \rounded-box \small \concat { $minutes \char ##x2032 $seconds \char ##x2033 } #}) { c'1 \stopwatch #"4" #"03" c' } ___ lilypond-user mailing list lilypond-user@gnu.org http://lists.gnu.org/mailman/listinfo/lilypond-user
vertical system spacing -adjusting only selected systems
Hello List I have a piece of music for a solo (single stave) instrument, with about 10 systems per page. Of those, I use \bar "||" \break for about two systems per page, and wish to add additional space/padding before the next system in those cases (these breaks separate subsections of the piece that still occur on the same page). How best to do this? Notation Ref. 4.4.2 Vertical spacing between systems doesn't seem relevant, as applies to _all_ systems? 4.4.3 Explicit staff and system positioning seems to mean that I'll need to set the explicit position for each of my (say) 10 staves, including working out line breaks for each, and, I guess, page breaks too? Is there an easier way to overide default system break spacing for only selected systems? Any other thoughts about how I could go about this? Regards Tom ___ lilypond-user mailing list lilypond-user@gnu.org http://lists.gnu.org/mailman/listinfo/lilypond-user
longfermata over measure rest?
Hello List \fermataMarkup does the trick for a regular fermata over a measure rest, is there something like \longfermataMarkup ? Any other way to do this ? Regards Tom ___ lilypond-user mailing list lilypond-user@gnu.org http://lists.gnu.org/mailman/listinfo/lilypond-user
"ignoring between-system-padding"
Hello List I have a generous between-system-padding = #6 for my score, but this gets overriden when the pdf is created, with the following message: warning: Can't fit systems on page -- ignoring between-system-padding Is there a way to maintain the system padding I want, at the expense of how many pages are required? Regards Tom ___ lilypond-user mailing list lilypond-user@gnu.org http://lists.gnu.org/mailman/listinfo/lilypond-user