more space between systems?

2012-04-11 Thread eriksbike

I'm having some trouble creating more space between systems. 

I have tried increasing the system-system-spacing #'minimum-distance and
system-system-spacing #'padding variables. But when I compile I receive the
message warning: cannot fit music on page: ragged-spacing was requested,
but page was compressed and the systems are very tightly packed on the
page. 

Any help would be greatly appreciated.
Erik


-- 
View this message in context: 
http://old.nabble.com/more-space-between-systems--tp33666340p33666340.html
Sent from the Gnu - Lilypond - User mailing list archive at Nabble.com.


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


Re: Avoiding tie/prall collision

2012-04-11 Thread Helge Kruse

Am 10.04.2012 08:37, schrieb Janek Warchoł:

On Tue, Apr 10, 2012 at 6:31 AM, Helge Krusehelge.kruse-nos...@gmx.net  wrote:

What is the benefit of the two voices approach and when should I avoid the
stem up/down?


It's not a matter of benefits - using stemUp/Down instead of
voiceOne/Two/.. simply produces typographically wrong results:
stemUp/Down only changes the direction of stems, while the direction
of ties, slurs, articulations, dots, positioning of rests etc. should
be changed, too.


I can't contradict this statement. But sometimes I don't find a way to 
place the notes without stemUp/Down like in this example:


\version 2.14.2

\context PianoStaff 
  \context Staff=right \relative c'' {
  \key g \major \time 3/4
  s2.
  \times 4/6 {r16 b cis d[ cis b]} \times 4/6 {r16 cis d e[ d cis]} 
d a fis d | % 40

  }
  \context Staff=left \relative c' {
\clef bass \key g \major \time 3/4
c4 d e |
\change Staff=right g4 a \change Staff=left fis | % 40
  }


The left hand plays the two quavers (g and a). The semiquaver rests 
belong to the right hand's voice. Therefore I want to quavers shown 
below the rests. But the notes in the sextuplet should keep the stems 
down to avoid a high skyline.


I played around with voiceOne/Two but found no solution. Probably you 
have a one?



Threre was a change in the documentation to underline this difference,
but apparently it's not enough.  Maybe you could suggest what we
should do to make this issue clear for all users?


Honestly, I used the 2.13 documentation. Now I downloaded the 2.14 
documentation. Searching for stemDown\Up\Neutral I didn't find any hint 
to favor voiceOne/Two/Three. But I did not read thorough 763 pages. 
Which section are you referring?


Regards,
Helge

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


musicxml2ly lilypond output formatting

2012-04-11 Thread Martin Tarenskeen


Hi,

As I posted earlier, I often get better results with lilypond files 
generated by musicxml2ly after a little bit of extra editing.


As musicxml2ly gets better and bugs are found and fixed, this post-editing 
will be required less and less, I guess/hope.


When editing the files I noticed that the musicxml2ly output formatting 
is not very nice looking sometimes. I mean the placement of braces, 
indentation, (lack of) empty lines to separate music={ . } blocks.

Things that help improve readability and make editing more fun.
For example .ly files generated by midi2ly look somewhat better.

Frescobaldi's re-formatting feature helps a lot, but it would be nice if 
musicxml2ly would produce nicely formatted lilypond files. I guess you 
could call this an improvement request.


BTW: Are there any written rules/conventions about how a nicely formatted 
lilypond source should look?


--

MT



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


Re: musicxml2ly from sibelius

2012-04-11 Thread Nils
On Mon, 9 Apr 2012 21:34:18 -0700
Josiah Boothby josi...@gmail.com wrote:

 A composer recently gave me a messy part he'd prepared with Sibelius,
 and I asked him for a musicxml file on the off chance that it might
 work in Lilypond and I could clean it up. With Lilypond 2.15.36
 (Slackware 13.37, x86), I get the error below along with no output
 file. I tried the prebuilt lilypond stable as well, and the only
 difference in the console output are line numbers in the musicxml2ly
 script. Should I send this to the bugs list, or is there something I
 can do as a user (without access to Sibelius) to improve the
 likelihood of getting this to work?
 
 # # # # # Console Output
 
 $ musicxml2ly -v --loglevel=DEBUG --nd --nrp --npl --no-beaming -o
 moore.ly moore.xml
 Setting loglevel to DEBUG
 musicxml2ly: Reading MusicXML from moore.xml ...
 musicxml2ly: Converting to LilyPond expressions...
 Traceback (most recent call last):
   File /usr/bin/musicxml2ly, line 2984, in module
 main()
   File /usr/bin/musicxml2ly, line 2979, in main
 voices = convert (filename, options)
   File /usr/bin/musicxml2ly, line 2885, in convert
 (voices, staff_info) = get_all_voices (parts)
   File /usr/bin/musicxml2ly, line 2572, in get_all_voices
 part_ly_voices[n] = musicxml_voice_to_lily_voice (v)
   File /usr/bin/musicxml2ly, line 2174, in musicxml_voice_to_lily_voice
 for a in musicxml_direction_to_lily (n):
   File /usr/bin/musicxml2ly, line 1534, in musicxml_direction_to_lily
 ev = tmp_tp (entry)
   File /usr/bin/musicxml2ly, line 1465, in musicxml_metronome_to_ly
 if isinstance (children[index], musicxml.BeatUnitDot):
 IndexError: list index out of range
 
 # # # # # End Console Output

