Re: substitution with \movement

2008-06-12 Thread Graham Percival
On Thu, 12 Jun 2008 08:48:12 +0200
Arjan Bos <[EMAIL PROTECTED]> wrote:

> If it were only for `#' denoted strings, I agree with you, but there  
> are plenty of other inconsistencies in the LilyPond syntax that are  
> fully understandable from the viewpoint of the program, but make  
> almost no sense from the user's.

Have you read the new Learning Manual chapter 5: Tweaks?  I highly
recommend doing so.  It clarifies a lot of things.  I'm willing to
guarantee that every user other than Mats will learn something by
reading LM 5.

There is absolutely no development resources available for
undertaking any sweeping changes to the syntax, and I would be
shocked if this changes within the next 5 years.

Cheers,
- Graham


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


change fontsize in stanzas

2008-06-12 Thread madhg

I'm printing additional stanzas at the end of a song, using \markup{ \column{
\line{asdf asdf } ... 

The text of the stanzas comes out smaller than the lyric font.  I haven't
given any text-font-changing commands.

I can enlarge the stanzas by putting \large inside every \line of every
stanza. Maybe I could automate that by defining a new command.  

But is there a way of changing font size globally throughout a \markup{}
block?  I searched in the manual (11.43) with no luck.

David
-- 
View this message in context: 
http://www.nabble.com/change-fontsize-in-stanzas-tp17795118p17795118.html
Sent from the Gnu - Lilypond - User mailing list archive at Nabble.com.



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


Re: change fontsize in stanzas

2008-06-12 Thread Valentin Villenave
2008/6/12 madhg <[EMAIL PROTECTED]>:

> But is there a way of changing font size globally throughout a \markup{}
> block?  I searched in the manual (11.43) with no luck.

LOL, it's a part of the documentation I've precisely been rewriting yesterday!

See
http://kainhofer.com/~lilypond/Documentation/user/lilypond/Common-markup-commands.html

Cheers,
Valentin


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


Re: change fontsize in stanzas

2008-06-12 Thread madhg



Valentin Villenave wrote:
> 
> 2008/6/12 madhg <[EMAIL PROTECTED]>:
> 
>> But is there a way of changing font size globally throughout a \markup{}
>> block? 
> 
> LOL, it's a part of the documentation I've precisely been rewriting
> yesterday!
> 
> See
> http://kainhofer.com/~lilypond/Documentation/user/lilypond/Common-markup-commands.html
> 
> 

Thanks for reply - but I still don't see the answer.  

It seems that commands like \large apply to the markup immediately
following, but not globally to markup inside other constructs.

For instance, in 2.11.43, the \large command here doesn't do anything. 

\markup{ 
  \large \column{
\line{asdf}
\line{fdsa}
   }
}

David
-- 
View this message in context: 
http://www.nabble.com/change-fontsize-in-stanzas-tp17795118p17796261.html
Sent from the Gnu - Lilypond - User mailing list archive at Nabble.com.



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


Re: change fontsize in stanzas

2008-06-12 Thread Valentin Villenave
2008/6/12 madhg <[EMAIL PROTECTED]>:

> Thanks for reply - but I still don't see the answer.
>
> It seems that commands like \large apply to the markup immediately
> following, but not globally to markup inside other constructs.

Oh, actually it was the previous page:

\markup blocks may contain nested expressions or specific commands,
entered using the backslash \ character. Such commands only affect the
first following expression.

In other words,
\markup  { \large toto toto }

only works for the first "toto" whereas

\markup { \large { toto toto } }

works for both.

Can you read 1.8.2.1 carefully and tell me how I could make it more clear ?


Cheers,
Valentin


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


Re: Roman numeral analysis

2008-06-12 Thread luis jure
El Wed, 11 Jun 2008 11:26:30 -0700
Paul Scott <[EMAIL PROTECTED]> escribió:


> But that analysis software would be programmed by humans.  :)

( the joke was supposed to lie there... :-) )


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


Re: how do I control the size of the musical fonts?

2008-06-12 Thread Victor Eijkhout


On Jun 11, 2008, at 5:33 PM, James E. Bailey wrote:


or more likely, \new staff \with {fontSize = #-2}


Does that rely on 2.11? I'm still on 2.10.


Parsing...
queen-score-separate.ly:29:30: error: GUILE signaled an error for the  
expression beginning here

\new Staff \with {fontSize = #
  -2} = "Alto" {
Unbound variable: -2}


Victor.


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


Re: change fontsize in stanzas

2008-06-12 Thread madhg



Valentin Villenave wrote:
> 
> 
> In other words,
> \markup  { \large toto toto }
> 
> only works for the first "toto" whereas
> 
> \markup { \large { toto toto } }
> 
> works for both.
> 
> Can you read 1.8.2.1 carefully and tell me how I could make it more clear
> ?
> 
> 

I had thought that the purpose of the inner brackets was only to make the
\large apply to the whole string of text, not just the first word which
would be the case without those brackets.  That is explained through the 
example

b1^\markup { \bold { molto \italic  agitato } }

near the beginning of your section 1.8.2.1.

Suggestion:

later in that section you have examples of vertically stacked text using
\markup{ asdf \line{lkjh}}.  You could at that point say that commands like
\large can be made to apply to nested markups by enclosing them in braces,
and give an example such as (but perhaps simpler than) this 

\markup{
\large {sphinx of black quartz
\italic { judge 
  \column {
  \line{my}
  \line{vow}
   }
   }
 }
}
  

(Side-remark:  there would then be quite a lot of information in this
section.  Maybe there could be a heading for "nested markup"; maybe even a
new subsection for that topic.  But I know from nothing about conventions
for writing this documentation)
-- 
View this message in context: 
http://www.nabble.com/change-fontsize-in-stanzas-tp17795118p1788.html
Sent from the Gnu - Lilypond - User mailing list archive at Nabble.com.



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


Re: how do I control the size of the musical fonts?

2008-06-12 Thread Victor Eijkhout
I misspoke. I only had a \version of 2.10 in the input. I actually  
ahve 2.11


Victors-G5:Queen VicDiesel$ lilypond queen-score.ly
GNU LilyPond 2.11.39
Processing `queen-score.ly'
Parsing...
queen-score-separate.ly:29:30: error: GUILE signaled an error for the  
expression beginning here

