Scheme function to change the MIDI port of a note inside Lilypond?

2018-05-22 Thread mclaren
It would prove incredibly useful to be able to change the MIDI port of a specific note, possibly using scheme code. Lots of other things can be done via MIDI using scheme functions inside Lilypond -- for example, changing tempo, etc. So guessing it's possible to use a simple scheme function to

Re: Solution to 7 over sqr(71) time against integer polyrhythms

2016-11-21 Thread mclaren
a reason for everything that cannot even remotely be characterized as `people just weren't as smart as mclaren or they'd have done it better.'" No one ever said I was smarter than anyone else, certainly not me. Smart isn't the issue. The problem is that if you use fixed point to represent moments, y

Re: Pitch bend output in MIDI

2016-11-21 Thread mclaren
This Lilypond code might help. I write microtonal music all the time, so I've paid close attention to the features of Lilypond that allow pitch bend to create alternate pitches outside of 12 equal tuning:

Re: Solution to 7 over sqr(71) time against integer polyrhythms

2016-11-17 Thread mclaren
It's easy to show that Kieren is being deceptive with his example. Here's how he did it: Kieren used a Lilypond function to suppress printing of the actual tuplet number, then used another Lilypond function to substitute a text string with no connection to the actual tuplet number instead of the

Re: Solution to 7 over sqr(71) time against integer polyrhythms

2016-11-16 Thread mclaren
"You do realize, don't you, that if you had just asked for help creating that music, Kieren would have helped you and taught you some of his coding skills (and he IS really good, BTW). " Not likely. What I realize is that Kieren is good with photoshop. I'll bet he can show us an image of

Re: Solution to 7 over sqr(71) time against integer polyrhythms

2016-11-16 Thread mclaren
It's pretty clear from the nature of the bugs that there was some internal rational integer calculation limit in lilypond. What's baffling is the way it's dealt with internally in lilypond. The procedure seems to be to do everything in 32 bit integers and then throw an error if that limit gets

RE: Solution to 7 over sqr(71) time against integer polyrhythms

2016-11-16 Thread mclaren
Mrotek claimed: `In support of your observation, "It is a poor carpenter who blames his tools."' Great. Glad to hear it. Since you're a master virtuoso with lilypond, you should no trouble entering the following photoshopped score fragment into lilypond and compiling the score and getting a pnd

RE: Solution to 7 over sqr(71) time against integer polyrhythms

2016-11-15 Thread mclaren
Nice try, but so obvious I already tried it long ago -- remove the timing translator and default barline engraver from the Score portion of the layout and insert it in the Staff portion. Nope. Doesn't work with my score. By all means, keep spending all your time and energy attacking people who

Re: Solution to 7 over sqr(71) time against integer polyrhythms

2016-11-15 Thread mclaren
My statement that Lilypond does not allow barlines to be inserted wherever you want on individual staves without drawing barlines through all the other staves is factually accurate. Inserting \bar "|" in one staff draws lines through all the other staffs. There is no way to prevent this. It's a

Re: Solution to getting page breaks for broken tuplets embedded with multiple hypermeasures

2016-11-15 Thread mclaren
And of course the attachment feature doesn't work. So here's the first page of the score as a gif. -- View this message in context:

Solution to getting page breaks for broken tuplets embedded with multiple hypermeasures

2016-11-15 Thread mclaren
Another example I posted a while back and no one was able or knowledgeable enough to help me with, so once again I figured it out mostly on my own, with a hint from Trevor Baca. This example is a simple set of hypermeasures formed by broken tuplets. The hypermeasures on the top two and middle two

Re: Rotating Score on one page

2016-11-15 Thread mclaren
Alternatively, you could just print that page as a PNG and put that score page PNG into Photoshop or some other image editing software, rotate the entire page 90 degrees, then select the individual instructions that you want to remain unrotated and rotate them back -90 degrees, then save that

Solution to 7 over sqr(71) time against integer polyrhythms

2016-11-15 Thread mclaren
The solution (thanks to a hint by Trevor Baca) turns out to involve setting a bunch of overrides at the start of the Lilypond code, setting proportional spacing and a standard make-moment setting (usually 1/20 or 2/20 works well), specifying the score size so that the notes don't get scrunched up

