Vertical-Spacing

2009-08-07 Thread Jan-Peter Voigt
Hello Lilypond-Users, I am trying to set an eight-voice choral score in four staffs (SATB). This is working out very well and my choir-singing fellows appreciate the nice look of my lilypond-scores. Right now I am compiling a collection of pieces to a book. One of these pieces shows up

Re: Vertical-Spacing

2009-08-07 Thread Jan-Peter Voigt
schrieb Jan-Peter Voigt: Right now I am compiling a collection of pieces to a book. One of these pieces shows up with a phenomenom, wich I do not understand: The default-staff-size is set to 16 - that makes 3 SATB-systems. But there is one page with only 2 systems leaving a lot of blank space

Re: Strumming rhythm for chord progression

2009-08-14 Thread Jan-Peter Voigt
Hello Christian, everytime you want to enter chord, you have to put it in \chordmode. This version compiled in my Lilypond: -- \version 2.12.2 \header { title = \Creep\ by Radiohead } \new ChordNames { \chordmode { g1 g1:sus4 } } \new

Re: making a book with LilyPond

2009-08-31 Thread Jan-Peter Voigt
Hello Frederico, you can use \bookpart : \book { \bookpart{ \tocItem ... \header { title = ... } } \bookpart{ \tocItem ... \header { title = ... } } } If you surround every piece with a bookpart-statement, you dont need to

Re: Using Lilypond to produce publication-ready music

2009-09-08 Thread Jan-Peter Voigt
Hello Mark, one first point: to set the right margin, you have to set the line-width in the paper-block. This is, what I include in my scores (it does not fit your specifications, but should be adjustable): % set the paper size #(set-default-paper-size a4) \paper { % alternativly set

Re: using lilypond for leadsheets

2009-10-02 Thread Jan-Peter Voigt
Hello Peter, a short answer about transposition in schort: Need to transpose to 'C', 'Bb', 'Eb' and have treble and bass keys. What I do, if I have a trumpet voice is: - snippet --- \new Staff { \transposition bes % display in Bb for trumpet

Re: [Fwd: lilypond on eee pc]

2009-10-05 Thread Jan-Peter Voigt
Hello eeePc-Users, Ubuntu and Kubuntu both come in 'netbook remix' form. I think that has more to do with user interface than with size of the install, but it's worth looking into. That's right, I am using Ubuntu Netbook Remix on an eeepc 900a. I think its worth looking at ubuntu.com to see,

Re: Instrument name on second page

2009-10-27 Thread Jan-Peter Voigt
Hello Stan, David already wrote about 'instrument'. I thought this might be interesting. I often use a paper block like this: %--- date = #(strftime %d.%m.%Y (localtime (current-time))) \paper { % ... more paper defs ...

Re: Quit [now definitely O/T]

2009-11-12 Thread Jan-Peter Voigt
Hello Kieren, hello David, hello out there, I followed this conversation a little bit. Well I have been a quite good C++ coder, but that was about 10 years ago. Right now I am one of those million java developers. For my Job I had to turn to Java, wich I didn't really love. With Java5 it

Re: to unite two lilpypond files

2009-12-03 Thread Jan-Peter Voigt
Hello Mario, if you want to build one PDF from two .ly-files, you can also surround the scores with a \bookpart statement. Then you produce another .ly.file, wich includes the two sources. I often use this to combine several pieces to a 'book' and still be able to produce single PDFs piece

Re: Allegro

2009-12-23 Thread Jan-Peter Voigt
Hello, these statements won't change the tempo in midi output. If you want to modify the tempo in a midi file, you have to use \tempo 4=80 for eight quarters per minute. to have both nice text in the score and tempo in the midi file you can place two tempo statements: ... \tempo 4=120

Re: book-predicate

2012-03-02 Thread Jan-Peter Voigt
of its own. From 40a1419a051402ee4bac6d8f7fa65e5b8353b815 Mon Sep 17 00:00:00 2001 From: Jan-Peter Voigt jp.vo...@gmx.de Date: Fri, 2 Mar 2012 09:54:20 +0100 Subject: [PATCH] add ly:book-set-header! Add a scheme function ly:book-set-header! like ly:score-set-header! Function is copied from score

Re: book-predicate

2012-03-02 Thread Jan-Peter Voigt
On 02.03.2012 10:30, David Kastrup wrote: Jan-Peter Voigtjp.vo...@gmx.de writes: Hello David, hello lists, now, when we have a book-predicate, we are dealing with books in scheme. And then we might want to set a header after creating a book. There is a function ly:score-set-header!, which I

Re: book-predicate

2012-03-04 Thread Jan-Peter Voigt
Hello David, sorry for this kind-a-basic-scheme-question(s) ... ;-) How do I inject variables into an empty module? I assume, the string-eval approach loads up the whole guile-tool-chain, so that define is defined. The function I am thinking of shall work like this: pseudo-snip