\new Staff \with {fontSize = #
  -2} = "Alto" {
Unbound variable: -2}


On Jun 11, 2008, at 5:33 PM, James E. Bailey wrote:


or more likely, \new staff \with {fontSize = #-2}


Does that rely on 2.11? I'm still on 2.10.


Parsing...
queen-score-separate.ly:29:30: error: GUILE signaled an error for the  
expression beginning here

\new Staff \with {fontSize = #
 -2} = "Alto" {
Unbound variable: -2}


Victor.


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


Re: how do I control the size of the musical fonts?

2008-06-12 Thread James E. Bailey

you need a space before the bracket. scheme thinks that the number is 2}
Am 12.06.2008 um 15:37 schrieb Victor Eijkhout:

I misspoke. I only had a \version of 2.10 in the input. I actually  
ahve 2.11


Victors-G5:Queen VicDiesel$ lilypond queen-score.ly
GNU LilyPond 2.11.39
Processing `queen-score.ly'
Parsing...
queen-score-separate.ly:29:30: error: GUILE signaled an error for  
the expression beginning here

\new Staff \with {fontSize = #
 -2} = "Alto" {
Unbound variable: -2}


On Jun 11, 2008, at 5:33 PM, James E. Bailey wrote:


or more likely, \new staff \with {fontSize = #-2}


Does that rely on 2.11? I'm still on 2.10.


Parsing...
queen-score-separate.ly:29:30: error: GUILE signaled an error for  
the expression beginning here

\new Staff \with {fontSize = #
-2} = "Alto" {
Unbound variable: -2}


Victor.




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


Turning off all rules for OMR output use

2008-06-12 Thread TomDo

Hi,

I am an Artificial Intelligence student from the netherlands and im working
on a C - programme that recognizes handwritten music from paper and that
returns a pdf or ps document with the extracted music. I would like to use
lilypond for the output. The problem is that lilypond uses a lot of
knowledge about how many notes could be between bars ( i now use \CadenzaOn
for this) but then it becomes problematic to use other signs. 

I would like to use lilypond without predefined musical knowledge. Is it
possible to print exactly what you want without the concern of being correct
in your notation? This is important for me because in that way i can write
out exactly what the program recognizes and on the right stave. Also it is
then easy to check what notes/rests/dots/clefs etc. are not found.

If you read this and it wasnt clear: I want to print only and everything I
explicitly write down in the lily-file.

It this possible and how? 
-- 
View this message in context: 
http://www.nabble.com/Turning-off-all-rules-for-OMR-output-use-tp17799154p17799154.html
Sent from the Gnu - Lilypond - User mailing list archive at Nabble.com.



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


LilyPondTool support (campaign?)

2008-06-12 Thread Bertalan Fodor (LilyPondTool)

Dear LilyPond users,

I'm a bit afraid of writing a letter like this, but actually the 
situation makes me to do this. Perhaps this mail will even get caught by 
your spam filter :-)

If you feel it offensive, please ignore and don't smash me.
I would like to continue the development and maintenance of 
LilyPondTool, but for this purpose I need a new computer.
Actually a thief has stolen the money (450EUR) put away for this 
purpose, and for several reasons I can't afford the sum in place of this 
(even though I have a good job, so you don't have to offer me one ;-))
In the past almost two years I already got some support (thank for the 
sponsors again), 130EUR. I bought some LilyPond development and other 
software from this, so actually not much left from it :-)


So, if you do use LilyPondTool and like it, and feel you would be happy 
to support its development (and/or its developer :-)) with any small 
amount, please visit http://lilypondtool.organum.hu/ and click on the 
PayPal button to donate a nominal amount (you can pay with card as well).


Sorry again, and thank you.

Bert


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


Re: substitution with \movement

2008-06-12 Thread Trevor Daniels


Graham Percival wrote Thu, 12 Jun 2008 08:48:12 +0200

Arjan Bos <[EMAIL PROTECTED]> wrote:

If it were only for `#' denoted strings, I agree with you, but there  
are plenty of other inconsistencies in the LilyPond syntax that are  
fully understandable from the viewpoint of the program, but make  
almost no sense from the user's.


