Re: \balloonGrobText for ledger lines

2018-04-14 Thread Werner LEMBERG

> [lilypond be08490329a22423bb2a723eea7a5cd33f3a42d8]
> 
> I was just about asking on the user list how to get a balloon text
> for a ledger line (apparently, it's not possible); while preparing a
> MWE I found out that the following crashes lilypond:
> 
>   \new Staff \with {
> \consists "Balloon_engraver"
>   } {
> \balloonGrobText #'LedgerLineSpanner #'(1 . 0.5)
>   \markup "ledger line"
> a''16
>   }

Exactly the same happens if I replace `LedgerLineSpanner' with `Beam'.


Werner

___
bug-lilypond mailing list
bug-lilypond@gnu.org
https://lists.gnu.org/mailman/listinfo/bug-lilypond


\balloonGrobText for ledger lines

2018-04-14 Thread Werner LEMBERG

[lilypond be08490329a22423bb2a723eea7a5cd33f3a42d8]

I was just about asking on the user list how to get a balloon text for
a ledger line (apparently, it's not possible); while preparing a MWE I
found out that the following crashes lilypond:

  \new Staff \with {
\consists "Balloon_engraver"
  } {
\balloonGrobText #'LedgerLineSpanner #'(1 . 0.5)
  \markup "ledger line"
a''16
  }

gdb reports

  #0  0x0041e9b6 in Paper_column::get_rank() const (this=0x0) at 
./include/paper-column.hh:47
  #1  0x00589f51 in Item::spanned_rank_interval() const 
(this=0x1026a90) at item.cc:191
  #2  0x0042af1c in Grob::less(Grob*, Grob*) (g1=0x1026a90, 
g2=0x10264b0) at grob.cc:537

as the top stack entries.


Werner

___
bug-lilypond mailing list
bug-lilypond@gnu.org
https://lists.gnu.org/mailman/listinfo/bug-lilypond


Re: crash during musicxml2ly

2018-04-14 Thread Phil Holmes

Please see http://lilypond.org/doc/v2.19/Documentation/contributor/patches

--
Phil Holmes


"Frédéric Gohier"  wrote in message 
news:he1pr1001mb140284687c61080bd2d06ee9ba...@he1pr1001mb1402.eurprd10.prod.outlook.com...

hello,

I face a crash when run the command line :
/usr/local/bin/musicxml2ly --nd --nrp --npl --no-beaming -m 
MusicXMLV2_from_sibelius7.xml


the traceback is :
Traceback (most recent call last):
 File "/usr/local/bin/musicxml2ly", line 3277, in 
   main()
 File "/usr/local/bin/musicxml2ly", line 3271, in main
   voices = convert(filename, options)
 File "/usr/local/bin/musicxml2ly", line 3157, in convert
   update_score_setup(score, part_list, voices, parts)
 File "/usr/local/bin/musicxml2ly", line 3027, in update_score_setup
   score_structure.set_part_information(part_id, staves_info)
 File "/usr/local/share/lilypond/2.21.0/python/musicexp.py", line 2351, in 
set_part_information

   self.contents.set_part_information (part_id, staves_info)
 File "/usr/local/share/lilypond/2.21.0/python/musicexp.py", line 2135, in 
set_part_information

   c.set_part_information (part_name, staves_info)
AttributeError: PartGroupInfo instance has no attribute 
'set_part_information'


I correct this issue by modifying

 *   in file git/python/musicexp.py :
 *   in class StaffGroup :
 *   in function set_part_information :

   def set_part_information (self, part_name, staves_info):
   if part_name == self.id:
   self.part_information = staves_info
   else:
   for c in self.children:
+if hasattr(c, 'set_part_information'):
+c.set_part_information (part_name, staves_info)
-c.set_part_information (part_name, staves_info)


I don't know the process to validate and don't remember the process to push 
a modification on git server.

please can you help me ?



Cordialement,
GOHIER Frédéric 




___
bug-lilypond mailing list
bug-lilypond@gnu.org
https://lists.gnu.org/mailman/listinfo/bug-lilypond


crash during musicxml2ly

2018-04-14 Thread Frédéric Gohier
hello,

I face a crash when run the command line :
/usr/local/bin/musicxml2ly --nd --nrp --npl --no-beaming -m 
MusicXMLV2_from_sibelius7.xml

the traceback is :
Traceback (most recent call last):
  File "/usr/local/bin/musicxml2ly", line 3277, in 
main()
  File "/usr/local/bin/musicxml2ly", line 3271, in main
voices = convert(filename, options)
  File "/usr/local/bin/musicxml2ly", line 3157, in convert
update_score_setup(score, part_list, voices, parts)
  File "/usr/local/bin/musicxml2ly", line 3027, in update_score_setup
score_structure.set_part_information(part_id, staves_info)
  File "/usr/local/share/lilypond/2.21.0/python/musicexp.py", line 2351, in 
set_part_information
self.contents.set_part_information (part_id, staves_info)
  File "/usr/local/share/lilypond/2.21.0/python/musicexp.py", line 2135, in 
set_part_information
c.set_part_information (part_name, staves_info)
AttributeError: PartGroupInfo instance has no attribute 'set_part_information'

I correct this issue by modifying

  *   in file git/python/musicexp.py :
  *   in class StaffGroup :
  *   in function set_part_information :

def set_part_information (self, part_name, staves_info):
if part_name == self.id:
self.part_information = staves_info
else:
for c in self.children:
+if hasattr(c, 'set_part_information'):
+c.set_part_information (part_name, staves_info)
-c.set_part_information (part_name, staves_info)


I don't know the process to validate and don't remember the process to push a 
modification on git server.
please can you help me ?



Cordialement,
GOHIER Frédéric
___
bug-lilypond mailing list
bug-lilypond@gnu.org
https://lists.gnu.org/mailman/listinfo/bug-lilypond