Re: Harmonics in tablature

2020-07-02 Thread Valentin Petzel
Hello Wol, That is more or less a different thing, since you want a different notation for that, specifying both the fret of the note and of the harmonic. When transcribing some Pastorius I defined a little function for that which gives such results: Regards, Valentin \version "2.20"

Re: Harmonics in tablature

2020-07-02 Thread Valentin Petzel
[FORGOT TO REPLY TO THE LIST] Hi Lukas, That is a rather typical problem you get with harmonic in relative mode. Basically in relative mode the octave of the pitch is saved relative to the previous note. So this means that one would have to transpose the first note in base pitch+octave, while

Re: Harmonics in tablature

2020-06-30 Thread antlists
On 29/06/2020 10:30, Valentin Petzel wrote: 3) Forcing a string number can be done manually easily (though this is not good if the tuning changes at some point). But in code it is quite a bit more effort to achieve the same result, because we then would need to read the string tunings from the

Re: Harmonics in tablature

2020-06-30 Thread Lukas-Fabian Moser
Hi, In Staceys example, I stumbled across the following strange thing where \relative behaves strangely: mus = \relative c,, { \harmonicByRatio #1/4 2. } <<   \new TabStaff   {     \set Staff.stringTunings = \stringTuning     \tabFullNotation     \mus   }   \new Staff \mus >> Just to make

Re: Harmonics in tablature

2020-06-29 Thread Valentin Petzel
Hi Pierre, Using tags is pretty much the only way to achieve this from one source, but you would still need different functions for Voice and TabVoice (unless you combine them + tagging into one function, which might be useful, but unflexible. Valentin signature.asc Description: This is a

Re: Harmonics in tablature

2020-06-29 Thread Pierre Perol-Schneider
Hi Valentin, Le lun. 29 juin 2020 à 13:30, Valentin Petzel a écrit : ... > But the hard part would be getting Staff Notation and TabStaff-Notation > right at the same time, because you usually want to notate this like this > Or similar to this. So you would need different functions for

Re: Harmonics in tablature

2020-06-29 Thread Valentin Petzel
Hi Lukas, You might want to set restrainOpenStrings to #t in case the sounding pitch is in fact an open string (else minimumFret would be ignored), see appended file. The order requirement to string tuning is most likely a bug, I guess Lilypond tries to minimize the used fret by traversing

Re: Harmonics in tablature

2020-06-29 Thread Lukas-Fabian Moser
Hi Valentin, 1) Yes. Without my mistake it calculates on which fret the sounding note would be, thus placing the note head onto the correct string. I’m sorry for that. Yes - thanks much! Now it works as expected (at least by me): If i) #pitch is the pitch of an open string (as defined with

Re: Harmonics in tablature

2020-06-29 Thread Valentin Petzel
Hello Carl, They can be, although I had to correct a little mistake where I forgot to replace 12 from my testing with the actual fret. You just need to be aware that this will revert any \set minimumFret = ? done before as long as lilypond cannot mask context properties. Also it might be a

Re: Harmonics in tablature

2020-06-29 Thread Valentin Petzel
Hi Lukas, I’m sorry, I messed that up. It should say (calc-harmonic-pitch (fret->pitch (number->string fret)) I did my intropections with that using fret=12, and then I forgot to change that when copying. See the attached file for the correction. About your points: 1) Yes. Without my mistake

Re: Harmonics in tablature

2020-06-28 Thread Phil Holmes
- Original Message - From: "Lukas-Fabian Moser" To: Sent: Saturday, June 27, 2020 8:12 AM Subject: Harmonics in tablature Folks, Stacy's question ("Three problems with harmonics") prompted me to try LilyPond's tablature facilities for the first time. I beg forgiveness for using it

Re: Harmonics in tablature

2020-06-28 Thread Lukas-Fabian Moser
Hi Valentin, This is a certain limitation in how the harmonicByFret-Function works. It will calculate the pitch for the given note, thus the Noteheads are automatically placed onto higher strings. Thus you eighter will have to manually specify the string number, or you might do something like

Re: Harmonics in tablature

2020-06-27 Thread Carl Sorensen
On Sat, Jun 27, 2020 at 5:58 AM Valentin Petzel wrote: > > Hello Lukas, > > This is a certain limitation in how the harmonicByFret-Function works. It will > calculate the pitch for the given note, thus the Noteheads are automatically > placed onto higher strings. Thus you eighter will have to

Re: Harmonics in tablature

2020-06-27 Thread Valentin Petzel
Hello Lukas, This is a certain limitation in how the harmonicByFret-Function works. It will calculate the pitch for the given note, thus the Noteheads are automatically placed onto higher strings. Thus you eighter will have to manually specify the string number, or you might do something like