Re: Custom woodwind-diagram

2017-11-22 Thread Carl Sorensen
From: Sven Axelsson <sven.axels...@gmail.com>
Date: Wednesday, November 22, 2017 at 2:33 PM
To: Carl Sorensen <c_soren...@byu.edu>
Cc: Mike Solomon <m...@mikesolomon.org>, "lilypond-user@gnu.org" 
<lilypond-user@gnu.org>
Subject: Re: Custom woodwind-diagram

On 22 November 2017 at 21:59, Carl Sorensen 
<c_soren...@byu.edu<mailto:c_soren...@byu.edu>> wrote:

On 22 November 2017 at 19:48, Sven Axelsson 
<sven.axels...@gmail.com<mailto:sven.axels...@gmail.com>> wrote:
Having looked some more at the documentation and code, I now realise that the 
gray shading indicates various trills. There are many possibilities, but one to 
indicate just a partially covered hole displayed in black seems to be missing. 
I suggest allowing the notation e.g. "one1hF" to indicate a half covered filled 
hole. It is currently not valid. This would need a change to 
`make-symbol-alist` in define-woodwind-diagrams.scm. My Scheme-fu is currently 
not sufficient to make that change, but I suppose I could figure it out 
eventually.

Why not just use "one" to indicate a half-covered hole?  Since there is no 
graphical difference between a half-filled hole and a filled hole, it seems 
like there does not need to be a separate notation for the half-filled whole in 
the input.

Sure there is a difference, see 
http://lilypond.org/doc/v2.19/Documentation/notation/woodwind-diagrams for 
"one1qT3q" for instance. Using "one 1h" as of now, the hole is displayed half 
covered gray. I'd like some way to display it half covered black without 
breaking existing usage.

Oh, I misunderstood what you wanted.  I thought you wanted to have a black 
filled hole, not a black half-filled hole.

One way to do this would be to develop a new notation, as you suggest.   I 
would suggest that a notation of one1hB would be better than one1hF, because 
both the default half-covered diagram and the new half-covered diagram are 
half-filled; the difference is the color.

Another way would be to have a property that defines the fill color.  The 
default value for the property would be gray, but it could be set to black.  Or 
potentially any other color that was wanted (say red, or green, or yellow).

Thanks,

Carl



___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: Custom woodwind-diagram

2017-11-22 Thread Sven Axelsson
On 22 November 2017 at 21:59, Carl Sorensen  wrote:

>
> On 22 November 2017 at 19:48, Sven Axelsson 
> wrote:
>
> Having looked some more at the documentation and code, I now realise that
>> the gray shading indicates various trills. There are many possibilities,
>> but one to indicate just a partially covered hole displayed in black seems
>> to be missing. I suggest allowing the notation e.g. "one1hF" to indicate a
>> half covered filled hole. It is currently not valid. This would need a
>> change to `make-symbol-alist` in define-woodwind-diagrams.scm. My Scheme-fu
>> is currently not sufficient to make that change, but I suppose I could
>> figure it out eventually.
>
>
> Why not just use "one" to indicate a half-covered hole?  Since there is no
> graphical difference between a half-filled hole and a filled hole, it seems
> like there does not need to be a separate notation for the half-filled
> whole in the input.
>

Sure there is a difference, see
http://lilypond.org/doc/v2.19/Documentation/notation/woodwind-diagrams for "
one1qT3q" for instance. Using "one 1h" as of now, the hole is displayed
half covered gray. I'd like some way to display it half covered black
without breaking existing usage.

Maybe Mike Solomon could chime in as being the original author?


-- 
Sven Axelsson
++[>++>+++>++>++
><-]>.+..>+.>+.<<-.>>+.>.<<.
+++.>-.<<++.>>.<++.>>>++..>>.<.
___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: Custom woodwind-diagram

2017-11-22 Thread Carl Sorensen

On 22 November 2017 at 19:48, Sven Axelsson  wrote:
On 22 November 2017 at 18:10, Carl Sorensen  wrote:

Can you submit your revised .scm file as a patch?

Sure!