That is a python error, a bug in the musicxml2ly script.
children is a list and index is a number but the number is higher than the list 
has items.
Can't tell more from just that exception.

Nils

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


Re: Avoiding tie/prall collision

2012-04-11 Thread James
Hello,

2012/4/11 Helge Kruse helge.kruse-nos...@gmx.net:
 Am 10.04.2012 08:37, schrieb Janek Warchoł:

 On Tue, Apr 10, 2012 at 6:31 AM, Helge Krusehelge.kruse-nos...@gmx.net
...


 Honestly, I used the 2.13 documentation. Now I downloaded the 2.14
 documentation. Searching for stemDown\Up\Neutral I didn't find any hint to
 favor voiceOne/Two/Three. But I did not read thorough 763 pages. Which
 section are you referring?

http://lilypond.org/doc/v2.15/Documentation/notation/direction-and-placement

It was added middle of March.

James

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


Re: more space between systems?

2012-04-11 Thread James
Erik,

On 11 April 2012 07:19, eriksbike eriksb...@yahoo.com wrote:

 I'm having some trouble creating more space between systems.

 I have tried increasing the system-system-spacing #'minimum-distance and
 system-system-spacing #'padding variables. But when I compile I receive the
 message warning: cannot fit music on page: ragged-spacing was requested,
 but page was compressed and the systems are very tightly packed on the
 page.

 Any help would be greatly appreciated.

Well first make sure you are on at least version 2.14.x not 2.12 as
there are many significant improvements/changes to system spacing.

http://lilypond.org/doc/v2.14/Documentation/notation/flexible-vertical-spacing-within-systems

Then if this doesn't help, you'd need to give a *brief* example of the
spacing code you are using.

James

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


Re: musicxml2ly from sibelius

2012-04-11 Thread Josiah Boothby
 That is a python error, a bug in the musicxml2ly script.
 children is a list and index is a number but the number is higher than the 
 list has items.
 Can't tell more from just that exception.

 Nils

Nils, would you like to see the file? I shouldn't put it out on the
internet where all can see (I'm not by any stretch the copyright
holder), but if you think looking at the file would help, I'd happily
send it your way.

 You could also try to import the musicxml file into MuseScore: MuseScore is
 available for Linux, Windows and Mac. It does not only read musicxml, but
 midi as well. Plus: it exports in lilypond-format!

 I've had success in reading a musicxml file which would *not* convert with
 the musicxml2ly script. This very file could be imported in MuseScore and
 exported as lilypond file.

Matthias, thank you for the suggestion. Will try that just as soon as
musescore finishes compiling :P

—Josiah

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


Re: musicxml2ly lilypond output formatting

2012-04-11 Thread Phil Holmes
- Original Message - 
From: Martin Tarenskeen m.tarensk...@zonnet.nl

To: lilypond-user mailinglist lilypond-user@gnu.org
Sent: Wednesday, April 11, 2012 7:55 AM
Subject: musicxml2ly lilypond output formatting




BTW: Are there any written rules/conventions about how a nicely formatted 
lilypond source should look?


--

MT


There's some guidance on 
http://lilypond.org/doc/v2.15/Documentation/contributor/lilypond-formatting



--
Phil Holmes



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


Re: node head positions

2012-04-11 Thread Urs Liska

Am 11.04.2012 00:28, schrieb Tim Roberts:

Huang wrote:

Yes, I am looking for a way to highlight notes while playing MIDI. I
will definitely check Frescobaldi to see how it works. I need to
understand how Lily generates these notes and find out their positions.

I just want to caution you about how difficult this task will be.  The
PDF output does contain a link for each note that tells you where, in
the original LilyPond input file, that note or chord originated.  It
does NOT tell you the note's pitch or duration, and that information is
not trivially derivable from the original source, either.  There's no
good way to line up the PDF with the MIDI.


But there _have_ been efforts in such directions, isn't it?
I recall someone having a  (drum?) score doing exactly this. He used the 
SVG output IIRC
___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: node head positions

2012-04-11 Thread James
Hello,

