lilypond-user
[Top][All Lists]
Advanced

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

Re: question about transposing an interval of a 4th


From: James E. Bailey
Subject: Re: question about transposing an interval of a 4th
Date: Mon, 22 Dec 2008 10:56:24 +0100


Am 22.12.2008 um 03:52 schrieb Graham Percival:

On Sun, Dec 21, 2008 at 06:30:18PM -0800, Mark Polesky wrote:
Graham,

Great, that helps a lot. I haven't got a clue 
what scheme is.
In that case, may I courteously extend an 
invitation that you read the bloody Learning 
Manual?

Please stop the sarcasm and the indecency. If
you're trying to be funny, it isn't working.

It's a continuation of this email:

If he doesn't know what scheme is, then he clearly *hasn't* read
the LM cover-to-cover yet.  This means that he's missed some
terminology, missed some of the possibilities of lilypond, and
won't be able to communicate with the lilypond community as
effectively.
Oh, I've read the Learning Manual cover to cover (well, it may have been changed since then, it was some months ago), and I don't understand Scheme. 

I leave it as an exercise for the reader. Neil,
Trevor, Valentin: please don't give the answer.

What are you doing? Are you trying to turn people 
away from LilyPond?

You seem to be unfamiliar with the phrase "an exercise for the
reader".  The idea is that solving the problem is a useful
exercise.

I don't think the original question asked for an exercise.

There have been 15 replies to Chip's 
original message, and NO ONE has answered it yet.
This is embarrassing. If it were as easy to the
rest of us as it obviously is to you, someone
would have answered it. A user asks a perfectly
legitimate question, and the response is, "go
figure it out". 

Give a man a fish, teach a man to fish...
Apparently you, valentin, nicolas and John are the only people on this list who know how to fish. And no one's sharing how.


But what you're doing is the opposite of helpful.
So please, stop. Since it's such an elementary
exercise, please provide it, now. I assume it'll
only take a minute. Then we can all learn.

1.  Look at the selected snippets for \transpose.  There's an
example that's very close to what he wants.
I'm guessing you mean transposing music with minimum accidentals

2.  Look at
  { \displayMusic { a ais d dis } }
to get some info about how lilypond treats pitches.  The idea is
to write a function that translates "a ais" into "d dis".
That goes into Scheme. I don't know if it's possible for you, but try reading LM B.1 as if this were your introduction into a programming language, lilypond being your introduction to source code. It's completely confusing. It doesn't explain anything, I have no idea what "parser, location, padding, marktext, number? string? $padding +inf, -inf, or any of the other Scheme-specific things there mean. But that's okay, it isn't the Scheme documentation, it's the lilypond documentation. But, to assume that a user could, from the doucmentation in the learning manual understand how to construct anything in scheme. (I, not knowing anything about Scheme assumed I could just type #"this is a string" and see it printed out.)

So, while someone who understands the output of  { \displayMusic { a ais d dis } } might be able to figure out how to do what he wants to do, in the interim, can you, o great and wise graham, give us our first lesson in programming and explain what the output of { \displayMusic { a ais d dis } } means so that those of us who have only had musical instruction, and no programming instruction can learn how to fish write a function that translates "a ais" into "d dis"

3.  Modify the existing example so that instead of producing notes
with few accidentals, it changes the notename by the desired
interval.

- Graham


_______________________________________________
lilypond-user mailing list


reply via email to

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