Re: Midi-output not generated

2009-10-09 Thread Trevor Daniels


Paul

I haven't made extensive tests, but it seems the << {..} \\ {...} >> 
construct is incompatible with midi (drum?) output.  If you 
rearrange your score to use explicitly defined DrumVoice contexts it 
should work.  Something like this:


musicOne = \drummode {
 \repeat unfold 8 { cymr8 }
}
musicTwo = \drummode {
 bd8 bd8 bd4 bd8 bd8 bd4
}

\score {
 \new DrumStaff <<
   \new DrumVoice {
 \voiceOne
 \musicOne
   }
   \new DrumVoice {
 \voiceTwo
 \musicTwo
   }
 >>
 \layout { }
 \midi { }
}

I'll add this limitation to the Notation Reference after I've 
checked further (or if someone else confirms it before I find the 
time to check it).


Trevor

- Original Message - 
From: "Paul Rijke" 

To: 
Sent: Thursday, October 08, 2009 11:17 AM
Subject: Midi-output not generated



Hi there,



I have the following drum excersises written out for my daughter. 
It prints
beautifully (except that I am not able to set the vertical spacing 
to my
linking, but that's not that big of a problem). I just wonder why 
the
midi-file (which is generated) only is 149 bytes long and contains 
no sound.
Dows anybody know what's going wrong? There are no errors or 
warnings in the

log.



\version "2.12.2"



\header {

 title = "Drum practice Robin"

 subtitle = "week 41 - 2009"

}



patternA = \drummode {

  <<  { cymr8 
cymr8

cymr8 cymr8 cymr8 cymr8 cymr8 cymr8}

  \\

  { 
bd8 bd8 bd8

bd8 bd8 bd8 bd8 bd8 }

  >> }



patternB = \drummode {

  <<  { cymr8 
cymr8

cymr8 cymr8 cymr8 cymr8 cymr8 cymr8}

  \\

  { 
bd4 bd bd

bd }

  >> }



patternC = \drummode {

  <<  { cymr8 
cymr8 
cymr>8 cymr8 cymr8 cymr8 8 cymr8}

  \\

  { 
bd4 hhp bd

hhp }

  >> }




patternD = \drummode {

  <<  { cymr8 
cymr8

cymr8 cymr8 cymr8 cymr8 cymr8 cymr8}

  \\

  { 
bd8 bd8 bd8

bd8 bd4 bd4  }

  >> }




patternE = \drummode {

  <<  { cymr8 
cymr8

cymr8 cymr8 cymr8 cymr8 cymr8 cymr8}

  \\

  { 
bd8 bd8 bd4

bd8 bd8 bd4  }

  >> }



patternF = \drummode {

  <<  {cymr8 
cymr8

cymr8 cymr8 cymr8 cymr8 cymr8 cymr8}

  \\

  {bd4 
bd8 bd8

bd4 bd8 bd8}

  >> }



% It All Goes Together Here %%

\score

{

   \new DrumStaff <<

  \new DrumVoice = "1" { s1*2 }

  \new DrumVoice = "2" { s1*2 }

  {

  \patternB \patternB \patternB 
\patternB

\break

  \patternA \patternA \patternA 
\patternA

\break

  \patternC \patternC \patternC 
\patternC

\break

  \patternD \patternD \patternD 
\patternD

\break

  \patternE \patternE \patternE 
\patternE

\break

  \patternF \patternF \patternF 
\patternF

\break

  \patternF \patternE \patternD 
\patternC

\break

  \patternD \patternF \patternC 
\patternE

\break

  }

  >>



   \layout {

  indent = #0 %this makes the first 
bar

beginning at the same position as everything else

  %fit as much on a page as possible

   %between-system-padding = 9.5\cm

  %between-system-space = 4\cm

  system-count = #8

  ragged-bottom=##f

  ragged-last-bottom=##f

  proportionalNotationDuration =
#(ly:make-moment 1 8)

  \context {

 

Fermata in brackets

2009-10-09 Thread fiëé visuëlle

Hi there,

I found this code to get any grob in brackets:

#(define (addBrackets grob)
 "Place brackets round a text object."
 (let* (
; Get current text
 (currentText (ly:grob-property grob 'text))
 (bracketedText (markup "(" currentText ")")))
   ; Store the bracketed text back
   (ly:grob-set-property! grob 'text bracketedText)
 )
 ; and print it
 (ly:text-interface::print grob))

and it works fine with ChordNames, like this:

\once\override ChordNames.ChordName #'stencil = #addBrackets


Now I'd like to set a fermata in brackets, and since fermata is an  
TextScript element, I thought this would work (but it doesn't):


\relative c'' {
\once\override TextScript #'stencil = #addBrackets
c\fermata
}

What's my mistake?


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


Re: Fermata in brackets

2009-10-09 Thread Robin Bannister

fiëé visuëlle wrote:

 and since fermata is a TextScript element, I thought this would work



It is a Script element and doesn't use #'text.

You would have to do something like fermataLong
in the code for the initial example (the headword) in NR 2.2
http://lilypond.org/doc/v2.12/Documentation/user/lilypond/Keyboard-and-other-multi_002dstaff-instruments


But you probably just want
http://lists.gnu.org/archive/html/lilypond-user/2009-02/msg00278.html



Cheers,
Robin



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


Re: Fermata in brackets

2009-10-09 Thread fiëé visuëlle


Am 2009-10-09 um 20:51 schrieb Robin Bannister:


fiëé visuëlle wrote:

and since fermata is a TextScript element, I thought this would work


It is a Script element and doesn't use #'text.

You would have to do something like fermataLong
in the code for the initial example (the headword) in NR 2.2
http://lilypond.org/doc/v2.12/Documentation/user/lilypond/Keyboard-and-other-multi_002dstaff-instruments


But you probably just want
http://lists.gnu.org/archive/html/lilypond-user/2009-02/msg00278.html



Thank you, seems I never came across \parenthesize before...
The parentheses are a bit too small in comparison to the fermata  
symbol, but it's enough for me.


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


Re: Fermata in brackets

2009-10-09 Thread Robin Bannister

fiëé visuëlle wrote:

 The parentheses are a bit too small in comparison to the fermata


You can apply an override for this.   See
http://lsr.dsi.unimi.it/LSR/Item?id=421

Cheers,
Robin



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


Page layout problem 2.13.4

2009-10-09 Thread Nick Payne
There's definitely something wrong with the page formatting in the 
2.13.4 version I have installed on Windows. I download the setting of 
Traümerei from the Mutopia Project web site: 
http://www.mutopiaproject.org/ftp/SchumannR/O15/SchumannOp15No07/SchumannOp15No07.ly, 
ran convert-ly to bring it to the current version, and built it. Most of 
the bass clef in the bottom Pianostaff on p.1 is off the page. I noticed 
that it didn't have a \paper section, so I added one:


\paper {
   #(set-paper-size "a4")
   top-margin = 1.5\cm
   bottom-margin = 1\cm
   line-width = 18\cm
   ragged-bottom = ##f
   ragged-last-bottom = ##t
   ragged-last = ##t
}

This makes the output even worse - now the entire bass clef at the 
bottom of p.1 is off the page.


Nick


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