Re: Scheme function to force any noteEvent to a skipEvent

2016-04-04 Thread David Wright
On Mon 04 Apr 2016 at 17:47:03 (+), Joseph Chrestien wrote: > Thanks David and Simon for your kind help. I used David's solution and it > works brilliantly. Very nice. I didn't know of this NullVoice context, I'll > take a look at it. My view would be to use David's solution where you have

Re: Lilypond structure / implicit - explicit / with statement

2016-04-04 Thread David Wright
On Tue 05 Apr 2016 at 01:04:40 (+0200), Thomas Morley wrote: > 2016-04-04 23:58 GMT+02:00 David Sumbler : > > > > Just a thought - perhaps one day somebody who understands Lilypond well > > might write a section for the docs, starting with the basic > > Well, the full quote: >

Re: Weird error when using skipTypesetting

2016-04-04 Thread David Wright
On Mon 04 Apr 2016 at 23:30:00 (+0200), Sharon Rosner wrote: > Hi all, > > I’m getting a bunch of "programming error: insane spring distance requested, > ignoring it” etc errors when compiling the following: > > \version "2.19.37" > > music = \relative c' { > c1 d e f \bar "||" > \set

Re: Weird error when using skipTypesetting

2016-04-04 Thread Colin Campbell
On 16-04-04 05:12 PM, Sharon Rosner wrote: Sharon Rosner wrote In addition, the music is cut immediately after the last note, and does not show the bar line that I’m explicitly asking for: For anyone who's interested, I've found a workaround technique based on code in music-functions.scm. The

Re: Weird error when using skipTypesetting

2016-04-04 Thread Sharon Rosner
Sharon Rosner wrote > In addition, the music is cut immediately after the last note, and does > not show the bar line that I’m explicitly asking for: For anyone who's interested, I've found a workaround technique based on code in music-functions.scm. The code is here:

Re: Lilypond structure / implicit - explicit / with statement

2016-04-04 Thread Thomas Morley
2016-04-04 23:58 GMT+02:00 David Sumbler : > > Just a thought - perhaps one day somebody who understands Lilypond well > might write a section for the docs, starting with the basic Well, the full quote: LilyPond treats input like this: \relative { c''4 a d c } as

Re: Lilypond structure / implicit - explicit / with statement

2016-04-04 Thread David Wright
On Mon 04 Apr 2016 at 12:46:37 (+0200), Bernard wrote: > On 03-04-16 22:56, David Kastrup wrote: > >Bernard writes: > >>That does help. I found out \with is a very special statement. > >Not really. \with can be part of other constructs, just like "else" can > >be part

Re: Lilypond structure / implicit - explicit / with statement

2016-04-04 Thread Simon Albrecht
On 04.04.2016 22:19, Johannes Waldmann wrote: The docs do make considerable effort to explain, e.g., http://lilypond.org/doc/v2.18/Documentation/learning/contexts-and-engravers . If at all, I might criticize this for being in the wrong order: 2. Common Notation, 3. Fundamental Concepts - but

Re: Lilypond structure / implicit - explicit / with statement

2016-04-04 Thread David Sumbler
On Mon, 2016-04-04 at 16:12 -0400, lilypond-user-requ...@gnu.org wrote: > > From: Noeck > > To: lilypond-user@gnu.org > > Subject: Re: Lilypond structure / implicit - explicit / with > > statement > > Date: Mon, 4 Apr 2016 22:11:51 +0200 > > > > Would the table in the

Re: Weird error when using skipTypesetting

2016-04-04 Thread Urs Liska
Am 04.04.2016 um 23:30 schrieb Sharon Rosner: > Hi all, > > I’m getting a bunch of "programming error: insane spring distance > requested, ignoring it” etc errors when compiling the following: > > \version "2.19.37" > > music = \relative c' { > c1 d e f \bar "||" > \set

Re: Lilypond structure / implicit - explicit / with statement

2016-04-04 Thread David Kastrup
Colin Campbell writes: > On 16-04-04 02:57 PM, David Kastrup wrote: >> Noeck writes: >> >>> … and enjoy your climbing! I hope I don't produce much more >>> misinformation until you are safely back ;) >> Uh, I'm already back. I'm only enjoying the open spots

