Re: beams in DrumStaff should be parallel to staff lines
Hi Ziggy! Did you try with \override Beam #'positions = #'(4 . 4) (you can cange the values to see what happends..) You can find other samples in the snippet repository searching "Beaming" or "autoBeaming" :) Hope this helps! Bainos Ziggy Leitner ha scritto: I have spent a bit of time trying to get the beams for a DrumStaff to stay parallel to the staff line instead of following the stem. I am trying to everride the stem length to get it to line up straight but that doesn't work. If you compile this file you'll see the dotted eightth snare drum beam which connects to the sixteenth bass drum note is at an angle. Ideally I would like all the beams the same distance below the staff and all parallel. I have spent a fair bit of time on this and read the manual in detail, time to ask for help ;-) Here is my funkyFeel.ly file \version "2.10.0" \include "FlashNotation.ly" #(define mydrums '( (bassdrum default #f -3) (snare default #f 1) (hihat cross #f 4) (openhihat cross "open" 4) (closedhihat cross "stopped" 4) ) ) stemExtend = \once \override Stem #'length = #12 up = \drummode { hh8 hh hh hh hh hh hh hh } down = \drummode { bd16 sn8 bd16 \stemExtend sn8. bd16 r16 bd16 bd8 sn8. sn16 } \score { \new DrumStaff << \set DrumStaff.drumStyleTable = #(alist->hash-table mydrums) \new DrumVoice { \voiceOne \up} \new DrumVoice { \voiceTwo \down } >> \layout { \context { \DrumStaff \override TimeSignature #'style = #'numbered } } \midi { \context { \Score tempoWholesPerMinute = #(ly:make-moment 100 4) } } } %end lilypond I want to make this part of a flash banner, so I have this output file to make a banner. I seem to be unable to get the .png output to do this, the .pdf is fine. I am doing this on a windows box, so maybe it is this that causes the problem. Any advice on the .png output would be terrific. Here is my FlashNotation.ly % %FlashNotation.ly -- parameters for generating Flash Banner Notation % % % the resolution of the png bitmaps is 127dpi; % a paper size of 140mm x 30 mm will lead to a bitmap of % 700x 150 pixels #(ly:set-option 'resolution 127) % the paper size is 700x150 pixels and the score covers almost the % complete width; any additional markup is left out \paper { paper-width = 140\mm paper-height = 30\mm resolution = 256 top-margin = 4\mm bottom-margin = 1\mm line-width = 136\mm % head-separation = 4\mm % foot-separation = 4\mm page-top-space = 6\mm after-title-space = 0\mm indent = 1\mm horizontal-shift = 0.5\mm % ragged-right = ##t % ragged-bottom = ##t % -- remove all markup -- print-page-number = ##f print-first-page-number = ##f evenFooterMarkup=##f oddFooterMarkup=##f evenHeaderMarkup=##f oddHeaderMarkup=##f bookTitleMarkup=##f scoreTitleMarkup=##f } Thanks for any suggestions. Building a website is a piece of cake. Yahoo! Small Business gives you all the tools to get online. http://smallbusiness.yahoo.com/webhosting ___ lilypond-user mailing list lilypond-user@gnu.org http://lists.gnu.org/mailman/listinfo/lilypond-user ___ lilypond-user mailing list lilypond-user@gnu.org http://lists.gnu.org/mailman/listinfo/lilypond-user
Re: beams in DrumStaff should be parallel to staff lines
Quoting Ziggy Leitner <[EMAIL PROTECTED]>: > I have spent a bit of time trying to get the beams for a > DrumStaff to stay parallel to the staff line instead of > following the stem. Try reading the sections on tablatures. It contains some notes on how to make the beams horizontal. The same notesshould apply to drum staves. -Rune ___ lilypond-user mailing list lilypond-user@gnu.org http://lists.gnu.org/mailman/listinfo/lilypond-user
Newbie Questions
I'm a new user of Lilypond. After some experimentation, I've encountered a couple of situations where I suspect that I am not using the program correctly. 1. In the second alternative to the repeat, the \repeatTie's are concave. I tried tweaking with ^ but it does not seem to have the desired effect. 2. The whole rest in the last measure is not centered, which, I believe, is the conventional location (in organ music, at least). 3. A warning. can't end volta spanner [5], is issued, apparently because the length is tweaked to end at the double bar in the second alternative. It appears to be necessary to include an extra measure in the second alternative in order to tie the new voice across the bar. One further effect I'd like to achieve is to mimic the labels of the volta spanners that appear in the text I am working from: "1ma" and "2nda", where the "ma" and "nda" are raised above the line with a "dot" beneath. Thanks in advance for your help. \version "2.10.25" soprano = \relative c'' { \repeat volta 2 { c16[ e c e ] d[ f d f ] \voiceOne b,[ g a b ] c4~ } \alternative { { c b c r } { c^\repeatTie b c2~ \bar "||" | c r8 c[ c c ] } } e4 r8 d c[ c ] c[ b16 c ] } alto = \relative c' { \repeat volta 2 { s2 \stemDown d4 << { \voiceThree g~ } \new Voice { \voiceTwo r16 e[ d c ] \oneVoice } >> } \alternative { { << { g'4. f8 g4 \voiceTwo r } \new Voice { \voiceTwo d2 e4 s4 \oneVoice } >> } { << { \voiceThree g4.^\repeatTie f8 g2~ | g2 \voiceTwo r } \new Voice { \voiceTwo d2 e2~ | e s \oneVoice } >> } } r1 } << \new Staff { \set Staff.voltaSpannerDuration = #(ly:make-moment 4 4) << \soprano \alto >> } >> ___ lilypond-user mailing list lilypond-user@gnu.org http://lists.gnu.org/mailman/listinfo/lilypond-user
Re: multiple tempi in a single piece
Kieran Coulter canada.com> writes: > > Hi everyone,I am sure there is a way to do this, but maybe someone here has already faced this challenge and can help show me how it can be done.My example is the Bach Sinfonia from Partita #2. It has a Grave, Andante, and Allegro, but the MIDI file plays all the sections at the same speed, 120bpm. I am looking for a way to modify the .ly file so that it generats a MIDI file that plays the Grave at say 40bpm, the Andante at 80bpm, and only the Allegro at 120bpm.I would greatly appreciate any help to discover how to do this!Thanks,Kieran Coulter > > > > ___ > lilypond-user mailing list > lilypond-user gnu.org > http://lists.gnu.org/mailman/listinfo/lilypond-user > Hello Kieran, I am typing "erlkoenig" of Schubert and I have - before the end an "accelerando" - at the end a "recit." followed by an "andante" I resolved this this way: 1) define as many identifiers as you need % TEMPO VARIATIONS tempoGrave = { \override Score.MetronomeMark #'transparent = ##t \tempo 4=40 } tempoAndante = { \override Score.MetronomeMark #'transparent = ##t \tempo 4=80 } tempoAllegro = { \override Score.MetronomeMark #'transparent = ##t \tempo 4=120 } (each tempo will replace the precedent when you write it) Then at its place, i.e. just before the measure where it applies, just write \tempoGrave (or \tempoAndante and so on) Here an example of my score adapted to yours): % Measure 1 \tempoGrave sol2^\markup { \bold \italic Grave } la4. la8 sol,2 r2 r2 r4 re re2. re4 \appoggiatura la'8 sol4 sol r sol sol2 la4. la8 %. % Measure 50 \tempoAndante re4^\markup { \bold \italic Andante } re4 r re re2 sol4. re8 %. % Measure 90 \tempoAllegro sib2^\markup { \bold \italic Allegro } r4 sib sib2 do %. I hope it answers your question. Phil. ___ lilypond-user mailing list lilypond-user@gnu.org http://lists.gnu.org/mailman/listinfo/lilypond-user
Re: bends before notes... how to?
2007/7/15, Daniele Russo <[EMAIL PROTECTED]>: Not bad! But, I was interested in a different type of bend, much more short, like this (see attachment) Here is a new command : \bendStart it needs two arguments : \bendStart #number {ghostnote} the ghostnote will not be printed; its only purpose is to specify the placement of the bend sign. %%% snip %%% #(define (make-bend x) (make-music 'BendAfterEvent 'delta-step x)) bend = #(define-music-function (parser location delta) (integer?) (make-bend (* -1 delta))) bendStart = #(define-music-function (parser location argument music) (integer? ly:music?) #{ \hideNotes \once \override NoteColumn #'X-extent = #'(0 . 4) \cadenzaOn \bend #$argument \grace $music \cadenzaOff \unHideNotes #} ) \paper { ragged-right = ##t } \relative { \bendStart #-2 { g' } b8 a g fis e2 } ___ lilypond-user mailing list lilypond-user@gnu.org http://lists.gnu.org/mailman/listinfo/lilypond-user
Re:
On 08/07/07, Mats Bengtsson <[EMAIL PROTECTED]> wrote: Just replace the two occurrences of "\new Voice" with "\new Staff" in your example. Thanks, that has (almost) worked. I was using Voice because I was adding lyrics with \lyricsto, but it seems that in this case \addlyrics works just as well. However, this does not completely solve my problem. In my score the extra line appears a few pages in but there is space in the first line that I cannot get rid of. Using \RemoveEmptyStaffContext removes the space from most of the lines but I cannot remove it from the first. Attached is an extended version of the example I sent earlier in which I hope this is made clear. I have increased the font size so that it runs to 3 lines without having to be too long. Regards, Joe Quoting Joseph Haig <[EMAIL PROTECTED]>: > I am trying to get an "ossia" section like the example in section > 6.4.8 of the user guide, but for a voice within a ChoirStaff. > Attached is my attempt at modifying the example but a clef and time > signature appear at the start of the line (also, a key signature would > appear if there were one). Is there a way to get round this? I want > to use this in a score with several lines it should appear next to a > specific line rather than in a separate staff. > > Thanks, > > Joe > test3.ly Description: Binary data ___ lilypond-user mailing list lilypond-user@gnu.org http://lists.gnu.org/mailman/listinfo/lilypond-user
Re: Merging scores in one pdf
A minor comment on your example below: I hope you know that the explicit \book{...} block isn't necessary here, see section "Multiple scores in a book". /Mats Quoting Valentin Villenave <[EMAIL PROTECTED]>: 2007/7/11, Paul Harouff <[EMAIL PROTECTED]>: The biggest pain which made me give up was \markup is assumed to be associated with the score after it. The vertical spacing and page breaks don't allow you to end a page with a \markup block. It always moves to the next page with the \score. I can't reproduce it here; can you post a snippet? I can see the usefulness of the \markup block as it is currently programmed. But it is really intended for adding a few words of performance directions above a score. (see the snippet below) What I would really like to have is a \text block with all the usual formatting capability of a \markup but not associated with any \score. Each block would represent a paragraph of plain text. Ideally, the vertical spacing and page breaks should treat each \text block just as it would a \score block. It might even be useful for the \text block to have \layout and \markup just like a \score block for paragraph titles. What would this \text have that \markup doesn't have? When using \book, the \markup blocks are printed independently. Also, when I use \center in a \markup block outside of a score, I expect the text to center between the page margins (i.e., center on the entire width of the \score object below), not center on the left margin so the text runs off the page. In my opinion, having to use fill-line or other tweaks to get the text to move to the center of the page is a bug, not a feature. Is there anything wrong with the following snippet? snippet upper = \relative c'' { \clef treble \key c \major \time 4/4 a b c d } lower = \relative c { \clef bass \key c \major \time 4/4 a2 c } \book { \markup {\justify-string #"Lorem ipsum dolor sit amet consectetuer adipiscing elit, sed diam nonummy nibh euismod tincidunt ut laoreet dolore magna aliquam erat volutpat. Ut wisi enim ad minim veniam, quis nostrud exerci tation ullamcorper suscipit lobortis nisl ut aliquip ex ea commodo consequat. Duis autem vel eum iriure dolor in hendrerit in vulputate velit esse molestie consequat, vel illum dolore eu feugiat nulla facilisis at vero eros et accumsan et iusto odio dignissim qui blandit praesent luptatum zzril delenit augue duis dolore te feugait nulla facilisi. Nam liber tempor cum soluta nobis eleifend option congue nihil imperdiet doming id quod mazim placerat facer possim assum. Typi non habent claritatem insitam; est usus legentis in iis qui facit eorum claritatem. Investigationes demonstraverunt lectores legere me lius quod ii legunt saepius. Claritas est etiam processus dynamicus, qui sequitur mutationem consuetudium lectorum. Mirum est notare quam littera gothica, quam nunc putamus parum claram, anteposuerit litterarum formas humanitatis per seacula quarta decima et quinta decima. Eodem modo typi, qui nunc nobis videntur parum clari, fiant sollemnes in futurum."} \score { \new PianoStaff << \set PianoStaff.instrumentName = "Piano " \new Staff = "upper" \upper \new Staff = "lower" \lower >> } \markup {\wordwrap-string #"Lorem ipsum dolor sit amet consectetuer adipiscing elit, sed diam nonummy nibh euismod tincidunt ut laoreet dolore magna aliquam erat volutpat. Ut wisi enim ad minim veniam, quis nostrud exerci tation ullamcorper suscipit lobortis nisl ut aliquip ex ea commodo consequat. Duis autem vel eum iriure dolor in hendrerit in vulputate velit esse molestie consequat, vel illum dolore eu feugiat nulla facilisis at vero eros et accumsan et iusto odio dignissim qui blandit praesent luptatum zzril delenit augue duis dolore te feugait nulla facilisi. Nam liber tempor cum soluta nobis eleifend option congue nihil imperdiet doming id quod mazim placerat facer possim assum. Typi non habent claritatem insitam; est usus legentis in iis qui facit eorum claritatem. Investigationes demonstraverunt lectores legere me lius quod ii legunt saepius. Claritas est etiam processus dynamicus, qui sequitur mutationem consuetudium lectorum. Mirum est notare quam littera gothica, quam nunc putamus parum claram, anteposuerit litterarum formas humanitatis per seacula quarta decima et quinta decima. Eodem modo typi, qui nunc nobis videntur parum clari, fiant sollemnes in futurum."} \score { \new PianoStaff << \set PianoStaff.instrumentName = "Piano " \new Staff = "upper" \upper \new Staff = "lower" \lower >> } \markup { \fill-line { \override #'(line-width . 60)
Re: Merging scores in one pdf
2007/7/15, Mats Bengtsson <[EMAIL PROTECTED]>: A minor comment on your example below: I hope you know that the explicit \book{...} block isn't necessary here, see section "Multiple scores in a book". Yes; realized that after having already sent it. Well, I guess anyway LilyPond's genuine logic is more like using \book than not (thats what I learned from the 3.2 section of the documentation). (Besides, I'm a bit of a control freak and therefore I always prefer to put things together in blocks... ;) Thank you Mats ___ lilypond-user mailing list lilypond-user@gnu.org http://lists.gnu.org/mailman/listinfo/lilypond-user
BRICK WALL
Hello all. Trying to do a piece with 6 seperate voices. The first 4 measures look fine, but I'm not able to go any further! Using version 2.10.0, on a Windows 98 box...which has worked fine for me this far. I've written a total of eight measures for each voice, but the pdf only will show the first 4. Suggestions? Thanks-in-advance, Mischa ___ lilypond-user mailing list lilypond-user@gnu.org http://lists.gnu.org/mailman/listinfo/lilypond-user
Re: BRICK WALL
2007/7/16, Mischa Falkenburg <[EMAIL PROTECTED]>: Trying to do a piece with 6 seperate voices. The first 4 measures look fine, but I'm not able to go any further! Sounds interesting; can you please post some of your code? Regards, Valentin ___ lilypond-user mailing list lilypond-user@gnu.org http://lists.gnu.org/mailman/listinfo/lilypond-user
re: line breaks after grace notes?
I managed to figure this one out after adding an invisible bar in front of \break.ThanksKieran Coulter___ lilypond-user mailing list lilypond-user@gnu.org http://lists.gnu.org/mailman/listinfo/lilypond-user
markup at beginning of Multimeasure rest
2.11.27 I'm thinking Han-Wen gave a further answer to this recently but I haven't found it yet. Manual section 8.2.1 says If you want to have text on the left end of a multi-measure rest, attach the text to a zero-length skip note, i.e., s1*0^"Allegro" R1*4 The following code should be an example of that but I can't get the text off the center.: \include "english.ly" \relative c'' { \set Score.skipBars = ##t \override Score.MultiMeasureRest #'expand-limit = #1 \time 2/4 r4 << { b4 ~ b2 c4 } \\ \set hairpinToBarline = ##f { s16 s8.\> s2 s4\! } >> e\f %112 s2*0^\markup{ \left-align{ "Poco meno" } } R2*5 %117 R2*2 } TIA for any ideas. Paul Scott ___ lilypond-user mailing list lilypond-user@gnu.org http://lists.gnu.org/mailman/listinfo/lilypond-user