Re: How to get irrational tuplets inside a regular meter like 9/8

2016-11-08 Thread mclaren
Whatever Lilypond is doing internally, there's some arbitrary limit to the numbers it uses. Time signatures above some large value cause a crash. Too many tuplets of too many different kinds causes Lilypond to crash. There's no reason for that. None whatever. A competent programmer would not

Re: e in the time of phi and square root of pi tuplet hijinks

2016-11-08 Thread mclaren
Okay, here's the complete version with Unicode chars escaped into the score. A proper Greek phi and pi symbol. Adding Unicode chars turns out to be dead simple in Lilypond. And here's

e in the time of phi and square root of pi tuplet hijinks

2016-11-07 Thread mclaren
This example eschews numbers for the irrational tuplets in favor of Greek letters, or at least the Greek names for the symbols. I'm not sure how to get a Greek font in Lilypond. It might not be possible. In any case it's not important, since that can always be fixed in the mix with photoshop. e

Three different types of Nancarrowesque acceleration notated

2016-11-07 Thread mclaren
For the sake of completeness, here are all three types of acceleration used by Conlon Nancarrow. Here they're notated exactly, while Nancarrow typically punched holes in a player piano roll to get his accelerations. These aren't exactly the same as Nancarrow's acceleration, because he used

How to get irrational tuplets inside a regular meter like 9/8

2016-11-07 Thread mclaren
An alternative method involves simply adding in the required rests, rather than squishing or stretching the entire measure with a large tuplet. Since this method is easy to calculate exactly because you're just adding and subtracting various integer fractions, it always produces guaranteed

Re: Mystery empty staves appear on score

2016-11-07 Thread mclaren
Thanks, it's useful to know that Lilypond doesn't have printable objects to represent time values shorter than 1/128 note, but that Lilypond nevertheless does insert them into scores and deal with them. This offers an example of the inadequacy of the Lilypond documentation. This kind of

Re: Mystery empty staves appear on score

2016-11-07 Thread mclaren
Thanks! That answer a lot of questions. So presumably the S2 is means "silent half note rest." I'm guessing, then, that S1024 or S4096 will generate silent 1/1024 note rest and silent 1/4096 note rests, respectively. Ideally, what I want is a silent rest of zero length. Experience shows that

Re: Two different time signatures with different tuplets in 'em

2016-11-07 Thread mclaren
David Wright remarked: "What I can't understand is why you would want to print out a score that is basically impossible to play, and is, in any case, written in a notation that is debatably incapable of expressing it." This score might be impossible for _humans_ to play. That doesn't mean

Re: How to get a polymeter with time signature 89888449/5199909 against 742739/45045

2016-11-07 Thread mclaren
Yes, I think you're right that an svg file is superior to a png file. In the svg file, all the objects are resolution-independent. So the score and its components can be scaled arbitrarily without raterizing degradation. It's remarkably easy to enter these kinds of scores using a MIDI sequencer,

How to get a polymeter with time signature 89888449/5199909 against 742739/45045

2016-11-06 Thread mclaren
Lilypond crashes with the familiar error code if we enter those time signatures directly. But there is a workaround, and it involves approximating both meters with smaller rational fractions, then deleting the actual meter used and engraving the real time signature by hand on both staves. Then we

Two different time signatures with different tuplets in 'em