On 11 April 2012 09:43, Urs Liska li...@ursliska.de wrote:
 Am 11.04.2012 00:28, schrieb Tim Roberts:

 Huang wrote:

 Yes, I am looking for a way to highlight notes while playing MIDI. I
 will definitely check Frescobaldi to see how it works. I need to
 understand how Lily generates these notes and find out their positions.

 I just want to caution you about how difficult this task will be.  The
 PDF output does contain a link for each note that tells you where, in
 the original LilyPond input file, that note or chord originated.  It
 does NOT tell you the note's pitch or duration, and that information is
 not trivially derivable from the original source, either.  There's no
 good way to line up the PDF with the MIDI.

 But there _have_ been efforts in such directions, isn't it?
 I recall someone having a  (drum?) score doing exactly this. He used the SVG
 output IIRC


http://lists.gnu.org/archive/html/lilypond-user/2011-05/msg00331.html

You may need to contact Mike directly.

james

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


Re: musicxml2ly from sibelius

2012-04-11 Thread pls
From what you told us it's impossible to say that the python error results 
from a bug in the musicxml2ly script. You could/should to several things:
-) comment out all parts and measures in the .xml-file except the first measure 
in the first part. -) Test the file with musicxml2ly. 
-) If there's no python error comment in measure by measure and convert it 
every time with musicxml2ly.
-) Send us/me the measure which causes the error...

hth
patrick
Am 11.04.2012 um 09:44 schrieb Josiah Boothby:

 That is a python error, a bug in the musicxml2ly script.
 children is a list and index is a number but the number is higher than the 
 list has items.
 Can't tell more from just that exception.
 
 Nils
 
 Nils, would you like to see the file? I shouldn't put it out on the
 internet where all can see (I'm not by any stretch the copyright
 holder), but if you think looking at the file would help, I'd happily
 send it your way.
 
 You could also try to import the musicxml file into MuseScore: MuseScore is
 available for Linux, Windows and Mac. It does not only read musicxml, but
 midi as well. Plus: it exports in lilypond-format!
 
 I've had success in reading a musicxml file which would *not* convert with
 the musicxml2ly script. This very file could be imported in MuseScore and
 exported as lilypond file.
 
 Matthias, thank you for the suggestion. Will try that just as soon as
 musescore finishes compiling :P
 
 —Josiah
 
 ___
 lilypond-user mailing list
 lilypond-user@gnu.org
 https://lists.gnu.org/mailman/listinfo/lilypond-user


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


Re: System in different colors

2012-04-11 Thread uunail


I tried \once \override but it didn't work.

As far as I understand the BarLine is a part of the staff context which
cannot be changed from one occurence to the other (that is why you have to
use the /startStaff and /stopStaff). And in my example it is changed for the
whole staff (or the three parts).

My problem however is, that the barline between my part 2 and three is
already shown in the color of the part 3 where I think it is defined and
belongs to part 2.

Regards

Uwe
-- 
View this message in context: 
http://old.nabble.com/System-in-different-colors-tp33660259p33668611.html
Sent from the Gnu - Lilypond - User mailing list archive at Nabble.com.


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


Re: node head positions

2012-04-11 Thread Colin Campbell

On 12-04-10 03:00 PM, Huang wrote:
Yes, I am looking for a way to highlight notes while playing MIDI. I 
will definitely check Frescobaldi to see how it works. I need to 
understand how Lily generates these notes and find out their positions.


Thanks,
Herbert



In addition to Frescobaldi, definitely my editor of choice on both 
WIndows and Linux, you could have a look at Rosegarden.  It will import 
the MIDI files which lilypond can produce, and you can then display each 
track in Rosegarden's notation editor and see the notes highlighted as 
you play them through a MIDI output.  Clearly, tools such as KMidimon 
and Rosegarden also allow you to watch the MIDI events as you hear them 
played, but if you are looking to hear the notation, then Rosegarden 
might well be worth a look.


Cheers,
Colin the Elder

--
I've learned that you shouldn't go through life with a catcher's mitt on both 
hands.
You need to be able to throw something back.
-Maya Angelou, poet (1928- )


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


Re: musicxml2ly from sibelius

2012-04-11 Thread Andrew Black
On Apr 10, 2012 5:26 PM, Phil Holmes m...@philholmes.net wrote:


 I'm a bit surprised you have musicxml from Sibelius.  As far as I was
aware, it doesn't export into _any_ useful interchange format, including
musicxml.

Googling suggests there is an expensive 3rd party program.
___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: v 2.15.36 on Mac OS

2012-04-11 Thread Klaus Föhl
Hello,

Still the same error with Mac x86 OSX 10.4.11
as in the previous 2.15.35 package.

Klaus


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


Re: musicxml2ly from sibelius

2012-04-11 Thread Matthias Böhringer

Am 11.04.2012 00:20, schrieb Josiah Boothby:

I'm a bit surprised you have musicxml from Sibelius.  As far as I was
aware, it doesn't export into _any_ useful interchange format, including
musicxml.


