Re: use the \tweak command (was Re: Coloring ornaments)

2008-03-13 Thread Wilbert Berendsen
I wrote:
 try e.g.
 {
   c4-\tweak #'color #red -\prall
 }


but this works as well, of course :-)

{
  \once \override Script #'color = #red
  c4\prall
}

best regards,
Wilbert Berendsen

-- 
LilyKDE, LilyPond for KDE: http://lilykde.googlecode.com/
New in LilyKDE-0.4.5: Hyphenation and settings GUI


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


use the \tweak command (was Re: Coloring ornaments)

2008-03-11 Thread Wilbert Berendsen
Op dinsdag 11 maart 2008, schreef David Fedoruk:
 Hello:

 I am trying to color ornaments based on which of the composer or
 editors suggested them. Setting a variable for each color and
 articulation seems like it should be almost the same as for a simple
 NoteHead. Since the articulation is a property of the note, the
 override should be a simple extension of the ones in the manual. So
 far my best guess based on what I've found in the manual and the list
 archives is this:

 % articulation-type (string)
 color = \override NoteHead.articulation-type mordent = #darkred

 Lilypond complains about the -type  and also complains about
 -mordent, so that is not right, but I do not know where to go from
 here.

 Help on this would be appreciated,

http://lilypond.org/doc/v2.11/Documentation/user/lilypond/Objects-connected-to-the-input

try e.g.
{
  c4-\tweak #'color #red -\prall
}



best regards,
Wilbert Berendsen

-- 
http://www.wilbertberendsen.nl/
LilyKDE: http://lilykde.googlecode.com/


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


Re: use the \tweak command (was Re: Coloring ornaments)

2008-03-11 Thread David Fedoruk
Yes, I've seen that page and it works for indvidual NoteHeads. I do
not want to colour the note heads, I want to color the ornament
(articulation) over it.

I just do not know how to specify the ornament specifically. I Know
that it is linked to or is a property of the NoteHead, i jut don't
know how to name it.

You can see that I've taken parts of the syntax for individual notes,
but that doesn't get the ornament. Lilypond chokes after
NoteHead.articulation. -type halts the program.

   % articulation-type (string)
   color = \override NoteHead.articulation-type mordent = #darkred
  
   Lilypond complains about the -type  and also complains about
   -mordent, so that is not right, but I do not know where to go from
   here.
  
   Help on this would be appreciated,

  
 http://lilypond.org/doc/v2.11/Documentation/user/lilypond/Objects-connected-to-the-input

  try e.g.
  {
   c4-\tweak #'color #red -\prall
  }


I have successfully all the notes of one voice, but this did not catch
the ornaments. It was interesting, but not what I wanted

Cheers,
David

P.S. I just tried the  \tweak solution again and got this error:

Bach_bwv814.ly:33:0: error: syntax error, unexpected STRING