Have you read the new Learning Manual chapter 5: Tweaks?  I highly
recommend doing so.  It clarifies a lot of things.  I'm willing to
guarantee that every user other than Mats will learn something by
reading LM 5.


It's actually LM 4 Tweaking output.


- Graham


Trevor 




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


\layout { \context { \Staff \set ... = ... } } don't work (see NR 5.1.4)

2008-06-12 Thread Germain G. Ivanoff-Trinadtzaty
Hello,

I went into a trouble trying to globally modify a context property. One of the 
purposes was to turn off the auto-beaming feature. According to NR 5.1.4, I 
keyed in :

\version "2.11.47"
\layout { %% global layout, before any \score
\context {
\Staff
\remove   Time_signature_engraver   %% ok
\override InstrumentName #'self-alignment-X = #RIGHT%% ok
%   \set  autoBeaming = ##f %% syntax error 
!
}
}

I finally went to add the following to achieve it :

\layout {
\context {
\Voice
\remove   Auto_beam_engraver
}
}

I also noticed that including \set autoBeaming = ##f in a local-to-score 
\layout {} neither works.

Neither the exemple with fontSize given in NR 5.1.4 works. Later on, NR 5.1.4 
states that the \set keyword is optional. I strip it out and... voilà ! No more 
syntax error. So :

don't use the \set keyword in a \layout block.

Is this a regression, or a doc issue ?

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


Re: Paying for features

2008-06-12 Thread Han-Wen Nienhuys
[+lilypond-user]

I don't do this anymore - but I used to charge 100 EUR per hour, and
what you're sketching is several months of works at the least.

why don't you browse around a little more.  I bet there are sequencers
that are better suited to what you need.