The patch also includes a change to `key-fill-translate` in 
define-woodwind-diagrams.scm to fill with black even for half covered holes. 
Personally, I don't think I have ever seen grey being used for that, but I 
guess it really should be made into an user settable option.

Having looked some more at the documentation and code, I now realise that the 
gray shading indicates various trills. There are many possibilities, but one to 
indicate just a partially covered hole displayed in black seems to be missing. 
I suggest allowing the notation e.g. "one1hF" to indicate a half covered filled 
hole. It is currently not valid. This would need a change to 
`make-symbol-alist` in define-woodwind-diagrams.scm. My Scheme-fu is currently 
not sufficient to make that change, but I suppose I could figure it out 
eventually.

Why not just use "one" to indicate a half-covered hole?  Since there is no 
graphical difference between a half-filled hole and a filled hole, it seems 
like there does not need to be a separate notation for the half-filled whole in 
the input.

If we had a real grob that was a woodwind diagram, we would have a 'details 
property for the grob with an element that would describe how to display a 
half-covered hole, and then one could set that property as one desired.  Maybe 
we should create a woodwind-diagram-details property for the TextScript grob 
that would capture the instrument and the display characteristics (i.e., what 
do we do with a half-covered hole).

But since it is all markups now, it seems that we just make the markup be what 
we want it to be.

Thanks,

Carl
 

___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: Custom woodwind-diagram

2017-11-22 Thread Sven Axelsson
On 22 November 2017 at 19:48, Sven Axelsson  wrote:

> On 22 November 2017 at 18:10, Carl Sorensen  wrote:
>
>>
>> Can you submit your revised .scm file as a patch?
>>
>
> Sure!
>
> The patch also includes a change to `key-fill-translate` in
> define-woodwind-diagrams.scm to fill with black even for half covered
> holes. Personally, I don't think I have ever seen grey being used for that,
> but I guess it really should be made into an user settable option.
>

Having looked some more at the documentation and code, I now realise that
the gray shading indicates various trills. There are many possibilities,
but one to indicate just a partially covered hole displayed in black seems
to be missing. I suggest allowing the notation e.g. "one1hF" to indicate a
half covered filled hole. It is currently not valid. This would need a
change to `make-symbol-alist` in define-woodwind-diagrams.scm. My Scheme-fu
is currently not sufficient to make that change, but I suppose I could
figure it out eventually.

-- 
Sven Axelsson
++[>++>+++>++>++
><-]>.+..>+.>+.<<-.>>+.>.<<.
+++.>-.<<++.>>.<++.>>>++..>>.<.
___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: Custom woodwind-diagram

2017-11-22 Thread Sven Axelsson
On 22 November 2017 at 18:10, Carl Sorensen <c_soren...@byu.edu> wrote:

>
>
> From: Sven Axelsson <sven.axels...@gmail.com>
> Date: Wednesday, November 22, 2017 at 9:59 AM
> To: Mike Solomon <m...@mikesolomon.org>
> Cc: <lilypond-user@gnu.org>
> Subject: Re: Custom woodwind-diagram
>  I just want to thank Mike Solomon for his hints off-list. I managed to
> get something I'm happy with by adding my instrument directly to
> display-woodwind-diagrams.scm. When putting the additions in its own file
> however, I did not manage to resolve all dependencies. I would have thought
> that I could just use what was already defined, but maybe the woodwind
> diagram support functions are not exported for outside use. Anyways, this
> is fine for now.
>
>
>
> Can you submit your revised .scm file as a patch?
>

Sure!

The question is, though, as a patch for what instrument? I made this for
use in a Great Highland Bagpipe tutor that I'm currently working on, but it
is usable for any eight hole wind instrument so I named the instrument
"recorder", since that is a bit more common.

The patch also includes a change to `key-fill-translate` in
define-woodwind-diagrams.scm to fill with black even for half covered
holes. Personally, I don't think I have ever seen grey being used for that,
but I guess it really should be made into an user settable option.

-- 
Sven Axelsson
++[>++>+++>++>++
><<<<<-]>.+..>+.>+.<<-.>>+.>.<<.
+++.>-.<<++.>>.<++.>>>++.<<<<.>>.<.


