Re: Repeated Music

2022-11-16 Thread Jean Abou Samra

Le 16/11/2022 à 21:45, Greg Lindstrom a écrit :

Hello all -

I am working on a score in Lilypond 2.22.1 and believe I saw, 
somewhere, a notation to use in the programming of the notes to repeat 
the previous measure of notes. Not in the music, I use the various 
repeats all the time; this is in the editor when I am coding the notes 
so I would not have to do this:


\time 4/4
c4 d e f |
c4 d e f |
c4 d e f |

but this:
\time 4/4
c4 d e f |
|
|

I've looked through the docs and can't find it. I don't even know what 
to call it. Can anyone help me on this (or, perhaps, I'm just 
imagining I saw it)?





The closest that exists is

\time 4/4
\repeat unfold 3 { c4 d e f }

Your imagined syntax with  sounds like you
were thinking of "q", but it repeats the last chord, not
the last measure
(https://lilypond.org/doc/v2.22/Documentation/notation/single-voice#chord-repetition).

Best,
Jean



OpenPGP_signature
Description: OpenPGP digital signature


Repeated Music

2022-11-16 Thread Greg Lindstrom
Hello all -

I am working on a score in Lilypond 2.22.1 and believe I saw, somewhere, a
notation to use in the programming of the notes to repeat the previous
measure of notes. Not in the music, I use the various repeats all the time;
this is in the editor when I am coding the notes so I would not have to do
this:

\time 4/4
c4 d e f |
c4 d e f |
c4 d e f |

but this:
\time 4/4
c4 d e f |
|
|

I've looked through the docs and can't find it. I don't even know what to
call it. Can anyone help me on this (or, perhaps, I'm just imagining I saw
it)?

Thanks,
--greg


Input for the GLISS project - repeated music w/ different lyrics

2012-10-24 Thread Christ van Willegen
Hi,

I recently typeset a piece for the LyBoek project, where the music is
repeated, and the words are different the second time.

I had to dig deeply into the manual to arrive at this:

\new Lyrics \with {
  \override VerticalAxisGroup #'staff-affinity = #CENTER
} \lyricsto "sopraan" {
  <<
\regelEen
\new Lyrics {
  \set associatedVoice = "sopraan"
  \regelTwee
}
  >>
  \deRest
}


Where 'regelEen' is the text that is sung to the notes the first time,
'regelTwee' is sung the second time, and 'deRest' is the rest of the
text.

May I humbly suggest a syntax for (repeated) lyrics that looks like
the musical construct << \\ >> ?

Christ van Willegen

___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: repeated music

2009-11-26 Thread Valentin Villenave
On Thu, Nov 26, 2009 at 9:13 PM, Patrick Horgan  wrote:
> The third snippit shows only a box containing the words Praeludium in C
> Major.  Is that intentional?

That's just a compatibility issue with the LSR. The source code
compiles just fine (you can copy it by clicking on the image).

Cheers,
Valentin


___
lilypond-user mailing list
lilypond-user@gnu.org
http://lists.gnu.org/mailman/listinfo/lilypond-user


Re: repeated music

2009-11-24 Thread Alexander Kobel

Valentin Villenave wrote:

Virtually anything can be done with Scheme:
http://lsr.dsi.unimi.it/LSR/Item?id=487


Hey, cool! That's just what I was about to try to implement...


___
lilypond-user mailing list
lilypond-user@gnu.org
http://lists.gnu.org/mailman/listinfo/lilypond-user


Re: repeated music

2009-11-24 Thread Valentin Villenave
On Tue, Nov 24, 2009 at 2:10 AM, Frank Steinmetzger  wrote:
> A more complex, yet more funcion-like approach would be to write a function
> (scheme?) that takes a note as input and prints out the apropriate notes. But
> this is the easiest way _I_ can think of.

Virtually anything can be done with Scheme:
http://lsr.dsi.unimi.it/LSR/Item?id=302
http://lsr.dsi.unimi.it/LSR/Item?id=487
http://lsr.dsi.unimi.it/LSR/Item?id=346

Cheers,
Valentin


___
lilypond-user mailing list
lilypond-user@gnu.org
http://lists.gnu.org/mailman/listinfo/lilypond-user


Re: repeated music

2009-11-23 Thread Alexander Kobel

Frank Steinmetzger wrote:

You could try something like

basis=\relative c { <<
{ f8( f'4 f8) } \\
{ f,2 }

}


\basis
\transpose c d { \basis }
\transpose c e { \basis }


Oh, damn. Now how clever is this?! I suggest you use Frank's solution... 
Kudos. :-)


A more complex, yet more funcion-like approach would be to write a function 
(scheme?) that takes a note as input and prints out the apropriate notes. But 
this is the easiest way _I_ can think of.


Den Wald vor lauter Bäumen nicht gesehen, kaum dass ich an meiner 
schönen Funktion rumgebastelt habe.

Well, this is stuff to come for the next version. :-)


Cheers,
Alexander


___
lilypond-user mailing list
lilypond-user@gnu.org
http://lists.gnu.org/mailman/listinfo/lilypond-user


Re: repeated music

2009-11-23 Thread Frank Steinmetzger
Am Dienstag, 24. November 2009 schrieb Francesco Petrogalli:

> Hello,
>
> is there a simple way to make a function that generate a repetead
> pattern having just a note as input? I'm writing a Brahms' piano
> score, and the left hand is doing the same rhythm, just changing the
> notes:
>
>  %bar 1
>   <<
> {f8( f'4 f8)} \\
> {f,2}
>
> %bar 2
>   <<
> {g8( g'4 g8)} \\
> {g,2}
>
> %bar 3
>   <<
> {c8( c'4 c8)} \\
> {c,2}

You could try something like

basis=\relative c { <<
{ f8( f'4 f8) } \\
{ f,2 }
>> }


\basis
\transpose c d { \basis }
\transpose c e { \basis }

A more complex, yet more funcion-like approach would be to write a function 
(scheme?) that takes a note as input and prints out the apropriate notes. But 
this is the easiest way _I_ can think of.
-- 
Gruß | Greetings | Qapla'
Keyboard not connected, press F1 to continue.


signature.asc
Description: This is a digitally signed message part.
___
lilypond-user mailing list
lilypond-user@gnu.org
http://lists.gnu.org/mailman/listinfo/lilypond-user


Re: repeated music

2009-11-23 Thread Alexander Kobel

Francesco Petrogalli wrote:

Hello,

is there a simple way to make a function that generate a repetead
pattern having just a note as input?


Hi, Francesco,


you mean like this:

\include "applyRhythm-1.1.ily"
brahmsify =
#(define-music-function (parser location note) (ly:music?)
  #{ <<
<<
   \applyRhythm #"8 4 8" { $note \transpose c c' $note $note }
   \applyRhythm #"8 4 8" { s( s s) }
>> \\
\transpose c c, \applyRhythm #"2" $note
 >> #})

{
  \brahmsify f'
  \brahmsify g'
  \brahmsify c'
}

where the included "applyRhythm-1.1.ily" is the one I sent in just my 
very last mail on this list 
(http://lists.gnu.org/archive/html/lilypond-user/2009-11/msg00598.html)? :-)


It's not polished yet, but that's exactly what I want to be able to do 
with this snippet. Well, as you can see, I am, but I want a cleaner 
syntax somehow. So far, feel free to use it this way.



Cheers,
Alexander


___
lilypond-user mailing list
lilypond-user@gnu.org
http://lists.gnu.org/mailman/listinfo/lilypond-user


repeated music

2009-11-23 Thread Francesco Petrogalli
Hello,

is there a simple way to make a function that generate a repetead
pattern having just a note as input? I'm writing a Brahms' piano
score, and the left hand is doing the same rhythm, just changing the
notes:

 %bar 1
  <<
{f8( f'4 f8)} \\
{f,2}
  >>
%bar 2
  <<
{g8( g'4 g8)} \\
{g,2}
  >>
%bar 3
  <<
{c8( c'4 c8)} \\
{c,2}
  >>

I would like to write it something like this:

\myfunction f
\myfunction g
\myfunction c

Thanks

Francesco


-- 
Francesco Petrogalli
PhD student
Dipartimento di Matematica e Informatica
Universita' degli Studi di Perugia
via Vanvitelli 1, Perugia (Italy)
phone: +39 075 585 5039
fax:   +39 075 585 5024
email: francesco.petroga...@dmi.unipg.it
   francesco.petroga...@gmail.com

Linux Registered User: #414858

P Funking Band
http://www.perugiafunkingband.it
http://www.myspace.com/perugiafunkingband


___
lilypond-user mailing list
lilypond-user@gnu.org
http://lists.gnu.org/mailman/listinfo/lilypond-user