Validating a Scheme list

2014-05-15 Thread Urs Liska
Hi all, I am working on a Scheme function and would like to check if I have found the best solution for a specific subpart. Somehow it looks more complicated than necessary. The function needs to test if each element of a given list is a (sub)list with exactly two elements. So '((1 2)(3 4))

Re: Validating a Scheme list

2014-05-15 Thread Orm Finnendahl
Hi Urs, it doesn't make too much sense to first collect the whole list and then check for membership of #f. It'd be more reasonable to stop iteration once any of the preconditions isn't met. You could achieve this by using a recursive function like below (you could make it more terse by using if

Re: Validating a Scheme list

2014-05-15 Thread Malte Meyn
Hi, I almost don’t know any Scheme but I think this could be done with a map, a fold, and some function composition. In Haskell, you would do this: validate = foldr () True . map ((== 2) . length) validateShort = and . map ((== 2) . length) The function and is a shortcut

Re: Validating a Scheme list

2014-05-15 Thread Urs Liska
Am 15.05.2014 10:41, schrieb Orm Finnendahl: Hi Urs, it doesn't make too much sense to first collect the whole list and then check for membership of #f. It'd be more reasonable to stop iteration once any of the preconditions isn't met. Ah yes, I didn't mention that this is exactly what I

Re: Validating a Scheme list

2014-05-15 Thread David Kastrup
Urs Liska u...@openlilylib.org writes: Hi all, I am working on a Scheme function and would like to check if I have found the best solution for a specific subpart. Somehow it looks more complicated than necessary. The function needs to test if each element of a given list is a (sub)list

Re: [SPAM] Re: Validating a Scheme list

2014-05-15 Thread Urs Liska
Am 15.05.2014 10:26, schrieb David Kastrup: Urs Liska u...@openlilylib.org writes: Hi all, I am working on a Scheme function and would like to check if I have found the best solution for a specific subpart. Somehow it looks more complicated than necessary. The function needs to test if

Re: Validating a Scheme list

2014-05-15 Thread Orm Finnendahl
Hi David, I wasn't aware that SRFI-1 is included in lilypond. Is there any documentation about which libs/packages are included in lilypond? -- Orm Am Donnerstag, den 15. Mai 2014 um 10:26:07 Uhr (+0200) schrieb David Kastrup: (if (every (lambda (sig) (eqv 2 (length+ sig))) lst) (display

Beams not drawn after \unHideNotes

2014-05-15 Thread James Harkins
I'm making that exercise for my students now** and found... the first group of eighths after \unHideNotes is missing its beam. It omits 8th-note flags, and it draws the stems as if it's going to beam them, but... no beam. ** Thanks, Pierre, for reminding me about \hideNotes! \version 2.18.2

Re: Beams not drawn after \unHideNotes

2014-05-15 Thread Urs Liska
Am 15.05.2014 14:42, schrieb James Harkins: I think I see why... it's trying to beam a group of four 8ths, where the first two are hidden. It'd be nicer if LilyPond could detect the situation and just Do The Right Thing. I think it's a little bit different: The beam is determined when it

Re: Validating a Scheme list

2014-05-15 Thread David Kastrup
Orm Finnendahl orm.finnend...@hfmdk-frankfurt.de writes: Hi David, I wasn't aware that SRFI-1 is included in lilypond. Is there any documentation about which libs/packages are included in lilypond? I don't think that it's documented (and it's not all that much more). But of course you can

Function for note string to fraction?

2014-05-15 Thread Peter Bjuhr
Hi all, is there already a function that converts a string 4. to the fraction '3/8', or the other-way round? Maybe it's helpful to know that the string is intended for use with \note, e g \note #4. #UP and the fraction is intended for use with \set Timing.baseMoment, e g \set

Re: LilyJAZZ in v2.18

2014-05-15 Thread MarcM
if the work is open source, can LilyJAZZ be integrated with Lilypond? -- View this message in context: http://lilypond.1069038.n5.nabble.com/LilyJAZZ-in-v2-18-tp162423p162444.html Sent from the User mailing list archive at Nabble.com. ___

Re: Beams not drawn after \unHideNotes

