Re: Layout of a (piano) hand indicator

2018-05-08 Thread foxfanfare
Thomas Morley-2 wrote > HTH a bit, Harm Yes it did! Thank you for the explanations! Thomas Morley-2 wrote > Likely better to create a new grob for piano-hand-indicator and whileon it > a barre-indicator for guitar. About this, I wonder if it is necessary for the hand-indicator bracket to be link

Re: Layout of a (piano) hand indicator

2018-05-07 Thread Thomas Morley
Hi Andrew, 2018-05-07 13:50 GMT+02:00 Andrew Bernard : > Hi Harm, > > I use the original function a lot. This is a staggering amount of what can > only be described as virtuoso code, for such a little thing. I am amazed. > Thanks. Well, sometimes it's still buggy. I'll try to improve, when I find

Re: Layout of a (piano) hand indicator

2018-05-07 Thread Thomas Morley
2018-05-07 20:25 GMT+02:00 foxfanfare : > I just played a little with the complex snippet of Harm and it worked like a > charm! > You definitely should put this code in the snippets directory! > > > Thomas Morley-2 wrote >> %% FingeringColumn present, because two or more fingerings present and >>

Re: Layout of a (piano) hand indicator

2018-05-07 Thread foxfanfare
I just played a little with the complex snippet of Harm and it worked like a charm! You definitely should put this code in the snippets directory! Thomas Morley-2 wrote > %% FingeringColumn present, because two or more fingerings present and > %% `fingeringOrientations' is `left' > %% > %

Re: Layout of a (piano) hand indicator

2018-05-07 Thread Andrew Bernard
Hi Harm, I use the original function a lot. This is a staggering amount of what can only be described as virtuoso code, for such a little thing. I am amazed. Thanks. I understand this builds on the fingering function to work. Could it not be done more simply (?) with some sort of note head engrav

Re: Layout of a (piano) hand indicator

