Re: MIDI and transposing instruments

2009-06-04 Thread Peter Chubb
> "bernie" == bernie arai  writes:

bernie> i'm trying my hand at finally using the midi output of
bernie> lilypond to audition my scores (instead of relying on my
bernie> horrid piano playing).  after a bit of messing around, and a
bernie> while looking through the docs, i'm a bit stumped as to what
bernie> to try next.  i've defined instruments for example:

bernie>  tenorsax = \transpose c d' \relative c { % tenor notes
bernie> (in concert pitch) }

Move the transpose to the printed version only.

What I do when the parts are in sounding pitch is:

tenorSax=\relative c' {\set Staff.midiInstrument = "tenor sax"
 ... }

\score {
% for printing
\context Staff = sax { \set Staff.instrumentName = "Tenor"
\clef "G"
\transpose c d' \tenorSax
}
}

\score {
% for sounding
\unfoldRepeats <<
\context Staff = sax { \tenorSax }
>>
\midi {
}
}

--
Dr Peter Chubb  http://www.gelato.unsw.edu.au  peterc AT gelato.unsw.edu.au
http://www.ertos.nicta.com.au   ERTOS within National ICT Australia


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


MIDI and transposing instruments

2009-06-04 Thread bernie arai
i'm trying my hand at finally using the midi output of lilypond to
audition my scores (instead of relying on my horrid piano playing).
after a bit of messing around, and a while looking through the docs,
i'm a bit stumped as to what to try next.  i've defined instruments
for example:

 tenorsax = \transpose c d' \relative c {
% tenor notes (in concert pitch)
}

 tenorsaxone = {
   \set Staff.instrumentName = #"Tenor"
   \set midiInstrument = #"tenor sax"
   \clef treble
   <<
 \tenorsax
   >>
 }

and yet i can't get the midi playback to play the concert pitches,
only the transposed notes (sounds as written).  i'm sure i'm using the
\transpose command wrong, but i don't know how.  any help?

thanks in advance,

bernie


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


Re: question re: changing color of notes and lyrics

2009-06-04 Thread Stephen Corey
On Fri, 05 Jun 2009 06:11:37 +0200, James E. Bailey wrote:

