Re: beam settings

2008-12-25 Thread Trevor Daniels


Carl D. Sorensen wrote Thursday, December 25, 2008 12:21 AM


On 12/24/08 3:31 PM, Trevor Daniels t.dani...@treda.co.uk wrote:


Herbert Liechti wrote Tuesday, December 23, 2008 6:40 AM


Neil Puttock schrieb:

2008/12/22 Trevor Daniels t.dani...@treda.co.uk:


Reinhold Kainhofer wrote Monday, December 22, 2008 4:22 PM


He sent me the whole file and the culprit is a PianoStaff, which 
seems

to
somehow override the score's beamGrouping. So, one cannot use
\set Score.beatGrouping = #'(1 1 1 1 1 1)
but rather has to use
\set Staff.beatGrouping = #'(1 1 1 1 1 1)
Then the beaming also works fine for staves inside a PianoStaff.


Hmm.  Does that mean that context properties set at the Score
level are inherited by the Staff context only if there is no
interposed staff grouping?


I've never noticed this to be the case; I think we need to see
Herbert's file to work out whether there's something else that's
influencing this behaviour.


I'm attaching the file. I already changed the beatGrouping from
Score to Staff context.


I've tracked down the problem here.  It is nothing to to do with the
PianoStaff.  It is due to placing a second \time command in the lower
staff.  Here's an extract from the score which shows the problem
clearly.  Uncomment the second \time command and the
beamGrouping override in the Score context fails in both staves.
Specify \time in only one staff and it works fine in both staves.

\score {
  
\new Staff {
  \time 6/8
  \set Score.beatGrouping = #'(1 1 1 1 1 1)
  \repeat unfold 6 { \times 2/3 { bes16 as es }  }
}
\new Staff {
%  \time 6/8
  \repeat unfold 6 { \times 2/3 { bes16 as es }  }
}


Aha!  This makes sense.  This is because time 6/8 sets beatGrouping to (3
3).  And beatGrouping doesn't live on the Staff level.

This probably becomes a documentation bug.


OK.  I'll fix the docs.

Trevor



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


Re: Remove SpanBar from lyrics line in StaffGroup

2008-12-25 Thread Nicolas Sceaux

Le 25 déc. 08 à 05:40, 今井雄治 a écrit :


Hi, users.

I am making opera full score that
all staves include in StaffGroup.
So, SpanBar appear in lyrics line also.
Then, I want to remove SpanBar from lyrics line
as following.
  _
flute |==|==|==|
 |  |  |  |
Horn  |==|==|==|
 |
Vocal |==|==|==|
 |Lyrics  aa bb  cc
Violin|==|==|==|
 |  |  |  |
Viola |==|==|==|
 ~

Any idea for this case.
Thank you.


You can define a new context, for instance based on StaffGroup,
which remove the span bar.

\version 2.11.65

\layout {
 \context {
   \Score
   \name Score
   \accepts StaffGroupNoBar
 }
 \context {
   \StaffGroup
   \name StaffGroupNoBar
   \description Like StaffGroup, but without spanbar
   \remove Span_bar_engraver
   \accepts StaffGroupNoBracket
 }
 \context {
   \StaffGroup
   \name StaffGroupNoBracket
   \description Like StaffGroup, but without brackets
   \remove System_start_delimiter_engraver
 }
}

\score {
 \new StaffGroupNoBar 
   \new StaffGroupNoBracket 
 \new Staff \with { instrumentName = Flûte } { c''1 }
 \new Staff \with { instrumentName = Horn } { c''1 }
   
   \new Staff \with { instrumentName = Vocal } 
 { c'' } \addlyrics { aa }
   
   \new StaffGroupNoBracket 
 \new Staff \with { instrumentName = Violin } { c''1 }
 \new Staff \with { instrumentName = Viola } { c''1 }
   
 
}

inline: imaiyuji.png

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


Re: question about transposing an interval of a 4th

2008-12-25 Thread Philippe Hezaine

M Watts a écrit :


Actually, there is a way, but it's just something to muck around with, 
and takes a lot longer than scrawling stuff by hand on a sheet of ms paper.


Mididings, the python-based midi router from 
http://das.nasophon.de/mididings/, includes a 'diatonic harmonizer', 
which allows you to add or substitute a harmony line at a specified 
interval from the notes being played, with respect to the home key.


So you could:

1) download  install mididings

