I'm sorry you're having troubles with LilyPond. If you tell me what you
don't get I (or someone) can help with that.
As a starting point, here's the LilyPond source code you posted, corrected
so it will compile, and with the MIDI honoring the repeats:
%------
\version "2.22.2"
\header {
title = “%%%%"
composer = "Omer Katzir"
tagline = "http://omerkatzir.net"
}
upper = \relative c' {
\time 3/4
\key g\major
\voiceOne
\tempo 4 = 90
b b b b
}
lower = \relative c {
\key g \major
\voiceTwo
\repeat volta 2 { b b b b b }
\alternative {
{ a a a a }
{ a a a a \mark \markup { \italic "Fine" } \bar "||"
}
}
c d e f g a b c \mark \markup { \italic "D.C. al Fine" }
}
\score {
<<
\new StaffGroup = "tab with traditional" <<
\new Staff = "guitar traditional" <<
\clef "treble_8"
\context Voice = "upper" \upper
\context Voice = "lower" \lower
>>
\new TabStaff = "guitar tab" <<
\context TabVoice = "upper" \upper
\context TabVoice = "lower" \lower
>>
>>
>>
%%% Below, tells LilyPond to only create PDF
\layout {}
}
%%% Below, create a MIDI-only score with repeats unfolded
\score {
\unfoldRepeats {
\new Staff <<
\new Voice \upper
\new Voice \lower
>>
}
\midi {}
}
%-----
--
Knute Snortum
On Wed, May 4, 2022 at 8:50 AM Omer Katzir <[email protected]> wrote:
> Well, I’ll be ashamed but honest. I didn’t understand anything from it.
> Maybe lilypond is just not for me for more complicated pieces.
>
> On 4 May 2022, at 18:41, Knute Snortum <[email protected]> wrote:
>
> This link can help you:
>
>
> https://lilypond.org/doc/v2.22/Documentation/notation/using-repeats-with-midi
>
> --
> Knute Snortum
>
>
>
> On Wed, May 4, 2022 at 8:35 AM Omer Katzir <[email protected]> wrote:
>
>> I have this music, but when I try to make midi out of it, it doesn’t do
>> the repeats. Does anyone have any suggestions on how to do it?
>> I’m really struggling with lilypond lately :-(
>>
>> \version "2.22.2"
>>
>>
>> \header {
>> title = “%%%%"
>> composer = "Omer Katzir"
>> tagline = "http://omerkatzir.net"
>> }
>>
>>
>>
>> upper = \relative c' {
>> \time 3/4
>> \key g\major
>> \voiceOne
>> \tempo 4 = 90
>>
>>
>> B b b b
>>
>>
>> }
>>
>> lower = \relative c {
>> \key g \major
>> \voiceTwo
>>
>> \repeat volta 2 { b b b b b }
>>
>>
>> \alternative {
>> { a a a a | }
>> { a a a a \mark \markup { \italic "Fine" } \bar "||"
>> }
>>
>>
>>
>>
>> }
>>
>> C d e f g a b c \mark \markup { \italic "D.C. al Fine" }
>>
>>
>> }
>>
>> \score {
>> <<
>> \new StaffGroup = "tab with traditional" <<
>> \new Staff = "guitar traditional" <<
>> \clef "treble_8"
>> \context Voice = "upper" \upper
>> \context Voice = "lower" \lower
>> >>
>> \new TabStaff = "guitar tab" <<
>> \context TabVoice = "upper" \upper
>> \context TabVoice = "lower" \lower
>> >>
>> >>
>> >>
>>
>> }
>>
>
>