> Those are ledger lines.
> http://lilypond.org/doc/v2.12/Documentation/user/music-glossary/
> ledger-line#ledger-line
> 
> Am 04.06.2009 um 19:07 schrieb Stephen Corey:
> 
>> Hello Lilypond gurus,
>>
>> I have a template that I use on vocal songs where there is an echo. 
>> The
>> echoed part has greyed out notes/staff and lyrics of another color. 
>> I've
>> figured out how to change most of the properties of the music but still
>> can't figure out the name of the line running through notes that are
>> below or above the clef (middle C for example).  So the line remains
>> black.  Here is a snippet that changes what I know to change.  Can
>> anyone
>> enlighten me on the piece or pieces I'm missing?
>>
>> \override Staff.StaffSymbol #'color = #(x11-color 'grey55)
>>  \override Staff.TimeSignature #'color = #(x11-color 'grey55) 
\override
>>  Staff.KeySignature #'color = #(x11-color 'grey55) \override 
Staff.Clef
>>  #'color = #(x11-color 'grey55) \override Voice.NoteHead #'color =
>>  #(x11-color 'grey55) \override Voice.Stem #'color = #(x11-color
>>  'grey55) \override Voice.Beam #'color = #(x11-color 'grey55) 
\override
>>  Voice.Dots #'color = #(x11-color 'grey55) \override Staff.BarLine
>>  #'color = #(x11-color 'grey55) \override Lyrics.LyricText #'color 
=
>>  #(x11-color 'maroon) \override Lyrics.LyricHyphen #'color =
>>  #(x11-color 'maroon) \override Lyrics.LyricExtender #'color =
>>  #(x11-color 'maroon)
>>
>>
>>
>> ___ lilypond-user mailing
>> list
>> lilypond-user@gnu.org
>> http://lists.gnu.org/mailman/listinfo/lilypond-user
> 
> James E. Bailey
> 
> 
> 
>  Those are ledger lines. href="http://lilypond.org/doc/v2.12/Documentation/user/music-glossary/
ledger-line#ledger-line">http://lilypond.org/doc/v2.12/Documentation/user/
music-glossary/ledger-line#ledger-lineAm
> 04.06.2009 um 19:07 schrieb Stephen Corey: class="Apple-interchange-newline"> style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px;
> margin-left: 0px; ">Hello Lilypond gurus,I have a template that I
> use on vocal songs where there is an echo. class="Apple-converted-space">  The class="Apple-converted-space"> echoed part
> has greyed out notes/staff and lyrics of another color. class="Apple-converted-space">  I've class="Apple-converted-space"> figured out
> how to change most of the properties of the music but still class="Apple-converted-space"> can't figure
> out the name of the line running through notes that are class="Apple-converted-space"> below or
> above the clef (middle C for example). class="Apple-converted-space">  So the line remains class="Apple-converted-space"> black. class="Apple-converted-space">  Here is a snippet that changes
> what I know to change.  Can
> anyone  style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px;
> margin-left: 0px; ">enlighten me on the piece or pieces I'm
> missing? style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px;
> margin-left: 0px; ">\override Staff.StaffSymbol #'color = #(x11-color
> 'grey55) style="white-space:pre">  \override Staff.TimeSignature 
#'color =
> #(x11-color 'grey55) class="Apple-tab-span" style="white-space:pre">   \override
> Staff.KeySignature #'color = #(x11-color 'grey55) style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px;
> margin-left: 0px; "> style="white-space:pre">  \override Staff.Clef #'color =
> #(x11-color 'grey55) class="Apple-tab-span" style="white-space:pre">   \override
> Voice.NoteHead #'color = #(x11-color 'grey55) style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px;
> margin-left: 0px; "> style="white-space:pre">  \override Voice.Stem #'color =
> #(x11-color 'grey55) class="Apple-tab-span" style="white-space:pre">   \override
> Voice.Beam #'color = #(x11-color 'grey55) class="Apple-tab-span" style="white-space:pre">   \override
> Voice.Dots #'color = #(x11-color 'grey55) class="Apple-tab-span" style="white-space:pre">   \override
> Staff.BarLine #'color = #(x11-color 'grey55) style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px;
> margin-left: 0px; "> style="white-space:pre">  \override Lyrics.LyricText #'color 
=
> #(x11-color 'maroon) class="Apple-tab-span" style="white-space:pre">   \override
> Lyrics.LyricHyphen #'color = #(x11-color 'maroon) style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px;
> margin-left: 0px; "> style="white-space:pre">  \override Lyrics.LyricExtender 
#'color =
> #(x11-color 'maroon) style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px;
> margin-left: 0px; min-height: 14px; ">___ style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px;
> margin-left: 0px; ">lilypond-user mailing list style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px;
> margin-left: 0px; "> href="mailto:lilypond-user@gnu.org";>lil

Re: question re: changing color of notes and lyrics

2009-06-04 Thread James E. Bailey

Those are ledger lines.
http://lilypond.org/doc/v2.12/Documentation/user/music-glossary/ 
ledger-line#ledger-line


Am 04.06.2009 um 19:07 schrieb Stephen Corey:


Hello Lilypond gurus,

I have a template that I use on vocal songs where there is an  
echo.  The
echoed part has greyed out notes/staff and lyrics of another  
color.  I've
figured out how to change most of the properties of the music but  
still

can't figure out the name of the line running through notes that are
below or above the clef (middle C for example).  So the line remains
black.  Here is a snippet that changes what I know to change.  Can  
anyone

enlighten me on the piece or pieces I'm missing?

\override Staff.StaffSymbol #'color = #(x11-color 'grey55)
\override Staff.TimeSignature #'color = #(x11-color 'grey55)
\override Staff.KeySignature #'color = #(x11-color 'grey55)
\override Staff.Clef #'color = #(x11-color 'grey55)
\override Voice.NoteHead #'color = #(x11-color 'grey55)
\override Voice.Stem #'color = #(x11-color 'grey55)
\override Voice.Beam #'color = #(x11-color 'grey55)
\override Voice.Dots #'color = #(x11-color 'grey55)
\override Staff.BarLine #'color = #(x11-color 'grey55)
\override Lyrics.LyricText #'color = #(x11-color 'maroon)
\override Lyrics.LyricHyphen #'color = #(x11-color 'maroon)
\override Lyrics.LyricExtender #'color = #(x11-color 'maroon)



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


James E. Bailey



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


Re: Question from a mac user

2009-06-04 Thread James E. Bailey
Yes, this is a known issue. Please see the instructions on the  
download page at http://lilypond.org/web/install


Am 05.06.2009 um 03:15 schrieb sam:

When I install the software and open the app, none of the menu  
items display.

Has anyone else run into this and how can I fix it?



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


James E. Bailey



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


Re: Question from a mac user

2009-06-04 Thread Neil Thornock
What's your exact OS?

