lilypond-user
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: kind of OT: bach inventions


From: Knute Snortum
Subject: Re: kind of OT: bach inventions
Date: Sat, 15 Aug 2020 07:05:33 -0700

I have all of them from Mutopia on my disk.  Which one do you want?

---
Knute Snortum
(via Gmail)


On Fri, Aug 14, 2020 at 1:17 PM Mark Stephen Mrotek <carsonmark@ca.rr.com> wrote:

Elaine,

 

I have my codes for 6, 12, and 13.

 

Mark

 

From: lilypond-user [mailto:lilypond-user-bounces+carsonmark=ca.rr.com@gnu.org] On Behalf Of Flaming Hakama by Elaine
Sent: Friday, August 14, 2020 12:00 PM
To: Lilypond-User Mailing List <lilypond-user@gnu.org>
Subject: kind of OT: bach inventions

 

 

I was working with one of the Bach inventions and was trying to find public domain lilypond source, of either just the notes or an actual edition.

 

All of mutopia's links seem to be down atm, was wondering if anyone happened to know of such a resource that is available.

 

Sorry, no matches were found for your search criteria.

 

 

Thanks, 


Elaine Alt

415 . 341 .4954                                           "Confusion is highly underrated"

elaine@flaminghakama.com

Producer ~ Composer ~ Instrumentalist ~ Educator
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-

 

 

On Tue, Aug 11, 2020 at 7:29 AM Flaming Hakama by Elaine <elaine@flaminghakama.com> wrote:

---------- Forwarded message ----------
From: Michael Gerdau <mgd@qata.de>
To: Lilypond User <lilypond-user@gnu.org>
Date: Sat, 18 Jul 2020 07:57:23 +0200 (CEST)
Subject: Q: Irregular alternate repeats and MIDI
Hi List,

I have a score with repeats and irregular alternate endings. I can neatly engrave that but I don't seem to be able to produce correct MIDI w/o manually arranging all segments.

Does someone has a trick up his sleeve?
I found mails regarding this problem in the archive dating back to 2008...

Here is my "kind of" MWE:
%-------------------
\version "2.21.2"

body = { c'4 c' c' c' }
voltaI = { d'4 d' d' d' }
voltaII = { e'4 e' e' e' }
voltaIII = { g'4 g' g' g' }

musicI = {
  \repeat volta 5 \body
  \alternative {
    \voltaI
    \voltaII
    \voltaIII
  }
  \bar "|."
}

musicII = {
  \repeat volta 5 \body
  \set Score.repeatCommands = #'((volta "1."))
  \voltaI
  \set Score.repeatCommands = #'((volta #f) (volta "2. 3. 4.") end-repeat)
  \voltaII
  \set Score.repeatCommands = #'((volta #f) (volta "5.") end-repeat)
  \voltaIII
  \set Score.repeatCommands = #'((volta #f))
  \bar "|."
}

\markup "Default w/o \unfoldRepeats"
\score {
  \musicI
  \layout { }
  \midi { }
}

\markup "Default unfold is 1.-3. -> Volta 1, 4. -> Volta 2 and 5. -> Volta 3"
\score {
  \unfoldRepeats \musicI
  \layout { }
  \midi { }
}


\markup "This is what I want..."
\score {
  \musicII
  \layout { }
  \midi { }
}

\markup "...but \unfoldRepeats does not deal with it"
\score {
  \unfoldRepeats \musicII
  \layout { }
  \midi { }
}

\markup "Of course I could enforce it manually"
\score {
  { \body \voltaI \repeat unfold 3 { \body \voltaII } \body \voltaIII \bar "|." }
  \layout { }
  \midi { }
}

\markup "How should I change \musicII to enable \unfoldRepeats to work the way I want it?"
\markup "Is there a way to tell \alternative which repeats in which volta (and the volta texts)?"
%-------------------

Kind regards,
Michael
--
Michael Gerdau email: mgd@qata.de

 


Not exactly what you asked for, but one possible approach is to use tags.

Tags allow for conditional use of material.

In this case, you would add a tag that is specific to MIDI
and put the repetitions in a similar way you did in the "manual" version.

Then, have two different scores, one for PDF and one for MIDI,
which use different tags.

Even in the printed score, you need to use the \keepWithTag command,
even though there is no PDF-specific content here,
in order to keep the MIDI-tagged content out.

Note that the tag names "MIDI" and "PDF" are just arbitrary words,
there is no intrinsic significance to them.

This approach becomes handy when coding other differences for MIDI, 

such as fermatas, breaths, rit/accel, trills.

 

\version "2.19.81"


body = { c'4 c' c' c' }
voltaI = { d'4 d' d' d' }
voltaII = { e'4 e' e' e' }
voltaIII = { g'4 g' g' g' }

music = {
  \repeat volta 5 \body
  \set Score.repeatCommands = #'((volta "1."))
  \voltaI
  \tag #'MIDI { \body }
 
  \set Score.repeatCommands = #'((volta #f) (volta "2. 3. 4.") end-repeat)
  \voltaII
  \tag #'MIDI {
      \body \voltaII
      \body \voltaII
      \body }

  \set Score.repeatCommands = #'((volta #f) (volta "5.") end-repeat)
  \voltaIII
  \set Score.repeatCommands = #'((volta #f))
  \bar "|."
}

\score {
  \keepWithTag #'PDF \music
  \layout { }
}

\score {
  \keepWithTag #'MIDI \music
  \midi { }
}



HTH, 


Elaine Alt

415 . 341 .4954                                           "Confusion is highly underrated"

elaine@flaminghakama.com

Producer ~ Composer ~ Instrumentalist ~ Educator

-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- 


reply via email to

[Prev in Thread] Current Thread [Next in Thread]