RE: Object hierarchy in LilyPond?

2006-05-10 Thread Mats Bengtsson

Quoting "arjan.bos" <[EMAIL PROTECTED]>:





-Oorspronkelijk bericht-
Van:Simon Dahlbacka


On 5/10/06, Erik Sandberg <[EMAIL PROTECTED]> wrote:


There's a lot of data used in lily. It would require quite some effort to
build the model you're suggesting, and someone would need to maintain the
model (which is changing all the time). I think all the current developers
have better things to do, but I nothing stops you from writing such
documentation.



the only sane way to do such a thing would be to auto-generate the data by
parsing the source or something so it would be updated "with the click of a
button". Personally, I don't have the extra time to build such a scraping
tool..


There is no need to write one. I got myself the lily source of cvs 
and downloaded Doxygen. This creates lots of nice graphs and object 
hierarchies from the .cc and .hh files. It also shows links between 
and even definitions of the classes.


Unfortunately, you won't get very wise if you only look at the C++ 
class structure, since lots of the implementation is done in Scheme.


This whole thread is getting very confused, since some people talk
about implementation structure, whereas others talk about the 
context/layout object structure that the user sees when he wants

to set a property.

  /Mats



___
lilypond-user mailing list
lilypond-user@gnu.org
http://lists.gnu.org/mailman/listinfo/lilypond-user


Re: Object hierarchy in LilyPond?

2006-05-10 Thread Erik Sandberg
On Wednesday 10 May 2006 08:11, Simon Dahlbacka wrote:
> On 5/10/06, Erik Sandberg <[EMAIL PROTECTED]> wrote:
> > On Monday 08 May 2006 19:30, Arjan Bos wrote:
> > > On 6 mei 2006, at 21:20, Mats Bengtsson wrote:
> > > > Quoting Erik Sandberg <[EMAIL PROTECTED]>:
> > > >> On Tuesday 02 May 2006 09:06, Tomas Valusek wrote:
> > > >
> > > > Or the context hierarchy or which engravers are included in each
> > > > context
> > > > or which objects are created by which engraver (or context) or ...
> > >
> > > What I would like to see is a model of all the data being used within
> > > LilyPond,
> >
> > There's a lot of data used in lily. It would require quite some effort to
> > build the model you're suggesting, and someone would need to maintain the
> > model (which is changing all the time). I think all the current
> > developers have better things to do, but I nothing stops you from writing
> > such documentation.
>
> the only sane way to do such a thing would be to auto-generate the data by
> parsing the source or something so it would be updated "with the click of a
> button". Personally, I don't have the extra time to build such a scraping
> tool..

Such documentation exists, see Program Reference in the manual.

-- 
Erik


___
lilypond-user mailing list
lilypond-user@gnu.org
http://lists.gnu.org/mailman/listinfo/lilypond-user


RE: Object hierarchy in LilyPond?

2006-05-09 Thread arjan.bos



-Oorspronkelijk bericht-
Van:Simon Dahlbacka

>> On 5/10/06, Erik Sandberg <[EMAIL PROTECTED]> wrote:
>>
>>
>> There's a lot of data used in lily. It would require quite some effort to
>> build the model you're suggesting, and someone would need to maintain the
>> model (which is changing all the time). I think all the current developers
>> have better things to do, but I nothing stops you from writing such
>> documentation.

> the only sane way to do such a thing would be to auto-generate the data by
> parsing the source or something so it would be updated "with the click of a
> button". Personally, I don't have the extra time to build such a scraping
> tool..

There is no need to write one. I got myself the lily source of cvs and 
downloaded Doxygen. This creates lots of nice graphs and object hierarchies 
from the .cc and .hh files. It also shows links between and even definitions of 
the classes.




___
lilypond-user mailing list
lilypond-user@gnu.org
http://lists.gnu.org/mailman/listinfo/lilypond-user


Re: Object hierarchy in LilyPond?

2006-05-09 Thread Erik Sandberg
On Monday 08 May 2006 19:30, Arjan Bos wrote:
> On 6 mei 2006, at 21:20, Mats Bengtsson wrote:
> > Quoting Erik Sandberg <[EMAIL PROTECTED]>:
> >> On Tuesday 02 May 2006 09:06, Tomas Valusek wrote:
> > Or the context hierarchy or which engravers are included in each
> > context
> > or which objects are created by which engraver (or context) or ...
>
> What I would like to see is a model of all the data being used within
> LilyPond, 