2) save the following as test.py

# start of file
# harmonizer.py - example usage of the diatonic harmonizer
#

from mididings import *
from mididings.extra import Harmonize

# substitute a fifth above each note played -- equivalent to a fourth 
below, this only works upwards --, based on the D Major scale

run(
   Harmonize('d', 'major', 'fifth')
)
# end of file

3) start Jack

4) run python ./test.py

5) connect a (virtual) midi keyboard to mididings input; connect 
mididings output to a recorder or sequencer app capable of saving a midi 
file


6) run midi2ly on the resulting file


Merry Christmas!


Ditto.


Hi,

May be there is a shortest way about this loud and not so elegant
workaround:

I send the Mididings script i use for the Drummer's Gigsaw. It isn't for
diatonic transposition but you have some infos about a few different
installation and so the opportunity of changing the lilypond midi file
towards a resulting midi file, straightforward.

Be aware of: import sys
and: process_file(sys.argv[1], sys.argv[2]

This script comes from the Mididings's author, Dominic Sacré.
For more details subscribe and ask for infos on the linux-audio mailing
list.

   linux-audio-user at lists.linuxaudio.org

After getting your midi file you can import it in Rosegarden and export
a new lilypond file.

HTH.
--
   Phil.
Superbonus-Project (Site principal) http://superbonus.project.free.fr

Superbonus-Project (Plate-forme d'échange):
http://philippe.hezaine.free.fr

#!/usr/bin/python
  # -*- coding:Utf-8 -*-
  #Filename : mididings-CC7-to-velocity.py

from mididings import *
import sys

class Volume2Velocity:
def __init__(self):
self.vol = {}
def __call__(self, ev):
if ev.type_ == CTRL and ev.param == 7:
self.vol[ev.channel] = ev.value
return None

elif ev.type_ == NOTEON and ev.channel in self.vol:
ev.velocity = self.vol[ev.channel]
return ev

process_file(sys.argv[1], sys.argv[2], Call(Volume2Velocity()))
# run(Call(Volume2Velocity()))
#
#
#
# About Mididings
# These excerpts come from the linux-audio-user mailing list  at  
lists.linuxaudio.org
#in the thread: [LAU] transform midi Control Change 7 into velocity events?
#
#
# Support for libsmf must be enabled explicitly at compile time
# (./setup.py build --enable-smf).
#
# jack-smf-utils includes libsmf, but doesn't seem to install it for other 
# programs to use. You'll need the standalone version of libsmf-1.1.
#
# If there's no package for libsmf, it's probably easiest to install it 
# the usual, distro-independent way, i.e. extract the tarball and run
#./configure  make  make install
# That will install libsmf to /usr/local. If it's still not found after that, 
# try export PKG_CONFIG_PATH=$PKG_CONFIG_PATH:/usr/local/lib/pkgconfig
# before building mididings.
#and  export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/lib  in ~/.bashrc
#
#Then just run it as
# python /your/path/mididings-CC7-to-velocity.py   /your/path/in.mid
/your/path/out+veloc.mid
#
#
#How do you uninstall the previous version? Is there some special way?
#
# Usually when you install a new version to the same prefix, the old files 
# will simply be overwritten.
# To make sure the old version is really gone, you can go to the package 
# directory (something like /usr/lib/python2.5/site-packages) and remove the 
# mididings directory and the file _mididings.so.
#
#
#
#As far as I can see, all tracks in your MIDI file are on the same
#channel, so CC #7 messages on one track will affect the other tracks as
#well. You should probably assign a different channel to each track.

#No. Like i have said these are drums patterns written by Lilypond. After
#the famous transformation i could join all the tracks in one if i want.

#Yes, but then you need to do the transformation one track at a time. If you 
#play multiple tracks through the same MIDI port on the same channel, some 
#notes will get the wrong velocity (unless every note event is immediately 
#preceded by a volume change).
#
#
#
# Except from the fact that drums samples are always short ( no need of
#sustain, only a triggering), is there some reasons why the drums are
#always writing with very short durations?

#I don't think there's a technical reason why drum notes couldn't be longer. 
#There's just no need for it, because the note-off is ignored anyway.
#Also, two MIDI notes on the same key can't overlap, and making all notes 
#very short is an easy way for a sequencer to avoid 

Re: Remove SpanBar from lyrics line in StaffGroup

2008-12-25 Thread 今井雄治
Thank you for your suggestion.
That's great Xmas present for me.

2008/12/25 Nicolas Sceaux nicolas.sce...@free.fr:
 Le 25 déc. 08 à 05:40, 今井雄治 a écrit :

 Hi, users.

 I am making opera full score that
 all staves include in StaffGroup.
 So, SpanBar appear in lyrics line also.
 Then, I want to remove SpanBar from lyrics line
 as following.
  _
 flute |==|==|==|
 |  |  |  |
 Horn  |==|==|==|
 |
 Vocal |==|==|==|
 |Lyrics  aa bb  cc
 Violin|==|==|==|
 |  |  |  |
 Viola |==|==|==|
 ~

 Any idea for this case.
 Thank you.

 You can define a new context, for instance based on StaffGroup,
 which remove the span bar.

 \version 2.11.65

 \layout {
  \context {
   \Score
   \name Score
   \accepts StaffGroupNoBar
  }
  \context {
   \StaffGroup
   \name StaffGroupNoBar
   \description Like StaffGroup, but without spanbar
   \remove Span_bar_engraver
   \accepts StaffGroupNoBracket
  }
  \context {
   \StaffGroup
   \name StaffGroupNoBracket
   \description Like StaffGroup, but without brackets
   \remove System_start_delimiter_engraver
  }
 }

 \score {
  \new StaffGroupNoBar 
   \new StaffGroupNoBracket 
 \new Staff \with { instrumentName = Flûte } { c''1 }
 \new Staff \with { instrumentName = Horn } { c''1 }
   
   \new Staff \with { instrumentName = Vocal } 
 { c'' } \addlyrics { aa }
   
   \new StaffGroupNoBracket 
 \new Staff \with { instrumentName = Violin } { c''1 }
 \new Staff \with { instrumentName = Viola } { c''1 }
   
  
 }




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


Re: emailed lilypond pdf's printout missing note bodies on reciepent's computer

2008-12-25 Thread Ralph Palmer
I've had some peculiar things happen, even using Adobe Acrobat to make the
PDFs and using Adobe Reader 9 to view them. Specifically, when I've uploaded
files generated at 1200 dpi to a Yahoo website, and then downloaded them to
another computer (both computers running Windows XP), I've gotten a box
around each staff. This was using ABC format to create the files, and then
using Ghost to view them and sending them to an Acrobat printer. This didn't
seem to happen always, and I don't think it happened at all if I set the
printer to 720 dpi. I don't see how the dpi could affect the noteheads, but
I'd say there are clearly possibilities out there for conflicts between
generators and viewers.

Peace,

Ralph

On Wed, Dec 24, 2008 at 4:33 PM, John Mislan jwmis...@gmail.com wrote:


  LilyPond embeds all needed fonts in its PDFs, so there's no need to
  install the fonts anywhere.
 
  But I had complaints about wrong PDFs myself, I could never resolve
  what the error caused.
 
  Maybe
  - some versions of LilyPond had bugs so that not all fonts were
  embedded (definitely not V.2.10.33)
  - some versions of some PDF viewers can't handle the Feta font
 
  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)
 

 Ahh Haa
  Thank you Henning for the insight - I was not sure that lilypond embedded
 the
 needed fonts to the PDF's.

 Now I can make a better conclusion of what is most likely to have happened
 -
 The two separate recipients I sent PDF's to, most likely had not installed
 Adobe
 Acrobat readers.
 Both parties had either Win-Vista or XP - Probably had MS Office apps to
 (wrongly), open the PDF's .

 Guess I'll have to tell others to use Adobe - Acrobat or equivalent reader
 for PDF's next Time.

 Well that solves it then.

 Thanks again for your prompt response, and help on this .

  - Seasons Grettings to All -

 JWM



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




-- 
Ralph Palmer
Montague City, MA
USA
palmer.r.vio...@gmail.com
___
lilypond-user mailing list
lilypond-user@gnu.org
http://lists.gnu.org/mailman/listinfo/lilypond-user


orchestral template problem

2008-12-25 Thread 胡海鹏 Hu Haipeng
Hello,
  I'm suffering from my very large orchestra template. I think if all are good, 
I can contribute it as one of the templates at the end of LM.
  The current problem is, some composers said there are two equivalent thick 
lines at the left, not one thick long and some thinner group lines and square 
brackets for similar instruments. I always use my large def file, the defs for 
this template are copied below. Is the output good? If yes, I'll see what's 
wrong with my large definition file.
  Note: I'm doing this (add clefs, keys and notes in the template originally 
containing variable callings to my own music) in a hurry, because the time of 
GMT+8 is 00:20 now! So there may be some error typings. Please correct them if 
seeing some.
A Late Merry Xmas To You All!
Haipeng
\version 2.11.65

