On Thu, 2010-02-18 at 13:46 -0700, Carl Sorensen wrote:
> 
> 
> On 2/18/10 11:58 AM, "Joe Neeman" <joenee...@gmail.com> wrote:
> 
> > On Thu, 2010-02-18 at 10:56 -0700, Carl Sorensen wrote:
> > 
> > You need to be running a lilypond binary that was compiled with
> > --enable-debugging for it to work.
> 
> I've been doing that., but thanks for the tip.

Hm, ok. If you set a breakpoint at Grob::instrumented_set_property, does
it get hit?

> > Also, the regtest doesn't produce
> > a .ps for the graph, it just writes a text description to stdout (or
> > stderr, I'm not sure). You'll need to process that description with
> > "dot" (part of the graphviz package) to produce the ps.
> 
> OK, so I've tried that, but the regtest graph appeared to have a syntax
> error.  I thought that it might have been because there was only one
> element, so no connections.

There should be more than one connection. I've attached the output that
I get with latest git.

> So I added 3 notes to the input file.  Then I got a syntax error.  I suspect
> that somehow the graphviz stuff isn't working any more.
> 
> The input file:
> 
> sorensen2:lilypond-working Carl$ cat graphviz.ly
> \header {
>   texidoc = "The graphviz feature draws dependency graphs for grob
> properties."
> 
>   }
> 
> \version "2.12.0"
> \include "graphviz-init.ly"
> 
> #(whitelist-grob 'NoteHead)
> #(whitelist-grob 'Stem)
> #(whitelist-grob "NoteHead")
> #(whitelist-grob "Stem")
> 
> #(map whitelist-symbol '(stencil style duration-log
>              stem-attachment end-position staff-position
>              glyph-name direction))
> 
> 
> \book {
>   \score {
>     c'4 d' e' f'

You'll want to add some more braces...
\score {
  { c'4 d' e' d' }
}

> Is it worth spending time trying to track down this error?

That depends on whether you want to use the feature. It works here, so
at least it isn't completely broken...

Cheers,
Joe

GNU LilyPond 2.13.14
Processing `input/regression/graphviz.ly'
Parsing...
Interpreting music... 
Preprocessing graphical objects...
Solving 1 page-breaking chunks...[1: 1 pages]
Drawing systems...
Layout output to `graphviz.ps'...
Converting to `./graphviz.pdf'...
Writing graph `#f'...digraph G {
rankdir="LR"
node [shape=rectangle]
40 [label="caching Stem.stencil\n#<primitive-procedure ly:stem::print> -> #<Stencil  >"]
39 [label="caching LedgerLineSpanner.stencil\n#<primitive-procedure ly:ledger-line-spanner::print> -> #<Stencil  >"]
38 [label="caching VerticalAxisGroup.stencil\n#<primitive-procedure ly:axis-group-interface::print> -> #f"]
37 [label="caching StaffSymbol.stencil\n#<primitive-procedure ly:staff-symbol::print> -> #<Stencil  >"]
36 [label="caching Stem.Y-extent\n#<primitive-procedure ly:stem::height> -> (-2.812186 . 0.5)"]
35 [label="caching Stem.stem-end-position\n#<primitive-procedure ly:stem::calc-stem-end-position> -> 1.0"]
34 [label="caching Stem.Y-offset\n#<primitive-procedure ly:staff-symbol-referencer::callback> -> 0.0"]
33 [label="caching NoteHead.Y-extent\n#<primitive-procedure ly:grob::stencil-height> -> (-0.550006 . 0.550006)"]
32 [label="caching Stem.length\n#<primitive-procedure ly:stem::calc-length> -> 7.0"]
31 [label="Stem\ngrob.cc:325\npure-Y-offset-in-progress <- #t"]
30 [label="caching TimeSignature.stencil\n#<primitive-procedure ly:time-signature::print> -> #<Stencil  >"]
29 [label="caching Stem.X-extent\n#<primitive-procedure ly:stem::width> -> (-0.065 . 0.065)"]
28 [label="caching Stem.X-offset\n#<primitive-procedure ly:stem::offset-callback> -> 1.251178"]
27 [label="caching NoteHead.stem-attachment\n#<primitive-procedure ly:note-head::calc-stem-attachment> -> (1.0 . 0.341476274804275)"]
26 [label="Stem\ngrob.cc:325\npure-Y-offset-in-progress <- #t"]
25 [label="Stem\ngrob.cc:325\npure-Y-offset-in-progress <- #t"]
24 [label="caching Stem.cross-staff\n#<primitive-procedure ly:stem::calc-cross-staff> -> #f"]
23 [label="caching Clef.stencil\n#<primitive-procedure ly:clef::print> -> #<Stencil  >"]
22 [label="caching Clef.glyph-name\n#<primitive-procedure ly:clef::calc-glyph-name> -> clefs.G"]
21 [label="caching Clef.stencil\n#<primitive-procedure ly:clef::print> -> #<Stencil  >"]
20 [label="caching Clef.glyph-name\n#<primitive-procedure ly:clef::calc-glyph-name> -> clefs.G_change"]
19 [label="caching TimeSignature.stencil\n#<primitive-procedure ly:time-signature::print> -> #<Stencil  >"]
18 [label="caching Clef.stencil\n#<primitive-procedure ly:clef::print> -> #<Stencil  >"]
17 [label="caching Clef.glyph-name\n#<primitive-procedure ly:clef::calc-glyph-name> -> clefs.G_change"]
16 [label="caching NoteHead.X-offset\n#<primitive-procedure ly:note-head::stem-x-shift> -> 0"]
15 [label="caching Stem.positioning-done\n#<primitive-procedure ly:stem::calc-positioning-done> -> #t"]
14 [label="caching NoteHead.X-extent\n#<primitive-procedure ly:grob::stencil-width> -> (-0.0 . 1.316178)"]
13 [label="caching NoteHead.stencil\n#<primitive-procedure ly:note-head::print> -> #<Stencil  >"]
12 [label="NoteHead\nfont-interface.cc:37\nfont <- #<Font_metric ("emmentaler-20" . 0.569055118110236"]
11 [label="caching NoteHead.duration-log\n#<procedure note-head::calc-duration-log (grob)> -> 2"]
10 [label="caching Stem.direction\n#<primitive-procedure ly:stem::calc-direction> -> 1"]
9 [label="caching Stem.default-direction\n#<primitive-procedure ly:stem::calc-default-direction> -> 1"]
8 [label="Stem\nstem.cc:402\npositioning-done <- #t"]
7 [label="caching NoteHead.Y-offset\n#<primitive-procedure ly:staff-symbol-referencer::callback> -> -3.0"]
6 [label="caching Stem.duration-log\n#<procedure stem::calc-duration-log (grob)> -> 2"]
5 [label="Stem\nengraver.cc:62\ncause <- #<Grob NoteHead >"]
4 [label="Clef\nclef-engraver.cc:112\nstaff-position <- -2"]
3 [label="NoteHead\nnote-heads-engraver.cc:93\nstaff-position <- -6"]
2 [label="NoteHead\nengraver.cc:62\ncause <- #<Prob: Stream_event C++: Stream_event((music-caus"]
1 [label="NoteHead\ngrob.cc:81\nY-extent <- #<primitive-procedure ly:grob::stencil-height>"]
0 [label="NoteHead\ngrob.cc:79\nX-extent <- #<primitive-procedure ly:grob::stencil-width>"]
36 -> 40
35 -> 36
34 -> 35
32 -> 34
27 -> 33
31 -> 32
29 -> 31
28 -> 29
26 -> 28
16 -> 27
25 -> 26
24 -> 25
15 -> 24
22 -> 23
20 -> 21
17 -> 18
4 -> 17
14 -> 16
10 -> 15
13 -> 14
12 -> 13
11 -> 12
7 -> 11
9 -> 10
8 -> 9
6 -> 8
3 -> 7
5 -> 6
2 -> 3
1 -> 2
0 -> 1
subgraph cluster_grobcc {
label= "grob.cc"
color=blue
31
}
subgraph cluster_grobcc {
label= "grob.cc"
color=blue
26
}
subgraph cluster_grobcc {
label= "grob.cc"
color=blue
25
}
subgraph cluster_fontinterfacecc {
label= "font-interface.cc"
color=blue
12
}
subgraph cluster_stemcc {
label= "stem.cc"
color=blue
8
}
subgraph cluster_engravercc {
label= "engraver.cc"
color=blue
5
}
subgraph cluster_clefengravercc {
label= "clef-engraver.cc"
color=blue
4
}
subgraph cluster_noteheadsengravercc {
label= "note-heads-engraver.cc"
color=blue
3
}
subgraph cluster_engravercc {
label= "engraver.cc"
color=blue
2
}
subgraph cluster_grobcc {
label= "grob.cc"
color=blue
1
}
subgraph cluster_grobcc {
label= "grob.cc"
color=blue
0
}
}
_______________________________________________
lilypond-devel mailing list
lilypond-devel@gnu.org
http://lists.gnu.org/mailman/listinfo/lilypond-devel

Reply via email to