Googling suggests there is an expensive 3rd party program.


Googling also suggests that Sibelius is confident of their MusicXML
output in version 7.x.

Using xmllint to test for xml validity, it does not appear to have any
problems there, so it seems to me that there are problems either with
Sibelius's export to xml or with Lilypond's conversion scripts.
Sibelius's dev team primarily tests transport to and from Finale, so I
think both export and conversion are likely culprits for problems.

—Josiah


You could also try to import the musicxml file into MuseScore: MuseScore 
is available for Linux, Windows and Mac. It does not only read musicxml, 
but midi as well. Plus: it exports in lilypond-format!


I've had success in reading a musicxml file which would *not* convert 
with the musicxml2ly script. This very file could be imported in 
MuseScore and exported as lilypond file.


Bottom line: give it a try, it might work.

Matthias
--
Matthias Böhringer
Brunnenstraße 6
72296 Schopfloch-Unteriflingen

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


Re: musicxml2ly from sibelius

2012-04-11 Thread Johan Vromans
Josiah Boothby josi...@gmail.com writes:

 A composer recently gave me a messy part he'd prepared with Sibelius,
 and I asked him for a musicxml file on the off chance that it might
 work in Lilypond and I could clean it up. With Lilypond 2.15.36
 (Slackware 13.37, x86), I get the error below along with no output
 file. ...

Depending on the type of score, you may wish to try Kirill Sidorov's
sib2ly converter. If you can't find it let me know and I'll send you a
copy.

sib2ly uses a custom export plugin to dump te contents of the score to a
file, and an external postprocessing program written in ruby to produce
the lilypond source.

-- Johan

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


output to .png file

2012-04-11 Thread christian
How can I make a .png file of mij lilypond score?


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


Re: output to .png file

2012-04-11 Thread ole
Am 11.04.2012 um 13:01 schrieb christian:

 How can I make a .png file of mij lilypond score?
 
 
 ___
 lilypond-user mailing list
 lilypond-user@gnu.org
 https://lists.gnu.org/mailman/listinfo/lilypond-user


lilypond -dbackend=eps -dno-gs-load-fonts -dinclude-eps-fonts --png Yourfile.ly


see also:



http://lilypond.org/doc/v2.15/Documentation/usage/lilypond-output-in-other-programs.html


HTH

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


Re: output to .png file

2012-04-11 Thread Henning Hraban Ramm
Am 11. April 2012 13:01 schrieb christian christian@gmail.com:
 How can I make a .png file of mij lilypond score?

RTFM:
http://lilypond.org/doc/v2.14/Documentation/usage/command-line-options-for-lilypond

Greetlings, Hraban

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


Re: more space between systems?

2012-04-11 Thread eriksbike

I am using 2.14.

Here is my basic code. Hopefully my problem will be immediately obvious... ?