Re: book-predicate / mail delay

2012-03-05 Thread Jan-Peter Voigt
Hello David, thank you for answering! Now I know about (make-module) and (module-define! ...) - these are the two I was missing, while reading the guile 1.8 docs ... So these are the set-book/score-headers! functions: --snip-- (define-public (set-book-headers! book header) (let ((bookhead

makeOctaves (LSR 445) 2.15 (ugly quick fix)

2012-03-05 Thread Jan-Peter Voigt
Hello list, I made a quick fix for the makeOctaves function from http://lsr.dsi.unimi.it/LSR/Item?id=445 Since 2.15.x notes may appear as single NoteEvents *not* wrapped in an EventChord, I added a check for 'NoteEvent and did a map on EventChord elements. This is an ugly solution, because

Re: Floating markup / Markup takes too much space

2012-03-09 Thread Jan-Peter Voigt
Hello Frank, the vertical spacing is always a difficult thing. First I would recommend to upgrade to the latest stable version 2.14 or better 2.15.33 (next stable 2.16 is almost finished) - there has been significant and improving changes to vertical spacing. But to get a little hint

Re: Old style numerals for page numbers

2012-03-14 Thread Jan-Peter Voigt
Hi Ben, the problem is, that these markup-command allow a markup as argument, but they are expecting strings to process. So if you redefine the markup-command: --snip-- #(define-markup-command (oldStyleNum layout props str) (string-or-symbol?) Old-style numerals (if (symbol? str)(set! str

Re: Barline type before \time change

2012-04-13 Thread Jan-Peter Voigt
Hello Urs, There are two possibilities: 1.: use a little music-function-helper: --snip-- \version 2.15.36 dbtime = #(define-music-function (parser location frac)(fraction?) #{ \bar || \time $frac #}) % example \relative c' { c4 e g b \dbtime 3/4 c des b | c2. } --snip-- but this

Re: \makeOctaves broken?

2012-04-19 Thread Jan-Peter Voigt
Hello Urs, the articulations are were copied to the EventChord - so I added copying the articulations from NoteEvent to EventChord. That means, they should not stay in the NoteEvents when getting wrapped into the EventChord: --snip-- \version 2.15.36 #(define (with-octave-up m octave)

Re: \makeOctaves broken?

2012-04-19 Thread Jan-Peter Voigt
Hello David, thank you for implementing this stuff! This is nice, but there are two things to mention: 1. with Urs' example, lily complains about Slurs it can't finish 2. if you try this tiny snippet, the chord g b is actually broken in two notes and the slur is typed twice. So how do you

Re: conditional branch within scheme

2012-04-23 Thread Jan-Peter Voigt
Dear Stefan, here's a try, that has a parameter dir, which takes a symbol. If the symbol equals 'above, the Staff is aligned above, else below: --snip-- \version 2.14.2 ossiastaff = #(define-music-function (parser location x dir y) ( string? symbol? ly:music? ) (let ((align (if (eq? 'above

Re: Access font-name in markup functions

2012-04-25 Thread Jan-Peter Voigt
Hello Urs, if you are using the current devel version, you can wrap any markup with #{ #} --snip-- \version 2.15.37 #(define-markup-command (nfont layout props arg)(markup?) (interpret-markup layout props #{ \markup { \override #'(font-name . DejaVu Sans) $arg } #})) \markup {

Re: quotation marks in lyricmode

2012-04-26 Thread Jan-Peter Voigt
This is almost, what I just was about to write ... just another hint: you can also enter any character in a markup with the \char command. The codes are 8222 and 8220. If you want to circumvent \markup \concat { \char #8222 Ich }, you might use a music-function, to wrap syllables in quotes. I

Re: is shapeSlur broken?

2012-04-27 Thread Jan-Peter Voigt
Hello Urs, yes there was a syntax change: you might try shapeSlur = #(define-music-function (parser location offsets)(list?) #{ \once \override Slur #'control-points = $(shape-slur offsets) #}) Variables in musicfunctions now are available by there name without the preceding $. The

Re: is shapeSlur broken?

2012-04-27 Thread Jan-Peter Voigt
Hello David, I would write #(shape-slur offsets) here: there is no need for an immediate Scheme expression here (the point of $ over # is that the syntactical function of the $ expression is determined by its expression type, but here the syntactical function needed is Scheme anyway). thank

table-of-contents page links

2012-04-27 Thread Jan-Peter Voigt
Hello list, for some Books, I set the first page number to -1, to start page numbers with the real music. Now the PDF-internal links to the corresponding pages refer to the wrong page: If a tocItem displays page 8 it will open PDF-page 8 but that has the printed page-number 6, if its started

Re: table-of-contents page links

2012-04-28 Thread Jan-Peter Voigt
Hello Harm, thanks alot! This seems to do the trick. I will have a deeper look at it next days. Cheers, Jan-Peter On 28.04.2012 01:53, Thomas Morley wrote: \version 2.15.36 #(define (book-first-page layout props) (define (ancestor layout) Return the topmost layout ancestor

Re: Clickable table of contents

2012-05-07 Thread Jan-Peter Voigt
Hello Àlex and Frederico, the toc-markup is executed/expanded, when the markuplist with table-of-contents is created. So \fromproperty #'header:title gets the title from the bookpart containing the tocs. To have a method, that sets the title and the toc item in one step, there has to be

Re: is shapeSlur broken?

2012-05-10 Thread Jan-Peter Voigt
Hello David, hello Urs, thank you very much for these improvements! I have a tiny addition: PhrasingSlurs --snip-- shapePhrasingSlur = #(define-music-function (parser location offsets) (list?) #{ \once \override PhrasingSlur #'control-points = #(shape-curve offsets

Re: function that inserts a toplevel expression

2012-05-10 Thread Jan-Peter Voigt
Hello Urs, On 10.05.2012 12:40, Urs Liska wrote: Hi David, thank you for the reply Am 10.05.2012 12:05, schrieb David Kastrup: Urs Liskali...@ursliska.de writes: So now the question: How can I write a function that produces a toplevel expression? No such thing. :-( an _ugly_ way is to

Re: function that inserts a toplevel expression

2012-05-10 Thread Jan-Peter Voigt
Hi David, Am 10.05.2012 um 19:02 schrieb David Kastrup d...@gnu.org: Jan-Peter Voigt jp.vo...@gmx.de writes: ... thanks to Davids remarkable parser refinements. (I was not amused in the first place, rewriting/updating my scores accordingly, but IMO these changes are a major step forward

Re: is shapeSlur broken?

2012-05-14 Thread Jan-Peter Voigt
Hello Harm and list, thank you very much for this function! I really like it :-) Now I just wanted to share my way to shorten the input: \shape #'(((0 . 0)(0 . 0.3)(0 . 0.3)(0 . 0))) is a long thing to type. Most times I only want to adjust the y-part of the two inner control-points -

Re: is shapeSlur broken?

2012-05-14 Thread Jan-Peter Voigt
On 14.05.2012 12:34, David Kastrup wrote: Jan-Peter Voigtjp.vo...@gmx.de writes: Hello Harm and list, Could you try _not_ posting in HTML? This mail had both a plain text as well as an HTML-specified part, and both rendered awfully here. If you send just as plain text, chances are that

Re: Opening parentheses in lyrics don't appear

2012-06-11 Thread Jan-Peter Voigt
Hello Philip, you might use markup-lists. In markups, the parens are typeset: --snip-- \version 2.15.40 % should run in 2.14 % define a music-function, to convert a markup-list to a list of LyricEvents lyricmarkup = #(define-music-function (parser location mup)(markup-list?) (make-music

shape and chords

2012-06-19 Thread Jan-Peter Voigt
Hello list, hello David, I have two questions concerning the \shape command (2.15.40) created by David Nalesnik: 1. Is it possible to shape ties in a chord? { \shape Tie #'(((0 . 0)(0 . 1)(0 . -1)(0 . 0))((0 . 0)(0 . 1)(0 . -1)(0 . 0))) c' e' g' b'1 ~ | q4 } 2. In the development version

Re: shape and chords

2012-06-19 Thread Jan-Peter Voigt
Hi David, thanks for your reply! Am 19.06.2012 um 19:20 schrieb David Nalesnik: Hi Jan-Peter, On Tue, Jun 19, 2012 at 7:51 AM, Jan-Peter Voigt jp.vo...@gmx.de wrote: Hello list, hello David, I have two questions concerning the \shape command (2.15.40) created by David Nalesnik: 1

Re: Reverse Lilypond Book...

2012-06-21 Thread Jan-Peter Voigt
Hi Sami, for the purpose of a text at the beginning of a music-book, I created a markup-list command. This command expects some installed commands: pdflatex and/or xelatex, pdftops and pdfinfo. I use ubuntu so this is installed via aptitude and callable on the console. I don't know anything

Nested Musicfunctions - location

2012-06-25 Thread Jan-Peter Voigt
Hello list, here's my approach to inherit the input-location in nested music-functions: --snip-- \version 2.15.40 % a test function, which simply outputs the location test = #(define-music-function (parser location mus)(ly:music?) (ly:input-message location ~A location) mus) % a

Re: combining pieces in one book

2012-06-25 Thread Jan-Peter Voigt
Hi David, what do you mean by assignments? I'm not a native speaker and not familiar with programming. Is assignments a fix set of command? Kai Hello Kai, it's the assignment of a variable in lily-syntax: --snip-- % allowed musik = \relative c'' { bes a c b } % not allowed \score { musik

stop/pause partcombine

2012-07-18 Thread Jan-Peter Voigt
Dear list, I am working on a piece using partcombine. This works great - I just like to stop the partcombining, if there are only few notes 'a due' in a longer passage: --snip-- \version 2.15.40 { \partcombine \relative c'' { % how to prevent a2 for this single e? c4 b c d | e fis g g |

Re: stop/pause partcombine

2012-07-18 Thread Jan-Peter Voigt
Hi Janek, thank you :-) ... I was so deep in my work, that I did not find this part ... I should have rtfm ... ;-) cheers, Jan-Peter On 18.07.2012 13:42, Janek Warchoł wrote: Hi Jan-Peter, On Wed, Jul 18, 2012 at 9:23 AM, Jan-Peter Voigt jp.vo...@gmx.de wrote: I want to use the merging

Re: Waltrop meeting outline

2012-08-19 Thread Jan-Peter Voigt
Wow, this sounds very interesting and I am really sad, that I can not join this meeting. Will you record and publish parts on video or audio? Well, of course there has to be a somewhat recordable prepared presentation ... someone preparing and presenting. I hope you have a somewhat successful

Re: Slur between different \score sections?

2012-08-20 Thread Jan-Peter Voigt
Hello Daniel, I usually use \repeatTie/\repeatSlur and \laissezVibrer to create half/broken slurs or ties. So you end the first piece with (for example) { ... c1\laissezVibrer } and start the next one with (for example) { c4\repeatTie ... } Here's a tiny example with the new \shape (v

Re: problem with acciaccatura

2012-08-27 Thread Jan-Peter Voigt
Hello fabio, you can use an override: \relative c' { \once \override Slur #'direction = #UP \acciaccatura d'8 c, aes' c } That leaves any slurUp/slurDown/slurNeutral intact and changes direction only for this particular slur. HTH Jan-Peter On 27.08.2012 14:48, fabio gabbianelli wrote:

partcombine and instrumentSwitch

2012-09-13 Thread Jan-Peter Voigt
Hello list, I am using partcombine in a piece, wich makes use of instrumentSwitch. Now this leads to a stack of 4 times piccolo in this example. --snip-- \addInstrumentDefinition #piccolo #`((instrumentName . Piccolo) (shortInstrumentName . Pc.) (instrumentCueName . Piccolo)

Re: partcombine and instrumentSwitch

2012-09-14 Thread Jan-Peter Voigt
Thank you, Harm and Keith for your solutions! I will now introduce the layout solution in my include files :-) Cheers, Jan-Peter On 14.09.2012 08:02, Keith OHara wrote: Jan-Peter Voigt jp.voigt at gmx.de writes: I am using partcombine in a piece, wich makes use of instrumentSwitch. Now

Re: partcombine and instrumentSwitch

2012-09-14 Thread Jan-Peter Voigt
Hi David, On 14.09.2012 10:53, David Kastrup wrote: It is often a tossup whether you are better off using the partcombiner on voices, or just \voiceOne/\voiceTwo. If, say, one of two oboes switches instruments, you just want to see this for its own voice. In fact, I find that for things like

Re: partcombine and instrumentSwitch

2012-09-14 Thread Jan-Peter Voigt
On 14.09.2012 11:23, Thomas Morley wrote: But while using separate voices, LilyPond prints the instrumentCueName twice, too. Or did I sth wrong? \version 2.16.0 \addInstrumentDefinition #piccolo #`((instrumentName . Piccolo) (shortInstrumentName . Pc.) (instrumentCueName . Piccolo)

Re: lilypond-book \begin{lilypond} does not accept options

2012-10-25 Thread Jan-Peter Voigt
Hello Mario, you may try to put the options before the curly brackets: \begin[line-width=12\cm,staffsize=14]{lilypond} ... There has been a change a while ago, that lilypond environment looks like other envs, IIRC. Cheers, Jan-Peter Am 25.10.2012 um 15:10 schrieb Mario Raffin: Dear All,

Re: quoteDuring for lyrics?

2012-11-11 Thread Jan-Peter Voigt
Hello Mogens, AFAIK quoted lyrics has to be done manually right now. In those cases, I usually create a CueVoice=mycue and quote the needed music in there. Then I can create Lyrics (with a smaller font) that is assigned to that voice with \lyricsto mycue. Those cases are not too often, so I

scheme engraver and multiple voices

2013-01-04 Thread Jan-Peter Voigt
Hello list, I am experimenting with scheme engravers and have an issue with simultanious voices: --snip-- \version 2.16.0 \layout { \context { \Voice \consists #(let ((ccid 1)) (lambda (context) (let ((id ccid)) (set! ccid (+ 1 ccid)) `((start-translation-timestep . ,(lambda

Re: scheme engraver and multiple voices

2013-01-04 Thread Jan-Peter Voigt
Hello again, sorry for reposting, but thunderbird (again) crashed the code layout ... Cheers, Jan-Peter Am 04.01.2013 14:54, schrieb Jan-Peter Voigt: Hello list, I am experimenting with scheme engravers and have an issue with simultanious voices. This little snippet prints out

Re: scheme engraver and multiple voices

2013-01-04 Thread Jan-Peter Voigt
, On Fri, Jan 4, 2013 at 8:00 AM, Jan-Peter Voigt jp.vo...@gmx.de wrote: Hello again, sorry for reposting, but thunderbird (again) crashed the code layout ... Cheers, Jan-Peter Am 04.01.2013 14:54, schrieb Jan-Peter Voigt: Hello list, I am experimenting with scheme engravers and have an issue

Re: Use functions within functions

2013-01-08 Thread Jan-Peter Voigt
Hi Noeck, here's a little snippet with a nonsense-function, embedding one function in another in two ways: %--snip-- \version 2.16.1 % define a music function funA = #(define-music-function (parser location x y)(number? number?) (ly:input-message location I am here!)

Re: Guide to Writing Orchestral Scores with Lilypond?????

2013-01-09 Thread Jan-Peter Voigt
Hello Urs, Antonio and list, this is a great tutorial Urs. I will recommend it to people whom I gave introductions and who want to step further. I recently introduced one guy, with plain lilypond (no scheme, no tricks) to produce some SATB-sheets. As we can see in this thread, there are a lot

Re: Guide to Writing Orchestral Scores with Lilypond?????

2013-01-09 Thread Jan-Peter Voigt
Hello Urs, Am 09.01.2013 um 11:55 schrieb Urs Liska: Am 09.01.2013 09:13, schrieb Jan-Peter Voigt: I really would like to discuss this stuff with other ponders - but this list should'nt be spoiled with such discussions and scare new users with intimate scheme-expressions ... If we would

Re: Guide to Writing Orchestral Scores with Lilypond?????

2013-01-10 Thread Jan-Peter Voigt
Hello Urs, Am 09.01.2013 um 17:31 schrieb Urs Liska: Am 09.01.2013 13:48, schrieb Jan-Peter Voigt: Am 09.01.2013 um 11:55 schrieb Urs Liska: Am 09.01.2013 09:13, schrieb Jan-Peter Voigt: I really would like to discuss this stuff with other ponders - but this list should'nt be spoiled

Re: Guide to Writing Orchestral Scores with Lilypond?????

2013-01-10 Thread Jan-Peter Voigt
Great! I would like to join in and I am going to host my lib/framework on github too with the option and goal of integration with openLilyLib and/or later lilypond. This morning I created a github account, so I am not familiar with its services (beside the usage of GIT). What are you missing

Re: Guide to Writing Orchestral Scores with Lilypond?????

2013-01-10 Thread Jan-Peter Voigt
So, tomorrow I will create a google group and look at the options of a google code site. I am a bit in a hurry - my kids are waiting ;) Cheers, Jan-Peter Am 10.01.2013 12:30, schrieb Urs Liska: Am 10.01.2013 09:33, schrieb Jan-Peter Voigt: Hello Urs, Am 09.01.2013 um 17:31 schrieb Urs

Re: multi-instrument parts

2013-01-16 Thread Jan-Peter Voigt
Hi Kieren, just stumbled across this thread. I once was trying to create an engraver, that recognizes transposition/instrument changes and inserts a time signature there. (IIRC it was a piece with a change between oboe and english horn) In the end I inserted tagged key-sigs, whenever I

Re: change barline type with time signature change

2013-01-22 Thread Jan-Peter Voigt
Hi Kieren, hi David, I darkly remember a scheme engraver, that did something, whenever a time-sig-schange happens. IIRC it is based on snippet from you David. One might reduce it to the following: --snip-- % engraver #(define-public timesig-barline (lambda (context) (let

Re: conditional include

2013-02-04 Thread Jan-Peter Voigt
Hi Urs, you can write a music-function that conditionally includes files. I use a function to include a file, if it exists. The if statement can of course also test for a option with ly:get-option. Best, Jan-Peter On 04.02.2013 16:48, Urs Liska wrote: Hi list, I don't know if I _could_

Re: conditional include

2013-02-05 Thread Jan-Peter Voigt
Am 05.02.2013 11:07, schrieb David Kastrup: Jan-Peter Voigt jp.vo...@gmx.de writes: Hi Urs, you can write a music-function that conditionally includes files. I use a function to include a file, if it exists. The if statement can of course also test for a option with ly:get-option. \version

cue lyrics

2013-02-07 Thread Jan-Peter Voigt
Hello lists, I am trying to get cued lyrics. There has been a mail of Rainhold Kainhofer: http://lilypond.1069038.n5.nabble.com/Obtaining-the-current-staff-s-context-id-from-withing-a-voice-td115463.html I can fetch the cueVoices parental Staff-ContextId ... see attached file ... but now I

Re: Compile twice with different includes

2013-02-15 Thread Jan-Peter Voigt
Hello Urs, On 14.02.2013 20:50, Urs Liska wrote: Hi list, maybe it's an academic question, but maybe it also triggers the curiosity of some Scheme-hackers ;-) I wouldn't call it academic - if want to build some kind of workflow, you will face the need for creating several pdfs from one

Re: Compile twice with different includes

2013-02-15 Thread Jan-Peter Voigt
Am 15.02.2013 11:40, schrieb Urs Liska: After a few test I have one further question. I managed to tweak your functions to my needs (i.e. make it _less_ generic, because I need it for a specific purpose). Attached you'll find my version of the function with example. I created a function that

Re: Compile twice with different includes

2013-02-15 Thread Jan-Peter Voigt
)) )) ; close let *and* define-void-function Am 15.02.2013 12:50, schrieb Urs Liska: Am 15.02.2013 12:39, schrieb David Kastrup: Urs Liska li...@ursliska.de writes: Am 15.02.2013 12:18, schrieb Jan-Peter Voigt: Am 15.02.2013 11:40, schrieb Urs Liska: You can create an adhoc-book in scheme

Re: Compile twice with different includes

2013-02-15 Thread Jan-Peter Voigt
o dear, thunderbirds always destroys any formatting done in frescobaldi ... here my working example as an attachment. Am 15.02.2013 13:01, schrieb Jan-Peter Voigt: OK, copypaste lost a paren ... but not in the let-line, but in the end of the whole function. let opens a new scope, so you start

Re: change barline type with time signature change

2013-02-27 Thread Jan-Peter Voigt
Hi Kieren, hi David K., applyContext is good for doing somethind conditionally anywhere in the music stream: cond = ##t mod = \with { \override NoteHead #'color = #red } \relative c' { c4 e g b \applyContext #(lambda (context) (if cond (ly:context-mod-apply! context mod))) c a f d c1 }

Re: change barline type with time signature change

2013-02-27 Thread Jan-Peter Voigt
Am 27.02.2013 12:45, schrieb David Kastrup: Jan-Peter Voigt jp.vo...@gmx.de writes: Hi Kieren, hi David K., applyContext is good for doing somethind conditionally anywhere in the music stream: cond = ##t mod = \with { \override NoteHead #'color = #red } \relative c' { c4 e g b

Re: How to get a book twice with different page-footers?

2013-03-22 Thread Jan-Peter Voigt
Hello Harm, I don't have a solution, but I found, that not-first-page is not defined in the global space. You can't access it with $(display not-first-page). If you (re-)define a procedure #(define (not-first-page layout props arg) (interpret-markup layout props arg)) the example compiles. So

Re: Macro not working with 2.16

2013-04-10 Thread Jan-Peter Voigt
Hello Alberto, the change was introduced in 2.13 or 2.15(?). If you remove the dollar signs inside the scheme expression ($nom - nom) (but not inside the lily code $mus), it should work: #{ \set Score.measurePosition = #(ly:make-moment (- nom) den) $mus #} HTH Jan-Peter Am 10.04.2013 14:50,

Re: How to get dynamics centred on a piano staff?

2013-04-22 Thread Jan-Peter Voigt
Hello Peter, you can use a Dynamics context in the middle of the PianoStaff: \new PianoStaff \new Staff = RH \relative c' { c8 d e f g a bes b | c1 } \new Dynamics = dyn { s1\p\ s1\f } \new Staff = LH \relative c { \clef bass c8 d e f g a bes b | c1 } HTH, Jan-Peter Am 22.04.2013 17:54,

Re: Finale and Sibelius files

2013-04-23 Thread Jan-Peter Voigt
Am 23.04.2013 10:09, schrieb David Kastrup: Phil Holmes m...@philholmes.net writes: - Original Message - From: Urs Liska u...@openlilylib.org To: lilypond-user@gnu.org Sent: Monday, April 22, 2013 9:09 PM Subject: Finale and Sibelius files could somebody be so kind and send me Finale

Re: LilyPond Linux distro?

2013-04-23 Thread Jan-Peter Voigt
Hi Ryan, like Frederico mentioned, you don't need more than damn small linux, lilypond and frescobaldi. But one thing, I would like to ask in this context is, what would it mean, to set up a repository - in ubuntu it probably would be a PPA on launchpad - where you can install the current

Re: \shape question

2013-04-24 Thread Jan-Peter Voigt
Hi Urs, the order of the arguments changed in 2.17: \shape #'((0 . 0)(0 . 0)(0 . 0)(0 . 0)) Slur should work. The second argument now also may be music, so that you can use in a tweak fashion: c-\shape #'((0 . 0)(0 . 0)(0 . 0)(0 . 0)) ( d) HTH best, Jan-Peter Am 24.04.2013 10:57, schrieb

Re: concatenating/converting string variables ?

2013-05-17 Thread Jan-Peter Voigt
Hi Paul, Am 17.05.2013 09:45, schrieb Paul Malcolm: excuse me, just a trivial question, but I cannot seem to find the answer. I want to add the date variable to one element of text in my title. I have this in the preamble date = #(strftime %d-%m-%Y (localtime (current-time))) What I want to

Re: quotes and commas in lyrics

2013-06-20 Thread Jan-Peter Voigt
Hi Gerard, isn't \Some -- day\, what you want? HTH Cheers, Jan-Peter Am 20.06.2013 10:26, schrieb Gerard McConnell: Hello, the following: \Some -- day\, produces: syntax error, unexpected ',' and \Some -- day,\ gets Some-day, however the result I want is: Some-day, What

Re: Pattern-generating Scheme function challenge

2013-07-16 Thread Jan-Peter Voigt
Hi there, I am not at home ... so here is not a solution, but here is a little snippet, that includes two functions, that may be helpful: \version 2.16.1 musA = \relative c'' { bes4 a c b } musB = #(music-map (lambda (m) (let* ((mus m) (dur (ly:music-property mus 'duration))) (if

Re: Pattern-generating Scheme function challenge

2013-07-16 Thread Jan-Peter Voigt
OK, sorry ... I missed the point, you want pattern generation ;) --snip-- #(use-modules (srfi srfi-60)) #(define-public pattern (define-music-function (parser location n pitch dur) (integer? ly:pitch? ly:duration?) (let ((l (list))) (define (pat i) (if ( i n) (append (pat (* 2 i))

Re: feature request: abs-fontsize available for all text grobs

2013-07-22 Thread Jan-Peter Voigt
Hi Kieren, now I am looking at this feature request and maybe have an idea ... later more on that. Your snippet here fails, because the InstrumentName grob has two properties 'long-text and 'text, which may or may not be set. The 'text property is only set, when you define a

Re: feature request: abs-fontsize available for all text grobs

2013-07-22 Thread Jan-Peter Voigt
Hi Kieren and list, now I tried to add a feature to ly:grob-interpret-markup - this is working for instrumentName, but not for TextScript. So one has to look into text-interface.cc ... AFAICS But before using a property 'font-size-mode (or whatever you name it), would'nt it might be more

Re: feature request: abs-fontsize available for all text grobs

2013-07-22 Thread Jan-Peter Voigt
be calculated as needed based on the grob-layout-settings. Then the lambda could be hidden in a scheme-function, so it might look like \override TextScript #'font-size = \absolute 30 Best, Jan-Peter Am 22.07.2013 11:49, schrieb David Kastrup: Jan-Peter Voigt jp.vo...@gmx.de writes: Hi Kieren and list

Re: feature request: abs-fontsize available for all text grobs

2013-07-22 Thread Jan-Peter Voigt
On 22.07.2013 12:31, David Kastrup wrote: Jan-Peter Voigt jp.vo...@gmx.de writes: as one can read in http://www.lilypond.org/doc/v2.17/Documentation/extending/callback-functions.html you can use callback-functions on /all/ grob-properties ... so why doesn't this work? \override TextScript

Re: feature request: abs-fontsize available for all text grobs

2013-07-22 Thread Jan-Peter Voigt
On 22.07.2013 12:31, David Kastrup wrote: The settings of font-interface and text-interface become part of the props alist list for markup interpretation. At the time a markup is interpreted, no information about a possibly responsible grob is available, so no callbacks can be executed. OK, so

Re: feature request: abs-fontsize available for all text grobs

2013-07-23 Thread Jan-Peter Voigt
Hello David, thanks for your hint :) Hello Kieren, how do you like this solution? It uses an engraver which acknowledges text-interface and font-interface (maybe we only need font-interface) and then wraps found markups in 'text and 'long-text (for InstrumentName grob) in (markup

Re: feature request: abs-fontsize available for all text grobs

2013-07-23 Thread Jan-Peter Voigt
Thank you again, David ... nice ... one more question: The symbol list is meant for (list /interface/ /property/)? I still use (ly:grob-set-property! grob sym val) and catch interface and property with car and cadr respectivly. Or is there another way/use in 2.17? Cheers, Jan-Peter Am

Re: feature request: abs-fontsize available for all text grobs

2013-07-30 Thread Jan-Peter Voigt
Hi David, you gave at least two essential clues/hints and the result wouldn't be there now without them - so I would not call it a wrong direction. Cheers, Jan-Peter Am 29.07.2013 um 17:14 schrieb David Kastrup d...@gnu.org: Kieren MacMillan kieren_macmil...@sympatico.ca writes: Hi

Re: Create different pdf layers

2013-08-01 Thread Jan-Peter Voigt
Hi Urs, isn't the layer grob property what you want? This is what I use to interrupt ties (or slurs) if they collide with a time signature: % to have the time sig behind the staff symbol \override Staff.TimeSignature #'layer = #-5 % whiteout anything behind the time sig \override

Re: Create different pdf layers

2013-08-01 Thread Jan-Peter Voigt
Am 01.08.2013 11:07, schrieb Jan-Peter Voigt: isn't the layer grob property what you want? no, it isn't ... but if one comes up with the right pdfmark ps command, there has to be a check of this layer property to avoid inconsistent lily- and pdf-layers. Best, Jan-Peter

Re: Create different pdf layers

2013-08-01 Thread Jan-Peter Voigt
Am 01.08.2013 15:01, schrieb Urs Liska: I could imagine declaring a specific lilypond layer as a pdf layer at the top of the file and later look for elements of this layer. That way I would be responsible myself and by default there wouldn't be any matching inconcistencies. Something like

Re: feature request: abs-fontsize available for all text grobs

2013-08-01 Thread Jan-Peter Voigt
... maybe this is related to this issue: https://codereview.appspot.com/12242043/ Am 01.08.2013 15:21, schrieb Jan-Peter Voigt: Hi Kieren, I did some checks on the absolute font-sizes: - If you do a stencil-add on a stencil created via grob-interpret-markup and interpret-markup inside

Re: feature request: abs-fontsize available for all text grobs

2013-08-01 Thread Jan-Peter Voigt
I will try later That's what a quick googling showed up for me too. Cheers, jp Am 01.08.2013 um 15:40 schrieb David Kastrup d...@gnu.org: Jan-Peter Voigt jp.vo...@gmx.de writes: Hi Kieren, I did some checks on the absolute font-sizes: - If you do a stencil-add on a stencil created via

Re: feature request: abs-fontsize available for all text grobs

2013-08-02 Thread Jan-Peter Voigt
Am 01.08.2013 15:40, schrieb David Kastrup: Jan-Peter Voigt jp.vo...@gmx.de writes: Hi Kieren, I did some checks on the absolute font-sizes: - If you do a stencil-add on a stencil created via grob-interpret-markup and interpret-markup inside a normal markup, they exactly match- - If you do

Re: feature request: abs-fontsize available for all text grobs

2013-08-04 Thread Jan-Peter Voigt
Am 02.08.2013 19:15, schrieb David Kastrup: Kieren MacMillan kieren_macmil...@sympatico.ca writes: Hi, Kieren reported inconsistent sizes depending on how the absolute font size was arrived at. Particularly when I used e.g., #(set-global-staff-size 25.5) Do you have a complete example

Re: Steinberg's progress report on new notation software

2013-08-08 Thread Jan-Peter Voigt
I'm not that surprised. During the last few years I became something nerd-like. After beeing a Mac-User for a long time, I now only use Ubuntu or Debian and all its related tools for my everyday work. So for me using lilypond is a quite natural thing and I am getting better and quicker using

Re: Steinberg's progress report on new notation software

2013-08-08 Thread Jan-Peter Voigt
Am 08.08.2013 14:02, schrieb Richard Shann: On Thu, 08 Aug 2013 12:06:36 +0200 Jan-Peter Voigt jp.vo...@gmx.de wrote: If I import some musicXML the virtual instruments sound much better than the standard midi output of either timidity or mac-quicktime. Isn't this just a question of which

Re: SMuFL

2013-08-09 Thread Jan-Peter Voigt
standard - IMHO this is a good thing - it is an open standard and lilypond might use any SMuFL compliant font. And that we don't forget it ;) musicXML export would also open lilypond for other uses. Jan-Peter Voigt ___ lilypond-user mailing list

Re: Steinberg's progress report on new notation software

2013-08-09 Thread Jan-Peter Voigt
Am 08.08.2013 14:09, schrieb David Kastrup: Well, if enough people only slightly overstep a line, it will disappear. I think it would make sense to expand on most followup thoughts in our own blog, once they can't be expected to be of much interest to Daniel. While he will be able to answer

  1   2   3   4   5   6   >