There's a lot of data used in lily. It would require quite some effort to 
build the model you're suggesting, and someone would need to maintain the 
model (which is changing all the time). I think all the current developers 
have better things to do, but I nothing stops you from writing such 
documentation.

-- 
Erik



___
lilypond-user mailing list
lilypond-user@gnu.org
http://lists.gnu.org/mailman/listinfo/lilypond-user


Re: Object hierarchy in LilyPond?

2006-05-08 Thread Arjan Bos


On 6 mei 2006, at 21:20, Mats Bengtsson wrote:


Quoting Erik Sandberg <[EMAIL PROTECTED]>:


On Tuesday 02 May 2006 09:06, Tomas Valusek wrote:

Hello,

I'm trying to figure out an overall object hierarchy of LilyPond.  
The

only way I've discovered so far is to traverse programmers guide and
follow links. But this is very tedious, since if I want to get  
something

done in non-default way, this approach is very confusing.


I don't understand. Do you want to see, for each grob type, which  
tweakable
grob properties it has? Or do you want to create a graph that  
shows which

grobs that belong to which interfaces?


Or the context hierarchy or which engravers are included in each  
context

or which objects are created by which engraver (or context) or ...



What I would like to see is a model of all the data being used within  
LilyPond, where each attribute and each entity is clearly and  
unambiguously  defined. This should give a clear definition of the  
properties that can be set. In a later stage this could then be  
mapped to Objects to form a process model. (At least in theory). This  
mapping might learn us when we can set those properties (using \set  
or \override).


---
No matter what she did with her hair it took about three minutes for  
it to tangle itself up again, like a garden hosepipe in a shed  
[Which, no matter how carefully coiled, will always uncoil overnight  
and tie the lawnmower to the bicycles].


-- (Terry Pratchett, Lords and Ladies)



___
lilypond-user mailing list
lilypond-user@gnu.org
http://lists.gnu.org/mailman/listinfo/lilypond-user


Re: Object hierarchy in LilyPond?

2006-05-06 Thread Mats Bengtsson

Quoting Erik Sandberg <[EMAIL PROTECTED]>:


On Tuesday 02 May 2006 09:06, Tomas Valusek wrote:

Hello,

I'm trying to figure out an overall object hierarchy of LilyPond. The
only way I've discovered so far is to traverse programmers guide and
follow links. But this is very tedious, since if I want to get something
done in non-default way, this approach is very confusing.

Could someone please prepare series of charts starting at the reasonable
abstract level and ending with hierarchy of all LilyPond object,
contexts and however tha various LilyPond parts are named?


I don't understand. Do you want to see, for each grob type, which tweakable
grob properties it has? Or do you want to create a graph that shows which
grobs that belong to which interfaces?


Or the context hierarchy or which engravers are included in each context
or which objects are created by which engraver (or context) or ...

  /Mats



___
lilypond-user mailing list
lilypond-user@gnu.org
http://lists.gnu.org/mailman/listinfo/lilypond-user


Re: Object hierarchy in LilyPond?

2006-05-04 Thread Erik Sandberg
On Tuesday 02 May 2006 09:06, Tomas Valusek wrote:
> Hello,
>
> I'm trying to figure out an overall object hierarchy of LilyPond. The
> only way I've discovered so far is to traverse programmers guide and
> follow links. But this is very tedious, since if I want to get something
> done in non-default way, this approach is very confusing.
>
> Could someone please prepare series of charts starting at the reasonable
> abstract level and ending with hierarchy of all LilyPond object,
> contexts and however tha various LilyPond parts are named?

I don't understand. Do you want to see, for each grob type, which tweakable 
grob properties it has? Or do you want to create a graph that shows which 
grobs that belong to which interfaces?

-- 
Erik



___
lilypond-user mailing list
lilypond-user@gnu.org
http://lists.gnu.org/mailman/listinfo/lilypond-user


Object hierarchy in LilyPond?

2006-05-02 Thread Tomas Valusek

Hello,

I'm trying to figure out an overall object hierarchy of LilyPond. The 
only way I've discovered so far is to traverse programmers guide and 
follow links. But this is very tedious, since if I want to get something 
done in non-default way, this approach is very confusing.


Could someone please prepare series of charts starting at the reasonable 
abstract level and ending with hierarchy of all LilyPond object, 
contexts and however tha various LilyPond parts are named?


Thank you.

Tomas Valusek


___
lilypond-user mailing list
lilypond-user@gnu.org
http://lists.gnu.org/mailman/listinfo/lilypond-user