\book {

\paper {
  system-system-spacing #'minimum-distance = #12
  system-system-spacing #'padding = #8
}

#(set-global-staff-size 15)
  
\header {
}

 \score {
\new StaffGroup 

 
 \new Staff {\melodya }

 \new Staff {\melodyb }

 \new Staff {\melodyc }
   


\layout { indent = #0 }

}
}






James-379 wrote:
 
 Erik,
 
 On 11 April 2012 07:19, eriksbike eriksb...@yahoo.com wrote:

 I'm having some trouble creating more space between systems.

 I have tried increasing the system-system-spacing #'minimum-distance and
 system-system-spacing #'padding variables. But when I compile I receive
 the
 message warning: cannot fit music on page: ragged-spacing was requested,
 but page was compressed and the systems are very tightly packed on the
 page.

 Any help would be greatly appreciated.
 
 Well first make sure you are on at least version 2.14.x not 2.12 as
 there are many significant improvements/changes to system spacing.
 
 http://lilypond.org/doc/v2.14/Documentation/notation/flexible-vertical-spacing-within-systems
 
 Then if this doesn't help, you'd need to give a *brief* example of the
 spacing code you are using.
 
 James
 
 ___
 lilypond-user mailing list
 lilypond-user@gnu.org
 https://lists.gnu.org/mailman/listinfo/lilypond-user
 
 

-- 
View this message in context: 
http://old.nabble.com/more-space-between-systems--tp33666340p33668944.html
Sent from the Gnu - Lilypond - User mailing list archive at Nabble.com.


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


Re: System in different colors

2012-04-11 Thread David Nalesnik
Hi,

I tried \once \override but it didn't work.


It should.  You can also move the override of BarLine later as I do below.


 My problem however is, that the barline between my part 2 and three is
 already shown in the color of the part 3 where I think it is defined and
 belongs to part 2.


I believe the issue here is that the barline is considered to _begin_ the
new measure rather than end the old one.  I can't think of a way around
this except what James suggests.  (Then there's the issue of the staff
lines underneath the bar line, to which I don't have a ready answer.)

BTW, your bars don't all add up.

\version 2.14.2
#(set-global-staff-size 18.65)

\header {
   title = System in different colors
}

\language deutsch

staffVoice = \new Staff {
   \set Score.tempoHideNote = ##t
   \time 2/2
   \key f \major
   \clef treble
   \tempo 2=78
   \relative c' {
   \context Voice {
   \override Staff.Clef #'color = #red
   \override Staff.TimeSignature #'color = #red
   \override Staff.KeySignature #'color = #red
   \override NoteHead #'color = #red
   \override Staff.StaffSymbol #'color = #red
   \override Stem #'color = #red
   \override DynamicText #'color = #red
   \override Tie #'color = #red
   \override TextScript #'color = #red
   \override Staff.BarLine #'color = #red
   \override Staff.LedgerLineSpanner #'color = #red
   \partial 4*3
   d' b4^\markup{ \larger {Part 1}}_\f  c a
   f4
   \stopStaff
   }
   \context Voice = melodyVoi {
   \dynamicUp
%\partial 4*3
   \startStaff
   \revert Staff.Clef #'color
   \revert Staff.KeySignature #'color
   \revert Staff.BarLine #'color
   \revert Staff.LedgerLineSpanner #'color
   \revert Staff.StaffSymbol #'color
   \revert NoteHead #'color
   \revert Stem #'color
   \revert Tie #'color
   \revert DynamicText #'color
   c4\(_\mf h c\)
   \bar ||
   f c f c f c f c
   f c f c f c f c
   f c f c f c f c
   f c %% ?
   }
   \context Voice = melodyRep {
   f1 R1
   \bar |.
   \stopStaff
   }
   \context Voice = interlude {
   \startStaff
   \override Staff.VerticalAxisGroup #'remove-first = ##t
   \override SystemStartBar #'color = #black
   \override Staff.StaffSymbol #'color = #red
   \override NoteHead #'color = #red
   \override Stem #'color = #red
   \override DynamicText #'color = #red
   \override Tie #'color = #red
   \override TextScript #'color = #red
   \override Accidental #'color = #red
   \override Rest #'color = #red
   \override Staff.LedgerLineSpanner #'color = #red
   f4^\markup { \larger {Part 3 }} e f g
   \override Staff.BarLine #'color = #red %% I moved this
   c,4 r h f' g r
   \bar ||
   }
 }
}



\score {
   \staffVoice
   \layout {}
   }

\paper {}

Hope this helps,
David
___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: more space between systems?

2012-04-11 Thread Xavier Scheuer
On 11 April 2012 16:05, eriksbike eriksb...@yahoo.com wrote:

 I am using 2.14.

 Here is my basic code. Hopefully my problem will be immediately obvious... ?

Hi,

Move #(set-global-staff-size 15) outside (before) the \book block.
When I compile your code as it with 2.14.2 I got the following error:

  error: syntax error, unexpected SCM_TOKEN
  #(set-global-staff-size 15)

(besides the fact that you did not gave the definition of melodya,
melodyb and melodyc).  Then it works great.

Cheers,
Xavier

-- 
Xavier Scheuer x.sche...@gmail.com

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


Re: node head positions

2012-04-11 Thread Huang
Thanks a lot for everyone's reply! I now have some clues to explore, and
understand it seems non-trivial. I will let you know if I made any progress.

Best,
Herbert

On Tue, Apr 10, 2012 at 8:58 PM, Colin Campbell c...@shaw.ca wrote:

 On 12-04-10 03:00 PM, Huang wrote:

 Yes, I am looking for a way to highlight notes while playing MIDI. I will
 definitely check Frescobaldi to see how it works. I need to understand how
 Lily generates these notes and find out their positions.

 Thanks,
 Herbert



 In addition to Frescobaldi, definitely my editor of choice on both WIndows
 and Linux, you could have a look at Rosegarden.  It will import the MIDI
 files which lilypond can produce, and you can then display each track in
 Rosegarden's notation editor and see the notes highlighted as you play them
 through a MIDI output.  Clearly, tools such as KMidimon and Rosegarden also
 allow you to watch the MIDI events as you hear them played, but if you are
 looking to hear the notation, then Rosegarden might well be worth a look.

 Cheers,
 Colin the Elder

 --
 I've learned that you shouldn't go through life with a catcher's mitt on
 both hands.
 You need to be able to throw something back.
 -Maya Angelou, poet (1928- )



 __**_
 lilypond-user mailing list
 lilypond-user@gnu.org
 https://lists.gnu.org/mailman/**listinfo/lilypond-userhttps://lists.gnu.org/mailman/listinfo/lilypond-user

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


Re: System in different colors

2012-04-11 Thread Thomas Morley
Am 11. April 2012 16:16 schrieb David Nalesnik david.nales...@gmail.com:

 I believe the issue here is that the barline is considered to _begin_ the
 new measure rather than end the old one.  I can't think of a way around this
 except what James suggests.  (Then there's the issue of the staff lines
 underneath the bar line, to which I don't have a ready answer.)

Hi David,

how about inserting: \override Staff.BarLine #'layer = #10 in the \layout and
\once \override Staff.BarLine #'X-extent = #'(-0 . 0.5) for the
problematic BarLine.

Think it should do the trick:

\version 2.14.2
#(set-global-staff-size 18.65)

\header {
   title = System in different colors
}

\language deutsch

staffVoice = \new Staff {
   \set Score.tempoHideNote = ##t
   \time 2/2
   \key f \major
   \clef treble
   \tempo 2=78
   \relative c' {
   \context Voice {
   \override Staff.Clef #'color = #red
   \override Staff.TimeSignature #'color = #red
   \override Staff.KeySignature #'color = #red
   \override NoteHead #'color = #red
   \override Staff.StaffSymbol #'color = #red
   \override Stem #'color = #red
   \override DynamicText #'color = #red
   \override Tie #'color = #red
   \override TextScript #'color = #red
   \override Staff.BarLine #'color = #red
   \override Staff.LedgerLineSpanner #'color = #red
   \partial 4*3
   d' b4^\markup{ \larger {Part 1}}_\f  c a
   f4
   \stopStaff
   }
   \context Voice = melodyVoi {
   \dynamicUp
%\partial 4*3
   \startStaff
   \revert Staff.Clef #'color
   \revert Staff.KeySignature #'color
   \revert Staff.BarLine #'color
   \revert Staff.LedgerLineSpanner #'color
   \revert Staff.StaffSymbol #'color
   \revert NoteHead #'color
   \revert Stem #'color
   \revert Tie #'color
   \revert DynamicText #'color
   c4\(_\mf h c\)
   \bar ||
   f c f c f c f c
   f c f c f c f c
   f c f c f c f c
   f c %% ?
   }
   \context Voice = melodyRep {
   f1 R1
   \bar |.
   \stopStaff
   }
   \context Voice = interlude {
   \startStaff
   \once \override Staff.BarLine #'X-extent = #'(-0 . 0.5) %% added
   \override Staff.VerticalAxisGroup #'remove-first = ##t
   \override SystemStartBar #'color = #black
   \override Staff.StaffSymbol #'color = #red
   \override NoteHead #'color = #red
   \override Stem #'color = #red
   \override DynamicText #'color = #red
   \override Tie #'color = #red
   \override TextScript #'color = #red
   \override Accidental #'color = #red
   \override Rest #'color = #red
   \override Staff.LedgerLineSpanner #'color = #red
   f4^\markup { \larger {Part 3 }} e f g
   \override Staff.BarLine #'color = #red %% I moved this
   c,4 r h f' g r
   \bar ||
   }
 }
}



\score {
   \staffVoice
   \layout {
%% added
   \context {
   \Staff
   \override BarLine #'layer = #10
   }
   }
}

\paper {}

Best,
  Harm

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


Re: System in different colors

2012-04-11 Thread -Eluze


David Nalesnik-2 wrote:
 
 Hi,
 
 I tried \once \override but it didn't work.

 
 It should.  You can also move the override of BarLine later as I do below.
 
 
 My problem however is, that the barline between my part 2 and three is
 already shown in the color of the part 3 where I think it is defined and
 belongs to part 2.


 I believe the issue here is that the barline is considered to _begin_ the
 new measure rather than end the old one.  I can't think of a way around
 this except what James suggests.  (Then there's the issue of the staff
 lines underneath the bar line, to which I don't have a ready answer.)
 
 

I don't think it's an issue.

it's a question of timing - both voices define a bar at the same time (part
3 the initial bar which usually is not displayed at the beginning of a
system) and its properties and - as usual - the latest wins.

Eluze
-- 
View this message in context: 
http://old.nabble.com/System-in-different-colors-tp33660259p33669429.html
Sent from the Gnu - Lilypond - User mailing list archive at Nabble.com.


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


Re: Avoiding tie/prall collision

2012-04-11 Thread Helge Kruse

Am 11.04.2012 09:36, schrieb James:

2012/4/11 Helge Krusehelge.kruse-nos...@gmx.net:

Honestly, I used the 2.13 documentation. Now I downloaded the 2.14
documentation. Searching for stemDown\Up\Neutral I didn't find any hint to
favor voiceOne/Two/Three. But I did not read thorough 763 pages. Which
section are you referring?


http://lilypond.org/doc/v2.15/Documentation/notation/direction-and-placement

It was added middle of March.
Yes, unfortunately you can't find it in the German translation, what is 
displayed by default. But English is also fine for me. Thank you for 
this pointer. Do you think I should use the v2.15 docs for Lilypond 
2.14? The release candidate for Lilypond 2.16 is already announced and 
so it might be sensible to look forward.


Regards,
Helge

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


Re: Avoiding tie/prall collision

2012-04-11 Thread James
Hello,

On 11 April 2012 17:53, Helge Kruse helge.kruse-nos...@gmx.net wrote:
 Am 11.04.2012 09:36, schrieb James:

 2012/4/11 Helge Krusehelge.kruse-nos...@gmx.net:

 Honestly, I used the 2.13 documentation. Now I downloaded the 2.14
 documentation. Searching for stemDown\Up\Neutral I didn't find any hint
 to
 favor voiceOne/Two/Three. But I did not read thorough 763 pages. Which
 section are you referring?



 http://lilypond.org/doc/v2.15/Documentation/notation/direction-and-placement

 It was added middle of March.

 Yes, unfortunately you can't find it in the German translation, what is
 displayed by default. But English is also fine for me. Thank you for this
 pointer. Do you think I should use the v2.15 docs for Lilypond 2.14? The
 release candidate for Lilypond 2.16 is already announced and so it might be
 sensible to look forward.

More or less - there may be some differences, some of the examples in
the Notation Reference that explicitly show  '\relative c' (I think)
are different in 2.14 than 2.15 and won't apply for 2.14 - this was
because of a syntax change internally, it doesn't affect the code you
have in your .ly file (or shouldn't) but might if you copied and
pasted the examples in your .ly file. There may have been some more
subtle changes but I would suggest that for 98.75354887% of your work,
the 2.15 docs should be ok. I use them all the time for my 2.14.2
install and have not had any problems.

James

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


Re: Avoiding tie/prall collision

2012-04-11 Thread James
Hello,

On 11 April 2012 17:53, Helge Kruse helge.kruse-nos...@gmx.net wrote:
 Am 11.04.2012 09:36, schrieb James:

 2012/4/11 Helge Krusehelge.kruse-nos...@gmx.net:

 Honestly, I used the 2.13 documentation. Now I downloaded the 2.14
 documentation. Searching for stemDown\Up\Neutral I didn't find any hint
 to
 favor voiceOne/Two/Three. But I did not read thorough 763 pages. Which
 section are you referring?



 http://lilypond.org/doc/v2.15/Documentation/notation/direction-and-placement

 It was added middle of March.

 Yes, unfortunately you can't find it in the German translation, what is
 displayed by default. But English is also fine for me.

Well it requires that any changes I do in the English document are
picked up and translated by the trasnaltors. The assumption is that
those that do the German Translating see my checkins and make the same
changes in the german doc. They do for the Spanish and French, but I
think that is simply because the two or three that do that are always
looking for it.

Virtually all the checkins I do are for doc only and so the
translators can easily see what I have done and if they need to make
the changes in their docs too.

But the translations are handled separately from the English
documents, so it is very likely the different translations are not
always consistent.

Patches are always welcome :) often I see the German translation gets
'left behind' compared to the Spanish, French and Japanese versions.

James

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


Re: System in different colors

2012-04-11 Thread uunail

Thanks to everybody who replied.

I now learned that you can really change the color of each barline in the
score.

As I was defining the colors of the following part at the beginning, the
definition was taken directly from there on with the consequence of the
timing issue eluze described.

By moving the \override behind the first notes in the last part (as David
suggested), the override only worked for the then following barline which is
how I wanted it to be.

Thanks again
=)
Uwe
-- 
View this message in context: 
http://old.nabble.com/System-in-different-colors-tp33660259p33670406.html
Sent from the Gnu - Lilypond - User mailing list archive at Nabble.com.


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