%% layout to create orchestra staff group
%% with non-spanned barlines between two instrument groups
\layout {
  \context {
\StaffGroup
\name Orchestra
\remove Span_bar_engraver
}
\context {
  \Score
  \accepts Orchestra
}
\context {
  \Staff
  \override Glissando #'breakable = ##t
  \override TextSpanner #'breakable = ##t
  \override DynamicSpanner #'breakable = ##t
}
  }

%% Layout to produce SquareStaff context
%% to group similar instruments in a staff group with thin square bracket
\layout {
  \context {
\StaffGroup
\name SquareStaff
systemStartDelimiter = #'SystemStartSquare
  }
  \context {
\Orchestra
\accepts SquareStaff
  }
  \context {
\StaffGroup
\accepts SquareStaff
  }
}

%% Layout to produce MarkLine context
%% to place rehearsal marks and texts above full score
\layout {
  \context {
\type Engraver_group
\name MarkLine
\consists Output_property_engraver
\consists Axis_group_engraver
\consists Mark_engraver
\consists Metronome_mark_engraver
\consists Script_engraver
\consists Text_engraver
\consists Text_spanner_engraver
\consists Font_size_engraver
\override VerticalAxisGroup #'minimum-Y-extent = #'(-2 . 2 )
\override TextSpanner #'breakable = ##t
  }
  \context {
\Orchestra
\accepts MarkLine
  }
  \context {
\StaffGroup
\accepts MarkLine
  }
}

