lilypond-user
[Top][All Lists]
Advanced

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

Re: About pitch


From: Ralf Mattes
Subject: Re: About pitch
Date: Tue, 19 May 2015 15:15:14 +0200
User-agent: SOGoMail 2.2.16

Am Dienstag, 19. Mai 2015 10:12 CEST, PharoahS <address@hidden> schrieb:

> Hi all
>
> When i write #(display language-pitch-names) i get someting beginning wuth:
> ((nederlands (ceses . #<Pitch ceses >) (ceh . #<Pitch ceh >)
>
> i see in
> http://denemo.org/~rshann/gub.bak/target/mingw/root/usr/share/lilypond/current/scm/define-note-names.scm
> <http://denemo.org/~rshann/gub.bak/target/mingw/root/usr/share/lilypond/current/scm/define-note-names.scm>
> that it should begin with
> (nederlands . (
>                  (ceses . ,(ly:make-pitch -1 0 DOUBLE-FLAT))
>                  (ceh . ,(ly:make-pitch -1 0 SEMI-FLAT))

This can't be true. You must be missing a backquote "`" somewhere since kommas 
","
are only valid syntax within a "backquoted"  expression (schemers call that 
quasi-quoted
expression).

> Why is there such a difference?

There is none, since the komma instructs the scheme reader to replace the 
following
expression with it's _value_ and the value of (ly:make-pitch ....) will be a 
lilypond pitch
which _prints_ like #<Pitch .....>.

> and how can i display from lily the
> denemo-like version?

You can't.  The scheme 'display' function does display pitches the way it does 
since
there is no print representation for pitches that can be read back by scheme.
Anything starting with "#<" is consiered "unreadable" by scheme. This is why 
denemo
needs to substitute pitches with scheme code to generate them.
NB: I think there _should_ be a readable scheme representation for pitches .... 
but
that's another thread ;-)

 HTH Ralf Mattes

> Thanks
>
>
>
>
> --
> View this message in context: 
> http://lilypond.1069038.n5.nabble.com/About-pitch-tp176774.html
> Sent from the User mailing list archive at Nabble.com.
>
> _______________________________________________
> lilypond-user mailing list
> address@hidden
> https://lists.gnu.org/mailman/listinfo/lilypond-user









reply via email to

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