Weird error when using skipTypesetting

2016-04-04 Thread Sharon Rosner
Hi all,I’m getting a bunch of "programming error: insane spring distance requested, ignoring it” etc errors when compiling the following:\version "2.19.37"music = \relative c' {   c1 d e f \bar "||"  \set Score.skipTypesetting = ##t  g a b c}{ \music }In addition, the music is cut immediately

Re: Lilypond structure / implicit - explicit / with statement

2016-04-04 Thread Colin Campbell
On 16-04-04 02:57 PM, David Kastrup wrote: Noeck writes: … and enjoy your climbing! I hope I don't produce much more misinformation until you are safely back ;) Uh, I'm already back. I'm only enjoying the open spots on my fingertips now. They'll close up in the next

Re: Lilypond structure / implicit - explicit / with statement

2016-04-04 Thread David Kastrup
Noeck writes: > … and enjoy your climbing! I hope I don't produce much more > misinformation until you are safely back ;) Uh, I'm already back. I'm only enjoying the open spots on my fingertips now. They'll close up in the next few days, and in 10 days or so the fingers

Re: Lilypond structure / implicit - explicit / with statement

2016-04-04 Thread Noeck
… and enjoy your climbing! I hope I don't produce much more misinformation until you are safely back ;) Cheers, Joram ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user

Re: Lilypond structure / implicit - explicit / with statement

2016-04-04 Thread Noeck
Hi David, On 04.04.2016 22:22, David Kastrup wrote: > Noeck writes: > >> Alternatively, you can put this into a layout block: >> >> \layout { >> \context { >> \Staff >> clefPosition = 2 >> } >> } >> %or >> \layout { >> \set Staff.clefPosition = 2 >> } > >

Re: Lilypond structure / implicit - explicit / with statement

2016-04-04 Thread David Kastrup
Noeck writes: > Alternatively, you can put this into a layout block: > > \layout { > \context { > \Staff > clefPosition = 2 > } > } > %or > \layout { > \set Staff.clefPosition = 2 > } This is not the same. The first affects only the "Staff" context

Re: Re: Lilypond structure / implicit - explicit / with statement

2016-04-04 Thread Johannes Waldmann
interesting discussion! > My ultimate question boils down to how to assign > a value to a property. That should not even be a question. That ("should not be a question") depends on the mental model. Why do you assume that a property is assignable, or in fact that a (sub)program should consist of

Re: Lilypond structure / implicit - explicit / with statement

2016-04-04 Thread Noeck
Would the table in the previous mail be helpful for the docs here? http://lilypond.org/doc/v2.19/Documentation/notation/overview-of-modifying-properties I could write it and some text around it if there is a general feeling that it would help. Cheers, Joram

Re: Lilypond structure / implicit - explicit / with statement

