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 Urs Liska
Hello Jan-Peter, thank you very much! The example file works perfectly. Now I'll have to see how (and where exactly) I include it in my material. I'll soon give all that back (guess you can guess where ...) :-) Best Urs Am 15.02.2013 09:37, schrieb Jan-Peter Voigt: Hello Urs, On

Re: Compile twice with different includes

2013-02-15 Thread 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 only takes the \book as its argument,

ties over several notes

2013-02-15 Thread Stefan Thomas
Dear community, is there a way to connect several notes with ties with just one command? I hate writing things like that: \relative { c4. d8 ~ d4. ~ | d2~ d8 e4. } I would like to do it like this: \relative { c2. \maketies { d8 d4. d2 d8 } e4. } ___

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 Urs Liska
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 with a #{-#} construct: writeScoreOddEven = #(define-void-function (parser location score) (ly:score?) (let ((book #{ \book { \score { $score } } #})) ; process with

Re: Compile twice with different includes

2013-02-15 Thread 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 with a #{-#} construct: writeScoreOddEven = #(define-void-function (parser location score)

Re: Compile twice with different includes

2013-02-15 Thread 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 with a #{-#} construct: writeScoreOddEven =

Re: Compile twice with different includes

2013-02-15 Thread David Kastrup
Urs Liska li...@ursliska.de writes: 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 with a #{-#} construct:

Re: Compile twice with different includes

2013-02-15 Thread 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 with a new block: (let ((book #{ ... #}) (something-else 42)) ; paren closes definitions ; now do something inside this scope using the defined vars

Re: Slur and tie between chords

2013-02-15 Thread Janne Uusitalo
On Wed, Feb 13, 2013 at 10:16 AM, Janne Uusitalo janne.uusit...@gmail.com wrote: Any ideas on how do I make the slur connect the two higher notes instead of the two lower ones? On Wed, Feb 13, 2013 at 11:00 AM, TaoCG tao_lilypondu...@gmx.net wrote: One possibility is to use a third voice

Re: Slur and tie between chords

2013-02-15 Thread David Kastrup
Janne Uusitalo janne.uusit...@gmail.com writes: ^( worked as intended, but in this case, despite Gould, I wanted to direct the slurs down to not interfere with the first bass melody. I also tried \slurDown but it didn't seem to have an effect on ^(. Small wonder. ^ is an explicit up. Don't

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: Compile twice with different includes

2013-02-15 Thread Urs Liska
Am 15.02.2013 13:24, schrieb Jan-Peter Voigt: o dear, thunderbirds always destroys any formatting done in frescobaldi ... here my working example as an attachment. ;-) Just for the record: Attached is my final version of the function (that will go into openLilyLib ...). I (re-)added a

Re: Compile twice with different includes

2013-02-15 Thread Urs Liska
Followup: When I try to _use_ that function from another Scheme function I get a strange error message, although the generated files are right: Attached you'll find a .ly file with a function that calls writeScoreOddEven. When I run it I get this message at the very end of the process:

seeking advice on my music programming project

2013-02-15 Thread Gerard McConnell
Hello, I've written a set of Java applets to help students practise first year counterpoint exercises. How could I go about finding out if someone somewhere would be interested in giving advice on its design or any other aspect? In a perfect world someone might like to help with the coding, but

Re: ties over several notes

2013-02-15 Thread Kieren MacMillan
Hi Stefan, is there a way to connect several notes with ties with just one command? I think the Completion_heads_engraver does this for you. http://lilypond.org/doc/v2.17/Documentation/internals/completion_005fheads_005fengraver Hope this helps! Kieren.

Re: Compile twice with different includes

2013-02-15 Thread David Kastrup
Urs Liska li...@ursliska.de writes: UsageTest.ly:13:4: In expression ((#procedure embedded-lilypond # parser \\writeScoreOddEven #1 \\score { $score } ...)): /home/uliska/Github/openLilyLib/OLLincludes/compilationTools/writeScoreOddEven- UsageTest.ly:13:4: Wrong type to apply: #unspecified

Re: seeking advice on my music programming project

2013-02-15 Thread Shane Brandes
Can you make the measures less long so you can easier see the whole cantus firmus? There is a vast amount of space for one note at a time. Shane On Fri, Feb 15, 2013 at 11:24 AM, Gerard McConnell gerine...@gmail.comwrote: Hello, I've written a set of Java applets to help students practise

Re: seeking advice on my music programming project

2013-02-15 Thread Gerard McConnell
Nope, I haven't figured out how to do that. On Fri, Feb 15, 2013 at 5:03 PM, Shane Brandes sh...@grayskies.net wrote: Can you make the measures less long so you can easier see the whole cantus firmus? There is a vast amount of space for one note at a time.

Re: Compile twice with different includes

2013-02-15 Thread Urs Liska
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. Ah, OK. And since I 'corrected' the non-matching brackets in the line itself, Frescobaldi's syntax highlighting led me to believe everything was alright

Re: ties over several notes

2013-02-15 Thread Gilles
Le vendredi 15 février 2013 11:38:08 Kieren MacMillan a écrit : Hi Stefan, is there a way to connect several notes with ties with just one command? I think the Completion_heads_engraver does this for you. http://lilypond.org/doc/v2.17/Documentation/internals/completion_005fheads_0 1- If