[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Function to add a drone staff?
From: |
Gilles |
Subject: |
Re: Function to add a drone staff? |
Date: |
Fri, 10 Apr 2015 00:55:42 +0200 |
User-agent: |
Scarlet Webmail |
Hello.
On Thu, 9 Apr 2015 17:35:53 +0200, Sven Axelsson wrote:
On 9 April 2015 at 17:27, Paul Morris <address@hidden> wrote:
Gilles Sadowski wrote
Is there a way (i.e. a function) to automatically add a staff for a
bagpipe's drone note(s)?
Hi, Here's a start, a function to change all the pitches of a melody
to a
given pitch. Not tested on real music... (Since you only want the
drone
notes in midi maybe you don't need to deal with chords, which makes
the
coding simpler.)
HTH,
-Paul
Hat tip to David Kastrup for this example:
https://lists.gnu.org/archive/html/lilypond-user/2012-03/msg00621.html
%%%%%%%%%%%%%%%
dronify =
#(define-music-function (parser location drone melody)
(ly:pitch? ly:music?)
(map-some-music
(lambda (m)
(and (ly:pitch? (ly:music-property m 'pitch))
(begin
(set! (ly:music-property m 'pitch) drone)
m)))
melody)
melody)
melody = \relative f' {
c4 r c8 d8 r4
g2 r4 b4
}
<<
\melody
\dronify g' \melody
\dronify g \melody
Intersting. I have never tried to generate midi output for bagpipe
music. I suspect grace notes are not handled well.
Not worse than in another kind of music. ;-)
But in regards to
the dronification, all of the music, both melody and drone, should be
played legato.
Indeed.
The solution devised by Paul works fine (Thanks!) except for
that aspect. With the "manual" drone, one writes ties between
the notes; is it possible to add it to the function?
Is that also something that could be set up easily with
a music function?
I'm the maintainer of Lilypond's bagpipe mode, by the way.
Would you consider making "\dronify" part of a toolkit?
Personally, I don't use LilyPond's bagpipe mode, as it
seems completely biased towards the Scottish pipe. There
are many other kinds! :-)
Wouldn't it be interesting to separate what is generally
valid for all bagpipes (or, actually, continuous sound
music) from what is specific to a given tradition (e.g.
the naming of the ornaments)?
Best,
Gilles
- Function to add a drone staff?, Gilles, 2015/04/09
- Re: Function to add a drone staff?, Paul Morris, 2015/04/09
- Re: Function to add a drone staff?, Sven Axelsson, 2015/04/09
- Re: Function to add a drone staff?, Paul Morris, 2015/04/09
- Re: Function to add a drone staff?,
Gilles <=
- Re: Function to add a drone staff?, Paul Morris, 2015/04/09
- Re: Function to add a drone staff?, Gilles, 2015/04/10
- Re: Function to add a drone staff?, Paul Morris, 2015/04/11
- Re: Function to add a drone staff?, Gilles, 2015/04/11
- Re: Function to add a drone staff?, Simon Albrecht, 2015/04/11
- Re: Function to add a drone staff?, Paul Morris, 2015/04/12
- Re: Function to add a drone staff?, Paul Morris, 2015/04/12
- Re: Function to add a drone staff?, Paul Morris, 2015/04/12
- Re: Function to add a drone staff?, Gilles, 2015/04/13
- Re: Function to add a drone staff?, Paul Morris, 2015/04/14