Re: Custom note names / octavize pitch

2013-12-15 Thread TaoCG
David Kastrup wrote
 TaoCG lt;

 tao_lilyponduser@

 gt; writes:
 
 David Kastrup wrote
 TaoCG lt;

 tao_lilyponduser@

 gt; writes:
 
 David Kastrup wrote
 
 Again, it is totally unclear what you want to be your input and your
 output.

 If my message reached you like this then indeed it is.
 On my side, via the nabble web interface, it looks fine though.
 
 Web interfaces are somewhat treacherous.  Gmane.org seems to be more
 reliable.
 
 I'll just post a screenshot and try to make it clearer.

 2013-12-13_154458.png
 lt;http://lilypond.1069038.n5.nabble.com/file/n155723/2013-12-13_154458.pnggt;
   
 
 Well, an afterthought: you could probably define uppercase letters to be
 a quartertone (or less) sharp, and then postprocess your music, turning
 all of those back to normal pitch and adding the top octave.
 
 If you do the unsharpening/octavation in the toplevel-music-functions
 hook, it will actually happen at a time when all \relative music has
 already been turned into absolute music, so that would not interfere.

 That's an interesting idea, I'll definitely try it, thanks!
 What exactly do you mean by toplevel? Are these functions defined or
 applied
 differently than regular music functions?
 
 toplevel-music-functions is a central hook containing a list of Scheme
 functions that are applied when scorify-music is called.  I think the
 arguments they receive is the parser and music, and they return music
 again.
 
 -- 
 David Kastrup
 
 ___
 lilypond-user mailing list

 lilypond-user@

 https://lists.gnu.org/mailman/listinfo/lilypond-user

Thanks, I got it working. I have to rethink the use of capital letters
though since it conflicts with expressions like \clef F.
Also at this point I simply extended my language of choice in
define-note-names.scm, but I suppose I could simply append a new
language-definition to language-pitch-names?!



--
View this message in context: 
http://lilypond.1069038.n5.nabble.com/Custom-note-names-octavize-pitch-tp155705p155830.html
Sent from the User mailing list archive at Nabble.com.

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


Re: Custom note names / octavize pitch

2013-12-15 Thread David Kastrup
TaoCG tao_lilypondu...@gmx.net writes:

 Thanks, I got it working. I have to rethink the use of capital letters
 though since it conflicts with expressions like \clef F.

Just write \clef F and you'll be fine.  It's recommended anyway since
things like \clef violin_8 don't work otherwise.

 Also at this point I simply extended my language of choice in
 define-note-names.scm, but I suppose I could simply append a new
 language-definition to language-pitch-names?!

You'd probably not want to mess with LilyPond's files themselves but
rather put your definitions in a separate file you include, or you'll
get into all sorts of surprises when trying to exchange documents with
other people.

-- 
David Kastrup

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


Re: Custom note names / octavize pitch

2013-12-14 Thread TaoCG
David Kastrup wrote
 TaoCG lt;

 tao_lilyponduser@

 gt; writes:
 
 David Kastrup wrote
 
 Again, it is totally unclear what you want to be your input and your
 output.

 If my message reached you like this then indeed it is.
 On my side, via the nabble web interface, it looks fine though.
 
 Web interfaces are somewhat treacherous.  Gmane.org seems to be more
 reliable.
 
 I'll just post a screenshot and try to make it clearer.

 2013-12-13_154458.png
 lt;http://lilypond.1069038.n5.nabble.com/file/n155723/2013-12-13_154458.pnggt;
   
 
 Well, an afterthought: you could probably define uppercase letters to be
 a quartertone (or less) sharp, and then postprocess your music, turning
 all of those back to normal pitch and adding the top octave.
 
 If you do the unsharpening/octavation in the toplevel-music-functions
 hook, it will actually happen at a time when all \relative music has
 already been turned into absolute music, so that would not interfere.
 
 -- 
 David Kastrup
 
 ___
 lilypond-user mailing list

 lilypond-user@

 https://lists.gnu.org/mailman/listinfo/lilypond-user

That's an interesting idea, I'll definitely try it, thanks!
What exactly do you mean by toplevel? Are these functions defined or applied
differently than regular music functions?



--
View this message in context: 
http://lilypond.1069038.n5.nabble.com/Custom-note-names-octavize-pitch-tp155705p155770.html
Sent from the User mailing list archive at Nabble.com.

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