good luck.

On Thu, Jun 12, 2008 at 12:26 PM, Dan W <[EMAIL PROTECTED]> wrote:
> I'd be willing to pay a lot more than $25 ;-)
>
> Hello, I'm involved in an open source game development project; a game
> called Privateer - Parallel Universe
> pu.wcjunction.com
> pu.wcjunction.com/phpBB2
> It's a remake and expansion of an old game --Wing Commander : Privateer, but
> soon we'll be expanding the map from the original (only Gemini sector) onto
> other
> sectors in the Wing Commander universe map, such as Avalon and Sol sectors;
> and we've decided we need new music for those, to differenciate the feeling
> of each region.
> We'd like to assign a different microtonal musical scale to each race,
> faction and region; then compose music for them.
>
> For the kind of microtonalism I'm speaking of, check out Harry Partch:
> http://www.youtube.com/watch?v=mOHBqFevy0k&feature=related
> Well, not exactly; more inspired on his book, Genesis of a Music, than on
> his compositions.
> Namely, the kind of microtonalism we're interested in is not a new,
> arbitrary subdivision, but rather a return to classic and pre-classic
> (pagan) musical ratios. That is, for Terran music we'd probably be using
> well-tempered diatonic tunings, based on Pythagorean intervals (using powers
> of 2 and 3 exclusively). Human pirates' music might be based on a fairly
> similar, Hypolydian ratios, based on fractions containing the number 18 as
> numerator or denominator. But for other races, such as Kilrathi, Varni, Woo,
> Steltek and others, other scales would apply. Dorian scale, based on
> fractions of 11, would be ideal for the Kilrathi, I would think, for
> example, due to its martial feeling.
>
> What I've been looking for is some notation/composition software tool that,
>
> allows me to compose music with multiple tracks, with some means of
> positioning notes in pitch and time. Pentagram would be great.
> allows me to specifiy the exact pitch of each note in the musical scale.
> Ideally by a rational number, like 5/4 or 81/64 for the major third, for
> example; but otherwise in "cents" (hundredths of a semitone) as offset from
> an atempered scale note. (Quarter tones would be far too coarse.)
> allows me to save a scale to a file; or load one from a file.
> assumes that the notes specified for the scale repeat at higher or lower
> octaves, but preferably makes allowance for octave-specific variations in
> the numbers and pitches of notes.
> allows me to bend the pitch of a note at any point along a track
> allows me to change the lengths of bars, like playing 2 x 6/8 bars, followed
> by two 4/8 bars, followed by whatever.
> allows me to define different bar metrics for different tracks, such as in
> King Crimson's song Discipline, where, at one point (2 minutes into the
> song), one guitar is playing at 14/16 and the other at 15/16.
> allows me to divide the time of a note by any number, like triplets; but
> ideally up to high and odd numbers like 17, or 23 notes in the duration of
> one. I believe this is what Wagner does for those musical "explosions" near
> the end of the Ride of the Valkyrias, where various instruments are playing
> 3, 4, 5, 6, 7 etc. notes in the same space of time, simultaneously.
> allows me to edit and play back and to save and to record a .wav or .aif or
> some other un-compressed, high quality audio format, hopefully including
> high sampling rate formats, such as 88KHz or 192KHz.
> hopefully runs on xp but I could install linux if necessary.
> hopefully includes some half decent sound fonts of instruments
> hopefully doesn't break the bank
>
> We were just beginning to consider writing our own software, when someone
> passed me a link to LilyPond. If you were interested in adding these
> features, how long would it take, and how much would you charge me?
>



-- 
Han-Wen Nienhuys - [EMAIL PROTECTED] - http://www.xs4all.nl/~hanwen


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


Re: \layout { \context { \Staff \set ... = ... } } don't work (see NR 5.1.4)

2008-06-12 Thread Kieren MacMillan

Hi Germain,


NR 5.1.4 states that the \set keyword is optional.


I don't think that's correct -- i.e., as you've discovered, you CAN'T  
use \set in the \layout { \context { ... }} block!



Is this a regression, or a doc issue ?