rhOne = {
Bach_bwv814.ly:41:32: error: syntax error, unexpected EVENT_IDENTIFIER
b'8.\tweak #'color #red
\mordent[ cs''16 ] d''16[ b' e'' b' ]
fs''8[ b'~ ] b'16[ b' e'' d'' ]| % bar 1
Bach_bwv814.ly:82:8: error: errors found, ignoring music expression




I believe the problem is that I am not naming the object I'm trying to
color correctly. There is another post about coloring a Cautionary
accidental

http://lists.gnu.org/archive/html/lilypond-user/2007-03/msg00275.html

His problem was that he called the object Voice.Accidental. This is
incorrect, it should be AccidentalCautionary. Thats why i think I'm
naming the object incorrectly.

Cheers again

∂œ



-- 
David Fedoruk
B.Mus. UBC,1986
Certificate in Internet Systems Administration, UBC, 2003


http://recordjackethistorian.wordpress.com
Music is enough for one's life time, but one life time is not enough
for music Sergei Rachmaninov
___
lilypond-user mailing list
lilypond-user@gnu.org
http://lists.gnu.org/mailman/listinfo/lilypond-user


RE: use the \tweak command (was Re: Coloring ornaments)

2008-03-11 Thread Trevor Daniels

Hi David

You almost have it right, but to color articulations you need to place a - 
before the tweak, as it the \tweak were an articulation itself, like this:

\relative c'' {
  c8
  % B with red mordent
  b -\tweak #'color #red \mordent
  c
}

I don't think this was documented in the old manuals, but it is in the GDP 
Learning Manual.  See towards the end of Section 4.1.4 Tweaking methods, which 
covers the use of \tweak in detail.

Trevor D

 -Original Message-
 From: [EMAIL PROTECTED]
 [mailto:lilypond-user-bounces+t.daniels=treda.co.u
 [EMAIL PROTECTED] Behalf Of
 David Fedoruk
 Sent: 11 March 2008 09:09
 To: Lilypond mailing list
 Subject: Re: use the \tweak command (was Re: 
 Coloring ornaments)
 
 
 Yes, I've seen that page and it works for 
 indvidual NoteHeads. I do
 not want to colour the note heads, I want to 
 color the ornament
 (articulation) over it.
 
 I just do not know how to specify the ornament 
 specifically. I Know
 that it is linked to or is a property of the 
 NoteHead, i jut don't
 know how to name it.
 
 You can see that I've taken parts of the syntax 
 for individual notes,
 but that doesn't get the ornament. Lilypond chokes after
 NoteHead.articulation. -type halts the program.
 
% articulation-type (string)
color = \override NoteHead.articulation-type 
 mordent = #darkred
   
Lilypond complains about the -type  and 
 also complains about
-mordent, so that is not right, but I do 
 not know where to go from
here.
   
Help on this would be appreciated,
 
   
 http://lilypond.org/doc/v2.11/Documentation/user/l
 ilypond/Objects-connected-to-the-input
 
   try e.g.
   {
c4-\tweak #'color #red -\prall
   }
 
 
 I have successfully all the notes of one voice, 
 but this did not catch
 the ornaments. It was interesting, but not what I wanted
 
 Cheers,
 David
 
 P.S. I just tried the  \tweak solution again and 
 got this error:
 
 Bach_bwv814.ly:33:0: error: syntax error, 
 unexpected STRING
 
 rhOne = {
 Bach_bwv814.ly:41:32: error: syntax error, 
 unexpected EVENT_IDENTIFIER
 b'8.\tweak #'color #red
 \mordent[ cs''16 
 ] d''16[ b' e'' b' ]
 fs''8[ b'~ ] b'16[ b' e'' d'' ]   
  | % bar 1
 Bach_bwv814.ly:82:8: error: errors found, 
 ignoring music expression
 
 
 
 
 I believe the problem is that I am not naming the 
 object I'm trying to
 color correctly. There is another post about 
 coloring a Cautionary
 accidental
 
 http://lists.gnu.org/archive/html/lilypond-user/2
007-03/msg00275.html

His problem was that he called the object Voice.Accidental. This is
incorrect, it should be AccidentalCautionary. Thats why i think I'm
naming the object incorrectly.

Cheers again

∂œ



-- 
David Fedoruk
B.Mus. UBC,1986
Certificate in Internet Systems Administration, UBC, 2003


http://recordjackethistorian.wordpress.com
Music is enough for one's life time, but one life time is not enough
for music Sergei Rachmaninov



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


Re: Coloring ornaments

2008-03-11 Thread Mats Bengtsson



David Fedoruk wrote:

Hello:

I am trying to color ornaments based on which of the composer or
editors suggested them. Setting a variable for each color and
articulation seems like it should be almost the same as for a simple
NoteHead. Since the articulation is a property of the note, the
override should be a simple extension of the ones in the manual. So
far my best guess based on what I've found in the manual and the list
archives is this:

% articulation-type (string)
color = \override NoteHead.articulation-type mordent = #darkred
  

I cannot really imagine where you have read to come up with something
like this. The articulations are separate objects and not a property of 
the note
head. The object type for articulations is Script. The easiest solution 
is therefore

\once \override Script #'color = #darkred c-\mordent

The solution using \tweak that have been proposed as a solution to your 
problem
will also work, but is only needed if you have several articulations 
stacked on
top of each other on the same note and you only want to influence the 
color of

one of them
c-\tweak #'color #darkred -\mordent  -\fermata

   /Mats


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


Coloring ornaments

2008-03-10 Thread David Fedoruk
Hello:

I am trying to color ornaments based on which of the composer or
editors suggested them. Setting a variable for each color and
articulation seems like it should be almost the same as for a simple
NoteHead. Since the articulation is a property of the note, the
override should be a simple extension of the ones in the manual. So
far my best guess based on what I've found in the manual and the list
archives is this:

% articulation-type (string)
color = \override NoteHead.articulation-type mordent = #darkred

Lilypond complains about the -type  and also complains about
-mordent, so that is not right, but I do not know where to go from
here.

Help on this would be appreciated,

Cheers,
David

-- 
David Fedoruk
B.Mus. UBC,1986
Certificate in Internet Systems Administration, UBC, 2003


http://recordjackethistorian.wordpress.com
Music is enough for one's life time, but one life time is not enough
for music Sergei Rachmaninov


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