Re: Custom note names / octavize pitch

2013-12-14 Thread David Kastrup
TaoCG tao_lilypondu...@gmx.net writes:

 David Kastrup wrote
 TaoCG lt;

 tao_lilyponduser@

 gt; writes:
 
 David Kastrup wrote
 
 Again, it is totally unclear what you want to be your input and your
 output.

 If my message reached you like this then indeed it is.
 On my side, via the nabble web interface, it looks fine though.
 
 Web interfaces are somewhat treacherous.  Gmane.org seems to be more
 reliable.
 
 I'll just post a screenshot and try to make it clearer.

 2013-12-13_154458.png
 lt;http://lilypond.1069038.n5.nabble.com/file/n155723/2013-12-13_154458.pnggt;
   
 
 Well, an afterthought: you could probably define uppercase letters to be
 a quartertone (or less) sharp, and then postprocess your music, turning
 all of those back to normal pitch and adding the top octave.
 
 If you do the unsharpening/octavation in the toplevel-music-functions
 hook, it will actually happen at a time when all \relative music has
 already been turned into absolute music, so that would not interfere.

 That's an interesting idea, I'll definitely try it, thanks!
 What exactly do you mean by toplevel? Are these functions defined or applied
 differently than regular music functions?

toplevel-music-functions is a central hook containing a list of Scheme
functions that are applied when scorify-music is called.  I think the
arguments they receive is the parser and music, and they return music
again.

-- 
David Kastrup

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


Custom note names / octavize pitch

2013-12-13 Thread TaoCG
Hi all,

I'm looking for a way to octavize a note with the least input possible. I
know there are music functions in the LSR that do this but they aren't very
useful to me because in the music I need this for the octaves usually aren't
successive and it wouldn't really save input if I had to write the function
for single pitches, even if the function name were reduced to a single
letter.
So I was wondering if this maybe could be achieved with custom note names,
maybe a capital letter for an additional octave. After a look at
define-note-names.scm I fear it's not but I thought I ask if a note name
accepts anything else than ly:make-pitch before I try to experiment on my
own.

For illustration I imagine the following snippet (relative)

*4 d fis8 * r d fis r   |
r8 c d r   r c d r g g' |

to become this

B4 d fis8 B r d fis r A |
r8 c d r A r c d r G |

or even better

B4 d fis8 B r q r A |
r8 c d r A r q r G |



--
View this message in context: 
http://lilypond.1069038.n5.nabble.com/Custom-note-names-octavize-pitch-tp155705.html
Sent from the User mailing list archive at Nabble.com.

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


Re: Custom note names / octavize pitch

2013-12-13 Thread TaoCG
Hmm... nabble appearantly auto-converts this to html so here are the snippets
again:


TaoCG wrote
 For illustration I imagine the following snippet (relative)
 
 lt;b b'4 
 d fis
 8 lt;b b' r 
 d fis
  r 

  |
 r8 
 c d
  r 

  r 
 c d
  r 
 g g'
  |
 
 to become this
 
 B4 
 d fis
 8 B r 
 d fis
  r A |
 r8 
 c d
  r A r 
 c d
  r G |
 
 or even better
 
 B4 
 d fis
 8 B r q r A |
 r8 
 c d
  r A r q r G |





--
View this message in context: 
http://lilypond.1069038.n5.nabble.com/Custom-note-names-octavize-pitch-tp155705p155706.html
Sent from the User mailing list archive at Nabble.com.

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


Re: Custom note names / octavize pitch

2013-12-13 Thread David Kastrup
TaoCG tao_lilypondu...@gmx.net writes:

 Hi all,

 I'm looking for a way to octavize a note with the least input possible. I
 know there are music functions in the LSR that do this but they aren't very
 useful to me because in the music I need this for the octaves usually aren't
 successive and it wouldn't really save input if I had to write the function
 for single pitches, even if the function name were reduced to a single
 letter.
 So I was wondering if this maybe could be achieved with custom note names,
 maybe a capital letter for an additional octave. After a look at
 define-note-names.scm I fear it's not but I thought I ask if a note name
 accepts anything else than ly:make-pitch before I try to experiment on my
 own.

It doesn't.  Note that a note name means something different in chord
mode than it does in note mode and consequently there are different
tokens produced in different modes from note names.  Assigning arbitrary
(and consequently mode-independent) meanings to note names is not
immediately compatible with the way in which this is done currently.
While it looks not all too difficult to change that, it's not currently
supported.