This has always been the case, as I recall -- so it sounds like a doc  
issue to me.


Best,
Kieren.


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


Re: Roman numeral analysis

2008-06-12 Thread Paul Scott
luis jure wrote:
> El Wed, 11 Jun 2008 11:26:30 -0700
> Paul Scott <[EMAIL PROTECTED]> escribió:
>
>
>   
>> But that analysis software would be programmed by humans.  :)
>> 
>
> ( the joke was supposed to lie there... :-) )
>   
That's what I thought.  :)

Paul



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


Re: how do I control the size of the musical fonts?

2008-06-12 Thread Wilbert Berendsen
Op donderdag 12 juni 2008, schreef Victor Eijkhout:
> \new Staff \with {fontSize = #
>                                -2} = "Alto" {
> Unbound variable: -2}

you wrote:
\new Staff \with {fontSize = #-2} = "Alto" { ...

should be:
\new Staff = "Alto" \with { fontSize = #-2 } { ...

i.e.: = "alto" first, then \with, and there should (probably) spaces around 
the braces.

best regards,
Wilbert Berendsen

-- 
LilyKDE, LilyPond for KDE: http://lilykde.googlecode.com/


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


Re: Paying for features

2008-06-12 Thread Shelagh Manton
On Thu, 12 Jun 2008 13:42:33 -0300
"Han-Wen Nienhuys" <[EMAIL PROTECTED]> wrote:

> [+lilypond-user]
> 
> I don't do this anymore - but I used to charge 100 EUR per hour, and
> what you're sketching is several months of works at the least.
> 
> why don't you browse around a little more.  I bet there are sequencers
> that are better suited to what you need.
> 
> good luck.

Doesn't scala make up microtonal scales? 
http://www.xs4all.nl/~huygensf/scala/

Maybe they could use that to create the scales and dump the scale to a
sound font or csound, pd (speaking from total ignorance of csound
and pd here, but the features page says you can do it) and then just
compose a song in lilypond to make a midi to play in a sequencer using
the scale you've created.

I don't know how practical this would be but it seems that maybe scala
might fit part of your bill.

Shelagh
> 
> On Thu, Jun 12, 2008 at 12:26 PM, Dan W <[EMAIL PROTECTED]> wrote:
> > I'd be willing to pay a lot more than $25 ;-)
> >
> > Hello, I'm involved in an open source game development project; a
> > game called Privateer - Parallel Universe
> > pu.wcjunction.com
> > pu.wcjunction.com/phpBB2
> > It's a remake and expansion of an old game --Wing Commander :
> > Privateer, but soon we'll be expanding the map from the original
> > (only Gemini sector) onto other
> > sectors in the Wing Commander universe map, such as Avalon and Sol
> > sectors; and we've decided we need new music for those, to
> > differenciate the feeling of each region.
> > We'd like to assign a different microtonal musical scale to each
> > race, faction and region; then compose music for them.
> >
> > For the kind of microtonalism I'm speaking of, check out Harry
> > Partch:
> > http://www.youtube.com/watch?v=mOHBqFevy0k&feature=related
> > Well, not exactly; more inspired on his book, Genesis of a Music,
> > than on his compositions. Namely, the kind of microtonalism we're
> > interested in is not a new, arbitrary subdivision, but rather a
> > return to classic and pre-classic (pagan) musical ratios. That is,
> > for Terran music we'd probably be using well-tempered diatonic
> > tunings, based on Pythagorean intervals (using powers of 2 and 3
> > exclusively). Human pirates' music might be based on a fairly
> > similar, Hypolydian ratios, based on fractions containing the
> > number 18 as numerator or denominator. But for other races, such as
> > Kilrathi, Varni, Woo, Steltek and others, other scales would apply.
> > Dorian scale, based on fractions of 11, would be ideal for the
> > Kilrathi, I would think, for example, due to its martial feeling.
> >
> > What I've been looking for is some notation/composition software
> > tool that,
> >
> > allows me to compose music with multiple tracks, with some means of
> > positioning notes in pitch and time. Pentagram would be great.
> > allows me to specifiy the exact pitch of each note in the musical
> > scale. Ideally by a rational number, like 5/4 or 81/64 for the
> > major third, for example; but otherwise in "cents" (hundredths of a
> > semitone) as offset from an atempered scale note. (Quarter tones
> > would be far too coarse.) allows me to save a scale to a file; or
> > load one from a file. assumes that the notes specified for the
> > scale repeat at higher or lower octaves, but preferably makes
> > allowance for octave-specific variations in the numbers and pitches
> > of notes. allows me to bend the pitch of a note at any point along
> > a track allows me to change the lengths of bars, like playing 2 x
> > 6/8 bars, followed by two 4/8 bars, followed by whatever.
> > allows me to define different bar metrics for different tracks,
> > such as in King Crimson's song Discipline, where, at one point (2
> > minutes into the song), one guitar is playing at 14/16 and the
> > other at 15/16. allows me to divide the time of a note by any
> > number, like triplets; but ideally up to high and odd numbers like
> > 17, or 23 notes in the duration of one. I believe this is what
> > Wagner does for those musical "explosions" near the end of the Ride
> > of the Valkyrias, where various instruments are playing 3, 4, 5, 6,
> > 7 etc. notes in the same space of time, simultaneously. allows me
> > to edit and play back and to save and to record a .wav or .aif or
> > some other un-compressed, high quality audio format, hopefully
> > including high sampling rate formats, such as 88KHz or 192KHz.
> > hopefully runs on xp but I could install linux if necessary.
> > hopefully includes some half decent sound fonts of instruments
> > hopefully doesn't break the bank
> >
> > We were just beginning to consider writing our own software, when
> > someone passed me a link to LilyPond. If you were interested in
> > adding these features, how long would it take, and how much would
> > you charge me?
> >
> 
> 
> 


-- 


Jabber: [EMAIL PROTECTED]
--

Re: \layout { \context { \Staff \set ... = ... } } don't work (see NR 5.1.4)

2008-06-12 Thread Germain G. Ivanoff-Trinadtzaty


- Original Message - 
From: "Kieren MacMillan" <[EMAIL PROTECTED]>

To: "Germain G. Ivanoff-Trinadtzaty" <[EMAIL PROTECTED]>
Cc: "Lilypond users" ; "Graham Percival" 
<[EMAIL PROTECTED]>

Sent: Thursday, June 12, 2008 7:19 PM
Subject: Re: \layout { \context { \Staff \set ... = ... } } don't work (see 
NR 5.1.4)




