[Top][All Lists]

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

Re: Note names in Midi Note Numbers?

From: PMA
Subject: Re: Note names in Midi Note Numbers?
Date: Mon, 27 Feb 2012 21:20:59 -0500
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv: Gecko/20101227 Iceape/2.0.11

No programming language I know of can commandeer
a *number* as the *name* for something *else*.


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

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.

Unfortunately I don't have a lot of knowledge of programming... Any suggest?


On Mon, Feb 27, 2012 at 11:25 PM, Tim Roberts<address@hidden>  wrote:

Jonghyun Kim wrote:
Thanks Ole for good info. I will test it.

Really there is no way to write pitches with midi numbers in Lilypond?

No.  MIDI note numbers are just an implementation detail of a specific
computer protocol -- a way of writing a frequency.  Music is notated in
alphabetic notes.  As I now think Nils was trying to point out, when you
write MIDI number 48, there's no indication whether that should be
notated as B#, or C natural, or Dbb, and Lilypond absolutely needs to
know that.  The note number doesn't contain enough information.

If you want to engrave music for others to read, you need to know and
work with the note names.

Tim Roberts, address@hidden
Providenza&  Boekelheide, Inc.

lilypond-user mailing list

lilypond-user mailing list

reply via email to

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