2014-05-15 Thread James Harkins
On Thursday, May 15, 2014 8:42:56 PM HKT, James Harkins wrote: I think I see why... it's trying to beam a group of four 8ths, where the first two are hidden. It'd be nicer if LilyPond could detect the situation and just Do The Right Thing. Just occurred to me -- a simple solution would be to

Re: relative pitch with song sections

2014-05-15 Thread Brian Barker
At 06:30 15/05/2014 +1000, Nick Payne wrote: I would say, based on my fairly extensive collection of guitar scores, collected over about 40 years, that there are probably more commercially engraved editions that omit the 8 than those that show it. This is surely no different from the practice

Re: Transposing instruments in orchestra score

2014-05-15 Thread Paul Morris
Jan-Peter Voigt wrote I added a snippet to open-lily-lib: https://github.com/openlilylib/snippets/tree/master/editorial-tools/auto-transpose Continuing with the late theme... :) Thanks for the snippet Jan-Peter, both as a way to use an engraver, and also the custom context properties. I had

triangle noteheads

2014-05-15 Thread Nick Didkovsky
Hello I want a triangle notehead for percussion, the kind Norman Weinberg suggests for cowbell on page 16 of http://www.percussiontoday.com/filer/notation.pdf The following gives me a sideways, concave shaped triangle, which is not what i want: \override NoteHead #'style = #'triangle What is

Re: relative pitch with song sections

2014-05-15 Thread Simon Albrecht
Am 15.05.2014 18:53, schrieb Brian Barker: At 06:30 15/05/2014 +1000, Nick Payne wrote: I would say, based on my fairly extensive collection of guitar scores, collected over about 40 years, that there are probably more commercially engraved editions that omit the 8 than those that show it.

Re: triangle noteheads

2014-05-15 Thread Fredrik Wallberg
Hi Nick, you'll find more noteheads here: http://www.lilypond.org/doc/v2.19/Documentation/notation/the-feta-font#shape_002dnote-notehead-glyphs . This snippet by Victor Adan shows how to use them in a score: http://lsr.di.unimi.it/LSR/Snippet?id=475. An example: cowbell = { \once \override

Re: relative pitch with song sections

2014-05-15 Thread Matthew Collett
On 16/05/2014, at 10:08 am, Simon Albrecht simon.albre...@mail.de wrote: At first I was also inclined towards saying that it’s correct to add the 8 and it doesn’t hurt anyone, so why not just leave it where Lily puts it by default. Then I thought of a counter-example: some orchestra

Re: triangle noteheads

2014-05-15 Thread Nick Didkovsky
Hi Fredrik Works perfectly, thanks! Much appreciated, Nick On 5/15/2014 6:55 PM, Fredrik Wallberg wrote: Hi Nick, you'll find more noteheads here: http://www.lilypond.org/doc/v2.19/Documentation/notation/the-feta-font#shape_002dnote-notehead-glyphs. This snippet by Victor Adan shows how to

Re: relative pitch with song sections

2014-05-15 Thread David Kastrup
Matthew Collett m_coll...@ihug.co.nz writes: On 16/05/2014, at 10:08 am, Simon Albrecht simon.albre...@mail.de wrote: At first I was also inclined towards saying that it’s correct to add the 8 and it doesn’t hurt anyone, so why not just leave it where Lily puts it by default. Then I thought

Re: Contents of Lilypond-user Digest 138:76, Transposing instruments

2014-05-15 Thread Dennis Clason
Folks, every discourse community has implicit assumptions, and the music community is no different both in its jargon and in its score conventions. Guitar transposes down the octave unless the score states otherwise. Contrabass and contrabassoon sound an octave lower than written. Piccolos

The case of the repelling staccatto dot

2014-05-15 Thread Javier Ruiz-Alma
v2.18.2...¿?___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user

custos at end of piece!

2014-05-15 Thread Andreas Stenberg
Hi! Is there any easy way in version 2.18.2 to get a custos at the end of the (visible) notation in mensural or petrucci voice context? Without twidling with forcing linebreak hiding staff notes other objects. That is; having to manufacture a fucking lot of code to add a rather small sign