Hi Germain,


NR 5.1.4 states that the \set keyword is optional.


I don't think that's correct -- i.e., as you've discovered, you CAN'T  use 
\set in the \layout { \context { ... }} block!


What a pity... Source code would have looked more balanced (consistent ?) if 
there where "\set"s on same level as "\override"s in these "\context" 
blocks.



Best,
Kieren.


Best,
Germain



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


Re: \layout { \context { \Staff \set ... = ... } } don't work (see NR 5.1.4)

2008-06-12 Thread Kieren MacMillan

Hi Germain


What a pity... Source code would have looked more balanced
(consistent ?) if there where "\set"s on same level as "\override"s


Agreed...  =\

I put all the \set stuff (without "\set"s) at the top of the block:

\context
{
\Score
someProperty = #A
anotherProperty = #B
\override Grob #'property = #C
   ...
}

But it's not really a perfect solution.

Cheers,
Kieren.


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


Fw: définition d'un nouveau cont exte

2008-06-12 Thread Germain G. Ivanoff-Trinadtzaty
Hello,

I've got two problems defining a new context \StaffSA, based on \Staff.
I followed instruction from NR 6.2.5 Defining new contexts.
http://lilypond.org/doc/v2.11/Documentation/user/lilypond/Defining-new-contexts#Defining-new-contexts

With the definitions that follow :
1) I get two staves for one  \new \StaffSA
2) their instrumentName don't print

What's wrong ?

Thanks,
Germain