On Thu, Jun 4, 2009 at 7:15 PM, sam  wrote:
> When I install the software and open the app, none of the menu items display.
> Has anyone else run into this and how can I fix it?
>
>
>
> ___
> lilypond-user mailing list
> lilypond-user@gnu.org
> http://lists.gnu.org/mailman/listinfo/lilypond-user
>



-- 
Neil Thornock, D.M.
Assistant Professor of Music
Composition/Theory
Brigham Young University
http://neilthornock.net


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


Question from a mac user

2009-06-04 Thread sam
When I install the software and open the app, none of the menu items display.
Has anyone else run into this and how can I fix it?



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


Re: Grace note immediately after key change

2009-06-04 Thread Jonathan Kulp

Nick Payne wrote:

With multiple voices, if I have a grace note in one voice immediately after
a key change, the output gets garbled unless I put dummy grace notes in the
other voices. Is this expected? With the following example, I get the


This is a known issue, mentioned just below the section on grace 
notes in the docs.



attached output, with the key signature doubled, the coda not over the
preceding barline, and the grace note positioned between the two key
signatures. If I add \grace s8 at the corresponding point in voiceOne, the
problem goes away. If I don't have the key change and coda at that point,
then no dummy grace note in the other voice is needed.

 %
 \version "2.12.2"

 \new Staff <<
 \new Voice = "first"
 { 
 	\voiceOne 	

\relative c' {
\key e \minor
r8 b'4 b b b8 |
\mark \markup { \musicglyph #"scripts.coda" }
\key e \major
r8 4   8 |
}
 }

 \new Voice = "second"
 {  
 	\voiceTwo 
 	\relative c' {

\key e \minor
e,1 |
\key e \major
\acciaccatura e8 2. dis'4 |
}
 }
 >>
%

Nick Payne




--
Jonathan Kulp
http://www.jonathankulp.com


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


question re: changing color of notes and lyrics

2009-06-04 Thread Stephen Corey
Hello Lilypond gurus,

I have a template that I use on vocal songs where there is an echo.  The 
echoed part has greyed out notes/staff and lyrics of another color.  I've 
figured out how to change most of the properties of the music but still 
can't figure out the name of the line running through notes that are 
below or above the clef (middle C for example).  So the line remains 
black.  Here is a snippet that changes what I know to change.  Can anyone 
enlighten me on the piece or pieces I'm missing?

\override Staff.StaffSymbol #'color = #(x11-color 'grey55)
\override Staff.TimeSignature #'color = #(x11-color 'grey55)
\override Staff.KeySignature #'color = #(x11-color 'grey55)
\override Staff.Clef #'color = #(x11-color 'grey55)
\override Voice.NoteHead #'color = #(x11-color 'grey55)
\override Voice.Stem #'color = #(x11-color 'grey55)
\override Voice.Beam #'color = #(x11-color 'grey55)
\override Voice.Dots #'color = #(x11-color 'grey55)
\override Staff.BarLine #'color = #(x11-color 'grey55)
\override Lyrics.LyricText #'color = #(x11-color 'maroon)
\override Lyrics.LyricHyphen #'color = #(x11-color 'maroon)
\override Lyrics.LyricExtender #'color = #(x11-color 'maroon)



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


error with eps backend

2009-06-04 Thread fiëé visuëlle

This is a normal LilyPond run (in German):

hraban$ lilypond test.ly
GNU LilyPond 2.12.2
»test.ly« wird verarbeitet
Analysieren...
Interpretation der Musik...
Vorverarbeitung der grafischen Elemente...
Ideale Seitenanzahl wird gefunden...
Musik wird auf eine Seite angepasst...
Systeme erstellen...
Layout nach »test.ps« ausgeben...
Konvertierung nach »./test.pdf«...