-- 
David Kastrup

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


Re: Custom note names / octavize pitch

2013-12-13 Thread David Kastrup
TaoCG tao_lilypondu...@gmx.net writes:

 Hi all,

 I'm looking for a way to octavize a note with the least input possible. I
 know there are music functions in the LSR that do this but they aren't very
 useful to me because in the music I need this for the octaves usually aren't
 successive and it wouldn't really save input if I had to write the function
 for single pitches, even if the function name were reduced to a single
 letter.
 So I was wondering if this maybe could be achieved with custom note names,
 maybe a capital letter for an additional octave. After a look at
 define-note-names.scm I fear it's not but I thought I ask if a note name
 accepts anything else than ly:make-pitch before I try to experiment on my
 own.

 For illustration I imagine the following snippet (relative)

 *4 d fis8 * r d fis r   |
 r8 c d r   r c d r g g' |

 to become this

 B4 d fis8 B r d fis r A |
 r8 c d r A r c d r G |

 or even better

 B4 d fis8 B r q r A |
 r8 c d r A r q r G |

Uh, you might want to improve your illustration: it is utterly
incomprehensible what you want to be your input and your output.

-- 
David Kastrup

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


Re: Custom note names / octavize pitch

2013-12-13 Thread Noeck
Hi,

this file could be interesting for you:
http://git.savannah.gnu.org/gitweb/?p=lilypond.git;a=blob_plain;f=ly/bagpipe.ly;hb=HEAD

or if you check it out:
ly/bagpipe.ly

Here it is documented. The docs don't tell too explicitly, but here a G
is a g in a different octave:
http://www.lilypond.org/doc/v2.17/Documentation/notation/bagpipes

HTH
Joram

Am 13.12.2013 13:05, schrieb TaoCG:
 Hi all,
 
 I'm looking for a way to octavize a note with the least input possible. I
 know there are music functions in the LSR that do this but they aren't very
 useful to me because in the music I need this for the octaves usually aren't
 successive and it wouldn't really save input if I had to write the function
 for single pitches, even if the function name were reduced to a single
 letter.
 So I was wondering if this maybe could be achieved with custom note names,
 maybe a capital letter for an additional octave. After a look at
 define-note-names.scm I fear it's not but I thought I ask if a note name
 accepts anything else than ly:make-pitch before I try to experiment on my
 own.
 
 For illustration I imagine the following snippet (relative)
 
 *4 d fis8 * r d fis r   |
 r8 c d r   r c d r g g' |
 
 to become this
 
 B4 d fis8 B r d fis r A |
 r8 c d r A r c d r G |
 
 or even better
 
 B4 d fis8 B r q r A |
 r8 c d r A r q r G |
 
 
 
 --
 View this message in context: 
 http://lilypond.1069038.n5.nabble.com/Custom-note-names-octavize-pitch-tp155705.html
 Sent from the User mailing list archive at Nabble.com.
 
 ___
 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 note names / octavize pitch

2013-12-13 Thread TaoCG
David Kastrup wrote
 TaoCG lt;

 tao_lilyponduser@

 gt; writes:
 
 Hi all,

 I'm looking for a way to octavize a note with the least input possible. I
 know there are music functions in the LSR that do this but they aren't
 very
 useful to me because in the music I need this for the octaves usually
 aren't
 successive and it wouldn't really save input if I had to write the
 function
 for single pitches, even if the function name were reduced to a single
 letter.
 So I was wondering if this maybe could be achieved with custom note
 names,
 maybe a capital letter for an additional octave. After a look at
 define-note-names.scm I fear it's not but I thought I ask if a note name
 accepts anything else than ly:make-pitch before I try to experiment on my
 own.

 For illustration I imagine the following snippet (relative)

 *4 
 d fis
 8 * r 
 d fis
  r   |
 r8 
 c d
  r   r 
 c d
  r 
 g g'
  |

 to become this

 B4 
 d fis
 8 B r 
 d fis
  r A |
 r8 
 c d
  r A r 
 c d
  r G |

 or even better

 B4 
 d fis
 8 B r q r A |
 r8 
 c d
  r A r q r G |
 
 Uh, you might want to improve your illustration: it is utterly
 incomprehensible what you want to be your input and your output.
 
 -- 
 David Kastrup
 
 ___
 lilypond-user mailing list

 lilypond-user@

 https://lists.gnu.org/mailman/listinfo/lilypond-user