2016-11-06 Thread mclaren
The logical extension of that example I posted with the large time signature, 4918233/340340, involves two different simultaneous measures with different tuplets and different time signatures, one large, the other not. In this case, the 4918233/340340 measure (which is really a different smaller

Just a fun example of what Lilypond can do

2016-11-05 Thread mclaren
No bugs, no problems with this score. Thought I'd just toss this out there to show a neat example of some things Lilypond can do that no other notation program (that I know of -- haven't used SCORE) can do. \version "2.18.2" \header { tagline = "" % removed } indent=0 \layout { %

RE: Lilypond bug "Exited with return code-1073741819" & workaround

2016-11-05 Thread mclaren
Andrew -- Thanks for the suggestion about "minimal working examples." I'm a little puzzled about how I can reduce the size of my Lilpond code. In the example above, for instance, I need at least one full measure of those broken tuplets because anything less doesn't get the numerator and

Mystery empty staves appear on score

2016-11-05 Thread mclaren
Using urs Liska's recommended page break method for ametric scores, got close to a score of simultaneous Nancarrowesque notated accelerations + decelerations with proper page breaks. Mysterious empty staves appear on the pages, though. Not sure why. I can photoshop these out from the lilypond

Lilypond bug "Exited with return code-1073741819" & workaround

2016-11-05 Thread mclaren
This simple example crashes Lilypond. You wouldn't think putting 6 broken tuplets into a measure would make Lilypond stop working, but it does. To get the error Exited with return code-1073741819 uncomment the line % \time 4918233/340340 and comment the lines immediately below \once

Spacing issue

2016-11-03 Thread mclaren
This particular score has a peculiar spacing issue. I used the recommended proportional spacing code given in the Lilypond manual, and I've fiddled with the make-moment values, but notes that should be exactly evenly spaced are still distinctly crimped up. Unless I haven't understood the

Re: Are page breaks possible with this kind of score? If so, how?

2016-11-03 Thread mclaren
Wow! That's fantastic! Thanks, Urs. You are a true Lilypond wizard. I abase myself before your excellence. -- View this message in context: http://lilypond.1069038.n5.nabble.com/Are-page-breaks-possible-with-this-kind-of-score-If-so-how-tp196124p196129.html Sent from the User mailing list

How to get proper barlines, and how to get page breaks, on this score

2016-11-03 Thread mclaren
This score is a transcription of a rhythm I generated in Jens Johansen's wonderful polyrthmic application Polymath. It's a pretty catchy rhythm. But Lilypond has trouble handling it. The barlines are obvious from the score, since this is nothing but a bunch of hypermeasures. Notice that in each

Another page-break problem, particularly fiendish

2016-11-03 Thread mclaren
This score fragment follows up on Lilypond code originally posted by Hans Ã…berg and Malte Men back in June, 2014, on this forum. I've carried the notation a little bit farther. The question I have is: how the devil to generate a proper page break in a score like this? If there's a make-moment

Are page breaks possible with this kind of score? If so, how?

2016-11-03 Thread mclaren
Here's the score. It's pretty self-explanatory. I recognize that at this point we're stretching the bounds of Western music notation. It would be nice to be able to get page breaks with a score like this that goes on for several pages, but so far I haven't figured out how to do it. Trying to

Lilypon error message: "Programming error -- bounds of the piece aren't breakable"

2016-11-03 Thread mclaren
Now we get to the interesting Lilypond scores, the ones that cause Lilypond to crash or produce error messages. This simple score makes Lilypond die and stop engraving after a couple of measures with the error message "Programming error: bounds of this piece aren't breakable." Lilypond gives

Re: compound time signature with non duple denominator

2016-11-03 Thread mclaren
Yes, I realized that. Thanks for the correction. -- View this message in context: http://lilypond.1069038.n5.nabble.com/compound-time-signature-with-non-duple-denominator-tp195829p196119.html Sent from the User mailing list archive at Nabble.com.

Re: compound time signature with non duple denominator

2016-11-03 Thread mclaren
LOL! Well said, Urs. As a practical matter, the musicians who perform Michael Gordon's broken tuplets don't seem confused by the notation. You can examples of this in "Four Kings Fight Five," "Yo, Shakespeare!" and many other pieces by Gordon. -- View this message in context:

Re: compound time signature with non duple denominator

2016-11-03 Thread mclaren
Well, the 3's indicate 3:2 broken tuplets. There seems to be some controversy over whether Tobin Chodos really wanted a single 3:2 eighth note at the end of every measure. If he does, then the 3's are correct. If he doesn't, then the question was unclear and we're answering something that wasn't

Re: compound time signature with non duple denominator

2016-11-03 Thread mclaren
David remarked: >"One triplet eighth note" defines a duration of time (which the OP > appeared to get wrong in any case). One note cannot form a triplet. Sure it can. They're called broken tuplets, and lots of composers use 'em. Michael Gordon uses broken tuplets all the time. So does Mikel

Re: Can't get page breaks for 7 over square root of 71 meter

2016-11-03 Thread mclaren
Hans; You mentioned: "LilyPond doesn't require all the barlines to align in order to be able to break a line, it only requires an arbitrary *moment* to align. If you have such a moment you can break lines, and the manual tells you how to achieve that." Sorry, no, the Lilypond manual does _not_

Re: compound time signature with non duple denominator

2016-11-03 Thread mclaren
Yes, Thomas Ades and Brian Ferneyhough and Kyle Gann and many others have written music in non-binary meters like 7/6 and 21/10 and so on. This is hardly unusual nowadays. In fact, these kinds of meters go all the way back to Henry Cowell's "New Musical Resources," written in 1930, though Cowell

Re: compound time signature with non duple denominator

2016-11-03 Thread mclaren
"Wouldn't that rather be (4 + 2/3)/4?" Yes, I think you're right. 1/3 is presumably half of the value of a triplet quarter note, so 1 triplet eighth note. I've corrected that in my second Lilypond example. My bad. Change the "6" denominator in my new Lilypond code to a 3 to get the meter to

Re: compound time signature with non duple denominator

2016-11-03 Thread mclaren
Tobin Chodos mentioned: "That is, the measure is four quarter notes long plus one triplet eighth note." Oops. Unless I'm mistaken, 4 + 1 triplet eighth note would be 4 + 1/6, not 4 + 1/3. My Lilypond code was based on the assumption that you had 4 quarter notes + 1 triplet quarter note. Here's

Lilypond page breaks work properly for non-binary meters like 7/5...

2016-11-03 Thread mclaren
..But apparently Lilypond page breaks don't work at all for an irrational meter like 7/sqr(71). I'm baffled. Why do page breaks work for 7/5 but not for 7/sqr(71)? The basic metric pulse is non-binary in both cases, so why should it make any difference whether the basic metric pulse is 5 equal

Can't get page breaks for 7 over square root of 71 meter

2016-11-03 Thread mclaren
A meter of 7/sqr(71) simply means that that there are 7 eighth notes each of which has duration of square root of 71 = 1/8.426149 of a whole note, whereas a standard eighth note has duration of 1/8 of a whole note. Therefore each eighth note in 7/sqr(71) meter has a duration of 8.426149/8 =

Re: compound time signature with non duple denominator

2016-11-03 Thread mclaren
I have an even more diabolical question, related to the one at the start of this thread. But let me first answer the original question, which was: "Is there a way to implement a non-binary time signature like 4 + 1/3?" I think I know a way to do this. This seems like an entirely valid question.

Re: A tricky example -- polyMETER against polyRHYTHM

2016-11-03 Thread mclaren
N. Andrew Walsh mentioned: > Maybe I'm misunderstanding mclaren's example, but the graphic he posted > has > a number of notational errors. To wit: > in the third voice, if the meter is 11/8, then an 11:9 tuplet will not > fill > the bar, as it will only cover 9 eighth-notes. Perhaps he meant

Re: A tricky example -- polyMETER against polyRHYTHM

2016-11-03 Thread mclaren
Klaus; Thanks! That fixed the landscape paper problem. You're my new hero. I copied the \paper {landscape} thing from the Lilypond snippet repository. Evidently the snippets have garbage code in 'em. Anyway, no matter, now it's clear what was wrong & how to fix it. Thanks again!

Lilypond meter bug?

2016-11-03 Thread mclaren
I'm no Lilypond expert, so could be I'm just doing something wrong. Don't want to call it a bug if it's a case of user error. Anyway, this is a dead-simple polyrhythm. Nothing special here, just 4 simultaneous different meters working at once in the duration of the same barlength. The

A tricky example -- polyMETER against polyRHYTHM

2016-11-02 Thread mclaren
Took some skull sweat to figure this one out. But someone may get a kick out of it. What I wanted to do was to set up two polymeters (different accent patterns) with a shifting polymeter against 'em. Here's a png image of the score: http://i.imgur.com/RtYUgRR.png

Question about non-standard time signatures

2016-09-30 Thread mclaren
Okay, here's the deal -- I've been using non-standard time signatures in Lilypond. They work fine as long as everything is in the same time signature. Here's an example using the meter 657/66: % "headers" follow \include "english.ly" % end of "headers" \relative c'' { << \new Staff { \clef