2018-05-06 Thread foxfanfare
Thomas Morley-2 wrote > Below my own attempt. > The function has an optional argument, `details', for finetuning. Ooo... Thank you very much Harm! This looks amazing :) I'll try to play with this tomorrow and tell you how it works for me :-) -- Sent from: http://lilypond.1069038.n5.nabble.com/U

Re: Layout of a (piano) hand indicator

2018-05-06 Thread Thomas Morley
Hi, I've read your post in the morning and some things in Simon's function were obvious to impove. But then I started testing use-cases and noticed the problem is very complex, if you try a high amount of automatism (but still with the possibility for the user to adjust values). Some points of the

Re: Layout of a (piano) hand indicator

2018-05-06 Thread foxfanfare
Simon Albrecht-2 wrote > Please don’t infinitely propagate typos. It’s called ‘length’ in English. Sorry but I'm no native speacker... ...pardon my French :) -- Sent from: http://lilypond.1069038.n5.nabble.com/User-f3.html ___ lilypond-user mailing

Re: Layout of a (piano) hand indicator

2018-05-06 Thread David Kastrup
Simon Albrecht writes: > On 06.05.2018 11:43, foxfanfare wrote: > > …… >> (define-event-function (direction on-line lenght offset) >> (direction? boolean? number? pair?) >> (let* ((self-al (if on-line 0 0.31)) >> (self-al (if (= direction 1) (- self-al) self-a

Re: Layout of a (piano) hand indicator

2018-05-06 Thread Simon Albrecht
On 06.05.2018 11:43, foxfanfare wrote: …… (define-event-function (direction on-line lenght offset) (direction? boolean? number? pair?) (let* ((self-al (if on-line 0 0.31)) (self-al (if (= direction 1) (- self-al) self-al)) (hook-markup #{

Re: Layout of a (piano) hand indicator

2018-05-06 Thread foxfanfare
I andrew, thanks for your help! Andrew Bernard wrote > How is your Scheme coding skill? Very low... but I'm learning! Your exemple was a big help, especially because the order of appearence of the elements in my function wasn't good and didn't allowed me to add a variable in the original markup

Re: Layout of a (piano) hand indicator

2018-05-06 Thread Andrew Bernard
Hello foxfanfare, I use this function from Simon a lot. Here's a way to add extra parameters to this function. As an example, this lets you specify the length of the hook. How is your Scheme coding skill? You'll notice the use of quasiquoting to get the length value where it is needed in the cas

RE: Layout of a (piano) hand indicator

2018-05-06 Thread foxfanfare
(* I forgot the function: hook = #(let ((direction? (lambda (n) (= 1 (abs n (hook-markup #{ \markup \path #0.12 #'((moveto 0 0) (rlineto -0.85 0) (rlineto 0 3)) #})) (define-event-functi

RE: Layout of a (piano) hand indicator

2018-05-06 Thread foxfanfare
Hi everyone, I dig up this old topic because I need some help understanding this function. Simon has posted an interesting function which I would like to use: ... but I also would like to access some parameters in certain cases (let's say "rlineto 0 3" and "extra-offset #'(0.75 . 0)" with a sim

RE: Layout of a (piano) hand indicator

2015-11-30 Thread Mark Stephen Mrotek
] On Behalf Of Simon Albrecht Sent: Monday, November 30, 2015 3:29 PM To: Urs Liska ; lilypond-user Subject: Re: Layout of a (piano) hand indicator Hello Urs, it's very handy that you just came up with this thread, since I'm needing the very thing in a score I just do. I wrote an event f

Re: Layout of a (piano) hand indicator

2015-11-30 Thread Simon Albrecht
Hello Urs, it’s very handy that you just came up with this thread, since I’m needing the very thing in a score I just do. I wrote an event function to nicely wrap up your approach: %%% \version "2.19.32" hook = #(let ((direction? (lambda (n) (= 1 (abs n (hook-markup #{ \mar

Re: Layout of a (piano) hand indicator

2015-11-25 Thread Thomas Morley
2015-11-25 16:40 GMT+01:00 Robin Bannister : > David Kastrup wrote: > >> Of course, the `let' is spurious. You can just use thumbBracketSettings >> directly instead of settings. > > > The 'let' is my plodding anti-cryptic: > a small step with a locally relevant name, and a slot for comment > > >>

Re: Layout of a (piano) hand indicator

