Re: Page breaking question
Jay Anderson horndude77 at gmail.com writes: I'm just looking for a way to improve the page breaking situation automatically. I'm thinking I may need to look at writing a custom page break algorithm or modifying the page turn breaking algorithm to do what I need. I have tried to use the automatic page breaking, but so far always decided it wasted my time and decided to use manual breaks. In the example you posted I tried to encourage breaks between scores with a soft distance, score-system-spacing #'basic-distance = #90 but the page breaker insists on putting one line of the third score on the second page, and then complains that page is too tight. I can be more forceful, score-system-spacing #'minimum-distance = #50 and git the page-breaker to comply, but that would force a minimum gap between scores, and might not be enough to put a shorter third score on its own page. I see no solution with the existing LilyPond. ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: Letters as Left hand fingering
Nick Payne nick.pa...@internode.on.net writes: On 16/05/12 17:43, David Kastrup wrote: Nick Paynenick.pa...@internode.on.net writes: 2012/5/15 Pierre Perol-Schneiderpierre.schneider.pa...@gmail.com: Hi Group, Sometimes I need to put a letter in front of a number as a fingering. Is there any possibility to declare m (for ex;) as a number so that I could codea-m1 as a fingering ? Do you mean for right hand (stroke) fingering? The following enables you to use -\A etc for strokefingering. The additional my-stroke-finger function isn't needed for this but gives better alignment of the characters when you have a succession of them: \version 2.15.32 % shortcuts for stroke finger indications % can't use a or p, so use upper case for all P = #(define-music-function (parser location) () (apply make-music (append (list 'StrokeFingerEvent 'origin location) (list 'digit 1 What about P=-\rightHandFinger 1 Seems a bit simpler. Sure is. Probably better to use P=\rightHandFinger #1, and can then use - or ^ or _ as needed. You can still use - or ^ or _ as needed. - is neutral, meaning that it does not change the direction flag either way, it merely tells the parser that the whole thing is to be seen as postevent. It used to be that this was necessary in order not to have the whole construct wrapped inside of an EventChord, basically getting -\rightHandFinger 1 Now with something like 2.15.28, it would not have gotten wrapped in an EventChord anyway, the interpretation only depending on whether the MusicEvent has the type post-event. And with something rather recently, it _did_ get this type. So indeed, the - does not appear to serve a useful purpose any more. I forgot. This means that URL:http://lilypond.org/doc/v2.15/Documentation/extending/inline-scheme-code, which was a strained example before the EventChord changes (and this is mentioned at its top) now is completely lunatic. It states (after the initial disclaimer that just using F = -\tweak ... is all that is needed to make this work): The main disadvantage of \tweak is its syntactical inflexibility. For example, the following produces a syntax error. F = \tweak #'font-size #-3 -\flageolet \relative c'' { c4^\F c4_\F } Using Scheme, this problem can be avoided. Unfortunately, as a result of the EventChord changes, not even this code produces a syntax error, but just works as intended, whether or not you choose to add - before \tweak. I apologize for the convenience. But you might still want to keep this detail in mind for answering \version 2.14.2 challenges. -- David Kastrup ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: Testimonial
2012/5/17 Colin Campbell c...@shaw.ca: On 12-05-16 02:18 PM, Tim Roberts wrote: David Kastrup wrote: As long as you are not using external scripts for creating your actual source file, configuring your PDF viewer for point-and-click URL:http://lilypond.org/doc/v2.15/Documentation/usage/point-and-click should do wonders for that. That's somewhat problematic on Windows. I wrote a handler script to handle the URL from Acrobat, but it requires gvim coding as well, and at that point I lost interest. Janek has already recommended Frescobaldi, which is my editor of choice on Windows as well as Linux. IIRC, you need to install cygwin versions of ghostscript, but that was pretty easy. What for? LilyPond (the noun) for windows and Frescobaldi (the noun) for windows is all you need to lilypond and frescobaldi (the verbs), and they are both installed from single-file setup binaries in less than five minutes. I once did that before a talk to windows-only attendees. Very successful!, Even I myself (not being a windows user) was astonished about the quick, flawless way it went all. -- Francisco Vila. Badajoz (Spain) www.paconet.org , www.csmbadajoz.com ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Source management tools for lilypond projects
Hi list, I wonder how other people manage their sources in larger lilypond projects. Currently I'm working on a project whose source folders contain ~300 files, most of them LilyPond source files. One thing I really have come to love LilyPond for during this project is the fact that several people can work on the same scores at the same time - a result from the text based input approach. (For example: I (as the 'editor') can apply quick fixes to the musical text directly and don't have to ask the 'engraver' to do this) But then the question of source management arises. For the current project we have the whole file structure in a Dropbox folder. This is practical but also not really adequate - we have to do kind of 'file locks' through email (I'm going to edit this file, please don't touch it until I tell you again) ... It's OK (as we are basically only two guys), but something I'm feeling quite uneasy with. So are there any practical ideas or experiences for a source management for lilypond projects? I have some ideas about but no experience with the usual tools for software development. It would be nice to - have a lilypond project hosted on a central server - at least have mechanisms to checkout/lock files for individual editing - maybe have the ability to diff/merge or something similar. - maybe have the ability to assign 'roles' to different contributors (manage rights to grant rights for specific actions (read, edit, compile ...) or specific files) Ideally it should be possible to have several independent projects within the same file system so that one can implement libraries that are common to all projects. But that's not really necessary. And OTOH the solution shouldn't be too big, i.e. it should be adequate for projects with 'only' 200 or 500 files. Any ideas? Are there other people with the need or practical experience with source management strategies for LilyPond projects? Best Urs ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
translate a pdf file
sorry i'm still at beginner level..!i want to know if it's possible to get a ly file from a pdf,if there's any way to translate a pdf file to ly file!thank you! ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Get the positions of a beam (or other grob with positions)
Hi, I am very much enjoying now to tweak slurs and other curves using offsets instead of hardcoded control-points. I wonder if it would be interesting to have a similar approach to grobs with a positions property (e.g. beams). While it is comparably easy to find usable #'positions for a beam this is then of course hard-coded and won't work if either the system-system spacing changes for whatever reason, or the music is transposed. Of course it must be quite straightforward to read out lilypond's decision and apply offsets to that in a music function? And if that works one could even enhance the \shape function? The wrapper function could check against a list of grob names and call the appropriate helper function (i.e. if its a Slur then call shape-curve). Maybe it's even possible to make that still more generic. Is it possible to check if a given grob has a given property? (i.e. if the grob has a control-points property then call shape-curve, else if it has positions then call shape-positions [elseif used so that a slurs control-points take precedence over its positions]). So it could be possible to write shape Slur #'((1 . 0) (3 . -2) (0 . 0) (0 . 1)) or shape Beam #'(2 . -1) or shape Arpeggio #'(-1 . 2) Would be awesome I think. Maybe one could even have more ideas to make this offset approach even more general/generic. Instead of ready-made functions, I would also appreciate hints on how to achieve this (as said, I'm quite interested in getting used to write Scheme functions myself, without always having to ask here). Best Urs ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
\partial and \unfoldRepeats
The intention of the input below was to produce a PDF with normal repeat notation plus a MIDI file in which the repeat was expanded explicitly. \version 2.14.1 dots = \relative c' { \partial 8 c'8 c8 c c c c4 r8 } \book { \score { \new Staff { \time 2/4 \repeat volta 2 \dots } } } \book { \score { \unfoldRepeats { \new Staff { \time 2/4 \repeat volta 2 \dots } } \midi { } } } The upbeat is handled perfectly by the \partial construct for the PDF output, but provokes a warning in conjunction with the MIDI output, presumably as a result of the \unfoldRepeats: GNU LilyPond 2.14.1 Processing `temp1.ly' Parsing... Interpreting music... Preprocessing graphical objects... Finding the ideal number of pages... Fitting music on 1 page... Drawing systems... Layout output to `temp1.ps'... Converting to `./temp1.pdf'... Interpreting music... temp1.ly:6:16: warning: trying to use \partial after the start of a piece \partial 8 c'8 MIDI output to `temp1-1.midi'... success: Compilation successfully completed I can fix this by replacing \partial 8 with \set Timing.measurePosition = #(ly:make-moment 3 8), though it seems I then also have to add \set Score.currentBarNumber = #0 to make the bar (measure) numbers come out as expected. Is that the recommendation, or have I missed an opportunity to do something more elegant? Thanks in advance /Christopher/. ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: Source management tools for lilypond projects
Am 17.05.2012 12:36, schrieb Christian Andersson: Congratulations for touching upon a hot subject, pretty much like asking people what text editor to use, something that has been debated for decades without any objective conclusion. Personally I tend to prefer git, not only for lilypond score projects, but for anything text-oriented. This is mainly because of its exceptional versatility and likewise exceptional efficiency. First of all, the lock-based approach that you describe to the inherent concurrency of a more-than-one-person project is obsolete since many years, so forget about that. It should not be too much of a problem having two or more persons to edit one file at the same time, the solution is (tool-supported) merge, in which git excels. Git is, by the way, the tool used for source-code control of Lilypond itself, which is indeed larger than the 200-500-file projects that you describe. On the other hand, I personally use git for many 1-3-file projects of mine; it scales very well. Depending on your background in version-control tools, git may not be the simplest of tools to learn quickly. It's not that Google lacks pointers to a lot of documentation, but since git is advanced, many sources can be quite difficult to consume. One of the better books in this regard, which I'd like to recommend, is Pragmatic Version Control Using Git by Travis Swicegood (2008). Thanks for the input. Now, sit down and await all flames from proponents of all the other tools! Bazaar anyone? Or Subversion, CVS, whatever? :-) OK, but please keep in mind everybody that I specifically asked for the use with lilypond projects ... Cheers /Christian ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: translate a pdf file
2012/5/17 fabio fabiogabbiane...@me.com: sorry i'm still at beginner level..!i want to know if it's possible to get a ly file from a pdf,if there's any way to translate a pdf file to ly file!thank you! Not automatically, but I do that every day. Just read the music and type the note names and values you read. -- Francisco Vila. Badajoz (Spain) www.paconet.org , www.csmbadajoz.com ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: Source management tools for lilypond projects
2012/5/17 Urs Liska li...@ursliska.de: OK, but please keep in mind everybody that I specifically asked for the use with lilypond projects ... It's no need to be specifically for lilypond to be perfect for lilypond. It only has to be perfect for text files, and git is. You can set up a project in http://repo.or.cz/ and invite users to share the repo. -- Francisco Vila. Badajoz (Spain) www.paconet.org , www.csmbadajoz.com ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: translate a pdf file
On 12-05-17 05:52 AM, fabio wrote: sorry i'm still at beginner level..!i want to know if it's possible to get a ly file from a pdf,if there's any way to translate a pdf file to ly file!thank you! Other than reading it and retyping, no. It's like trying to make eggs from omelets. Not to say it won't ever be possible. Think OCR. -- D'Arcy J.M. Cain da...@druid.net | Democracy is three wolves http://www.druid.net/darcy/| and a sheep voting on +1 416 425 1212 (DoD#0082)(eNTP) | what's for dinner. IM: da...@vex.net ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: Lilypond to xml -singing voice festival
fresco wrote: David Kastrup wrote: fresco tuxs...@googlemail.com writes: But when I try to insert: \include festival.ly #(set! song:*debug* #f) \festival #bach-präl.xml { \tempo 4 = 100 } into another file (see text below), I get error messages like: /usr/share/lilypond/2.12.3/ly/festival.ly:25:0: Fehler: syntax error, unexpected SCM_TOKEN That is an error message when reading festival.ly, so it would appear that you are reading festival.ly at a nonsensical place or, less likely, with an incompatible version of LilyPond. Since you don't actually quote the resulting file after your changes, it is impossible to guess more than that. -- David Kastrup Thank you for replying! The following text is a midi-file imported into the lilypond-format (test.ly) code \version 2.12.3-7 \header { } #(set-default-paper-size a4) StaffAVoiceA = \relative c' { e4 a a8 gis fis4 | % 2 e e e cis | % 3 d d fis fis | % 4 e gis a2 | % 5 e4 a a8 gis fis4 | % 6 e e e cis | % 7 d d fis fis | % 8 e gis a2 | % 9 e d' | % 10 cis4 a cis2 | % 11 b4 b8 b gis4 e | % 12 a cis e2 | % 13 e, d' | % 14 cis4 a cis2 | % 15 b4 b8 b gis4 e | % 16 a2 r2 | % 17 } StaffA = \new Staff \relative c' { \set Staff.instrumentName = Inst 1 \clef treble \time 4/4 \new Voice = one { \StaffAVoiceA } } \score { \StaffA \layout { } } code end So, the first stanza of the lyrics, I wanted to insert, is: Es zogen einst fünf wilde Schwäne, Schwäne leuchtend weiß und schön..etc. My question is: Where and how can I place \addlyrics and the \include festival.ly #(set! song:*debug* #f) \festival #test.xml { \tempo 4 = 100 } I do not know, if it is possible to create an .xml in this way, i.e. by importing a regular midi-file. By the way, I just want to use the singing voices for my animations with main actor Tux. http://www.dailymotion.com/user/tuxtrick/1 Kind regards, fresco Basically, the problem is solved. Thank you and kind regards fresco -- View this message in context: http://old.nabble.com/Lilypond-to-xml--singing-voice-festival-tp33852410p33863763.html Sent from the Gnu - Lilypond - User mailing list archive at Nabble.com. ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: translate a pdf file
Am 17.05.2012 13:37, schrieb D'Arcy Cain: On 12-05-17 05:52 AM, fabio wrote: sorry i'm still at beginner level..!i want to know if it's possible to get a ly file from a pdf,if there's any way to translate a pdf file to ly file!thank you! Other than reading it and retyping, no. It's like trying to make eggs from omelets. Not to say it won't ever be possible. Think OCR. In theory that's already possible. There are programs that translate scanned scores to a music format (e.g. Finale or Sibelius). Some of these programs can then export to musicXML which can then be converted to .ly. But that's quite cumbersome - and you're not very likely to get useable results. So most of the time retyping will be faster and better. HTH Urs ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: Lilypond to xml -singing voice festival
On Thu, May 17, 2012 at 05:07:03AM -0700, fresco wrote: fresco wrote: David Kastrup wrote: fresco tuxs...@googlemail.com writes: But when I try to insert: \include festival.ly #(set! song:*debug* #f) \festival #bach-präl.xml { \tempo 4 = 100 } Basically, the problem is solved. Could I ask for your help in documenting festival output? At the moment it's completely undocumented in lilypond: http://code.google.com/p/lilypond/issues/detail?id=1245 If you're willing to help us improve the docs, please consult with James (cc'd on this email). - Graham ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: Testimonial
On 12-05-17 02:22 AM, Francisco Vila wrote: 2012/5/17 Colin Campbellc...@shaw.ca: Janek has already recommended Frescobaldi, which is my editor of choice on Windows as well as Linux. IIRC, you need to install cygwin versions of ghostscript, but that was pretty easy. What for? LilyPond (the noun) for windows and Frescobaldi (the noun) for windows is all you need to lilypond and frescobaldi (the verbs), and they are both installed from single-file setup binaries in less than five minutes. I once did that before a talk to windows-only attendees. Very successful!, Even I myself (not being a windows user) was astonished about the quick, flawless way it went all. Right you are, Francisco! I was thinking about Audiveris, a sort of OCR for music. As you say, Frescobaldi is much easier. Cheers, Colin -- I've learned that you shouldn't go through life with a catcher's mitt on both hands. You need to be able to throw something back. -Maya Angelou, poet (1928- ) ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: translate a pdf file
ok, i understandin that case i'll use the Pencil... Il giorno 17/mag/2012, alle ore 13:04, Francisco Vila ha scritto: 2012/5/17 fabio fabiogabbiane...@me.com: sorry i'm still at beginner level..!i want to know if it's possible to get a ly file from a pdf,if there's any way to translate a pdf file to ly file!thank you! Not automatically, but I do that every day. Just read the music and type the note names and values you read. -- Francisco Vila. Badajoz (Spain) www.paconet.org , www.csmbadajoz.com ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: translate a pdf file
- Original Message - From: D'Arcy Cain da...@druid.net To: fabio fabiogabbiane...@me.com Cc: lilypond-user@gnu.org Sent: Thursday, May 17, 2012 12:37 PM Subject: Re: translate a pdf file On 12-05-17 05:52 AM, fabio wrote: sorry i'm still at beginner level..!i want to know if it's possible to get a ly file from a pdf,if there's any way to translate a pdf file to ly file!thank you! Other than reading it and retyping, no. It's like trying to make eggs from omelets. Not to say it won't ever be possible. Think OCR. Actually I do this quite regularly. My workflow is rather cumbersome and could be improved, but it works for me. 1. Create image files from pdf. 2. Use SharpEye to do OCR 3. Correct OCR in SharpEye 4. Export to MusicXML 5. Export MusicXML to Noteworthy 6. Recorrrect and add tweaks. 7. Export Noteworthy and translate to .ly 8. Create PDF in LilyPond It sounds long-winded but I bet I could beat a manual retyper for any reasonable score. -- Phil Holmes ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: PDF with no page breaks
On Wed, 16 May 2012 18:23:40 -0700 Jay Anderson horndud...@gmail.com wrote: On Wed, May 16, 2012 at 2:31 PM, Nils l...@nilsgey.de wrote: Hello, I want a PDF with no pagebreaks and no linebreaks. The result would be one single, big page. Naturally in landscape format. Can this be done automatically, without caculating the page size by hand? I'd be interested in this. I've always just picked a large width and turned on ragged right. -Jay What happens if you picked a width too short or too wide? Especially what happens if it is too wide? Nils ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: PDF with no page breaks
On Thu, May 17, 2012 at 7:06 AM, Nils l...@nilsgey.de wrote: What happens if you picked a width too short or too wide? Especially what happens if it is too wide? I don't remember right now. I believe it left extra space on the right when it was too wide. If it's too short I imagine things would start getting compressed. Try it out. This was my paper block: \paper { paper-width = 100\in paper-height = 4\in bookTitleMarkup = ##f oddHeaderMarkup = ##f evenHeaderMarkup = ##f tagline = ##f copyright = ##f ragged-right = ##t } There's currently a bug in the line breaker which make it take a long time when setting everything on one line so you may need to do this in your score: \override Score.NonMusicalPaperColumn #'line-break-permission = ##f (see http://code.google.com/p/lilypond/issues/detail?id=2264) -Jay ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: \partial and \unfoldRepeats
Hello, On 17 May 2012 11:50, Christopher Webster christop...@claytonwebster.net wrote: The intention of the input below was to produce a PDF with normal repeat notation plus a MIDI file in which the repeat was expanded explicitly. \version 2.14.1 dots = \relative c' { \partial 8 c'8 c8 c c c c4 r8 } \book { \score { \new Staff { \time 2/4 \repeat volta 2 \dots } } } \book { \score { \unfoldRepeats { \new Staff { \time 2/4 \repeat volta 2 \dots } } \midi { } } } The upbeat is handled perfectly by the \partial construct for the PDF output, but provokes a warning in conjunction with the MIDI output, presumably as a result of the \unfoldRepeats: GNU LilyPond 2.14.1 Processing `temp1.ly' Parsing... Interpreting music... Preprocessing graphical objects... Finding the ideal number of pages... Fitting music on 1 page... Drawing systems... Layout output to `temp1.ps'... Converting to `./temp1.pdf'... Interpreting music... temp1.ly:6:16: warning: trying to use \partial after the start of a piece \partial 8 c'8 MIDI output to `temp1-1.midi'... success: Compilation successfully completed I can fix this by replacing \partial 8 with \set Timing.measurePosition = #(ly:make-moment 3 8), though it seems I then also have to add \set Score.currentBarNumber = #0 to make the bar (measure) numbers come out as expected. Is that the recommendation, or have I missed an opportunity to do something more elegant? http://lilypond.org/doc/v2.14/Documentation/notation-big-page.html#upbeats See known issues and warnings. James ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: \partial and \unfoldRepeats
Hello again.. On 17 May 2012 18:57, James pkx1...@gmail.com wrote: Hello, On 17 May 2012 11:50, Christopher Webster christop...@claytonwebster.net wrote: The intention of the input below was to produce a PDF with normal repeat notation plus a MIDI file in which the repeat was expanded explicitly. \version 2.14.1 dots = \relative c' { \partial 8 c'8 c8 c c c c4 r8 } \book { \score { \new Staff { \time 2/4 \repeat volta 2 \dots } } } \book { \score { \unfoldRepeats { \new Staff { \time 2/4 \repeat volta 2 \dots } } \midi { } } } The upbeat is handled perfectly by the \partial construct for the PDF output, but provokes a warning in conjunction with the MIDI output, presumably as a result of the \unfoldRepeats: GNU LilyPond 2.14.1 Processing `temp1.ly' Parsing... Interpreting music... Preprocessing graphical objects... Finding the ideal number of pages... Fitting music on 1 page... Drawing systems... Layout output to `temp1.ps'... Converting to `./temp1.pdf'... Interpreting music... temp1.ly:6:16: warning: trying to use \partial after the start of a piece \partial 8 c'8 MIDI output to `temp1-1.midi'... success: Compilation successfully completed I can fix this by replacing \partial 8 with \set Timing.measurePosition = #(ly:make-moment 3 8), though it seems I then also have to add \set Score.currentBarNumber = #0 to make the bar (measure) numbers come out as expected. Is that the recommendation, or have I missed an opportunity to do something more elegant? http://lilypond.org/doc/v2.14/Documentation/notation-big-page.html#upbeats See known issues and warnings. http://lilypond.org/doc/v2.15/Documentation/notation-big-page.html#upbeats Still see known issues and warnings but it has a better example, this section has had an update since the 2.14 doc. james ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: \partial and \unfoldRepeats
Many thanks for that. The pedant in me wishes to object that it wasn't really I who put the \partial anywhere other than the beginning of the piece - it was \unfoldRepeats that copied it for me. But I'm relieved to see that the use of Timing.measurePosition is the idiomatic work-around. I also think it would be a friendly improvement to the documentation if it pointed out that setting Timing.measurePosition has a different effect on bar numbering from \partial. Thanks again for your help. /Christopher/. On 2012-05-17 19:58, James wrote: Hello again.. On 17 May 2012 18:57, Jamespkx1...@gmail.com wrote: . . . http://lilypond.org/doc/v2.14/Documentation/notation-big-page.html#upbeats See known issues and warnings. http://lilypond.org/doc/v2.15/Documentation/notation-big-page.html#upbeats Still see known issues and warnings but it has a better example, this section has had an update since the 2.14 doc. james ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: Lilypond to xml -singing voice festival
Graham Percival-3 wrote: On Thu, May 17, 2012 at 05:07:03AM -0700, fresco wrote: fresco wrote: David Kastrup wrote: fresco tuxs...@googlemail.com writes: But when I try to insert: \include festival.ly #(set! song:*debug* #f) \festival #bach-präl.xml { \tempo 4 = 100 } Basically, the problem is solved. Could I ask for your help in documenting festival output? At the moment it's completely undocumented in lilypond: http://code.google.com/p/lilypond/issues/detail?id=1245 If you're willing to help us improve the docs, please consult with James (cc'd on this email). - Graham ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user 1.Concerncing a festival output with regard to speech recognition you can watch my animation video: http://www.dailymotion.com/video/xqnjc2_german-teacher-tux-text-to-speech-exp_creation At the end of this video there are 3 pages of howto. 2.Concering a festival output with regard to a singing voice (in Linux), please read the following summary: == 1. Play a (music)XML-file with a festival command in Linux: == Open a terminal and insert: festival Then your prompt should look like this: festival Insert at this prompt the command: (tts /usr/share/doc/festival/examples/songs/daisy.xml 'singing) = 2. Create a WAV-File with a festival command in Linux of daisy.xml = Leave the festival prompt!!! (STRG and Z) Insert at the usual prompt: text2wave -mode singing /usr/share/doc/festival/examples/songs/daisy.xml -o /home/user/Desktop/daisy.wav“ Now you won't hear anything but the output file should be on your Desktop. Here is the text of the festival-file daisy.xml : code daisy.xml ?xml version=1.0? !DOCTYPE SINGING PUBLIC -//SINGING//DTD SINGING mark up//EN Singing.v0_1.dtd [] SINGING BPM=80 DURATION BEATS=1.0,1.0PITCH NOTE=F4,D4Daisy/PITCH/DURATION DURATION BEATS=1.0,1.0PITCH NOTE=Bb3,F3Daisy/PITCH/DURATION DURATION BEATS=0.33PITCH NOTE=G3Give/PITCH/DURATION DURATION BEATS=0.33PITCH NOTE=A3me/PITCH/DURATION DURATION BEATS=0.34PITCH NOTE=Bb3your/PITCH/DURATION DURATION BEATS=0.67,0.33PITCH NOTE=G3,Bb3answer/PITCH/DURATION DURATION BEATS=1.5PITCH NOTE=F3do/PITCH/DURATION REST BEATS=0.5/REST DURATION BEATS=1.0PITCH NOTE=C4I'm/PITCH/DURATION DURATION BEATS=1.0PITCH NOTE=F4half/PITCH/DURATION DURATION BEATS=1.0,1.0PITCH NOTE=D4,Bb3crazy/PITCH/DURATION DURATION BEATS=0.33PITCH NOTE=G3all/PITCH/DURATION DURATION BEATS=0.33PITCH NOTE=A3for/PITCH/DURATION DURATION BEATS=0.34PITCH NOTE=Bb3the/PITCH/DURATION DURATION BEATS=0.67PITCH NOTE=C4love/PITCH/DURATION DURATION BEATS=0.33PITCH NOTE=D4of/PITCH/DURATION DURATION BEATS=1.5PITCH NOTE=C4you/PITCH/DURATION REST BEATS=0.17/REST DURATION BEATS=0.33PITCH NOTE=D4we/PITCH/DURATION DURATION BEATS=0.33PITCH NOTE=Eb4don't/PITCH/DURATION DURATION BEATS=0.33PITCH NOTE=D4need/PITCH/DURATION DURATION BEATS=0.33PITCH NOTE=C4a/PITCH/DURATION DURATION BEATS=0.67,0.33PITCH NOTE=F4,D4stylish/PITCH/DURATION DURATION BEATS=0.33,1.0PITCH NOTE=C4,Bb3marriage/PITCH/DURATION DURATION BEATS=0.33PITCH NOTE=C4I/PITCH/DURATION DURATION BEATS=0.67PITCH NOTE=D4can't/PITCH/DURATION DURATION BEATS=0.33,0.67PITCH NOTE=Bb3,G3afford/PITCH/DURATION DURATION BEATS=0.33PITCH NOTE=Bb3a/PITCH/DURATION DURATION BEATS=0.33,1.17PITCH NOTE=G3,F3carriage/PITCH/DURATION REST BEATS=0.17/REST DURATION BEATS=0.33PITCH NOTE=F3but/PITCH/DURATION DURATION BEATS=0.67PITCH NOTE=Bb3you'll/PITCH/DURATION DURATION BEATS=0.33PITCH NOTE=D4look/PITCH/DURATION DURATION BEATS=0.67PITCH NOTE=C4sweet/PITCH/DURATION DURATION BEATS=0.33,0.67PITCH NOTE=F3,Bb3upon/PITCH/DURATION DURATION BEATS=0.33PITCH NOTE=D4the/PITCH/DURATION DURATION BEATS=0.34PITCH NOTE=C4seat/PITCH/DURATION DURATION BEATS=0.33PITCH NOTE=D4of/PITCH/DURATION DURATION BEATS=0.33PITCH NOTE=Eb4a/PITCH/DURATION DURATION BEATS=0.34,0.33,0.33PITCH NOTE=F4,D4,Bb3bicycle/PITCH/DURATION DURATION BEATS=0.67PITCH NOTE=C4built/PITCH/DURATION DURATION BEATS=0.33PITCH NOTE=F3for/PITCH/DURATION DURATION BEATS=1.0PITCH NOTE=Bb3two/PITCH/DURATION /SINGING code end of daisy.xml Kind regards, fresco -- View this message in context: http://old.nabble.com/Lilypond-to-xml--singing-voice-festival-tp33852410p33865852.html Sent from the Gnu - Lilypond - User mailing list archive at Nabble.com. ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: PDF with no page breaks
On Thu, 17 May 2012 07:44:49 -0700 Jay Anderson horndud...@gmail.com wrote: On Thu, May 17, 2012 at 7:06 AM, Nils l...@nilsgey.de wrote: What happens if you picked a width too short or too wide? Especially what happens if it is too wide? I don't remember right now. I believe it left extra space on the right when it was too wide. If it's too short I imagine things would start getting compressed. Try it out. This was my paper block: \paper { paper-width = 100\in paper-height = 4\in bookTitleMarkup = ##f oddHeaderMarkup = ##f evenHeaderMarkup = ##f tagline = ##f copyright = ##f ragged-right = ##t } There's currently a bug in the line breaker which make it take a long time when setting everything on one line so you may need to do this in your score: \override Score.NonMusicalPaperColumn #'line-break-permission = ##f (see http://code.google.com/p/lilypond/issues/detail?id=2264) If it is too short then the notes are just cut off. And you can't get too wide. 1000\in is already too much. Either for my PDF viewer, for PDF in general or maybe for Lilypond Nils ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
variable percussion sounds
Dear community, I would like to make a definition with scheme. My aim is to create a custom drummstaff with custom midi sounds, e.g.: #(define twopercussionsounds '((hiwoodblock default #t 2) (lowoodblock default #t -2))) But instead of hiwoodblock and lowoodblock I would like to use variables, so that I don't have necessecarely have to use the woodblock sound only! ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: Get the positions of a beam (or other grob with positions)
Hi Urs, On Thu, May 17, 2012 at 5:08 AM, Urs Liska li...@ursliska.de wrote: Hi, I am very much enjoying now to tweak slurs and other curves using offsets instead of hardcoded control-points. I wonder if it would be interesting to have a similar approach to grobs with a positions property (e.g. beams). While it is comparably easy to find usable #'positions for a beam this is then of course hard-coded and won't work if either the system-system spacing changes for whatever reason, or the music is transposed. Of course it must be quite straightforward to read out lilypond's decision and apply offsets to that in a music function? One issue here is that 'positions of Slur are calculated differently from Beam. You can find a function which offsets 'positions of Slur here: http://lsr.dsi.unimi.it/LSR/Snippet?id=748 Basically, this function offsets the Y-coordinate of the first and last control-points. For something like Beam, you can do something like this: \version 2.15.38 offsetBeamPositions = #(define-music-function (parser location offsets) (pair?) #{ \once \override Beam #'positions = #(lambda (grob) (let* ((func (assoc-get 'positions (cdr (ly:grob-basic-properties grob (pos (func grob))) ; both of above assignments may be replaced by: ; (pos (beam::place-broken-parts-individually grob)) (coord-translate pos offsets))) #}) \relative c'' { \offsetBeamPositions #'(-1 . -2) c8[ d e f] } I imagine that this could be generalized to cover other grobs using the 'positions property. With that in mind, I've had it look up the callback which calculates 'positions (the commented-out lines give you a variant which uses that specific callback for Beam). (Thank you Harm for showing me this method.) And if that works one could even enhance the \shape function? The wrapper function could check against a list of grob names and call the appropriate helper function (i.e. if its a Slur then call shape-curve). Maybe it's even possible to make that still more generic. Is it possible to check if a given grob has a given property? (i.e. if the grob has a control-points property then call shape-curve, else if it has positions then call shape-positions [elseif used so that a slurs control-points take precedence over its positions]). So it could be possible to write shape Slur #'((1 . 0) (3 . -2) (0 . 0) (0 . 1)) or shape Beam #'(2 . -1) or shape Arpeggio #'(-1 . 2) Would be awesome I think. Maybe one could even have more ideas to make this offset approach even more general/generic. Instead of ready-made functions, I would also appreciate hints on how to achieve this (as said, I'm quite interested in getting used to write Scheme functions myself, without always having to ask here). Though it is entirely too much fun to work out these puzzles, I'll leave it at that! I hope what I've given you will give you a place to start with this. Best, David Best Urs __**_ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/**listinfo/lilypond-userhttps://lists.gnu.org/mailman/listinfo/lilypond-user ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Documentation for festival output in Linux
1.Concerncing a festival output with regard to speech recognition you can watch my animation video: http://www.dailymotion.com/video/xqnjc2_german-teacher-tux-text-to-speech- exp_creation At the end of this video there are 3 pages of howto. 2.Concering a festival output with regard to a singing voice please read the following summary: == 1. Play a (music)XML-file with a festival command: == Open a terminal and insert: festival Then your prompt should look like this: festival Insert at this prompt the command (with brackets): (tts /usr/share/doc/festival/examples/songs/daisy.xml 'singing) = 2. Create a WAV-File with a festival command of daisy.xml = Leave the festival prompt!!! (STRG and Z) Insert at the usual prompt: text2wave -mode singing /usr/share/doc/festival/examples/songs/daisy.xml -o /home/user/Desktop/daisy.wav“ Now you won't hear anything but the output file should be on your Desktop. Here is the text of the festival-file daisy.xml : ?xml version=1.0? !DOCTYPE SINGING PUBLIC -//SINGING//DTD SINGING mark up//EN Singing.v0_1.dtd [] SINGING BPM=80 DURATION BEATS=1.0,1.0PITCH NOTE=F4,D4Daisy/PITCH/DURATION DURATION BEATS=1.0,1.0PITCH NOTE=Bb3,F3Daisy/PITCH/DURATION DURATION BEATS=0.33PITCH NOTE=G3Give/PITCH/DURATION DURATION BEATS=0.33PITCH NOTE=A3me/PITCH/DURATION DURATION BEATS=0.34PITCH NOTE=Bb3your/PITCH/DURATION DURATION BEATS=0.67,0.33PITCH NOTE=G3,Bb3answer/PITCH/DURATION DURATION BEATS=1.5PITCH NOTE=F3do/PITCH/DURATION REST BEATS=0.5/REST DURATION BEATS=1.0PITCH NOTE=C4I'm/PITCH/DURATION DURATION BEATS=1.0PITCH NOTE=F4half/PITCH/DURATION DURATION BEATS=1.0,1.0PITCH NOTE=D4,Bb3crazy/PITCH/DURATION DURATION BEATS=0.33PITCH NOTE=G3all/PITCH/DURATION DURATION BEATS=0.33PITCH NOTE=A3for/PITCH/DURATION DURATION BEATS=0.34PITCH NOTE=Bb3the/PITCH/DURATION DURATION BEATS=0.67PITCH NOTE=C4love/PITCH/DURATION DURATION BEATS=0.33PITCH NOTE=D4of/PITCH/DURATION DURATION BEATS=1.5PITCH NOTE=C4you/PITCH/DURATION REST BEATS=0.17/REST DURATION BEATS=0.33PITCH NOTE=D4we/PITCH/DURATION DURATION BEATS=0.33PITCH NOTE=Eb4don't/PITCH/DURATION DURATION BEATS=0.33PITCH NOTE=D4need/PITCH/DURATION DURATION BEATS=0.33PITCH NOTE=C4a/PITCH/DURATION DURATION BEATS=0.67,0.33PITCH NOTE=F4,D4stylish/PITCH/DURATION DURATION BEATS=0.33,1.0PITCH NOTE=C4,Bb3marriage/PITCH/DURATION DURATION BEATS=0.33PITCH NOTE=C4I/PITCH/DURATION DURATION BEATS=0.67PITCH NOTE=D4can't/PITCH/DURATION DURATION BEATS=0.33,0.67PITCH NOTE=Bb3,G3afford/PITCH/DURATION DURATION BEATS=0.33PITCH NOTE=Bb3a/PITCH/DURATION DURATION BEATS=0.33,1.17PITCH NOTE=G3,F3carriage/PITCH/DURATION REST BEATS=0.17/REST DURATION BEATS=0.33PITCH NOTE=F3but/PITCH/DURATION DURATION BEATS=0.67PITCH NOTE=Bb3you'll/PITCH/DURATION DURATION BEATS=0.33PITCH NOTE=D4look/PITCH/DURATION DURATION BEATS=0.67PITCH NOTE=C4sweet/PITCH/DURATION DURATION BEATS=0.33,0.67PITCH NOTE=F3,Bb3upon/PITCH/DURATION DURATION BEATS=0.33PITCH NOTE=D4the/PITCH/DURATION DURATION BEATS=0.34PITCH NOTE=C4seat/PITCH/DURATION DURATION BEATS=0.33PITCH NOTE=D4of/PITCH/DURATION DURATION BEATS=0.33PITCH NOTE=Eb4a/PITCH/DURATION DURATION BEATS=0.34,0.33,0.33PITCH NOTE=F4,D4,Bb3bicycle/PITCH /DURATION DURATION BEATS=0.67PITCH NOTE=C4built/PITCH/DURATION DURATION BEATS=0.33PITCH NOTE=F3for/PITCH/DURATION DURATION BEATS=1.0PITCH NOTE=Bb3two/PITCH/DURATION /SINGING Kind regards, Sonja Busch Hamburg,Germany May 18, 2012 ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: Documentation for festival output in Linux
I really liked the animation of Was bedeutet Zunge? but couldn't help but laugh when the pupils said Guten Morgen, Doktor Tox. That was really creepy :) How were the animations created? Nils On Thu, 17 May 2012 22:09:56 + (UTC) Sonja Busch tuxs...@googlemail.com wrote: 1.Concerncing a festival output with regard to speech recognition you can watch my animation video: http://www.dailymotion.com/video/xqnjc2_german-teacher-tux-text-to-speech- exp_creation At the end of this video there are 3 pages of howto. 2.Concering a festival output with regard to a singing voice please read the following summary: == 1. Play a (music)XML-file with a festival command: == Open a terminal and insert: festival Then your prompt should look like this: festival Insert at this prompt the command (with brackets): (tts /usr/share/doc/festival/examples/songs/daisy.xml 'singing) = 2. Create a WAV-File with a festival command of daisy.xml = Leave the festival prompt!!! (STRG and Z) Insert at the usual prompt: text2wave -mode singing /usr/share/doc/festival/examples/songs/daisy.xml -o /home/user/Desktop/daisy.wav“ Now you won't hear anything but the output file should be on your Desktop. Here is the text of the festival-file daisy.xml : ?xml version=1.0? !DOCTYPE SINGING PUBLIC -//SINGING//DTD SINGING mark up//EN Singing.v0_1.dtd [] SINGING BPM=80 DURATION BEATS=1.0,1.0PITCH NOTE=F4,D4Daisy/PITCH/DURATION DURATION BEATS=1.0,1.0PITCH NOTE=Bb3,F3Daisy/PITCH/DURATION DURATION BEATS=0.33PITCH NOTE=G3Give/PITCH/DURATION DURATION BEATS=0.33PITCH NOTE=A3me/PITCH/DURATION DURATION BEATS=0.34PITCH NOTE=Bb3your/PITCH/DURATION DURATION BEATS=0.67,0.33PITCH NOTE=G3,Bb3answer/PITCH/DURATION DURATION BEATS=1.5PITCH NOTE=F3do/PITCH/DURATION REST BEATS=0.5/REST DURATION BEATS=1.0PITCH NOTE=C4I'm/PITCH/DURATION DURATION BEATS=1.0PITCH NOTE=F4half/PITCH/DURATION DURATION BEATS=1.0,1.0PITCH NOTE=D4,Bb3crazy/PITCH/DURATION DURATION BEATS=0.33PITCH NOTE=G3all/PITCH/DURATION DURATION BEATS=0.33PITCH NOTE=A3for/PITCH/DURATION DURATION BEATS=0.34PITCH NOTE=Bb3the/PITCH/DURATION DURATION BEATS=0.67PITCH NOTE=C4love/PITCH/DURATION DURATION BEATS=0.33PITCH NOTE=D4of/PITCH/DURATION DURATION BEATS=1.5PITCH NOTE=C4you/PITCH/DURATION REST BEATS=0.17/REST DURATION BEATS=0.33PITCH NOTE=D4we/PITCH/DURATION DURATION BEATS=0.33PITCH NOTE=Eb4don't/PITCH/DURATION DURATION BEATS=0.33PITCH NOTE=D4need/PITCH/DURATION DURATION BEATS=0.33PITCH NOTE=C4a/PITCH/DURATION DURATION BEATS=0.67,0.33PITCH NOTE=F4,D4stylish/PITCH/DURATION DURATION BEATS=0.33,1.0PITCH NOTE=C4,Bb3marriage/PITCH/DURATION DURATION BEATS=0.33PITCH NOTE=C4I/PITCH/DURATION DURATION BEATS=0.67PITCH NOTE=D4can't/PITCH/DURATION DURATION BEATS=0.33,0.67PITCH NOTE=Bb3,G3afford/PITCH/DURATION DURATION BEATS=0.33PITCH NOTE=Bb3a/PITCH/DURATION DURATION BEATS=0.33,1.17PITCH NOTE=G3,F3carriage/PITCH/DURATION REST BEATS=0.17/REST DURATION BEATS=0.33PITCH NOTE=F3but/PITCH/DURATION DURATION BEATS=0.67PITCH NOTE=Bb3you'll/PITCH/DURATION DURATION BEATS=0.33PITCH NOTE=D4look/PITCH/DURATION DURATION BEATS=0.67PITCH NOTE=C4sweet/PITCH/DURATION DURATION BEATS=0.33,0.67PITCH NOTE=F3,Bb3upon/PITCH/DURATION DURATION BEATS=0.33PITCH NOTE=D4the/PITCH/DURATION DURATION BEATS=0.34PITCH NOTE=C4seat/PITCH/DURATION DURATION BEATS=0.33PITCH NOTE=D4of/PITCH/DURATION DURATION BEATS=0.33PITCH NOTE=Eb4a/PITCH/DURATION DURATION BEATS=0.34,0.33,0.33PITCH NOTE=F4,D4,Bb3bicycle/PITCH /DURATION DURATION BEATS=0.67PITCH NOTE=C4built/PITCH/DURATION DURATION BEATS=0.33PITCH NOTE=F3for/PITCH/DURATION DURATION BEATS=1.0PITCH NOTE=Bb3two/PITCH/DURATION /SINGING Kind regards, Sonja Busch Hamburg,Germany May 18, 2012 ___ 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