1 % DO NOT EDIT this file manually; it is automatically
2 % generated from Documentation/snippets/new
3 % Make any changes in Documentation/snippets/new/
4 % and then run scripts/auxiliar/makelsr.py
6 % This file is in the public domain.
7 %% Note: this file works from version 2.15.27
14 In music that contains many occurrences of the same sequence of notes
15 at different pitches, the following music function may prove useful.
16 It takes a note, of which only the pitch is used. This example
17 creates the rhythm used throughout Mars, from Gustav Holst's The
21 doctitle = "Creating a sequence of notes on various pitches"
26 #(define-music-function (parser location p) (ly:pitch?)
27 "Make the rhythm in Mars (the Planets) at the given pitch"
28 #{ \times 2/3 { $p 8 $p $p } $p 4 $p $p 8 $p $p 4 #})