add-recorder-to-woodwind.patch
Description: Binary data
___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: Custom woodwind-diagram

2017-11-22 Thread Mike Solomon
Bravo! Great work!Yeah, none of that stuff is imported. Easy to do so though. 
Don't hesitate to make a pull request with your new diagram!


Sent from my Samsung Galaxy smartphone.
 Original message From: Sven Axelsson <sven.axels...@gmail.com> 
Date: 11/22/17  6:59 PM  (GMT+02:00) To: Mike Solomon <m...@mikesolomon.org> 
Cc: lilypond-user@gnu.org Subject: Re: Custom woodwind-diagram 
On 21 November 2017 at 18:38, Mike Solomon <m...@mikesolomon.org> wrote:
Hey there!
I created the diagrams eons ago and I agree that the implementation is really 
difficult to understand. I'm sorry for that. Can you send me a photo of what 
you're trying to typeset? I'll see if I can help you out.
 I just want to thank Mike Solomon for his hints off-list. I managed to get 
something I'm happy with by adding my instrument directly 
todisplay-woodwind-diagrams.scm. When putting the additions in its own file 
however, I did not manage to resolve all dependencies. I would have thought 
that I could just use what was already defined, but maybe the woodwind diagram 
support functions are not exported for outside use. Anyways, this is fine for 
now.
 
-- 
Sven Axelsson
++[>++>+++>++>++
><<<<<-]>.+..>+.>+.<<-.>>+.>.<<.
+++.>-.<<++.>>.<++.>>>++.<<<<.>>.<.

___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: Custom woodwind-diagram

2017-11-22 Thread Carl Sorensen


From: Sven Axelsson <sven.axels...@gmail.com>
Date: Wednesday, November 22, 2017 at 9:59 AM
To: Mike Solomon <m...@mikesolomon.org>
Cc: <lilypond-user@gnu.org>
Subject: Re: Custom woodwind-diagram
 I just want to thank Mike Solomon for his hints off-list. I managed to get 
something I'm happy with by adding my instrument directly to
display-woodwind-diagrams.scm. When putting the additions in its own file 
however, I did not manage to resolve all dependencies. I would have thought 
that I could just use what was already defined, but maybe the woodwind diagram 
support functions are not exported for outside use. Anyways, this is fine for 
now.



Can you submit your revised .scm file as a patch?

Thanks,

Carl


___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: Custom woodwind-diagram

2017-11-22 Thread Sven Axelsson
On 21 November 2017 at 18:38, Mike Solomon  wrote:

> Hey there!
>
> I created the diagrams eons ago and I agree that the implementation is
> really difficult to understand. I'm sorry for that. Can you send me a photo
> of what you're trying to typeset? I'll see if I can help you out.
>

 I just want to thank Mike Solomon for his hints off-list. I managed to get
something I'm happy with by adding my instrument directly to
display-woodwind-diagrams.scm. When putting the additions in its own file
however, I did not manage to resolve all dependencies. I would have thought
that I could just use what was already defined, but maybe the woodwind
diagram support functions are not exported for outside use. Anyways, this
is fine for now.

 [image: Inline images 1]

-- 
Sven Axelsson
++[>++>+++>++>++
><-]>.+..>+.>+.<<-.>>+.>.<<.
+++.>-.<<++.>>.<++.>>>++..>>.<.
___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: Custom woodwind-diagram

2017-11-22 Thread James.Correa
Hi Sven
I did this to use as a template for notate some multiphonics in a piece for 
flute. I added one more hole to match your instrument. It is not a function 
yet, you have to write all each time you use it, but can be turned into one by 
someone with more skills.

%%
\version "2.19.80"