Yes, I noticed and tried (see my second post). Apparently nabble
auto-converted the note 'b' in a chord-construct into a html bold tag.

@Noeck
Thanks for the links. It gave me an idea to experiment with.



--
View this message in context: 
http://lilypond.1069038.n5.nabble.com/Custom-note-names-octavize-pitch-tp155705p155711.html
Sent from the User mailing list archive at Nabble.com.

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


Re: Custom note names / octavize pitch

2013-12-13 Thread David Kastrup
TaoCG tao_lilypondu...@gmx.net writes:

 Uh, you might want to improve your illustration: it is utterly
 incomprehensible what you want to be your input and your output.

 Yes, I noticed and tried (see my second post). Apparently nabble
 auto-converted the note 'b' in a chord-construct into a html bold tag.

Sorry, but I don't find the following very illustrative either:

TaoCG wrote
 For illustration I imagine the following snippet (relative)
 
 lt;b b'4 
 d fis
 8 lt;b b' r 
 d fis
  r 

  |
 r8 
 c d
  r 

  r 
 c d
  r 
 g g'
  |
 
 to become this
 
 B4 
 d fis
 8 B r 
 d fis
  r A |
 r8 
 c d
  r A r 
 c d
  r G |
 
 or even better
 
 B4 
 d fis
 8 B r q r A |
 r8 
 c d
  r A r q r G |

Again, it is totally unclear what you want to be your input and your
output.

-- 
David Kastrup

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


Re: Custom note names / octavize pitch

2013-12-13 Thread TaoCG
David Kastrup wrote
 TaoCG lt;

 tao_lilyponduser@

 gt; writes:
 
 Uh, you might want to improve your illustration: it is utterly
 incomprehensible what you want to be your input and your output.

 Yes, I noticed and tried (see my second post). Apparently nabble
 auto-converted the note 'b' in a chord-construct into a html bold tag.
 
 Sorry, but I don't find the following very illustrative either:
 
 TaoCG wrote
 For illustration I imagine the following snippet (relative)
 
 lt;b b'4 
 
 d fis
 8 lt;b b' r 
 
 d fis
  r 
 
  |
 r8 
 
 c d
  r 
 
  r 
 
 c d
  r 
 
 g g'
  |
 
 to become this
 
 B4 
 
 d fis
 8 B r 
 
 d fis
  r A |
 r8 
 
 c d
  r A r 
 
 c d
  r G |
 
 or even better
 
 B4 
 
 d fis
 8 B r q r A |
 r8 
 
 c d
  r A r q r G |
 
 Again, it is totally unclear what you want to be your input and your
 output.
 
 -- 
 David Kastrup
 
 ___
 lilypond-user mailing list

 lilypond-user@

 https://lists.gnu.org/mailman/listinfo/lilypond-user

If my message reached you like this then indeed it is.
On my side, via the nabble web interface, it looks fine though.
I'll just post a screenshot and try to make it clearer.

2013-12-13_154458.png
http://lilypond.1069038.n5.nabble.com/file/n155723/2013-12-13_154458.png  



--
View this message in context: 
http://lilypond.1069038.n5.nabble.com/Custom-note-names-octavize-pitch-tp155705p155723.html
Sent from the User mailing list archive at Nabble.com.

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


Re: Custom note names / octavize pitch

2013-12-13 Thread David Kastrup
TaoCG tao_lilypondu...@gmx.net writes:

 David Kastrup wrote
 
 Again, it is totally unclear what you want to be your input and your
 output.

 If my message reached you like this then indeed it is.
 On my side, via the nabble web interface, it looks fine though.

Web interfaces are somewhat treacherous.  Gmane.org seems to be more
reliable.

 I'll just post a screenshot and try to make it clearer.

 2013-12-13_154458.png
 http://lilypond.1069038.n5.nabble.com/file/n155723/2013-12-13_154458.png  

Well, an afterthought: you could probably define uppercase letters to be
a quartertone (or less) sharp, and then postprocess your music, turning
all of those back to normal pitch and adding the top octave.

If you do the unsharpening/octavation in the toplevel-music-functions
hook, it will actually happen at a time when all \relative music has
already been turned into absolute music, so that would not interfere.

-- 
David Kastrup

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