Many thanks, Aaron. A clear and helpful answer!
The “why” was simply an exercise in seeing if I could cleanup a LP file by
using such syntactic sugar (to which the answer is no :-) ).
Thanks again
..m.
> On 19 Dec 2023, at 07:05, Aaron Hill wrote:
>
> On 2023-12-17 9:33 pm, Mark Probert
Dear Mark,
I did this in a slightly different way...if you do
\displayMusic c4\rest
you can see how to represent a rest using the make-music procedure in
scheme code. Modifying that a bit, I got
%
\version "2.25.6"
%\displayMusic c4\rest =
%(make-music
%'RestEvent
On 2023-12-17 9:33 pm, Mark Probert wrote:
Hi.
I'm struggling some with writing a music function for rests. Basically
I
want to be able to write something like
\rel-rest( b', 1)
Minor nit: Functions in LilyPond do not use parentheses and commas for
arguments in this way. You need only
Hi.
I'm struggling some with writing a music function for rests. Basically I
want to be able to write something like
\rel-rest( b', 1)
which would place a dotted quarter rest on the indicated pitch (the
equivalent of
b'1\rest
I'm starting with
rel-rest =
#(define-music-function (pit dur)
(+ i 1)
(append nts (list (ly:music-deep-copy note)
(else
;; when done, return the music
(make-music 'SequentialMusic 'elements nts)
{
\myNotes g'16 #8
}
--
View this message in context:
http://lilypond.1069038.n5.nabble.com/Help-with-music
Urs Liska u...@openlilylib.org writes:
\version 2.18.0
myNotes =
#(define-music-function (parser location note num)
(ly:music? number?)
Returns a series of notes. @var{note} is repeated @var{num} times.
@var{note} is supposed to be a single note.
;; iteration by named let
-deep-copy.
Thanks! That does look like a better approach.
-Paul
--
View this message in context:
http://lilypond.1069038.n5.nabble.com/Help-with-music-function-generating-music-tp160833p160879.html
Sent from the User mailing list archive at Nabble.com
Hi all,
I'm completely at a loss and need to get some help and pushes in the
right direction.
I'm for the first time trying to write a music function that actually
gerenates music events on its own, i.e. that doesn't use #{ #} to output
music.
The sections in the Scheme tutorial in the
.1069038.n5.nabble.com/Help-with-music-function-generating-music-tp160833p160857.html
Sent from the User mailing list archive at Nabble.com.
___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user
:
http://lilypond.1069038.n5.nabble.com/Help-with-music-function-generating-music-tp160833p160857.html
Sent from the User mailing list archive at Nabble.com.
___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo
#1 #-1/2
\makeFourQuarterNotes #0 #2 #1/2
}
--
View this message in context:
http://lilypond.1069038.n5.nabble.com/Help-with-music-function-generating-music-tp160833p160861.html
Sent from the User mailing list archive at Nabble.com.
___
lilypond
. What kind of override do you want
to apply to the notes?
Regards,
Tao
--
View this message in context:
http://lilypond.1069038.n5.nabble.com/Help-with-music-function-generating-music-tp160833p160866.html
Sent from the User mailing list archive at Nabble.com
)
(append nts (list (ly:music-deep-copy note)
(else
;; when done, return the music
(make-music 'SequentialMusic 'elements nts)
{
\myNotes g'16 #8
}
--
View this message in context:
http://lilypond.1069038.n5.nabble.com/Help-with-music-function-generating-music
Could someone with knowhow help me to debug this music function? I want a
function to create arrows in a Lilypond score:
arrow = #(define-music-function (parser location arg1 ) ( pair?)
#{
\markup { \line \draw-line #arg1 \arrow-head #X #RIGHT ##t }}
#})
When I process:
\version 2.16.0
2012/11/5 Vivian Barty-Taylor belast...@vivbt.nl:
Could someone with knowhow help me to debug this music function? I want a
function to create arrows in a Lilypond score:
arrow = #(define-music-function (parser location arg1 ) ( pair?)
#{
\markup { \line \draw-line #arg1 \arrow-head #X
Vivian Barty-Taylor belast...@vivbt.nl writes:
Could someone with knowhow help me to debug this music function? I
want a function to create arrows in a Lilypond score:
arrow = #(define-music-function (parser location arg1 ) ( pair?)
#{
\markup { \line \draw-line #arg1 \arrow-head #X
%% the function that will fail
tempoMarkEqual =
#(define-music-function (parser location before after)
(string? string?)
#{
\mark \markup \tiny { \note $before #1 = \note $after #1 }
#} )
with a '#' before $before and $after, it works.
Thanks a lot ! Can somebody explain why the #s
Hi lilypond helpers,
Here is a small program that does not compile:
---
\version 2.12.3
%% the function that will fail
tempoMarkEqual =
#(define-music-function (parser location before after)
(string? string?)
#{
\mark \markup \tiny { \note $before #1 =
On 29 January 2011 23:23, Eric Dedieu papa.e...@free.fr wrote:
Hi lilypond helpers,
Here is a small program that does not compile:
---
\version 2.12.3
%% the function that will fail
tempoMarkEqual =
#(define-music-function (parser location before after)
19 matches
Mail list logo