Re: Avoiding tie/prall collision

2012-04-11 Thread Janek Warchoł
On Wed, Apr 11, 2012 at 8:32 AM, Helge Kruse helge.kruse-nos...@gmx.net wrote:
 Am 10.04.2012 08:37, schrieb Janek Warchoł:

 On Tue, Apr 10, 2012 at 6:31 AM, Helge Krusehelge.kruse-nos...@gmx.net
  wrote:
 It's not a matter of benefits - using stemUp/Down instead of
 voiceOne/Two/.. simply produces typographically wrong results:
 stemUp/Down only changes the direction of stems, while the direction
 of ties, slurs, articulations, dots, positioning of rests etc. should
 be changed, too.

Going back to your first example with prall and tie: i didn't notice
before (i didn't compile your example) but the prall is actually in a
wrong place.  It should be under the staff, since it's attached to
downstem notes; using \voiceTwo would do this automatically.

 I can't contradict this statement. But sometimes I don't find a way to place
 the notes without stemUp/Down like in this example:

 \context PianoStaff 
  \context Staff=right \relative c'' {
      \key g \major \time 3/4
      s2.
      \times 4/6 {r16 b cis d[ cis b]} \times 4/6 {r16 cis d e[ d cis]} d a
 fis d | % 40
  }
  \context Staff=left \relative c' {
    \clef bass \key g \major \time 3/4
    c4 d e |
    \change Staff=right g4 a \change Staff=left fis | % 40
  }


 The left hand plays the two quavers (g and a). The semiquaver rests belong
 to the right hand's voice. Therefore I want to quavers shown below the
 rests. But the notes in the sextuplet should keep the stems down to avoid a
 high skyline.

 I played around with voiceOne/Two but found no solution. Probably you have a
 one?

