Re: Tutorial on writing lilypond functions?

2023-04-05 Thread Eef Weenink
Found: https://extending-lilypond.gitlab.io/en/scheme/functions.html I go from there. Op 6 apr. 2023, om 08:38 heeft Eef Weenink mailto:h.e.ween...@de-erve.nl>> het volgende geschreven: Using arranger.ly (thanks to Gilbert :-)) I am now at the point I want to automate more.

Tutorial on writing lilypond functions?

2023-04-05 Thread Eef Weenink
Using arranger.ly (thanks to Gilbert :-)) I am now at the point I want to automate more. And next step is probably working with scheme functions. Using https://lsr.di.unimi.it/LSR/Item?id= as a starter. As soon I try to change something I run into the fact that I don't kn

Lilypond functions

2021-03-03 Thread Silvain Dupertuis
Hello everyone, Functions in Lilypond can also be written in pure Sheme syntax like this #(define abcd     (lambda (x y ... )         PROCEDURE USING x y ...)) and then called within Lilypond with the syntax \abcd x y ... or within a Sheme fucntion with the syntax (abcd x y ...) If anyone is in

Re: Problem with Lilypond functions

2010-07-30 Thread Mike Solomon
Hey Jim, I think this does what you want... \version "2.13.29" createKey = #(define-music-function (parser location m k) (ly:music? list?) (let* ((p (ly:music-property (car (ly:music-property m 'elements))

Problem with Lilypond functions

2010-07-29 Thread jim.showalter
I have searched the archives and cannot find why the following is happening. They are contrived to demonstrate a larger problem. This one works as expected majorKey = #(define-music-function (parser location note ) (ly:music?) #{ a $note g #}) { \majorKey g } But what I really want to