On Tue, Feb 28, 2012 at 10:38 AM, -Eluze <[email protected]> wrote:

>
>
> Jonghyun Kim wrote:
> >
> > Thanks Tim for the advise,
> >
> > Can I try to this?
> >
> > I can define all of notes as numbers:
> > ...
> > 48 = c3
> > 49 = c#3
> > 50 = d3
> > 51 = d#3
> > 52 = e3
> > ...etc
> >
> > And replace the note names to numbers:
> >
> > { 48 50 52 49 51 }
> >
> > Then I get engraved score:
> >
> > c3 d3 e3 c#3 d#3
> >
> > At this point my question is: How to define note names to numbers(midi),
> > and how to call them in the code.
> >
> >
> a time ago somebody kindly gave me instructions how to add a new language -
> unfortunately I don't remember who it was.
>
> this can be used to print pitches in a new language:
>
> #(let ((new-lang
>        `(midis . (
>         (58 . ,(ly:make-pitch -1 0 DOUBLE-FLAT))
>         (59 . ,(ly:make-pitch -1 0 FLAT))
>         (60 . ,(ly:make-pitch -1 0 NATURAL))
>         (61 . ,(ly:make-pitch -1 0 SHARP))
>         (62 . ,(ly:make-pitch -1 0 DOUBLE-SHARP))
>  ))))
>  (if (not (assoc 'myLang language-pitch-names))
> (set! language-pitch-names (cons new-lang language-pitch-names))))
> %
> \language nederlands
> mus = \relative {
>  ceses 1 |
>  ces |
>  c |
>  cis |
>  cisis |
> }
> \language midis
> \displayLilyMusic
> \mus
>
> in the log you then will find this code:
>
> {
>  58'1 |
>  59' |
>  60' |
>  61' |
>  62' |
> }
>
>
Write pitches in a new language! It's the answer that I wished.

I have a question: Can I do without ' and | procedure? It's not so beauty...

Thanks,
Jong


> now I have no idea about how to do it the other way round, i.e. how to tell
> LilyPond to read these numbers as pitches.
>
> Eluze
> --
> View this message in context:
> http://old.nabble.com/Note-names-in-Midi-Note-Numbers--tp33401353p33405480.html
> Sent from the Gnu - Lilypond - User mailing list archive at Nabble.com.
>
>
> _______________________________________________
> lilypond-user mailing list
> [email protected]
> https://lists.gnu.org/mailman/listinfo/lilypond-user
>
_______________________________________________
lilypond-user mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/lilypond-user

Reply via email to