Hmm?  You can choose whichever voice you want to be first (upper) one, either

\context PianoStaff 
 \context Staff=right \relative c'' {
 \key g \major \time 3/4
 R2.
 \voiceTwo \times 4/6 {r16 b cis d[ cis b]} \times 4/6 {r16 cis d
e[ d cis]} \oneVoice d a fis d | % 40
 }
 \context Staff=left \relative c' {
   \clef bass \key g \major \time 3/4
   c4 d e |
   \change Staff=right \voiceOne g4 a \change Staff=left \oneVoice fis | % 40
 }


or

\context PianoStaff 
 \context Staff=right \relative c'' {
 \key g \major \time 3/4
 R2.
 \voiceOne \times 4/6 {r16 b cis d[ cis b]} \times 4/6 {r16 cis d
e[ d cis]} \oneVoice d a fis d | % 40
 }
 \context Staff=left \relative c' {
   \clef bass \key g \major \time 3/4
   c4 d e |
   \change Staff=right \voiceTwo g4 a \change Staff=left \oneVoice fis | % 40
 }


both are semantically correct and will produce reasonable reasults,
even if some notes were dotted, tied or whatever (unlike your code,
which sets only stem direction).
I think that the second one is clearer for the performer, though.

Also, a high skyline almost never is considered a problem, and it
certainly has lower priority than clear voicing.

