lilypond-user
[Top][All Lists]
Advanced

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

Re: reusing melody in different TabVoice instruments


From: Walt North
Subject: Re: reusing melody in different TabVoice instruments
Date: Tue, 10 Sep 2024 12:05:20 -0700
User-agent: Mozilla Thunderbird

Excellent - exactly what I was looking for..

On 9/10/2024 11:58 AM, Xavier Scheuer wrote:
On Tue, 10 Sept 2024 at 17:04, Walt North <waltnorth@gmail.com> wrote:
>
> Is there any way to do this? What follows is a made up example.  I have a melody that may be shared across different string instruments.
>
> I'd like to be able to reuse the melody notes and not repeat that for each instrument. The different instruments may require different restrain option, minimum frets and/or string numbers throughout the piece.

Hello,

This seems to work.

guitarTweaks = {
  s1 |
  \set restrainOpenStrings = ##t
  \set minimumFret = #3
  s4\3 s4*3 |
}

banjoTweaks = {
  s1 |
  \set restrainOpenStrings = ##f
  \set minimumFret = #5
  s4\4 s4*3 |
}

\markup Guitar
\score {
  \new TabStaff {
    \new TabVoice {
      <<
        \melody
        \guitarTweaks
      >>
    }
  }
}

\markup Banjo
\score {
  \new TabStaff \with {
    stringTunings = #banjo-open-g-tuning
  } {
    \new TabVoice {
      <<
        \melody
        \banjoTweaks
      >>
    }
  }
}

Kind regards,
Xavier


reply via email to

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