lilypond-user
[Top][All Lists]
Advanced

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

Re: Harmonics in tablature


From: Lukas-Fabian Moser
Subject: Re: Harmonics in tablature
Date: Tue, 30 Jun 2020 11:32:09 +0200
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.8.0

Hi,
In Staceys example, I stumbled across the following strange thing where \relative behaves strangely:

mus = \relative c,, { \harmonicByRatio #1/4 <e\3 a\2>2. }

<<
  \new TabStaff
  {
    \set Staff.stringTunings = \stringTuning <a,,, e,, a,, e, a, cis>
    \tabFullNotation
    \mus
  }
  \new Staff \mus
>>

Just to make this explicit: \harmonicByRatio and \harmonicByFret both fail if used for chords in \relative mode. The reason is the behaviour of calc-harmonic-pitch that can be seen in the attached file.

(calc-harmonic-pitch looks like a direct reimplementation of \transpose c' #pitch #mus, but it differs from \transpose in that in actually does something - and even "the right thing" - for music inside \relative if given only _one_ note.)

So I agree (if I understood your remark correctly) that \harmonicByFret and \harmonicByRatio should rather accept single pitches only.

But you're obviously also right in that the implementation of harmonics handling should be reconsidered because of the different ways they have to be handled in a) staves, b) tabstaves, c) midi. Maybe I can try something in that direction over the next few days, but I know this is going to be pushing my understanding of Lilypond and scheme programming to its boundaries :-).

Lukas

Attachment: calc-harmonic-pitch-relative-fail.ly
Description: Text Data


reply via email to

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