Bottom line: when dealing with one-staff polyphony, *always* use
\voiceXXX.  I can't think of any situation where you should override
stem direction alone.

HTH,
Janek

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


Re: Avoiding tie/prall collision

2012-04-11 Thread James
Helge,

On 11 April 2012 13:02, Helge Kruse helge.kruse-nos...@gmx.net wrote:
 Am 11.04.2012 19:24, schrieb James:

 Well it requires that any changes I do in the English document are
 picked up and translated by the trasnaltors. The assumption is that
 those that do the German Translating see my checkins and make the same
 changes in the german doc. They do for the Spanish and French, but I
 think that is simply because the two or three that do that are always
 looking for it.

 Virtually all the checkins I do are for doc only and so the
 translators can easily see what I have done and if they need to make
 the changes in their docs too.

 But the translations are handled separately from the English
 documents, so it is very likely the different translations are not
 always consistent.

 Patches are always welcome :) often I see the German translation gets
 'left behind' compared to the Spanish, French and Japanese versions.


 The two sentences in German would be something like this:

 In mehrstimmiger Musik ist es im Allgemeinen besser, die Stimme explizit mit
 voice auszuwählen anstatt die Ausrichtung einzelner Objekte zu ändern. Für
 weitere Informationen siehe: Multiple voices.

 But this may differ in style from the original translators. I am not in the
 team yet. I don't know if there is a need for additional translation
 support. Further I don't know how to see this checkins. Does it make sense
 to learn how to see this and to add annotations/additions? I could give it a
 try. Or did I missed just one cycle?


http://lilypond.org/doc/v2.15/Documentation/contributor/translating-the-documentation.html

Start here.


James

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


Re: System in different colors

2012-04-11 Thread David Nalesnik
Hi Harm,


 how about inserting: \override Staff.BarLine #'layer = #10 in the \layout
 and
 \once \override Staff.BarLine #'X-extent = #'(-0 . 0.5) for the
 problematic BarLine.

 Think it should do the trick:


Aha!  Works beautifully.

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


Re: System in different colors

2012-04-11 Thread David Nalesnik
Hi Eluze,


  I believe the issue here is that the barline is considered to _begin_ the
  new measure rather than end the old one.  I can't think of a way around
  this except what James suggests.  (Then there's the issue of the staff
  lines underneath the bar line, to which I don't have a ready answer.)
 
 

 I don't think it's an issue.

 it's a question of timing - both voices define a bar at the same time (part
 3 the initial bar which usually is not displayed at the beginning of a
 system) and its properties and - as usual - the latest wins.


Yes, good point.  I didn't realize that \startStaff is actually creating a
new staff, in this case joined to the one before on the same line.

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