%% layout to produce a smaller markline
%% put before 1st violin part
\layout {
  \context {
\MarkLine
\name SmallMarkLine
\override MetronomeMark #'outside-staff-priority = #800
\override RehearsalMark #'outside-staff-priority = #1200
  }
  \context {
\Orchestra
\accepts SmallMarkLine
  }
  \context {
\StaffGroup
\accepts SmallMarkLine
  }
}
  \score {
\new Orchestra = orchestra 
\set Score.skipBars = ##f
\new MarkLine { s1^Maestoso | s \mark \default | s  | }
\new StaffGroup = woodwind 
  \new SquareStaff 
\new Staff = flutes {
  \set Staff.instrumentName = Piccolo
  \set Staff.shortInstrumentName = Picc.
\relative c'' { \clef treble \key c major \time 4/4 \transposition c'' 
c1 | d | e | }
}
\new Staff = flutes {
  \set Staff.instrumentName = Flutes 1 - 3
  \set Staff.shortInstrumentName = Fl.
\relative c'' { \clef treble \key c major \time 4/4 e g1 | d g | c 
g' | }
}
  
  \new Staff = oboes {
\set Staff.instrumentName = Oboes 1 - 3
\set Staff.shortInstrumentName = Ob.
  \relative c'' { \clef treble \key c major \time 4/4 e g c1 | d g b | 
c g' c | }
  }
  \new Staff = clarinets {
\set Staff.instrumentName = \markup {
  \column { \line { Clarinets 1 - 3 }
\line { in B \smaller \flat } } }
\set Staff.shortInstrumentName = Cl.
  \relative c' { \clef treble \key d major \time 4/4 \transposition bes 
fis a1 | e a | d a' | } 
  }
  \new Staff = bassoons {
\set Staff.instrumentName = Bassoons 1  2
\set Staff.shortInstrumentName = Bn.
  \relative c { \clef bass \key c major \time 4/4 c g'1 | b g' | c g' 
| }
  }

\new StaffGroup = brass 
  \new SquareStaff = horns 
\new Staff = hornsI {
  \set Staff.instrumentName = \markup {
\column { \line { Horn 1  3 }
  \line { in F } } }
  \set Staff.shortInstrumentName = Hn. 1  3
\relative c'' { \clef treble \key g major \time 4/4 \transposition f g 
b1 | fis a | g b | }
}
\new Staff = hornsII {
  \set Staff.instrumentName = \markup {
\column { \line { Horn 2  4 }
  \line { in F } } }
  \set Staff.shortInstrumentName = Hn. 2  4
\relative c' { \clef treble \key g major \time 4/4 \transposition f b 

Re: question about transposing an interval of a 4th

2008-12-25 Thread Gilles THIBAULT



Would it be possible to use your
function to do things like inversion? I don't
have lilypond installed where I am right now,
but I'm thinking something like this:



from = { c d e f g a b }
to = { c' b a g f e d }


The only problem is to know in what octave to translate the note, because in 
its actual state,  the function puts the note transposed just below the note 
(inside one octave).

So we woud have to imagine a system to change this behaviour.

Gilles




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


Re: Naturals' position when key changes

2008-12-25 Thread Gilles THIBAULT





As my English is poor,you may not understand what I want to say.
In that case,please look at a picture 
(http://sakuratan.ddo.jp/imgboard/img-box/img20081225120903.png).



A few days ago, finding something else, I noticed that :
http://lilypond.org/doc/v2.11/Documentation/user/lilypond-internals/BreakAlignment#BreakAlignment
So, in the property 'break-align-orders
#((left-edge ambitus breathing-sign clef staff-bar key-cancellation 
key-signature time-signature custos)
(left-edge ambitus breathing-sign clef staff-bar key-cancellation 
key-signature staff time-signature custos)
(left-edge ambitus breathing-sign clef key-cancellation key-signature 
staff-bar time-signature custos))


you have to change in the second line,  clef staff-bar key-cancellation 
key-signature  by key-cancellation staff-bar  key-signature 

as illustrated in this example :

%%%
\new Staff {
\override Score.BreakAlignment #'break-align-orders =
#'#((left-edge ambitus breathing-sign clef staff-bar key-cancellation 
key-signature time-signature custos)
(left-edge ambitus breathing-sign clef key-cancellation staff-bar 
key-signature staff time-signature custos)
(left-edge ambitus breathing-sign clef key-cancellation key-signature 
staff-bar time-signature custos))


 \key des \major
 c'1 \bar ||
 \key bes \major
 c'1
}

%

Gilles 




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


OOoLilypond, ChoirStaff, italiano.ly

2008-12-25 Thread Valentin Villenave
2008/12/25  aleda...@tin.it:

 Hello, I'm Alessandro from Italy. Your Report about OooLilypond is
 interesting but ... I did not solve some problems about using a
 \ChoirStaff template and an \italiano.ly input option. Actually, they both
 give me an error message. Any suggestion? I'm just using openoffice 3.0,
 lilypond 2.10 and the last OooLilypond available...

Greetings,

I think there is something wrong with your code; could you send an
example? For instance, the following syntax should work:

%

\include italiano.ly

\new ChoirStaff 

  \new Staff \new Voice = soprano \relative { do'1 }
  \new Lyrics \lyricsto soprano \lyricmode { aah }

  \new Staff \new Voice = alto \relative { do1 }
  \new Lyrics \lyricsto alto \lyricmode { aah }



%

Cheers,
Valentin


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


Re: Season's Greetings

2008-12-25 Thread M Watts

Walter Hofmeister wrote:
I just want to wish this list all the best for the Holiday Season and 
the new year. 


I second that -- Happy Christmas to all

Thanks for all the help that has been offered throughout the year.


People on this list who generously give their time to solve problems 
help not only the person who asked, but also other readers, who thereby 
have problems solve before they arise -- doubly good, so thanks everyone.


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





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