2015-11-25 Thread Robin Bannister
David Kastrup wrote: Of course, the `let' is spurious. You can just use thumbBracketSettings directly instead of settings. The 'let' is my plodding anti-cryptic: a small step with a locally relevant name, and a slot for comment Probably as of 2.14 or something. Written with 2.12 early 20

Re: Layout of a (piano) hand indicator

2015-11-25 Thread David Kastrup
Robin Bannister writes: > David Kastrup wrote: > >> See issue 4671: probably as of version 2.19.33, convert-ly should be >> able to do this by itself. Another possibility is to not use >> ly:music-function-extract at all but rather write >> >> #{ \whateveritwas ... #} >> >> here. That should be

Re: Layout of a (piano) hand indicator

2015-11-25 Thread Robin Bannister
David Kastrup wrote: See issue 4671: probably as of version 2.19.33, convert-ly should be able to do this by itself. Another possibility is to not use ly:music-function-extract at all but rather write #{ \whateveritwas ... #} here. That should be fairly convertible. OK. I had to pay a two

Re: Layout of a (piano) hand indicator

2015-11-25 Thread David Kastrup
Robin Bannister writes: > On 25.11.2015 12:32, David Kastrup wrote: >> Thomas Morley writes: >> [...] >>> There's Robin's approach: >>> http://lists.gnu.org/archive/html/lilypond-user/2009-07/msg00536.html >>> >>> Although it does not compile with 2.19.32 even after running convert-ly. >>> I ass

Re: Layout of a (piano) hand indicator

2015-11-25 Thread David Kastrup
David Kastrup writes: > Thomas Morley writes: > >> 2015-11-25 11:42 GMT+01:00 Urs Liska : >>> >>> >>> Am 25.11.2015 um 11:26 schrieb Jacques Menu: Hello Urs, The horizontal part is not visible if the note head lies on a line: >>> >>> I know that and therefore I wouldn't consider t

Re: Layout of a (piano) hand indicator

2015-11-25 Thread David Kastrup
Thomas Morley writes: > 2015-11-25 11:42 GMT+01:00 Urs Liska : >> >> >> Am 25.11.2015 um 11:26 schrieb Jacques Menu: >>> Hello Urs, >>> >>> The horizontal part is not visible if the note head lies on a line: >> >> I know that and therefore I wouldn't consider this a proper solution. >> If I would

Re: Layout of a (piano) hand indicator

2015-11-25 Thread Thomas Morley
2015-11-25 11:42 GMT+01:00 Urs Liska : > > > Am 25.11.2015 um 11:26 schrieb Jacques Menu: >> Hello Urs, >> >> The horizontal part is not visible if the note head lies on a line: > > I know that and therefore I wouldn't consider this a proper solution. > If I would want to make that a generally usab

Re: Layout of a (piano) hand indicator

2015-11-25 Thread Urs Liska
Am 25.11.2015 um 11:26 schrieb Jacques Menu: > Hello Urs, > > The horizontal part is not visible if the note head lies on a line: I know that and therefore I wouldn't consider this a proper solution. If I would want to make that a generally usable tool I would have to think about some logic to s

Re: Layout of a (piano) hand indicator

2015-11-25 Thread Jacques Menu
Hello Urs, The horizontal part is not visible if the note head lies on a line: { \set fingeringOrientations = #'(left) 8 } { \set fingeringOrientations = #'(left) 8 } JM > Le 24 nov. 2015 à 23:44, Urs Liska a écrit : > > > > Am 24.11.2015 um 22:39 schrieb Simon Albrecht: >> On 24

Re: Layout of a (piano) hand indicator

2015-11-24 Thread Urs Liska
Am 24.11.2015 um 22:39 schrieb Simon Albrecht: > On 24.11.2015 18:49, Urs Liska wrote: >> Hi all, >> >> please consider the attached image, especially the "half-bracket" at the >> center. This is to indicate that this d' is to be played with the >> left hand. >> >> Is there anything I could impro

Re: Layout of a (piano) hand indicator

2015-11-24 Thread Simon Albrecht
On 24.11.2015 18:49, Urs Liska wrote: Hi all, please consider the attached image, especially the "half-bracket" at the center. This is to indicate that this d' is to be played with the left hand. Is there anything I could improve to the proportions and placement of that sign? Any suggestions f

Re: Layout of a (piano) hand indicator

2015-11-24 Thread Noeck
Hi Urs, to me it looks pretty much optimal. To be more precise: I like: + the top edge is at a defined position between the staff lines + it has round edges (as far as I can tell) + the distance from the note head/stem is good (positioning in general) I find acceptable but other choices could al

RE: Layout of a (piano) hand indicator

2015-11-24 Thread Mark Stephen Mrotek
Urs, V 2.18 has a snippet at: http://lilypond.org/doc/v2.18/Documentation/notation/common-notation-for-keyboards#staff_002dchange-lines Mark -Original Message- From: lilypond-user-bounces+carsonmark=ca.rr@gnu.org [mailto:lilypond-user-bounces+carsonmark=ca.rr@gnu.org] On Behalf

Re: Layout of a (piano) hand indicator

2015-11-24 Thread Kieren MacMillan
Hi all, > I did a blog post about this very thing! Hope this helps! Kieren. Kieren MacMillan, composer ‣ website: www.kierenmacmillan.info ‣ email: i...@kierenmacmillan.info

Re: Layout of a (piano) hand indicator

2015-11-24 Thread tisimst
Urs, On Tuesday, November 24, 2015, Urs Liska [via Lilypond] < ml-node+s1069038n18406...@n5.nabble.com> wrote: > Hi all, > > please consider the attached image, especially the "half-bracket" at the > center. This is to indicate that this d' is to be played with the left > hand. > > Is there anyth