Re: left pointing note heads
2015-09-29 2:43 GMT+02:00 johan buelens: > > hi, > > allow me to introduce myself: i’m a newbie to the third power, namely to > this list, to lilypond, and to taiko drumming. > > (so bear with me … ) > > the japanese art of drumming has always been an oral tradition, nothing was > ever written down — not the techniques, nor the music. but westerners tend > to favor written music, so many taiko teachers outside of japan invented > their own notation. > > my teachers’s notation, however, looks to me rather like a rube goldberg > solution looking for a problem … > > so i turned to lilypond and at first glance, the tambourine notation looked > the part. however, kumi-daiko is highly stylised, and it is very important > to strike the drum with the left or right hand at certain times. the > notation i found in other persussion styles consists in adding the letters > "R" or "L" above each note, but this gets confusing in fast passages. (and > it is not very universal, as french speaking people for instance would > certainly only understand "D" or "G" …) > > i looked at different notations, for instance adding ">" or "<" above the > notes to depict the right or left hand, but this also gets busy, and > conflicts with other uses of these signs. > > so i thought about pointing the heads of the notes to the left or the right, > which seems quite intuitive. (remember that this notation is intended to be > used by many people who have never seen, let understood, a music score. so > the simpler, the better.) > > if the note heads or the note stems should remain aligned over the staves, i > don’t know yet, although i’m inclined to the latter method. > > i looked at the feta font, but found no left pointing note heads. > > i tried stencils, but didn’t succeed (remember i’m an absolute beginner). > > any ideas would be greatly appreciated. > > (and if i didn’t express myself clearly enough, i’ll post some photoshoped > examples to illustrate my point.) > > best regards, > > johan buelens How about: \version "2.19.28" flip-nh = \override NoteHead.stencil = #(lambda (grob) (ly:grob-set-property! grob 'stem-attachment (cons (car (ly:grob-property grob 'stem-attachment)) (- (cdr (ly:grob-property grob 'stem-attachment) (flip-stencil X (ly:note-head::print grob))) { \flip-nh c''2 c''8 c''[ c'' c''] \stemUp c''2 c''8 c''[ c'' c''] } Cheers, Harm ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: Polymetric setup and volta repeat with alternatives
Quoting Simon Albrecht (simon.albre...@mail.de): > these two don’t seem to go well together: > If Timing_translator and Default_bar_line_engraver are moved to > Staff context, no repeat bar lines are printed and the gap between > the Volta brackets disappears. Moving the > Repeat_acknowledge_engraver along fixes the bar lines, but prints no > Volta brackets at all. > > Is this due to wrong usage or a bug? I think you need to move the Volta_engraver too. Cheers, David. ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: How to write slurs and ties with scheme
2015-09-30 4:40 GMT+02:00 Rachael Thomas: > On Tue, Sep 29, 2015 at 4:33 PM, David Kastrup wrote: >> >> Thomas Morley writes: >> >> > 2015-09-29 12:26 GMT+02:00 David Kastrup : >> >> >> >> At the current point of time, slurs are only from one chord in a Voice >> >> to the next chord in a Voice. So you'd need to put your notes into >> >> different Voice contexts in order to be able to slur them individually. >> >> However, Stems are strictly a single-Voice phenomenon. So you need to >> >> put your notes in the same Voice. >> >> > >> > I'm thinking about the problem for some time now. >> > Another part of the problem is that most occurences of slurs in >> > TabStaff with \tabFullNotation are not really Slurs but what is called >> > 'hammering on'/'pulling off'. > > > Yes. Colloquially called hammering-on/pulling-off. Classical guitarists > (not me) call them ascending and descending slurs, respectively. > >> >> I'm currently working on making in-chord ties work (if you have more >> than one tie at the same time, you'd still need to work with >> spanner-id). Annoyingly complex to get right without causing too much >> of a performance hit. > > > Thank you for your good work! > > The composition that I am working on is in a different tuning. For the > purposes of a minimal example I changed the tuning to standard. > > I didn't realize that you tieWaitForNote allows you to call the tie function > within a chord. Here is a possible fix: > > \version "2.18.2" > > \new TabStaff { > \tabFullNotation > \set tieWaitForNote = ##t > < bis'\1 g\4 \tweak TabNoteHead.color #white \tweak > TabNoteHead.layer #-1 d\4~>16[ < fis'\2 > ees\5> < g\3 d\4>] > } > > ( look at that beautiful slur!) > This minimal example doesn't cause any errors however within the larger > transcription I am getting the following error: > > programming error: Tie without heads. Suicide > continuing , cross fingers > > I don't understand this error. It doesn't really seem to affect anything > though. So I don't exactly mind it. > > What do you think? > > Rachael Carlson > > PS. The composition that I am working on is called "Madrid" by Stefano > Barone. The transcription that you get when you buy it from him desperately > needs to be redone with an eye towards detail. (A lot of the composition is > in 10/16 and 14/16. The transcription writes it in 5/4 which makes it > really difficult to read.) > > https://youtu.be/vWs1OdnsJNM Here another thought, hijacking Glissando this time. It will cause ugly output for usual Staff and it's not nice to create all those Glissandi for a chord and throw away all not needed. And ofcourse still some limitations... \version "2.19.28" %% Mostly taken from: %% https://sourceforge.net/p/testlilyissues/issues/3088/ %% https://code.google.com/p/lilypond/issues/detail?id=3088 %% Thanks Jan %% FIXME: c from stencil.scm -- define-public and remove copy #(define (make-bezier-sandwich-stencil coords thick xext yext) (let* ((command-list `(moveto ,(car (list-ref coords 3)) ,(cdr (list-ref coords 3)) curveto ,(car (list-ref coords 0)) ,(cdr (list-ref coords 0)) ,(car (list-ref coords 1)) ,(cdr (list-ref coords 1)) ,(car (list-ref coords 2)) ,(cdr (list-ref coords 2)) curveto ,(car (list-ref coords 4)) ,(cdr (list-ref coords 4)) ,(car (list-ref coords 5)) ,(cdr (list-ref coords 5)) ,(car (list-ref coords 6)) ,(cdr (list-ref coords 6)) closepath))) (ly:make-stencil `(path ,thick `(,@' ,command-list) 'round 'round #t) xext yext))) %% FIXME: rewrite generic wrt axes and replace make-parenthesis-stencil #(define (make-bow-stencil width height thickness angularity) "Create a bow stencil. @var{width} is the width of the bow markup. @var{thickness} is the thickness of the bow. @var{height} is the heigth of the bow. The higher the value of number @var{angularity}, the more angular the shape of the bow." (let* ((line-width 0.1) (base-x (if (< width 0) (- width) 0)) (base-y (if (< height 0) (- height) 0)) (x-extent (ordered-cons 0 width)) (y-extent (ordered-cons 0 height)) (left-x (interval-start x-extent)) (right-x (interval-end x-extent)) (inner-y 0) (outer-y height) (left-end-point (cons left-x inner-y)) (right-end-point (cons right-x inner-y)) (outer-control-y (+ inner-y (* 4/3 outer-y))) (inner-control-y (+ outer-control-y (if (< height 0) thickness (-
Re: Polymetric setup and volta repeat with alternatives
2015-09-29 23:03 GMT+02:00 Simon Albrecht: > Hello, > > these two don’t seem to go well together: > If Timing_translator and Default_bar_line_engraver are moved to Staff > context, no repeat bar lines are printed and the gap between the Volta > brackets disappears. Moving the Repeat_acknowledge_engraver along fixes the > bar lines, but prints no Volta brackets at all. > > Is this due to wrong usage or a bug? > > Thanks, Simon More a documentation issue. Needs to be done for "Volta_engraver" as well. Cheers, Harm ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: left pointing note heads
Hi Johan, How about this as a base to start from? Obviously you can play around with the ellipticity and shape and fill of the noteheads to your hearts content. This gives the different directions you are wanting. Andrew — snip \version "2.19.28" #(define right-pointing-notehead (lambda (grob) (let* ((duration (ly:grob-property grob 'duration-log)) (filled? (if (> duration 1) #t #f)) (stil-1 (make-partial-ellipse-stencil 0.65 0.26 10 10 0.15 #t filled?)) (stil-2 (ly:stencil-rotate stil-1 45 0 0)) ) stil-2))) #(define left-pointing-notehead (lambda (grob) (let* ((duration (ly:grob-property grob 'duration-log)) (filled? (if (> duration 1) #t #f)) (stil-1 (make-partial-ellipse-stencil 0.65 0.26 10 10 0.15 #t filled?)) (stil-2 (ly:stencil-rotate stil-1 -45 0 0)) ) stil-2))) lh = { \override NoteHead.stencil = #right-pointing-notehead \override NoteHead.stem-attachment = #'(0.8 . 0.5) } rh = { \override NoteHead.stencil = #left-pointing-notehead \override NoteHead.stem-attachment = #'(-0.5 . 0.5) } \drums { \stemDown \lh bd4 bd \rh bd bd \lh bd \rh bd \lh bd \rh bd } — snip > On 30 Sep 2015, at 07:20, johan buelenswrote: > > ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
TuxGuitar Export
Hello I believe you have misunderstood something. There really is no need to use any older version of lilypond. If your TuxGuitar installation exports lilypond code meant for older versions than the present (stable: 2.18.2, development: 2:19.29), you can just use the convert-ly script. -- yours, Villum Sejersen Nørregade 1 A DK-4500 Nykøbing Sjælland mobil +45 30 34 03 44 ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: left pointing note heads
How about : \version "2.18.2" \layout { ragged-right = ##f } #(define mydrums '((kumi-daiko default #t 0))) kumi-daiko-staff = { \override Staff.StaffSymbol.line-positions = #'( 0 ) \override Staff.BarLine.bar-extent = #'(-1.5 . 1.5) \set DrumStaff.instrumentName = #"Kumi-daiko" } %% Flip noteheand: #(define-markup-command (flip layout props arg) (markup?) (interpret-markup layout props (markup #:concat (#:null #:scale (cons -1 1) #:line (arg) fl = { \once\override NoteHead.stencil = #(lambda (grob) ly:note-head::print (grob-interpret-markup grob #{ \markup \flip \musicglyph #"noteheads.s2" #})) \once\override NoteHead.stem-attachment = #'(-0.7 . 0.3) } \new DrumStaff { \kumi-daiko-staff \set DrumStaff.drumStyleTable = #(alist->hash-table mydrums) \drummode { tt4*4 \fl tt tt \fl tt tt4*2 \fl tt tt \fl tt } } Cheers, ~Pierre 2015-09-29 10:01 GMT+02:00 Andrew Bernard: > Hi Johan, > > By coincidence I saw a taiko drum performance live a couple of days ago. > > Lilypond does not do notehead direction changes out of the box. But > lilypond can be programmed to do pretty much anything. At the Lilypond > Snippet Repository there is an example of how to reposition note heads to > the opposite sides. > > http://lsr.di.unimi.it/LSR/Item?id=861 > > > Andrew > > > > ___ > lilypond-user mailing list > lilypond-user@gnu.org > https://lists.gnu.org/mailman/listinfo/lilypond-user > > ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
There used to be a way... dynamics in Midi
As I have evolved using LP I've become very modular. One of the last things I was working on before my computer crash was a serial/tone row thing, so that's where I picked up. So I have my upper and lower parts, and a drum part...I remember that there was a way to assign dynamics to each part, so the upper part would come in at mf, while the lower part starts at mp...and at bar 21 the upper part has become p, and the lower part is a mf Does this make sense to anybody? my score block... \score { << % score layout \context Voice = "one" { \set Staff.midiInstrument = #"flute" \transpose c c' \vcTwo } \context Voice = "two" { \set Staff.midiInstrument = #"bassoon" \transpose c c, \vcOne } \new DrumStaff << \new DrumVoice { \voiceOne \dh } \new DrumVoice { \voiceTwo \dl } >> >> %\layout { \context { \Staff \RemoveEmptyStaves } } \midi { \tempo 4 = 144 } } -- View this message in context: http://lilypond.1069038.n5.nabble.com/There-used-to-be-a-way-dynamics-in-Midi-tp181832.html Sent from the User mailing list archive at Nabble.com. ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: Cue notes; this has gone too far.
2015-09-30 16:07 GMT+02:00 Pierre-Luc Gauthier: > Hello there, > > I am not sure if it is a bug or a misuse on my part but I am trying to > use cue notes. > In the example bellow, if the melody *starts* with cue notes, the > format stays with the "normal" notes. > Any thoughts? The NR states: " Note: When a Voice starts with cueDuring, as in the following example, the Voice context must be explicitly declared, or else the entire music expression would belong to the CueVoice context. [...] " > -- > Pierre-Luc Gauthier > > > \version "2.19.27" > \language "english" > > quotedStuff = \relative c''' { > r4 bf4 r8 bf-- | > R1*10 > } > \addQuote "quoteMe" { \quotedStuff } > > melody = \relative c' { > \new CueVoice { \set instrumentCueName = "Quoted from…" } > \cueDuring #"quoteMe" #UP { > R1 > } > > %This should not typeset in quote style > r4-"Stuff to be played as is" ef\upbow( f) r | > } > > \score { \new Staff \new Voice \melody > } > > HTH, Harm ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: Cue notes; this has gone too far.
Pierre-Luc Gauthierwrites: > Hello there, > > I am not sure if it is a bug or a misuse on my part but I am trying to > use cue notes. > In the example bellow, if the melody *starts* with cue notes, the > format stays with the "normal" notes. > Any thoughts? Well, you don't start a Voice context of your own. LilyPond just sticks with any old Bottom context it can find then, and that happens to be your CueVoice context. So you probably should explicitly put your melody in a \new Voice. -- David Kastrup ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: Cue notes; this has gone too far.
Hello, The notes’s size is that of cue notes all along, in fact, as shown by removing the CueVoice altogether. JM > Le 30 sept. 2015 à 16:07, Pierre-Luc Gauthiera > écrit : > > Hello there, > > I am not sure if it is a bug or a misuse on my part but I am trying to > use cue notes. > In the example bellow, if the melody *starts* with cue notes, the > format stays with the "normal" notes. > Any thoughts? > -- > Pierre-Luc Gauthier > > > \version "2.19.27" > \language "english" > > quotedStuff = \relative c''' { > r4 bf4 r8 bf-- | > R1*10 > } > \addQuote "quoteMe" { \quotedStuff } > > melody = \relative c' { > \new CueVoice { \set instrumentCueName = "Quoted from…" } > \cueDuring #"quoteMe" #UP { >R1 > } > > %This should not typeset in quote style > r4-"Stuff to be played as is" ef\upbow( f) r | > } > > \score { > \new Staff \melody > } > > > ___ > lilypond-user mailing list > lilypond-user@gnu.org > https://lists.gnu.org/mailman/listinfo/lilypond-user ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: Cue notes; this has gone too far.
On 30 September 2015 at 16:07, Pierre-Luc Gauthierwrote: > > Hello there, > > I am not sure if it is a bug or a misuse on my part but I am trying to > use cue notes. > In the example bellow, if the melody *starts* with cue notes, the > format stays with the "normal" notes. > Any thoughts? Hi, I have experienced this also. Simply replace your \new Staff \melody by \new Staff \new Voice \melody . ;-D That's because you rely on LilyPond to instantiate your normal voice, but it won't if you instantiate a CueVoice at the beginning of the piece. Cheers, Xavier -- Xavier Scheuer ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Asyldebatte im Bundestag: "Die Gesetze macht bei uns nicht der Prophet"
Asyldebatte im Bundestag: "Die Gesetze macht bei uns nicht der Prophet" http://www.spiegel.de/politik/deutschland/asylgesetz-thomas-de-maiziere-verteidigt-aenderungen-a-1055631.html De Maizière forderte von den Zuwanderern eine "Anerkennungskultur" - sie müssten die "Rechts- und Wertekultur" in Deutschland akzeptieren. Dazu gehöre auch, sich nicht zu prügeln. Am Mittwoch hatte es in einer Flüchtlingsunterkunft erneut eine Massenschlägerei gegeben. ... Parteikollege Strobl sagte, "die Gesetze macht bei uns in Deutschland nicht der Prophet, die macht bei uns in Deutschland das Parlament". Die vom Sonnendeck haben den Kontakt zur Realität völlig verloren, oder den Verstand oder wahrscheinlich sogar Beides! Flüchtlingskrise: Merkels Machtprobe http://www.spiegel.de/politik/deutschland/fluechtlingskrise-angela-merkel-ist-nicht-mehr-unantastbar-a-1055438.html ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: left pointing note heads
or %% % Stem Ri = { \once \override Stem.extra-offset = #(lambda (grob) (if (eq? (ly:grob-property grob 'direction) right) '(0 . 0) '(1.168 . -.05))) % rotate head \once \override NoteHead.rotation = #'(-58 0 0) } % Done %%% { c'' \Ri c'' } Stephen ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Stacked letters in markup
Sorry, I have to ask this *without* looking for a solution before. Just don't have any time left this time: How can I overlay letters in lyrics? I want to print two "D"s that overlap, one left-top, the other bottom-right. The default symbol for a double dominant. TIA and sorry again Urs ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Repeat with alternatives
Dear Sir / Madam, I’m trying to write a piece that has repeats with alternatives. It seems that “\repeat volta 2” is the way to go with supplying the alternatives in “\alternative”. However, this seems to work only for alternative endings, while I have alternative middle parts. I have tried to fix this manually with introducing volta brackets and repeat signs. Unfortunately Lilypond doesn’t recognize this as a repeat and counts the notes of the alternatives as if they are all played in one run (so that the first note after the alternatives does not start a new measure, as it should, see attachment). Hope you can help me. Kindest regards, Stan Korzilius example.ly Description: Binary data example.pdf Description: Adobe PDF document ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: Asyldebatte ... wrongly adressed mail - Sorry
Sorry for wrongly adressed mail! The links of some newspaper aricles should have been mailed to a friend. I would ask you to delete - it is absolutely off topic! On 01.10.2015 12:41, BB wrote: ... ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: Repeat with alternatives
On Wed, 2015-09-30 at 15:22 +0200, s.p.korzil...@gmail.com wrote: > Dear Sir / Madam, > > > > I’m trying to write a piece that has repeats with alternatives. It > seems that “\repeat volta 2” is the way to go with supplying the > alternatives in “\alternative”. However, this seems to work only for > alternative endings, while I have alternative middle parts. > > > > I have tried to fix this manually with introducing volta brackets and > repeat signs. Unfortunately Lilypond doesn’t recognize this as a > repeat and counts the notes of the alternatives as if they are all > played in one run (so that the first note after the alternatives does > not start a new measure, as it should, see attachment). I don't know whether this is the approved way, but Denemo uses this syntax \set Timing.measurePosition = #(ly:make-moment -1/2) to indicate that the second time bar is only half a bar. (This example is for half a bar in 4/4 time). I think for hand-written LilyPond you should be using the \repeat volta ... {} \alternative {} etc style syntax (the only reason Denemo doesn't output that by default is that often the users do not look at the LilyPond and then get in a mess through failing to open and close the repeat). HTH Richard > > > Hope you can help me. > > > > Kindest regards, > > > > Stan Korzilius > > > ___ > lilypond-user mailing list > lilypond-user@gnu.org > https://lists.gnu.org/mailman/listinfo/lilypond-user ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: Stacked letters in markup
On 01.10.2015 15:33, Urs Liska wrote: Sorry, I have to ask this *without* looking for a solution before. Just don't have any time left this time: How can I overlay letters in lyrics? I want to print two "D"s that overlap, one left-top, the other bottom-right. The default symbol for a double dominant. How about this: \markup { \combine D \translate-scaled #'(.5 . .27) D } The numbers are somewhat random, #'(.4 . .2) also looks good, though less clear perhaps. (Translate-scaled makes it robust against font size changes.) Yours, Simon ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: Scheme function to output \bookpart {} ?
On 30.09.2015 01:28, Thomas Morley wrote: Could you post a fully compilable example for follow readers? Here’s a demo file showing the entire framework in action (since you seemed to be interested in more detail, I included all of it (except for style-sheet information), resulting in quite a lot of code). I’m working on a work by di Lasso with nine pieces divided in two or three ‘partes’ each; the framework is designed such as to give the possibility of printing any selection of _parts_ (i.e. voices), partes and pieces. For the latter, just use multiple \include "scoreN.ily" in your print.ly file. I don’t want to include the actual music, so I made a small, dummy example showing the use of some features. Uncomment the respective lines from the \scoreBox function definition to use it for SATB. I hope it becomes clear how the includes are nested; there are some TODOs, most notably I must stop using addlyrics, because it center-aligns syllables for melismata – that’s the only bug that I know of. Thanks to everybody for any help which allowed me to make this really useful setup. Yours, Simon \version "2.19.27" %% from library/scm-utility.ily #(define moment->duration (lambda (mom) (if (not (= 0 (ly:moment-grace mom))) (ly:warning "ly:moment->duration omits grace timing")) (ly:make-duration 0 0 (ly:moment-main mom #(define duration-normalize (lambda (dur) (moment->duration (ly:duration-length dur #(define music-length-diminish (lambda (mu ra) (ly:moment-sub (ly:music-length mu) (ly:make-moment ra #(define music-is-not-empty? (lambda (m) (not (equal? (ly:make-moment 0) (ly:music-length m) library/editorial.ily \version "2.18" %{ With version 2.18.x, \ed Rest and \ed Mmr need the music expression to be enclosed into {}. From 2.19.x on (at least .8), this is not required anymore. %} editorsColor = #grey ed = #(define-music-function (parser location grob col mus) (symbol-list-or-symbol? (color? editorsColor) ly:music?) ;; for abbreviations, we need a symbol instead of a one-element list (let ((grob (if (and (list? grob) (= 1 (length grob))) (car grob) grob))) (case grob ;; define abbreviations ;; which call the function recursively with a value ;; leading into the (else) clause ;; (or to _another_ abbreviation) ;; be careful to avoid infinite recursion :-) ;; â abbreviation names must not be actual grob names ;; (at least if theyâre used in the corresponding ;; clause) or recursion will be infinite also ;; It is recommended to use singular forms only ;; for abbreviations. ((Acc) #{ \ed Staff.Accidental \ed Staff.AccidentalCautionary \ed Staff.AccidentalSuggestion $mus #}) ((Caut) #{ \ed Staff.AccidentalCautionary $mus #}) ((LedgerLine) #{ % barline is workaround to issue 3949 \once\hide Score.BarLine \once\hide Score.SpanBar \bar "|" \stopStaff \ed Staff.LedgerLineSpanner { \startStaff $mus \stopStaff } \once\hide Score.BarLine \once\hide Score.SpanBar \bar "|" \startStaff #}) ((Lyrics) #{ \ed LyricText \ed LyricHyphen \ed LyricExtender $mus #}) ((Mmr) #{ \ed MultiMeasureRest $mus #}) ((Note) #{ \ed Staff.Accidental \ed Beam \ed Dots \ed Flag %\ed LedgerLine \ed NoteHead \ed Rest \ed Stem $mus #}) ((Pitch) #{ \ed NoteHead $mus #}) ((Suggest) #{ \ed Staff.AccidentalSuggestion $mus #}) ((StemWithFlag) #{ \ed Stem \ed Flag $mus #}) ((Tuplet) #{ \ed TupletNumber \ed TupletBracket $mus #}) ;; ânormalâ case (else #{ \override $grob . color = #col \override $grob . layer = -1 $mus \revert $grob . color \revert $grob . layer #} ted = #(define-music-function (parser location col mus) ((color? editorsColor) ly:music?) #{ \tweak color #col $mus #}) %{ \relative { \ed Note { c'8 d16. e32 fis g a16 r bes } \ed Script e,2\trill \ed Mmr { R1 } % brackets not required anymore in v.2.19.x } %} suggest = #(define-music-function (mus) (ly:music?) (ed 'Acc mus)) suggestNot = #(define-music-function (mus) (ly:music?) #{ \omit Staff.Accidental \omit Staff.AccidentalCautionary \omit Staff.AccidentalSuggestion $mus \undo\omit Staff.Accidental \undo\omit Staff.AccidentalCautionary \undo\omit Staff.AccidentalSuggestion #}) %% printI.ly % load personal library files %
Re: Repeat with alternatives
On Thu, 2015-10-01 at 12:40 -0500, Tim McNamara wrote: > > On Sep 30, 2015, at 8:22 AM, s.p.korzil...@gmail.com wrote: > > > > Dear Sir / Madam, > > > > I’m trying to write a piece that has repeats with alternatives. It seems > > that “\repeat volta 2” is the way to go with supplying the alternatives in > > “\alternative”. However, this seems to work only for alternative endings, > > while I have alternative middle parts. > > > > I have tried to fix this manually with introducing volta brackets and > > repeat signs. Unfortunately Lilypond doesn’t recognize this as a repeat and > > counts the notes of the alternatives as if they are all played in one run > > (so that the first note after the alternatives does not start a new > > measure, as it should, see attachment). > > Yes. You are starting the alternative in the middle of the bar which, from > the perspective of the musician reading the piece, is going to look very odd > and be hard to follow. Are you sure? I recall this (repeat-half-bars) being quite a normal notation ... Richard > The alternatives should always be full bars not only for Lilypond to > function correctly but for the musicians to be able to play it correctly > without needing a lot of instruction. > > The updated file here corrects the issue and is more readable: > > > ___ > lilypond-user mailing list > lilypond-user@gnu.org > https://lists.gnu.org/mailman/listinfo/lilypond-user ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: Stacked letters in markup
Hi Urs, double dominant symbol as ready-to-use markup: http://lsr.di.unimi.it/LSR/Item?id=967 overlay function: http://lsr.di.unimi.it/LSR/Item?id=628 HTH, Klaus -- View this message in context: http://lilypond.1069038.n5.nabble.com/Stacked-letters-in-markup-tp181856p181857.html Sent from the User mailing list archive at Nabble.com. ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: Stacked letters in markup
Or even : \markup\concat { "D" \hspace #-1.2 \lower #.5 "D" } P. 2015-10-01 19:42 GMT+02:00 Pierre Perol-Schneider < pierre.schneider.pa...@gmail.com>: > Hi Urs, > > How about: > > \markup\concat { > "D" > \hspace #-1.2 > \translate #'(0 . -.5) > "D" > } > > Cheers, > Pierre > > 2015-10-01 15:33 GMT+02:00 Urs Liska: > >> Sorry, I have to ask this *without* looking for a solution before. Just >> don't have any time left this time: >> >> How can I overlay letters in lyrics? I want to print two "D"s that >> overlap, one left-top, the other bottom-right. The default symbol for a >> double dominant. >> >> TIA and sorry again >> Urs >> >> ___ >> lilypond-user mailing list >> lilypond-user@gnu.org >> https://lists.gnu.org/mailman/listinfo/lilypond-user >> > > ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: Stacked letters in markup
> Message: 1 > Date: Thu, 1 Oct 2015 15:33:51 +0200 > From: Urs Liska> To: lilypond-user > Subject: Stacked letters in markup > Message-ID: <560d363f.9010...@openlilylib.org> > Content-Type: text/plain; charset=utf-8 > > Sorry, I have to ask this *without* looking for a solution before. Just > don't have any time left this time: > > How can I overlay letters in lyrics? I want to print two "D"s that > overlap, one left-top, the other bottom-right. The default symbol for a > double dominant. > How about: \version "2.19.26" music = \relative c'' { c d e f } Lyrics = \lyricmode { \markup { \raise #.5 D \hspace #-1.8 \raise #-.5 D } } \score { \new Staff \music \addlyrics \Lyrics } ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: There used to be a way... dynamics in Midi
I've figured it out, and it's probably the same as in my way-back machine. Now the skill will be writing good, accurate dynamics. Here's my score block, with dynBass and dynDrums my dynamics variables. And yes, I know I have the first context as voice two... \score { << \context Voice = "two" { <<\set Staff.midiInstrument = #"acoustic bass" \bass \dynBass>> } \new DrumStaff << \new DrumVoice { \voiceOne <<\dh \dynDrums>> } \new DrumVoice { \voiceTwo <<\dl \dynDrums>> } >> >> %\layout { \context { \Staff \RemoveEmptyStaves } } \midi { \tempo 4 = 144 } } -- View this message in context: http://lilypond.1069038.n5.nabble.com/There-used-to-be-a-way-dynamics-in-Midi-tp181832p181858.html Sent from the User mailing list archive at Nabble.com. ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: Repeat with alternatives
> On Sep 30, 2015, at 8:22 AM, s.p.korzil...@gmail.com wrote: > > Dear Sir / Madam, > > I’m trying to write a piece that has repeats with alternatives. It seems that > “\repeat volta 2” is the way to go with supplying the alternatives in > “\alternative”. However, this seems to work only for alternative endings, > while I have alternative middle parts. > > I have tried to fix this manually with introducing volta brackets and repeat > signs. Unfortunately Lilypond doesn’t recognize this as a repeat and counts > the notes of the alternatives as if they are all played in one run (so that > the first note after the alternatives does not start a new measure, as it > should, see attachment). Yes. You are starting the alternative in the middle of the bar which, from the perspective of the musician reading the piece, is going to look very odd and be hard to follow. The alternatives should always be full bars not only for Lilypond to function correctly but for the musicians to be able to play it correctly without needing a lot of instruction. The updated file here corrects the issue and is more readable: Example Updated.ly Description: Binary data Example Updated.pdf Description: Adobe PDF document ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: Stacked letters in markup
Hi Urs, How about: \markup\concat { "D" \hspace #-1.2 \translate #'(0 . -.5) "D" } Cheers, Pierre 2015-10-01 15:33 GMT+02:00 Urs Liska: > Sorry, I have to ask this *without* looking for a solution before. Just > don't have any time left this time: > > How can I overlay letters in lyrics? I want to print two "D"s that > overlap, one left-top, the other bottom-right. The default symbol for a > double dominant. > > TIA and sorry again > Urs > > ___ > lilypond-user mailing list > lilypond-user@gnu.org > https://lists.gnu.org/mailman/listinfo/lilypond-user > ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Whiteout on hairpins?
Is there any way to print hairpins while whiting out parts of anything (specifically, in this case, note stems and beams) that they cross, analogous to what the \whiteout command does for text markup? Best, Connor Harris ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: Repeat with alternatives
On 01/10/2015 18:40, Tim McNamara wrote: On Sep 30, 2015, at 8:22 AM, s.p.korzil...@gmail.com wrote: Dear Sir / Madam, I’m trying to write a piece that has repeats with alternatives. It seems that “\repeat volta 2” is the way to go with supplying the alternatives in “\alternative”. However, this seems to work only for alternative endings, while I have alternative middle parts. I have tried to fix this manually with introducing volta brackets and repeat signs. Unfortunately Lilypond doesn’t recognize this as a repeat and counts the notes of the alternatives as if they are all played in one run (so that the first note after the alternatives does not start a new measure, as it should, see attachment). Yes. You are starting the alternative in the middle of the bar which, from the perspective of the musician reading the piece, is going to look very odd and be hard to follow. The alternatives should always be full bars not only for Lilypond to function correctly but for the musicians to be able to play it correctly without needing a lot of instruction. But that's no use if you're setting parts for something that someone else has written ... it gets thoroughly confusing if some people have parts one way, and others have parts another way. I've had to set stuff like that and it gets tricky ... I think I used a mixture of \partial and spacer rests. Anyways, I think we've all missed the OPs problem. As he phrased it, I understand he wants {fixed part 1} {alternative 1} {alternative 2} {fixed part 2} repeat How you do that, I dunno, apart from just not using \repeat and setting the bits manually. Cheers, Wol ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Percent repeats within \parallelMusic
The string quartet I have been working on has a few passages where one or more of the instruments are playing the same pattern for several bars in succession. In the score I want these to be written out in full, but in the parts I would like to use numbered "percent" repeat marks. The obvious way for me to do this was to use tags, and provide 2 versions. Unfortunately, because I am using the \parallelMusic structure, it seems to me that this won't work. As an alternative, I thought I could provide the alternatives on a bar-by-bar basis, just for the instrument concerned, so I have experimented to see how I can construct the required output. With just the repeat marks, this works: \version "2.19.24" makePercent = #(define-music-function (note) (ly:music?) "Make a percent repeat the same length as NOTE." (make-music 'PercentEvent 'length (ly:music-length note))) \relative c'' { %Normal version \repeat percent 3 { c1 } %Constructed version c1 \makePercent s1 \makePercent s1 } But the best I have managed so far to include numbers over the repeats is: \version "2.19.24" makePercent = #(define-music-function (note) (ly:music?) "Make a percent repeat the same length as NOTE." (make-music 'PercentEvent 'length (ly:music-length note))) \relative c'' { %Normal \set countPercentRepeats = ##t \repeat percent 3 { c1 } %Constructed version c1 << {\makePercent s1} {s1^\markup \override #'(font-encoding . fetaText) \tiny "2"} >> << {\makePercent s1} {s1^\markup \override #'(font-encoding . fetaText) \tiny "3"} >> } This works (apart from the fact that the numbers are not correctly centred over the bar), but it is clearly rather ungainly. Can anyone suggest a better way of achieving what I want? David ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: Whiteout on hairpins?
Hi Connor, there's whiteout property that you can set to ##t: % --- \version "2.18.2" right = \relative c'' { \override Hairpin.whiteout = ##t \override Hairpin.layer = #2 % maybe necessary to place hairpins in front of other objects r2\< r r r\! } left = \relative c' { r2 r r r } \score { \new PianoStaff << \new Staff = "right" \right \new Staff = "left" { \clef bass \left } >> \layout { } } % --- Cheers, Klaus -- View this message in context: http://lilypond.1069038.n5.nabble.com/Whiteout-on-hairpins-tp181866p181872.html Sent from the User mailing list archive at Nabble.com. ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: [Mei2ly-application] Re: Defining basic requirements, overview of existing efforts
Hi, On Fri, Sep 25, 2015 at 2:28 PM, David Kastrupwrote: > Kieren MacMillan writes: > > > Hi David, > > > >>> I’m currently working on a solution for Schenker graphs, > >>> and the “one-slur-per-voice” limitation is killing me. > >> > >> There is no such limitation. Just use \tweak to give each of your slurs > >> a unique spanner-id setting. That's used, for example, for allowing > >> \appoggiatura slurs in parallel with normal slurs. Version 2.15.5, > >> issues 75 and 1256. > > > > Amazing! Can’t wait to use this. > > I’m assuming it’s the same with everything -spanner (e.g., TextSpanner)? > > That would have been the long-term idea. At the current moment, it is > only implemented for slurs and phrasing slurs I think. > > Here's an alternate engraver for TextSpanner which works with spanner-id. One problem I encounter is preserving the proper order over line breaks. (Uncomment the \break to see what I mean.) HTH, David %%% \version "2.19" %% Based on the rewrite of Text_spanner_engraver in %% input/regression/scheme-text-spanner.ly #(define (add-bound-item spanner item) (if (null? (ly:spanner-bound spanner LEFT)) (ly:spanner-set-bound! spanner LEFT item) (ly:spanner-set-bound! spanner RIGHT item))) #(define (axis-offset-symbol axis) (if (eq? axis X) 'X-offset 'Y-offset)) #(define (set-axis! grob axis) (if (not (number? (ly:grob-property grob 'side-axis))) (begin (set! (ly:grob-property grob 'side-axis) axis) (ly:grob-chain-callback grob (if (eq? axis X) ly:side-position-interface::x-aligned-side side-position-interface::y-aligned-side) (axis-offset-symbol axis) schemeTextSpannerEngraver = #(lambda (context) (let ((span '()) (finished '()) (event-start '()) (event-stop '())) (make-engraver (listeners ((text-span-event engraver event) (if (= START (ly:event-property event 'span-direction)) (set! event-start (cons event event-start)) (set! event-stop (cons event event-stop) (acknowledgers ((note-column-interface engraver grob source-engraver) (for-each (lambda (s) (ly:pointer-group-interface::add-grob s 'note-columns grob) (add-bound-item s grob)) span) (for-each (lambda (f) (ly:pointer-group-interface::add-grob f 'note-columns grob) (add-bound-item f grob)) finished))) ((process-music trans) (for-each (lambda (es) (let ((es-id (ly:event-property es 'spanner-id))) (let loop ((sp span)) (let ((sp-id (ly:event-property (event-cause (car sp)) 'spanner-id))) (cond ((null? sp) (ly:warning "No spanner to end!!")) ((and (string? sp-id) (string? es-id) (string=? sp-id es-id)) (set! finished (cons (car sp) finished)) (set! span (remove (lambda (s) (eq? s (car sp))) span))) ((and (null? sp-id) (null? es-id)) (set! finished (cons (car sp) finished)) (set! span (remove (lambda (s) (eq? s (car sp))) span))) (else (loop (cdr sp event-stop) (for-each (lambda (f) (ly:engraver-announce-end-grob trans f (event-cause f))) finished) (set! event-stop '()) (for-each (lambda (es) (set! span (cons (ly:engraver-make-grob trans 'TextSpanner es) span)) (set-axis! (car span) Y)) event-start) (set! event-start '())) ((stop-translation-timestep trans) (for-each (lambda (s) (if (null? (ly:spanner-bound s LEFT)) (ly:spanner-set-bound! s LEFT) (ly:context-property context 'currentMusicalColumn))) span) (for-each (lambda (f) (if (null? (ly:spanner-bound f RIGHT)) (ly:spanner-set-bound! f RIGHT (ly:context-property context 'currentMusicalColumn finished) (set! finished '())) ((finalize trans) (for-each (lambda (f) (if (null? (ly:spanner-bound f RIGHT)) (ly:spanner-set-bound! f RIGHT (ly:context-property context 'currentMusicalColumn finished) (set! finished '()) (for-each (lambda (sp) (ly:warning "incomplete spanner removed!") (ly:grob-suicide! sp)) span) (set! span '()) startTextSpan = #(make-span-event 'TextSpanEvent START) stopTextSpan =
Re: Stacked letters in markup
Thank you all for your suggestions and for not flooding me with RTFM. I'll go with this variation: dd = \markup { \combine \translate-scaled #'(0 . .25) D \translate-scaled #'(.5 . -.25) D } which seems to work well in combination with other, non-stacked symbols. Best Urs Am 01.10.2015 um 15:33 schrieb Urs Liska: > Sorry, I have to ask this *without* looking for a solution before. Just > don't have any time left this time: > > How can I overlay letters in lyrics? I want to print two "D"s that > overlap, one left-top, the other bottom-right. The default symbol for a > double dominant. > > TIA and sorry again > Urs > > ___ > lilypond-user mailing list > lilypond-user@gnu.org > https://lists.gnu.org/mailman/listinfo/lilypond-user ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: Stacked letters in markup
Urs Liska wrote: How can I overlay letters in lyrics? I want to print two "D"s that overlap, one left-top, the other bottom-right. The default symbol for a double dominant. maybe: \markup \combine \translate #(cons 0.3 -0.3) "D" \translate #(cons -0.3 0.3) "D" and, not just by itself: \markup \concat { \combine \translate #(cons 0.3 -0.3) "D" \translate #(cons -0.3 0.3) "D" ouble } Cheers, Robin ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: Whiteout on hairpins?
(\once) \override Hairpin.whiteout = ##t You may have to adjust the layer to see the white: (\once) \override Hairpin.layer = 5 Am 01.10.2015 um 20:07 schrieb Connor Harris: Is there any way to print hairpins while whiting out parts of anything (specifically, in this case, note stems and beams) that they cross, analogous to what the \whiteout command does for text markup? Best, Connor Harris ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: Box around multiple markups
Hi Urs, On Mon, Sep 28, 2015 at 9:19 AM, Urs Liskawrote: > Hi David, > > thank you very much! > You're welcome! > > Am 26.09.2015 um 01:25 schrieb David Nalesnik: > > Hi, > > ... > > To do what you want, it would be best of course to have a new grob. > > Defining new grobs has no user interface at the moment. There is a > regression text, input/regression/scheme-text-spanner.ly which does > define one in an LY file. > > I modeled the attached after that. I've got the dashed boxes. > > > Did you do that *now* or have you pulled that out from some earlier work??? > The regression test was originally written by Mike Solomon. As far as boxes go, I've worked on them from time to time (and all but given up). I didn't base this on earlier stuff, partly because I didn't have the patience to try to find the earlier files, and partly because I didn't need to add very much to the model. (Mostly, I just added a stencil function and changed a few names.) > I didn't tackle the bracket-with-inner-prong(s)--maybe someone would like > to give it a go? > > > What would also be very sufficient would be the same dashed box, only > nested. However, I didn't manage to get that to work, even with additional > helper voices. > What will work for this time is the slur you can see in the image. I > didn't get it to behave properly above the texts but it will do. > This is too late, unfortunately, but maybe you'll get some use out of the attached. The only way I could see to get nested boxes was to incorporate the idea of 'spanner-id. I approximated your design by using a nested box with some changed attributes. The property 'box-faces is used to hide sides of the box. The 'box-dimension-offset property is used to give room for the line. (Oh, I made \boxSpanStart and the like into post-events so they're like \startTextSpan, etc. > > Very much so. > The only thing still lacking for now is the box around the synchronuous > items on the lyrics lines. The way to go for such a thing is probably to > collect all syllables, then combine all objects at the same musical moment > then draw boxes around them. > Yes. You could do something like what I did here, but in this case an engraver which creates an Item rather than a Spanner. Best, David %% \version "2.19.27" %\include "lilypond-book-preamble.ly" \paper { indent = 0\cm } %% CUSTOM GROB PROPERTIES % Taken from http://www.mail-archive.com/lilypond-user%40gnu.org/msg97663.html % (Paul Morris) % function from "scm/define-grob-properties.scm" (modified) #(define (cn-define-grob-property symbol type?) (set-object-property! symbol 'backend-type? type?) (set-object-property! symbol 'backend-doc "custom grob property") symbol) % How much extra space to top, right, bottom, left? If unspecified, % this will be taken as '(1.0 1.0 -1.0 -1.0), creating a padding of 1 staff-space % around box-contents. #(cn-define-grob-property 'box-dimension-offset number-list?) % Which faces will be drawn? Pattern is top, right, bottom, left. If % unspecified, this will be taken as '(#t #t #t #t) -- meaning that all % faces are visible. #(cn-define-grob-property 'box-faces list?) % Based on input/regression/scheme-text-spanner.ly #(define-event-class 'box-span-event 'span-event) #(define (add-grob-definition grob-name grob-entry) (let* ((meta-entry (assoc-get 'meta grob-entry)) (class(assoc-get 'class meta-entry)) (ifaces-entry (assoc-get 'interfaces meta-entry))) (set-object-property! grob-name 'translation-type? ly:grob-properties?) (set-object-property! grob-name 'is-grob? #t) (set! ifaces-entry (append (case class ((Item) '(item-interface)) ((Spanner) '(spanner-interface)) ((Paper_column) '((item-interface paper-column-interface))) ((System) '((system-interface spanner-interface))) (else '(unknown-interface))) ifaces-entry)) (set! ifaces-entry (uniq-list (sort ifaces-entry symbol es | ^\pieceTitle "Arlequin" s2\boxSpanEnd | bes4 ^\pieceTitle "Valse noble" g bes | \time 2/4 %% left/right/bottom/top \once \override BoxTextSpanner.box-dimension-offset = #'(4 1 -1 -1) es,4 ^\pieceTitle "Eusebius"\boxSpanStart s4 | \time 5/4 << { 4 ^\pieceTitle "Florestan" -\tweak style ##f -\tweak thickness 2 -\tweak box-faces #(list #t #f #f #f) \startBoxSpanOne } \new Voice { } >> s8 \boxSpanEnd bes4 s8 4 s4 \bar ";" | \time 3/4 bes4 ^\pieceTitle "Coquette" s2 \bar ";" | bes4 \stopBoxSpanOne ^\pieceTitle "Réplique" s8 g4 s8 \bar "||" }
Re: [Mei2ly-application] Re: Defining basic requirements, overview of existing efforts
On Thu, Oct 1, 2015 at 3:35 PM, David Nalesnikwrote: > > > Here's an alternate engraver for TextSpanner which works with spanner-id. > > Here's an image. ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: left pointing note heads
Hi Andrew, You're right, How about: \version "2.18.2" %%\version "2.19.27" <= or LH = { \once\override NoteHead.stencil = #(lambda (grob) ly:note-head::print (grob-interpret-markup grob #{ \markup\musicglyph #"noteheads.d2reFunk" #})) \once\override NoteHead.stem-attachment = #'(1 . 1) } RH = { \once\override NoteHead.stencil = #(lambda (grob) ly:note-head::print (grob-interpret-markup grob #{ \markup\musicglyph #"noteheads.u2reFunk" #})) \once\override NoteHead.stem-attachment = #'(1 . 0) } \drums { \LH bd4 bd \RH bd bd } Cheers, Pierre 2015-09-30 14:09 GMT+02:00 Andrew Bernard: > Hi Pierre, > > This looks terrible in 2.19.28 - the heads and stems are badly matched up. > Do you also see this? > > Image attached. > > Andrew > > > On 29 Sep 2015, at 17:55, Pierre Perol-Schneider < > pierre.schneider.pa...@gmail.com> wrote: > > LH = { > \once\override NoteHead.stencil = #(lambda (grob) > ly:note-head::print (grob-interpret-markup grob > #{ > \markup\musicglyph > #"noteheads.d2reFunk" > #})) > } > > RH = { > \once\override NoteHead.stencil = #(lambda (grob) > ly:note-head::print (grob-interpret-markup grob > #{ > \markup\musicglyph > #"noteheads.u2reFunk" > #})) > } > > \drums { > \LH bd4 bd \RH bd bd > } > > ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: Upgrade to 2.18 from...a long time ago
Right now it's a total reboot. When I finally do recover the old files they will work just fine on my friends computer. But now I've started with a blank file in Notepad, 2.18.2, and starting off with an example file. At this point I just about have my old template "re-written". One thing I've noticed, is that running LP directly seems far quicker than my old computer. Not sure how much of that was the extra layer of the text editor I had written, or how much of that was general 6 year old Windows 7 box slowness. -- View this message in context: http://lilypond.1069038.n5.nabble.com/Upgrade-to-2-18-from-a-long-time-ago-tp181789p181816.html Sent from the User mailing list archive at Nabble.com. ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Cue notes; this has gone too far.
Hello there, I am not sure if it is a bug or a misuse on my part but I am trying to use cue notes. In the example bellow, if the melody *starts* with cue notes, the format stays with the "normal" notes. Any thoughts? -- Pierre-Luc Gauthier \version "2.19.27" \language "english" quotedStuff = \relative c''' { r4 bf4 r8 bf-- | R1*10 } \addQuote "quoteMe" { \quotedStuff } melody = \relative c' { \new CueVoice { \set instrumentCueName = "Quoted from…" } \cueDuring #"quoteMe" #UP { R1 } %This should not typeset in quote style r4-"Stuff to be played as is" ef\upbow( f) r | } \score { \new Staff \melody } \version "2.19.27" \language "english" quotedStuff = \relative c''' { r4 bf4 r8 bf-- | R1*10 } \addQuote "quoteMe" { \quotedStuff } melody = \relative c' { \new CueVoice { \set instrumentCueName = "Quoted from…" } \cueDuring #"quoteMe" #UP { R1 } %This should not typeset in quote style r4-"Stuff to be played as is" ef\upbow( f) r | } \score { \new Staff \melody }___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Bfa-Bmi key signature?
In transcribing a piece of renaissance music, I am trying to refine the following key signature: \version 2.19.21 \relative c' { \set Staff.keyAlterations = #`(((-1 . 6) . ,NATURAL) (( 0 . 6) . ,FLAT)) R1 b2 bes b' bes } Ideally, the flat in the key signature should have a ledger line, and should be vertically aligned with the natural sign. (There is a corresponding keysig in bass clef which also needs this alignment) I have looked at: 1) The re-writing of the key signature engraver in Scheme: https://lists.gnu.org/archive/html/lilypond-user/2015-08/msg00429.html 2) The addition of ledger lines to a key signature: https://lists.gnu.org/archive/html/lilypond-user/2014-11/msg00454.html 3) The Notation Reference http://lilypond.org/doc/v2.19/Documentation/notation/displaying-pitches#key-signature and the sections of the Internals Reference that this refers to; and I confess that I'm floundering a bit. Well, more than a bit. This specific issue is quite common in early music, where the composer uses the hard hexachord. Grateful for any help/guidance ! -- Graham ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: Repeat with alternatives
"Mark Stephen Mrotek"writes: > Lilypond does handle mid-measure repeats, you just have to tell it that it is > mid-measure: > > > > \version "2.18.2" > > \score { > > \new Staff { > > \time 4/4 > > \repeat volta 2 { > > a'8 b' c' e' c'2 > > a'4 b' } > > \alternative { > > {d' g'} > > {\set Timing.measurePosition = #(ly:make-moment -1/2) > > d'8 e' f' g'}} > > d''1 > > } > > } Actually, with current developer versions the above works just fine even without meddling with Timing.measurePosition in any manner. That was issue 355, fixed in version 2.19.0 (though there were a few additional fixes later) in November 2013. -- David Kastrup ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
RE: Repeat with alternatives
Stan, Lilypond does handle mid-measure repeats, you just have to tell it that it is mid-measure: \version "2.18.2" \score { \new Staff { \time 4/4 \repeat volta 2 { a'8 b' c' e' c'2 a'4 b' } \alternative { {d' g'} {\set Timing.measurePosition = #(ly:make-moment -1/2) d'8 e' f' g'}} d''1 } } Mark From: lilypond-user-bounces+carsonmark=ca.rr@gnu.org [mailto:lilypond-user-bounces+carsonmark=ca.rr@gnu.org] On Behalf Of s.p.korzil...@gmail.com Sent: Wednesday, September 30, 2015 6:22 AM To: lilypond-user@gnu.org Subject: Repeat with alternatives Dear Sir / Madam, I’m trying to write a piece that has repeats with alternatives. It seems that “\repeat volta 2” is the way to go with supplying the alternatives in “\alternative”. However, this seems to work only for alternative endings, while I have alternative middle parts. I have tried to fix this manually with introducing volta brackets and repeat signs. Unfortunately Lilypond doesn’t recognize this as a repeat and counts the notes of the alternatives as if they are all played in one run (so that the first note after the alternatives does not start a new measure, as it should, see attachment). Hope you can help me. Kindest regards, Stan Korzilius ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
RE: Repeat with alternatives
David, Thank you for the information. My answer was determined by the version used. Mark -Original Message- From: David Kastrup [mailto:d...@gnu.org] Sent: Thursday, October 01, 2015 6:34 PM To: Mark Stephen MrotekCc: s.p.korzil...@gmail.com; lilypond-user@gnu.org Subject: Re: Repeat with alternatives "Mark Stephen Mrotek" writes: > Lilypond does handle mid-measure repeats, you just have to tell it that it is mid-measure: > > > > \version "2.18.2" > > \score { > > \new Staff { > > \time 4/4 > > \repeat volta 2 { > > a'8 b' c' e' c'2 > > a'4 b' } > > \alternative { > > {d' g'} > > {\set Timing.measurePosition = #(ly:make-moment -1/2) > > d'8 e' f' g'}} > > d''1 > > } > > } Actually, with current developer versions the above works just fine even without meddling with Timing.measurePosition in any manner. That was issue 355, fixed in version 2.19.0 (though there were a few additional fixes later) in November 2013. -- David Kastrup ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Slur under beam
How do you position a slur under a beam? Setting Slur.positions does not want to move it, which is fine, but I cannot find the correct override or setting. And in this example, part of a complex multivoice score which is very dense, I do need the slur under the beam and above the notes. The score uses quite long stems, so there is plenty of room for the slur to fit. Andrew — snip \version "2.19.28" treble = { \clef treble \stemUp \slurUp \override Slur.positions = #'(1 . 1) g''16[( e'' dis'' b' g')] } \score { \new Staff { \treble } \layout { \context { \Voice % set unbeamed note stem lengths \override Stem.details.lengths = #'(5.5 5.5 5.5 6 6) % set beamed note stem lengths \override Stem.details.beamed-lengths = #'(5.5 5.5 6.5 6.5) } } } — snip ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: Slur under beam
Looking into the mailing list archives, a sort of solution is proposed - using a rotation and an offset. While this works, is there a better or preferred way? Andrew — snip \version "2.19.28" treble = { \clef treble \stemUp \slurDown \override Slur.rotation = #'(180 0 0) \override Slur.extra-offset = #'(0 . 2.5) g''16[( e'' dis'' b' g')] } \score { \new Staff { \treble } \layout { \context { \Voice % set unbeamed note stem lengths \override Stem.details.lengths = #'(5.5 5.5 5.5 6 6) % set beamed note stem lengths \override Stem.details.beamed-lengths = #'(5.5 5.5 6.5 6.5) } } } — snip ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: Repeat with alternatives
Quoting s.p.korzil...@gmail.com (s.p.korzil...@gmail.com): > I’m trying to write a piece that has repeats with alternatives. It seems that > “ > \repeat volta 2” is the way to go with supplying the alternatives in “\ > alternative”. However, this seems to work only for alternative endings, while > I > have alternative middle parts. So what you're wanting is, I take it, to write |:A-B1/B2-C:| and have the players play A B1 C A B2 C. I suppose the question arises as to where you draw the line in calling things "repeats". Ssupposing I write |:A-B1/B2-C-D1/D2-E:| where A, C and E have 1 measure each, and the rest of the sections each have several... This also ties into the lyric structure desired in http://lists.gnu.org/archive/html/lilypond-user/2015-09/msg00592.html because, for example, your two alternatives might be a way of dealing with two verses of text where the syllables didn't quite match at that point. Having got all that of my chest! the partial solution below is hardly original. However, unlike Tim's, I haven't refactored the barlines. This actually makes it look odd to me as the 2nd alternative shouldn't start with a barline. And unlike Mark's, it doesn't have extra :| markings that erroneously tell you to go back to the start. Following David K's contribution, I looked at issue 355 but, without any version 2.19 to run, I couldn't experiment with the code in comment #11 (which looks like the final word). It seems to imply that 2.19's alternatives always start a fresh bar, which is not what we want here where we start on beat 3. And, of course, issue 355 wouldn't affect Mark's spurious :| markings. However, my partial solution fails to close the 2nd alternative's volta bracket, and I don't see any way of doing so. Perhaps someone more expert could help there with some sort of tweak. %%% \version "2.18.2" \score { \new Staff { \time 4/4 a'8 b' c' e' c'2 a'4 b' \set Score.repeatCommands = #'((volta #f) (volta "1.")) d' g' \set Score.repeatCommands = #'((volta #f)) \set Score.repeatCommands = #'((volta #f) (volta "2.")) \set Timing.measureLength = #(ly:make-moment 2/4) d'8 e' f' g' \set Score.repeatCommands = #'((volta #f)) \set Timing.measureLength = #(ly:make-moment 4/4) d''4 c'' b' a' % See * a'4 b' c'' d'' \bar ":|." } } %%% * I split the semibreve in order to clarify that the barlines are being placed correctly. Cheers, David. ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: Slur under beam
Answering my own question here, the \shapeII function in the openlilylib repository does the trick (and many other astounding tricks as well, by the way). Note that the current code is somewhat dated, and will not work with 2.19.28 or similar recent versions. Simon Albrecht has made a fine fix and it is waiting on a pull request to be incorporated. Andrew ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user