Re: Defining new contexts

2015-02-24 Thread Jim Long
On Tue, Feb 24, 2015 at 10:14:22AM -0700, Paul Morris wrote: > Jim Long wrote > > Is there a way I can define a context based on ChordNames and > > have it automatically inherit all of the properties of a > > ChordNames context, except the ones that I specifically change in > > my custom definition

Re: Defining new contexts

2015-02-24 Thread Paul Morris
really familiar with how these things are used internally by LilyPond, so there may be more to it, reasons why it is set up the way it is... -Paul -- View this message in context: http://lilypond.1069038.n5.nabble.com/Defining-new-contexts-

Re: Defining new contexts

2015-02-24 Thread Paul Morris
g it".) Hope that helps, -Paul -- View this message in context: http://lilypond.1069038.n5.nabble.com/Defining-new-contexts-tp172185p172251.html Sent from the User mailing list archive at Nabble.com. ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user

Re: Defining new contexts

2015-02-23 Thread Kieren MacMillan
Hi Jim, > Thank you. But if I have to do all the \Score \accepts stuff, > then I guess I don't understand what '\alias ChordNames’ does If I understand correctly, it allows your new context to accept any commands that a \ChordNames context does. > Is there a way I can define a context based on

Re: Defining new contexts

2015-02-23 Thread Jim Long
On Mon, Feb 23, 2015 at 10:28:37AM +0100, Thomas Morley wrote: > > Try the following, comments inline: > > \score { > << > \new XChords \chordmode { c1 } > \new Staff \chordmode { c1 } > >> > \layout { > \context { > %% copies settings from ChordNames > %% No need

Re: Defining new contexts

2015-02-23 Thread Paul Morris
ine your context for midi as well as layout, as shown in that snippet. Otherwise you will get warnings. HTH, -Paul -- View this message in context: http://lilypond.1069038.n5.nabble.com/Defining-new-contexts-tp172185p172192.html Sent from the User mailing list archive at Na

Re: Defining new contexts

2015-02-23 Thread Thomas Morley
2015-02-23 9:56 GMT+01:00 Jim Long : > I'm experimenting with defining and using custom contexts. > > I have not succeeded in applying the example at: > > http://lilypond.org/doc/v2.18/Documentation/notation/defining-new-contexts > > to my tiny example below attemptin

Defining new contexts

2015-02-23 Thread Jim Long
I'm experimenting with defining and using custom contexts. I have not succeeded in applying the example at: http://lilypond.org/doc/v2.18/Documentation/notation/defining-new-contexts to my tiny example below attempting the creation of a custom ChordNames context. The '\new XChords&#x

Re: Tip: defining new contexts ... starting from existing contexts

2007-09-11 Thread Valentin Villenave
2007/9/11, Graham Percival <[EMAIL PROTECTED]>: > We *need* to settle on the overall design of the manual before we can > start doing things like this. Hence the last sentence in my previous mail :) 2007/9/11, Valentin Villenave <[EMAIL PROTECTED]>: > But this will take place in several weeks an

Re: Tip: defining new contexts ... starting from existing contexts

2007-09-11 Thread Graham Percival
Trevor Bača wrote: On 9/11/07, Valentin Villenave <[EMAIL PROTECTED]> wrote: (For the original mail, see http://lists.gnu.org/archive/html/lilypond-user/2007-07/msg00526.html ) Sure. If you or Graham tell me where to stick the content, I'll turn that post into real docs. Thanks for the offe

Re: Tip: defining new contexts ... starting from existing contexts

2007-09-11 Thread Valentin Villenave
2007/9/11, Trevor Bača <[EMAIL PROTECTED]>: > (I've lost track of the halftime score on the doc discussion: in the > 2.11 manual, 9.2.7 "Defining new contexts" talks about this stuff; > under the 2.11 structure I would say that we rename 9.2.7 "Defining &g

Re: Tip: defining new contexts ... starting from existing contexts

2007-09-11 Thread Trevor Bača
2007-07/msg00526.html > ) Sure. If you or Graham tell me where to stick the content, I'll turn that post into real docs. (I've lost track of the halftime score on the doc discussion: in the 2.11 manual, 9.2.7 "Defining new contexts" talks about this stuff; under the 2.11 stru

Re: Tip: defining new contexts ... starting from existing contexts

2007-09-11 Thread Valentin Villenave
2007/7/21, Valentin Villenave <[EMAIL PROTECTED]>: > Looks great (I've often been looking for such a tip in the past). > > I'll make a patch soon. Mmm... still haven't made any patch yet :( Sorry. Since we're talking about GDP and rewriting changing-defaults.itely, I think we shouldn't forget t

Re: Tip: defining new contexts ... starting from existing contexts

2007-07-21 Thread Valentin Villenave
2007/7/21, Trevor Bača <[EMAIL PROTECTED]>: The following is a short write-up on how to define new contexts starting from existing contexts. The tip augments 9.2.7 "Defining new contexts" which explains how to define new contexts starting from scratch. Looks great (I've o

Tip: defining new contexts ... starting from existing contexts

2007-07-21 Thread Trevor Bača
Hi, The following is a short write-up on how to define new contexts starting from existing contexts. The tip augments 9.2.7 "Defining new contexts" which explains how to define new contexts starting from scratch. Consider the following red-and-blue score. %%% EX 1 %%% \versio