2016-04-04 Thread Noeck
Hi Bernard, I would like to try and explain it in other words as the manual: music with implicit voice and staff: { c' } music with explicit staff and implicit voice: \new Staff { c' } adding a with statement: \new Staff \with { clefPosition = 2 } { c' } Please note here: There must be no {

Re: Lilypond structure / implicit - explicit / with statement

2016-04-04 Thread Simon Albrecht
On 04.04.2016 21:54, David Kastrup wrote: The only "inconsistency" I am able to see is that context modifications (like context definitions) omit a context name for their sets/overrides, and that they use assignment syntax without \set unlike to how context properties are set inside of actual

Re: Lilypond structure / implicit - explicit / with statement

2016-04-04 Thread David Kastrup
Bernard writes: > On 04-04-16 18:35, David Kastrup wrote: >> Bernard writes: >> >>> >>> I think I am getting quite close now. Thanks, >> I have no idea what you think you are doing but I have severe doubts >> that you are getting close to

Re: Lilypond structure / implicit - explicit / with statement

2016-04-04 Thread Kieren MacMillan
Hi Bernard, I’m sorry you’ve had such difficulty learning Lilypond. On Apr 4, 2016, at 3:20 PM, Bernard wrote: > My ultimate question boils down to how to assign a value to a property. That > should not even be a question. The main problem you’re having, I think,

Re: Lilypond structure / implicit - explicit / with statement

2016-04-04 Thread Bernard
On 04-04-16 18:35, David Kastrup wrote: Bernard writes: I think I am getting quite close now. Thanks, I have no idea what you think you are doing but I have severe doubts that you are getting close to anything useful. It looks to me like you are just randomly

RE: How to generate a Tambourine "shake" (or any "trill" sound)

2016-04-04 Thread Peter Gentry
>Message: 1 >Date: Fri, 1 Apr 2016 15:56:03 +0200 >From: Ziad Gholam >To: lilypond-user@gnu.org >Subject: How to generate a Tambourine "shake" (or any "trill" sound) > in MIDI file ? >Message-ID: >

Re: Scheme function to force any noteEvent to a skipEvent

2016-04-04 Thread Joseph Chrestien
Thanks David and Simon for your kind help. I used David's solution and it works brilliantly. Very nice. I didn't know of this NullVoice context, I'll take a look at it. Nice day to all of you Joseph On Mon, Apr 4, 2016 at 7:57 AM -0700, "Simon Albrecht"

Re: I'm not smart enough to figure out the math for this.

2016-04-04 Thread Paul Morris
> On Mar 9, 2016, at 6:27 PM, David Kastrup wrote: > > \version "2.19.28" > > show = > #(define-music-function (mup item) (markup? symbol-list-or-music?) > (propertyTweak 'stencil > (lambda (grob) >(grob-interpret-markup grob mup)) > item)) > > \relative c' \new Staff {

Re: Lilypond structure / implicit - explicit / with statement

2016-04-04 Thread Paul Morris
> On Apr 4, 2016, at 6:46 AM, Bernard wrote: > > I have attached some more real live code using /with and and example I tried > to skip the /with section and assign properties directly, which fails. Here’s how to fix your example (without \with) that was not

Re: Lilypond structure / implicit - explicit / with statement

2016-04-04 Thread David Kastrup
Bernard writes: > On 04-04-16 16:51, Simon Albrecht wrote: >> On 04.04.2016 12:46, Bernard wrote: >>> I have attached some more real live code using /with and and >>> example I tried to skip the /with section and assign properties >>> directly, which fails. >> >>

Re: Lilypond structure / implicit - explicit / with statement

2016-04-04 Thread Kieren MacMillan
Hi Bernard, > \score { > \new DrumStaff { > \override DrumStaff.StaffSymbol.line-count = #3 > \set DrumStaff.instrumentName = "Djembe 2" > \set DrumStaff.drumStyleTable = #(alist->hash-table djembe) > } > \djEen > } If, like me, you prefer separating musical content from presentation as much as

Re: Lilypond structure / implicit - explicit / with statement

2016-04-04 Thread Simon Albrecht
On 04.04.2016 17:36, Bernard wrote: On 04-04-16 16:51, Simon Albrecht wrote: On 04.04.2016 12:46, Bernard wrote: I have attached some more real live code using /with and and example I tried to skip the /with section and assign properties directly, which fails. instrumentName, drumStyleTable

how to send raw MIDI?

2016-04-04 Thread Johannes Waldmann
Hi. Is there a way to send raw MIDI messages (that is, sequences of bytes) from a description inside a lilypond text? (possibly embedded LISP) my application: to an external synthesizer device that accepts a lot of control messages. Base case: I want to send "program changes" where the argument

Re: Lilypond structure / implicit - explicit / with statement

2016-04-04 Thread Bernard
On 04-04-16 16:51, Simon Albrecht wrote: On 04.04.2016 12:46, Bernard wrote: I have attached some more real live code using /with and and example I tried to skip the /with section and assign properties directly, which fails. instrumentName, drumStyleTable are context properties. Inside

Re: Fwd: Problem with one staff

2016-04-04 Thread Simon Albrecht
On 04.04.2016 15:19, Maria Jesus Marin wrote: Good afternoon, I have one problem with one composition. My problem is that I have writted the composition in Musescore, but when I export to xml and I import the xml file in to Frescobaldi the staff duplicate lines. I attach the musescore file, xml

Re: unfold: volta for typesetting, unfold for MIDI generation?

2016-04-04 Thread Johannes Waldmann
Hi. turns out my previous question already is answered in the docs: http://lilypond.org/doc/v2.18/Documentation/notation/repeats-in-midi and it handles \alternative correctly as well. - J. ___ lilypond-user mailing list lilypond-user@gnu.org

Re: Scheme function to force any noteEvent to a skipEvent

2016-04-04 Thread Simon Albrecht
Hi Joseph, a more common approach to the situation is using a separate music variable containing information common to all parts. E.g. % aux = { \tempo 4 = 100 s1 \bar "|." } musicOne = { e'1 } musicTwo = { c'1 } \score { << \new Staff << \new NullVoice \aux

Re: Lilypond structure / implicit - explicit / with statement

2016-04-04 Thread Simon Albrecht
On 04.04.2016 12:46, Bernard wrote: I have attached some more real live code using /with and and example I tried to skip the /with section and assign properties directly, which fails. instrumentName, drumStyleTable are context properties. Inside music, these are set with the \set command,

Re: Fwd: Problem with one staff

2016-04-04 Thread Martin Tarenskeen
On Mon, 4 Apr 2016, Maria Jesus Marin wrote: Good afternoon, I have one problem with one composition. My problem is that I have writted the composition in Musescore, but when I export to xml and I import the xml file in to Frescobaldi the staff duplicate lines. I attach the musescore file,

Re: Scheme function to force any noteEvent to a skipEvent

2016-04-04 Thread David Kastrup
Joseph Chrestien <_...@live.com> writes: > Hi all, > > is it possible to change all notes in a voice to skips through a function ? > > E.g. ` \silence c4 \tempo 4=100 f8\p g8 ` would be compiled as ` s4 \tempo > 4=100 s8\p s8 `. Note all other events would stay the same. \version "2.19.32"

Scheme function to force any noteEvent to a skipEvent

2016-04-04 Thread Joseph Chrestien
Hi all, is it possible to change all notes in a voice to skips through a function ? E.g. ` \silence c4 \tempo 4=100 f8\p g8 ` would be compiled as ` s4 \tempo 4=100 s8\p s8 `. Note all other events would stay the same. Below are the context and minimal code. Thanks! Jo Chrestien - PS.

Re: midi2ly dll error

2016-04-04 Thread Anders Eriksson
On 2016-04-04 11:03, Gianmaria Lari wrote: Ciao Federico, regarding [configure Frescobaldi to reference a specific phyton compiler] you wrote: You must add it to the path in system preferences, as explained here: http://lilypond.org/windows.html Yes, I can change the system path

Re: Lilypond structure / implicit - explicit / with statement

2016-04-04 Thread Bernard
On 03-04-16 22:56, David Kastrup wrote: Bernard writes: Hi Paul, That does help. I found out \with is a very special statement. Not really. \with can be part of other constructs, just like "else" can be part of other constructs in many programming languages

Re: midi2ly dll error

2016-04-04 Thread Gianmaria Lari
Ciao Federico, regarding [configure Frescobaldi to reference a specific phyton compiler] you wrote: You must add it to the path in system preferences, as explained here: > http://lilypond.org/windows.html Yes, I can change the system path but this is something I wanted to avoid. I have other

Re: midi2ly dll error

2016-04-04 Thread Federico Bruni
Il giorno lun 4 apr 2016 alle 8:19, Gianmaria Lari ha scritto: > You set it on the Frecobaldi Preferences page (Edit/Preferences/Helper > Applications). In the Frescobaldi Preferences page (Edit/Preferences/Helper Applications) I can set the path for the following

Re: 4 slashes in percent repeat

2016-04-04 Thread Marc Hohl
Hi Daniel, Am 04.04.2016 um 07:07 schrieb Daniel E. Moctezuma: Thanks for your reply. The samples from http://lsr.di.unimi.it/LSR/Item?id=954 look nice for solo pieces, but my use case is for multiple instruments. Imagine a rock band where the bass has 4 bars that will be repeated, but the

Re: midi2ly dll error

2016-04-04 Thread Gianmaria Lari
Ciao Carl, [configure Frescobaldi to reference a specific phyton compiler] > You set it on the Frecobaldi Preferences page (Edit/Preferences/Helper > Applications). In the Frescobaldi Preferences page (Edit/Preferences/Helper Applications) I can set the path for the following applications: Pdf,