Here everything is ok (besides I get a page-size PDF where I need only  
a snippet for embedding, but that's expected behaviour).



This is the LilyPond run as executed by my LilyPond module for ConTeXt:

hraban$ lilypond -dbackend=eps -dno-gs-load-fonts -dinclude-eps-fonts - 
ddelete-intermediate-files -o"test" test.ly

GNU LilyPond 2.12.2
»test.ly« wird verarbeitet
Analysieren...
Interpretation der Musik...
Vorverarbeitung der grafischen Elemente...
Ideale Seitenanzahl wird gefunden...
Musik wird auf eine Seite angepasst...
Systeme erstellen...
Layout nach »test-1.eps« ausgeben...
Konvertierung nach »./test-1.pdf«...
Layout nach »test.eps« ausgeben...
Konvertierung nach »./test.pdf«...
.../LilyPond.app/Contents/Resources/share/lilypond/current/scm/backend- 
library.scm:149:21: In procedure delete-file in expression (delete- 
file (string-append base "." ...)):
.../LilyPond.app/Contents/Resources/share/lilypond/current/scm/backend- 
library.scm:149:21: No such file or directory



You see it creates from the one input file two EPS and PDF files each,  
that seem exactly the same.
The error message seems to indicate that something should get deleted,  
but it can't - perhaps the useless duplicate files?


I wonder why the eps backend makes PDF at all, but that's good for me,  
saves me to run GhostScript myself.




Greetlings from Lake Constance
---
fiëé visuëlle
Henning Hraban Ramm
http://www.fiee.net
http://angerweit.tikon.ch/lieder/
https://www.cacert.org (I'm an assurer)




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


Hairpin after-line-breaking -- how?

2009-06-04 Thread Zoltan Selyem

Hi all,


I want the hairpin to end on the first note of a new line.
I tried this:

\version "2.12.2"
\paper{ ragged-right=##t }
\relative g'{
  \override Score.Hairpin #'after-line-breaking = ##t
  g2\< a4 a4 | \break
  b2.\! r4
}

But it doesn't work. What am I doing wrong?

Thanks,

   Zoltán


   



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


Re: Again : notes for toms and floortoms

2009-06-04 Thread tao_lilyponduser
It's been some time but now I finally managed to make a working function.
The suggestion from Kieren was a good starting point but had to be modified 
much more than I had expected at first.

Well, here is a short example. I haven't done much testing yet so if something 
doesn't work as it should, just tell me and I'll see what I can do.
The interesting part begins with #(define stencil-mapping
before are just a few custom notehead stencils used as a an example.

Regards,

Tao


%
#(define (circSlash grob)
  (let* ((line-thickness (ly:staff-symbol-line-thickness grob))
 (width (+ line-thickness 1))
 (stem-thickness (* line-thickness 1.3))
 (radius (/ (- width stem-thickness) 2)))
  (ly:make-stencil (list 'embedded-ps
(string-append "
  /line-thickness " (number->string line-thickness) " def
  /stem-thickness " (number->string stem-thickness) " def
  /radius " (number->string radius) " def
  /width " (number->string width) " def
  /half-width width 2 div def
  /x0 half-width def
  /y0 0 def
  /x1 width stem-thickness 2 div sub def
  /y1 half-width stem-thickness 2 div sub def
  /x2 stem-thickness 2 div def
  /y2 half-width neg stem-thickness 2 div add def

  gsave
  currentpoint translate
  stem-thickness setlinewidth
  newpath
  x0 y0 radius 0 360 arc
  stroke

  newpath
  1 setlinecap
  x1 y1 moveto
  x2 y2 lineto
  stroke
  grestore"))
(cons 0 width)
(cons 0 0

#(define heel
   (ly:make-stencil (list 'embedded-ps
  "gsave
   currentpoint translate
   newpath
   0 -0.375 moveto
   0.25 0.375 lineto
   1 0.375 lineto
   0.75 -0.375 lineto
   closepath
   0.15 setlinewidth
   stroke
   newpath
   0 -0.375 moveto
   0.25 0.375 lineto
   1 0.375 lineto
   0.75 -0.375 lineto
   closepath
   fill
   grestore" )
  (cons -0.075 1.075)
  (cons 0 0.5)))
  
#(define tip
   (ly:make-stencil (list 'embedded-ps
  "gsave
   currentpoint translate
   newpath
   0.25 -0.375 moveto
   0 0.375 lineto
   0.75 0.375 lineto
   1 -0.375 lineto
   closepath
   0.15 setlinewidth
   stroke
   newpath
   0.25 -0.375 moveto
   0 0.375 lineto
   0.75 0.375 lineto
   1 -0.375 lineto
   closepath
   fill
   grestore" )
  (cons 0.175 0.825)
  (cons 0 0.5)))
 
#(define stencil-mapping
  (list
(cons 'bassdrum heel)
(cons 'hightom tip)
(cons 'snare circSlash)
))

#(define (mod-notehead music)
   (if (eq? (ly:music-property music 'name) 'EventChord)
 (let ((n (length (ly:music-property music 'elements
   (do ((i 0 (1+ i))) ((= i n))
 (let* ((ne (list-ref (ly:music-property music 'elements) i))
(dt (ly:music-property ne 'drum-type))
(st (assoc dt stencil-mapping)))
   (if st
 (ly:music-set-property! ne 'tweaks (list (cons 'stencil (cdr 
st)
music)

customHeads =
#(define-music-function (parser location music) (ly:music?)
   (music-map (lambda (x) (mod-notehead x)) music))
 
\new DrumStaff \new DrumVoice \drummode
{
\customHeads { 4 tomh toml  }
}
-- 
GRATIS für alle GMX-Mitglieder: Die maxdome Movie-FLAT!
Jetzt freischalten unter http://portal.gmx.net/de/go/maxdome01
<>___
lilypond-user mailing list
lilypond-user@gnu.org
http://lists.gnu.org/mailman/listinfo/lilypond-user


{Spam?} Re: Lilypond and Jazz chords (bit OT)

2009-06-04 Thread Grammostola Rosea

Atte André Jensen wrote:

Carl D. Sorensen wrote:


Yes, this is what is needed.  But I have a reference for chord naming at

http://www.dolmetsch.com/musictheory17.htm#namechords

If this is wrong, then corrections would be appreciated.


That look pretty good, I disagree here and there (some small some 
larger objections), but I like the fact that he includes the 
sometimes-fighting-against-each-other-names (for instance some people 
can spend hours discussing why "C5" is correct and "C(omit3)" is not).


I think a complete, consistent definition of what names IMO are 
considered good practice in Europe, would be the most useful to you. 
Did you consider implementing several parallel naming conventions? I 
think that would be best, since different people insist on a certain 
name for a chord, and those "certain names" often fall in sets that 
seems to be geographically oriented.



Note that for this part, I'm only concerned about the naming, not the
symbols. 


What do you mean by "naming"?


I do see disagreement between what Dolmetsch says about C/E and what
Juergensen says:

 



There's something fishy in his argumentation for C,D,G = Csus2. I 
think he is wrong there.


Dolmetsch says the 5th in a C/E is below the C; Juergensen says it's 
above.

That's the only contradiction I've found so far.


IMHO that's nonsense, sorry. Chord symbols don't translate into 
voicings like that. Here and there there are rules, but that more like 
good practices and people like Monk and Ellington breaks them all the 
time. I actually don't see where any of the links you mentions claim 
anything about the 5th being above or below the root?


Actually that was one of the things I found odd the last time I looked 
at lilypond (maybe it has changed): To get it to write the chord 
cymbol C13 I had to write a big, fat chord that spelled like "C, E, G, 
Bb, D, F, A" and sounds like... not so nice, I'm sorry. Nobody would 
ever voice a C13 like that! A simple voicing would be C, E, Bb, D, A 
(has to have C one octave below middle C) but there are endless other 
possibilities.


Anyway, I'd welcome any corrections to these naming rules, or if you 
have
your own complete set of these rules already written out, I'd be 
happy with

that as well.


As already mentioned, I think that a couple of well defined "systems" 
or "logics" for chord names should be included, one fairly well 
defined one that even has it's own name is Berklee, one that I'm not 
too familiar with unfortunately.


BTW. Why don't you use Lilypond anymore Atte? Is there something the 
Lilypond devs can do to get you back on the right road?



\r


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


Grace note immediately after key change

2009-06-04 Thread Nick Payne
With multiple voices, if I have a grace note in one voice immediately after
a key change, the output gets garbled unless I put dummy grace notes in the
other voices. Is this expected? With the following example, I get the
attached output, with the key signature doubled, the coda not over the
preceding barline, and the grace note positioned between the two key
signatures. If I add \grace s8 at the corresponding point in voiceOne, the
problem goes away. If I don't have the key change and coda at that point,
then no dummy grace note in the other voice is needed.

 %
 \version "2.12.2"

 \new Staff <<
 \new Voice = "first"
 { 
\voiceOne   
\relative c' {
\key e \minor
r8 b'4 b b b8 |
\mark \markup { \musicglyph #"scripts.coda" }
\key e \major
r8 4   8 |
}
 }

 \new Voice = "second"
 {  
\voiceTwo 
\relative c' {
\key e \minor
e,1 |
\key e \major
\acciaccatura e8 2. dis'4 |
}
 }
 >>
%

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


Can't get LilyPond to work.

2009-06-04 Thread Steven Pape
I have downloaded LilyPond and cannot get it to work. Every time I hit the 
"LilyPond" button, no matter what the data is in the LilyPond box I get an 
error box:

soffice
The system cannot find the path specified.

Is there anything I can do to make LilyPond work?

I am running Open Office in Windows XP.

Thanks.

Steve.



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