Re: \new and \context clarification

2016-09-25 Thread Menu Jacques
Hello Simon, Thanks for the clarification! JM > Le 23 sept. 2016 à 23:51, Simon Albrecht a écrit : > > On 23.09.2016 17:43, Menu Jacques wrote: >> Hello folks, >> >> musicxml2ly as delivered with LP 2.19.35 produces score specifications such >> as: >> >> % The score definition >> \score { >

Re: \new and \context clarification

2016-09-23 Thread Simon Albrecht
On 23.09.2016 17:43, Menu Jacques wrote: Hello folks, musicxml2ly as delivered with LP 2.19.35 produces score specifications such as: % The score definition \score { << \new Staff << \context Staff << \context Voice = "PartPOneVoiceOne" { \PartPOneVoi

\new and \context clarification

2016-09-23 Thread Menu Jacques
Hello folks, musicxml2ly as delivered with LP 2.19.35 produces scores specifications such as: % The score definition \score { << \new Staff << \context Staff << \context Voice = "PartPOneVoiceOne" { \PartPOneVoiceOne } \new Lyrics \lyricsto

Re: new and context

2014-01-07 Thread Alex Loomis
It depends. It can be easier to read when they are all below the staff. On Tue, Jan 7, 2014 at 12:12 PM, Noeck wrote: > > Figured bass can be displayed using the FiguredBass context, or in most > > staff contexts. > > Hi Simon, > > thanks for the explanation! > > This means bass figures should

Re: new and context

2014-01-07 Thread Noeck
> Figured bass can be displayed using the FiguredBass context, or in most > staff contexts. Hi Simon, thanks for the explanation! This means bass figures should be associated to the staff this way to enhance the flexibility? I take this as such. Cheers, Joram _

Re: new and context

2014-01-07 Thread Simon Bailey
hi, On Mon, Jan 6, 2014 at 6:42 PM, Noeck wrote: > Hi, > > when looking at this snippet: http://lsr.dsi.unimi.it/LSR/Snippet?id=292 > I have the following question: > > Why is \context Staff allowed here? How can I fill bass figures in a Staff? > > I thought I need a \new FiguredBass context fo

new and context

2014-01-06 Thread Noeck
Hi, when looking at this snippet: http://lsr.dsi.unimi.it/LSR/Snippet?id=292 I have the following question: Why is \context Staff allowed here? How can I fill bass figures in a Staff? I thought I need a \new FiguredBass context for the \continuo. This works indeed (%2) but I loose the ability to

Re: new and context

2012-12-08 Thread David Kastrup
Keith OHara writes: > LilyPond's grammar, however, is complex due to history and its complex > job. It is twice the length of that for C or Pascal, and growing. I > have tried to use the printed grammar to understand LilyPond, but > never succeeded. Well, in the last two years, many things hav

Re: new and context

2012-12-08 Thread Keith OHara
Trevor Daniels treda.co.uk> writes: > Joram Berger wrote Thursday, December 06, 2012 10:56 PM > > > Am 06.12.2012 23:51, schrieb Trevor Daniels: > >> > >> Have a look. You can see the LilyPond grammar in Appendix C > >> of the Notation Reference. > >> > >> http://www.lilypond.org/doc/v2.17/Do

Re: new and context

2012-12-07 Thread Joram Berger
Am 06.12.2012 23:51, schrieb Trevor Daniels: > > Noeck wrote > >> It still seems to me like there might be a possiblity to simplify the >> ly-syntax. Let me make a little comparison: >> >> I do not know the parser, but wouldn't it be possible to recognize >> whether a named context already exis

Re: new and context

2012-12-07 Thread David Kastrup
ts >> start with a keyword starting with backslash for that reason, or with >> special characters. > I rather meant the necessity of \new and \context, so > \Staff = "var" { a4 } > \Staff = "var" …or even (?) \var … > >>> I think it i

Re: new and context

2012-12-07 Thread Noeck
ackslash for that reason, or with > special characters. I rather meant the necessity of \new and \context, so \Staff = "var" { a4 } \Staff = "var" …or even (?) \var … >> I think it is always better to make the usage of the software easy, >> than having to e

Re: new and context

2012-12-07 Thread Trevor Daniels
Noeck, you wrote Thursday, December 06, 2012 11:58 PM > Am 07.12.2012 00:24, schrieb Trevor Daniels: >> >> It's the LilyPond grammar as extracted from the input to Bison (somewhat >> simplified). Bison generates the parser which then implements this >> grammar. >> You need to understand th

Re: new and context

2012-12-06 Thread David Kastrup
Noeck writes: > I do not know the parser, but wouldn't it be possible to recognize > whether a named context already exists and use that one and if not > create a new one. That those lines could shrink to: > Staff "var" { a4 } > Staff "var" …or even (?) \var … Staff and "var" are valid lyr

Re: new and context

2012-12-06 Thread Noeck
Am 07.12.2012 00:24, schrieb Trevor Daniels: > > Joram Berger wrote Thursday, December 06, 2012 10:56 PM > >> Am 06.12.2012 23:51, schrieb Trevor Daniels: >>> >>> Noeck wrote >>> It still seems to me like there might be a possiblity to simplify the ly-syntax. Let me make a little compar

Re: new and context

2012-12-06 Thread Trevor Daniels
Joram Berger wrote Thursday, December 06, 2012 10:56 PM > Am 06.12.2012 23:51, schrieb Trevor Daniels: >> >> Noeck wrote >> >>> It still seems to me like there might be a possiblity to simplify the >>> ly-syntax. Let me make a little comparison: >>> >>> I do not know the parser, but wouldn't it

Re: new and context

2012-12-06 Thread Trevor Daniels
Noeck wrote > It still seems to me like there might be a possiblity to simplify the > ly-syntax. Let me make a little comparison: > > I do not know the parser, but wouldn't it be possible to recognize > whether a named context already exists and use that one and if not > create a new one. Have

Re: new and context

2012-12-06 Thread Noeck
Am 05.12.2012 09:39, schrieb Trevor Daniels: > > Noeck, you wrote Tuesday, December 04, 2012 8:43 PM > >> what is the difference between \new and \context? > > Very little. In most situations they can be used interchangeably. > > One difference is that \context St

Re: new and context

2012-12-05 Thread David Kastrup
"Trevor Daniels" writes: > Noeck, you wrote Tuesday, December 04, 2012 8:43 PM > >> Where would I need \context? >> There is an example: >> << >> \new Staff \context Voice = "A" \music >> \context Voice = "A" \arts >> >> >> But I could write \new Staff << \music \\ \arts >>, couldn't I? > > Yes

Re: new and context

2012-12-05 Thread Trevor Daniels
Noeck, you wrote Tuesday, December 04, 2012 8:43 PM > what is the difference between \new and \context? Very little. In most situations they can be used interchangeably. One difference is that \context Staff = "A" will search for a previously defined Staff with the same name

new and context

2012-12-04 Thread Noeck
Hi, what is the difference between \new and \context? I have read 5.1.2 Creating contexts, but I don't understand it yet. It talks about 3 commands for a context: \new type music expression \context type = id music \context type music Why is \new type = id music not listed with an