multiF =  \markup {
  \left-column {\draw-circle #0.5 #0.2 ##f}
  \left-column { \draw-circle #0.5 #0.2 ##f
\vspace #-0.5
\draw-circle #0.5 #0.2 ##t
\vspace #-0.5
\draw-circle #0.5 #0.2 ##t
\vspace #-0.5
\draw-line #' ( 1.3 . 0)
\vspace #-0.5
\draw-circle #0.5 #0.2 ##f
\vspace #-0.5
\draw-circle #0.5 #0.2 ##f
\vspace #-0.5
\draw-circle #0.5 #0.2 ##f
\vspace #-0.5
\draw-circle #0.5 #0.2 ##f}

}

{c'4 ^\multiFa}

%

I hope it will help you.
James

---
James Correa
Composer - guitarist - sound designer
http://www.jamescorrea.net
http://wp.ufpel.edu.br/labcomp/

>  Original Message 
> Subject: Custom woodwind-diagram
> Local Time: November 21, 2017 1:58 PM
> UTC Time: November 21, 2017 3:58 PM
> From: sven.axels...@gmail.com
> To: lilypond-user@gnu.org
>
> Hello list.
>
> I would like to create fingering instructions for an eight hole wind 
> instrument. The usual way to display these fingerings would be to have the 
> thumb hole at the top, slightly offset, and the other seven holes in the 
> center column of the diagram.
>
> I have not really tried to do anything yet - the woodwind diagrams look 
> terribly complicated to customize. There was talk about including fingering 
> for recorders on the list some time ago, did anything come out of this? If 
> so, I could probably start there.
>
> Thanks,
>
> --
> Sven Axelsson
> ++[>++>+++>++>++
>><-]>.+..>+.>+.<<-.>>+.>.<<.
> +++.>-.<<++.>>.<++.>>>++..>>.<.___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: Custom woodwind-diagram

2017-11-21 Thread Mike Solomon
Hey there!
I created the diagrams eons ago and I agree that the implementation is really 
difficult to understand. I'm sorry for that. Can you send me a photo of what 
you're trying to typeset? I'll see if I can help you out.
Cheers,~Mike


Sent from my Samsung Galaxy smartphone.
 Original message From: SoundsFromSound 
<soundsfromso...@gmail.com> Date: 11/21/17  6:49 PM  (GMT+02:00) To: 
lilypond-user@gnu.org Subject: Re: Custom woodwind-diagram 
Sven Axelsson-3 wrote
> Hello list.
> 
> I would like to create fingering instructions for an eight hole wind
> instrument. 
> 
> I have not really tried to do anything yet - the woodwind diagrams look
> terribly complicated to customize. There was talk about including
> fingering
> for recorders on the list some time ago
> -- 
> Sven Axelsson
> https://lists.gnu.org/mailman/listinfo/lilypond-user

Hello Sven,

Two things:

First, as you mentioned, here is an older thread that has some good
information about recorder fingerings...
http://lilypond.1069038.n5.nabble.com/recorder-fingering-chart-td28375.html

Second, what version of LilyPond are you using?

Here is some documentation from 2.19 that also could help you, perhaps?
http://lilypond.org/doc/v2.19/Documentation/snippets/winds#winds-recorder-fingering-chart




-
composer | sound designer | asmr artist 
--
Sent from: http://lilypond.1069038.n5.nabble.com/User-f3.html

___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user
___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: Custom woodwind-diagram

2017-11-21 Thread SoundsFromSound
Sven Axelsson-3 wrote
> Hello list.
> 
> I would like to create fingering instructions for an eight hole wind
> instrument. 
> 
> I have not really tried to do anything yet - the woodwind diagrams look
> terribly complicated to customize. There was talk about including
> fingering
> for recorders on the list some time ago
> -- 
> Sven Axelsson
> https://lists.gnu.org/mailman/listinfo/lilypond-user

Hello Sven,

Two things:

First, as you mentioned, here is an older thread that has some good
information about recorder fingerings...
http://lilypond.1069038.n5.nabble.com/recorder-fingering-chart-td28375.html

Second, what version of LilyPond are you using?

Here is some documentation from 2.19 that also could help you, perhaps?
http://lilypond.org/doc/v2.19/Documentation/snippets/winds#winds-recorder-fingering-chart




-
composer | sound designer | asmr artist 
--
Sent from: http://lilypond.1069038.n5.nabble.com/User-f3.html

___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user