ps: btw, are de sharps (#) well suited ? (i mean : in the right place ?)

at : "test-newcontext.png"

%% Test de définition d'un nouveau contexte

\version "2.11.47"
\include "english.ly"

Global = { \key f \major }
NotesDiscantus = { a'4 a'1 }
NotesCantus =  { f'4 f'1 }
NotesFiller =  { c'4 c'1 }
NotesBassus =  { f4 f1 }
Words = \lyricmode { Ta __ daa }

%---%
StaffVoiceNames =  %% for Staff context
#(define-music-function  (parser location n-max-width s-one s-two)
 (number? string? string?)
  "Format and print voice names for one staff"
  #{
   \set Staff . instrumentName = \markup { \column {
\hcenter-in #$n-max-width $s-one 
\hcenter-in #$n-max-width $s-two } }
  #})
%---%
StaffSAVoiceNames =  %% same as above, but for StaffSA context
#(define-music-function  (parser location n-max-width s-one s-two)
 (number? string? string?)
  "Format and print voice names for one staff"
  #{
   \set StaffSA . instrumentName = \markup { \column {
\hcenter-in #$n-max-width $s-one 
\hcenter-in #$n-max-width $s-two } }
  #})
%---%
\layout % commun
{
 \context { \Score
\remove  Bar_number_engraver }
 \context { \ChoirStaff  %% si placé après déf. de StaffSA : idem
\consists Instrument_name_engraver
\override InstrumentName #'self-alignment-X = #LEFT
\accepts  StaffSA }
 \context { \Staff
\remove   Time_signature_engraver
\override InstrumentName #'self-alignment-X = #RIGHT }
 \context { \name  StaffSA
\type  "Engraver_group"
\alias Staff }
}
%---%
\score % 1
{
 \new ChoirStaff
 <<
  \set ChoirStaff . instrumentName = "N°1 Strange behaviour :" 
  
  \new StaffSA
  <<
   \StaffSAVoiceNames #3 #"S." #"A."  %% ne donne rien
%   \StaffVoiceNames #3 #"S." #"A."%% ne marche pas non plus
   \clef "G" \Global
   \new Voice = "one" { \voiceOne \NotesDiscantus }
   \new Voice { \voiceTwo \NotesCantus }
  >>

  \new Lyrics = thewords { s }

  \new Staff
  <<
   \StaffVoiceNames #3 #"T." #"B." 
   \clef "F" \Global
   \new Voice { \voiceOne \NotesFiller }
   \new Voice { \voiceTwo \NotesBassus }
  >>
 \context Lyrics = thewords \lyricsto "one" { \Words }
 >>
 \layout { indent = 65\mm }
}
<>___
lilypond-user mailing list
lilypond-user@gnu.org
http://lists.gnu.org/mailman/listinfo/lilypond-user


Additional dynamics for MIDI

2008-06-12 Thread Michael Pozhidaev
Hello, everybody!

Probably, it is a well-known question, but I didn't find an answer in the 
manual at the first look.
Can I specify some additional dynamics for the midi output, but invisible in 
the page layout?

Actually, it would be very useful to have some 
universal dynamics for the layout and midi, some additional dynamics for the 
layout only and 
some additional dynamics for the midi only.

Of course, I can make separate .ly file for the midi output and specify 
required 
dynamics commands in it, but is there a way to do it with one single file?

Thanks!
-- 
With best wishes, Michael. Tomsk, Russia.



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


Re: Additional dynamics for MIDI

2008-06-12 Thread Kieren MacMillan

Hi Michael:


it would be very useful to have some universal dynamics
for the layout and midi, some additional dynamics for the
layout only and some additional dynamics for the midi only.


Depending on how your brain works, there are two obvious ways to do it:

1. Define three variables:
notesAndUniversalDynamics = {}
layoutDynamics = {}
midiDynamics = {}
and combine them as needed (i.e., #1 and #2 in the "engraved output"  
block, and #1 and #3 in the MIDI block).


2. Write everything in one variable, and #'tag the layout-only and  
midi-only items, then use #'keep-with-tag in your "engraved output"  
and MIDI blocks.


Hope this helps!
Kieren.


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