pointAndClickOff in a "book file"

2010-03-05 Thread Federico Bruni
I have a file (for a book) which includes several files (each piece of music).
point-and-click is enabled in each of the single files and I want to keep it.

But when I create the book I don't care for point-and-click.
I'd like to keep the pdf smaller and compile it faster..
There's a way to tell LilyPond to disable point-and-click just in the book file?

I've tried:
#(ly:set-option 'point-and-click #f)

but it's not working.

Thanks for your help,
Federico
___
lilypond-user mailing list
lilypond-user@gnu.org
http://lists.gnu.org/mailman/listinfo/lilypond-user


Re: Slur shapes

2010-03-05 Thread Stefan Thomas
Dear Community,
this snippet looks very interestin!
Could someone explain exactly the meaning of all the numbers of  the
command:

  \shapeSlur #'(0 -2.5 -1 3.5 0 0 0 -2.5)

It seems that you have looked at the snippet
> http://lsr.dsi.unimi.it/LSR/Item?id=639
> The command \shapeSlur which is used in this example is not included in
> LilyPond by default, but is rather defined within the example file
> itself. To use it, you have to copy the lines from "shapeSlur =" down to
> "cords))" into the top of your own .ly file.
>
>/Mats
___
lilypond-user mailing list
lilypond-user@gnu.org
http://lists.gnu.org/mailman/listinfo/lilypond-user


Re: Slur shapes

2010-03-05 Thread Bertalan Fodor (LilyPondTool)






Stefan Thomas wrote:

  Dear Community,
this snippet looks very interestin!
Could someone explain exactly the meaning of all the numbers of  the
command: 
\shapeSlur #'(0 -2.5 -1 3.5 0 0 0 -2.5) 

  
  

A shape consists of 4 control points, like 


The shapeSlur doesn't set the position of these control points, just
adds a value to them. 

Bert




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


Re: hairpin on a single note

2010-03-05 Thread Mika Kuuskankare

On 5.3.2010, at 3:14, craigbakalian wrote:

> 
>> I'd like to notate a crescendo on a single note or chord, ie, c4\<\!
>> which by design does not seem to work.
>> Is there an easier way of doing that than using spacer rests?
>> 
>> regards,
>> 
>> Mika Kuuskankare
> 
> The easiest way to do this is c4 \expressivo
> 
> but you may not like the results, then you have to use spacer rests.
> 
> Craig Bakalian
> 
> 

Yes, it's not quite what I'm after. This is what I could come up with:

%%% SNIPPET STARTS %
scresc = #(define-music-function (parser location startDyn endDyn) (string? 
string?)
(make-music
 'TextScriptEvent
 'direction
 -1
 'text
 (markup
  #:line
  (#:dynamic
   startDyn ""
   #:postscript
   "-3.5 0.5 moveto 0.0 1.0 lineto stroke -3.5 0.5 
moveto 0.0 0.0 lineto stroke"
   #:dynamic
   endDyn

{
\textLengthOn
\scresc "" "ff"
< c'' e g>1
\textLengthOff

\textLengthOn \scresc "fp" "fz" g2 ^"Questo pezzo si deve trattare..."  
\textLengthOff 

r2

c1\< g2\!
}
%%% SNIPPET ENDS %%

It almost there and I could even live with this. The only setback is that I 
need to use \textLengthOn/Off to get the spacing right and while this is not 
maybe a big problem there could be situations like in the measure 2

Could one of the Scheme people tell me if there's a way of doing this more 
intelligently? Like, requesting the extent of the note and fitting the 
expression in that space, maybe with the possibility of defining a minimum 
extent?


best,

Mika Kuuskankare






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


Re: Slur shapes

2010-03-05 Thread Stefan Thomas
Ok, thanks!

2010/3/5 Bertalan Fodor (LilyPondTool) 

>
>
> Stefan Thomas wrote:
>
> Dear Community,
> this snippet looks very interestin!
> Could someone explain exactly the meaning of all the numbers of  the
> command:
>
>   \shapeSlur #'(0 -2.5 -1 3.5 0 0 0 -2.5)
>
>
>
>  A shape consists of 4 control points, like
> [image: The Slur Tweak Tool]
>
> The shapeSlur doesn't set the position of these control points, just adds a
> value to them.
>
> Bert
>
>
>
<>___
lilypond-user mailing list
lilypond-user@gnu.org
http://lists.gnu.org/mailman/listinfo/lilypond-user


Re: more than 2 voices using partcombine

2010-03-05 Thread Eby Mani
**
\version "2.12.3"

flagOff = {  \slurDown \autoBeamOff \override Stem #'flag-style = #'no-flag } 

global = {
\time 4/4
\key f \major
}

OrganLHOne = \relative c { \clef bass f8 8 4 f4 e a 4 e ~ 4 a4~ a4 a2  e'4. d8 cis4 b8 cis d2 d c c c8 d 4 d8 e d4 4 8 
f16 e d2 }

OrganLHTwo = \relative c { \clef bass s1*2   
\stemUp %% want to avoid these
d4 f fis2   e e4 s4  a4. c!8  bes!4. a8  g4. bes8 a2   
\flagOff %% want to avoid these
a8 ~ aa4   b8 ~ b  b4 bes!   cis a2 }

OrganLHThree = \relative c { \clef bass d,2 d'4 cis d bes a4. g8 f4 d dis2 e a 
d g, c f, f4 fis g gis a a d,2 }

\score {
\new PianoStaff 
\context Staff = lower << 

 \context Voice 
= OrganLHi  { \voiceOne \global \OrganLHOne  } 

\context Voice = OrganLHm { \oneVoice \global \OrganLHTwo } 

\context Voice = OrganLHp { \voiceTwo \global 
\OrganLHThree } >>

}

***
Hello Mark,

If i put OrganLHTwo on \voiceThree  and the remaining on \voiceOne & \voiceTwo 
, everything seems fine, but get messed up when \voiceOne and \voiceThree share 
homophonic sections.

In this example, i've put OrganLHTwo on \oneVoice and the rest on \voiceOne & 
\voiceTwo and hid the flags, everything seems fine on homophonic sections, 
despite clashing Note column warnings, however forcing NoteColumn to shift on 
OrganLHTwo doesn't work at all on polyphonic sections.

Eby

--- On Fri, 3/5/10, Mark Polesky  wrote:

> From: Mark Polesky 
> Subject: Re: more than 2 voices using partcombine
> To: lilypond-user@gnu.org, "Eby Mani" 
> Date: Friday, March 5, 2010, 4:07 AM
> One thing you could do is split up
> the parts to be combined
> into homophonic and polyphonic sections.  Depending on
> the
> situation, this may be more work than it's worth, but
> here's
> an example below.
> 
> Hope this helps.
> - Mark
> 
> 
> * * * * * * * * * *
> 
> \version "2.12.3"
> 
> global = { \time 3/4 }
> 
> OrganRHOne = { g'2. g' }
> OrganRHTwo = { e'2. e'}
> OrganLHThree = { c2. c }
> 
> % polyphonic part
> OrganLHOneA = { c'2. }
> OrganLHTwoA = { g4 g g }
> 
> % homophonic part
> OrganLHOneB = { c'4 c' c' }
> OrganLHTwoB = { g4 g g }
> 
> 
> \new PianoStaff <<
>   \context Staff = upper <<
> \context Voice = OrganRHi {
>   \global
>   \voiceOne
>   \OrganRHOne
> }
> \context Voice = OrganRHii {
>   \global
>   \voiceTwo
>   \OrganRHTwo
> }
>   >>
> 
>   \context Staff = lower <<
> \clef bass
> 
> { % start upstems
>   % polyphonic part
>   <<
>  \context Voice =
> OrganLHi {
>\global
>\voiceOne
>\OrganLHOneA
>  }
>  \context Voice =
> OrganLHii {
>\global
>\voiceThree
>\OrganLHTwoA
>  }
>   >>
> 
>   % homophonic part
>   \context Voice = OrganLHi <<
> \voiceOne
> \OrganLHOneB
> \OrganLHTwoB
>   >>
> } % end upstems
> 
> \context Voice = Pedals {
>   \global
>   \voiceTwo
>   \OrganLHThree
> }
>   >>
> >>
> 
> 
>   
> 


  



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


Re: pointAndClickOff in a "book file"

2010-03-05 Thread Francisco Vila
2010/3/5 Federico Bruni :
> I have a file (for a book) which includes several files (each piece of
> music).
>
> point-and-click is enabled in each of the single files and I want to keep
> it.
>
> But when I create the book I don't care for point-and-click.
>
> I'd like to keep the pdf smaller and compile it faster..
>
> There's a way to tell LilyPond to disable point-and-click just in the book
> file?
>
> I've tried:
>
> #(ly:set-option 'point-and-click #f)
>
> but it's not working.

Does

  lilypond -dno-point-and-click book.ly

work?

-- 
Francisco Vila. Badajoz (Spain)
www.paconet.org , www.csmbadajoz.com


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


Re: hairpin on a single note

2010-03-05 Thread Francisco Vila
2010/3/5 Mika Kuuskankare :

> %%% SNIPPET STARTS %
> scresc = #(define-music-function (parser location startDyn endDyn) (string? 
> string?)

What about

{ c2\fp\<
\override DynamicText #'extra-spacing-width = #'(-30 . 0)
 r\fz
c1 }


-- 
Francisco Vila. Badajoz (Spain)
www.paconet.org , www.csmbadajoz.com


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


Re: pointAndClickOff in a "book file"

2010-03-05 Thread Federico Bruni
Il giorno Fri, 5 Mar 2010 12:28:51 +0100
Francisco Vila  ha scritto:

> Does
> 
> lilypond -dno-point-and-click book.ly
> 
> work?

No it doesn't.
It was my first try...
___
lilypond-user mailing list
lilypond-user@gnu.org
http://lists.gnu.org/mailman/listinfo/lilypond-user


Re: pointAndClickOff in a "book file"

2010-03-05 Thread Francisco Vila
2010/3/5 Federico Bruni :
> Il giorno Fri, 5 Mar 2010 12:28:51 +0100
> Francisco Vila  ha scritto:
>
>> Does
>>
>>   lilypond -dno-point-and-click book.ly
>>
>> work?
>
> No it doesn't.
> It was my first try...

Then it is a bug and there is nothing you can do with #(ly:set-option
IMO
-- 
Francisco Vila. Badajoz (Spain)
www.paconet.org , www.csmbadajoz.com


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


Re: pointAndClickOff in a "book file"

2010-03-05 Thread Federico Bruni
>
Weird! Does it work when you try it on a single small file?

 /Mats
yes, of course

the problem is just with the book.ly file, which is a list of \include
___
lilypond-user mailing list
lilypond-user@gnu.org
http://lists.gnu.org/mailman/listinfo/lilypond-user


Re: pointAndClickOff in a "book file"

2010-03-05 Thread Mats Bengtsson



Federico Bruni wrote:


Il giorno Fri, 5 Mar 2010 12:28:51 +0100
Francisco Vila  ha scritto:

> Does
>
>   lilypond -dno-point-and-click book.ly
>
> work?

No it doesn't.
It was my first try...


Weird! Does it work when you try it on a single small file?

   /Mats


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


measurePosition within a music function?

2010-03-05 Thread Marc Hohl

Hello,

I have a music function which simply outputs the durations of every note:

\version "2.13.13"

#(define (test-apply m)
   (if (eq? 'NoteEvent (ly:music-property Voice 'name))
   (let ((dur (ly:music-property m 'duration)))
 (display "\nduration: ")(display dur)(display "\n--\n"))
)
  m)

test-func=#(define-music-function (parser location music) (ly:music?)
 (music-map test-apply music))

melody={ c4. d8 e8*2 f2 }

\test-func { \melody }

This works fine, but I wanted to evaluate the position of the current note
within the current bar. I found the measurePosition property, but to use

ly:context-property context 'measurePosition

in my function, I need the appropriate context. How can I achieve that?

(I think it must be something very simple, but digging in the sources and
the manuals, I didn't get a hint. the lsr provides a solution with
\applyOutput, but this doesn't work here).

Thanks,

Marc




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


Re: pointAndClickOff in a "book file"

2010-03-05 Thread Bertalan Fodor (LilyPondTool)

Federico Bruni wrote:


I have a file (for a book) which includes several files (each piece of 
music).


point-and-click is enabled in each of the single files and I want to 
keep it.


By default enabled or explicitly? That would override 
-dno-point-and-click I think.



But when I create the book I don't care for point-and-click.

I'd like to keep the pdf smaller and compile it faster..

There's a way to tell LilyPond to disable point-and-click just in the 
book file?



I've tried:

#(ly:set-option 'point-and-click #f)


but it's not working.


Thanks for your help,

Federico



___
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: pointAndClickOff in a "book file"

2010-03-05 Thread Mats Bengtsson



Federico Bruni wrote:


I have a file (for a book) which includes several files (each piece of 
music).


point-and-click is enabled in each of the single files and I want to 
keep it.



Do you mean that you explicitly have a line saying
#(ly:set-option 'point-and-click #t)
in every of the files? Since the default setting is true, such a setting 
is redundant.
If you have it now, just remove all these settings and then it should 
work to use

#(ly:set-option 'point-and-click #f)
in the global file.


   /Mats


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


can't change the style of the timesignatures

2010-03-05 Thread Stefan Thomas
Dear community,
I don't understand, why this snippet doesn't work:
\version "2.12.2"

\layout {
\context { \override VerticalAlignment #'max-stretch =
#ly:align-interface::calc-max-stretch }
\context { \Voice \remove Text_spanner_engraver }
  \context {  \override TimeSignature #'style = #'( ) } %why doesn't this
this work cerrectly?
\context { \RemoveEmptyStaffContext \override VerticalAxisGroup
#'remove-first = ##t }
}
\new Staff \relative c' { c4 d e f g1 }
___
lilypond-user mailing list
lilypond-user@gnu.org
http://lists.gnu.org/mailman/listinfo/lilypond-user


Re: pointAndClickOff in a "book file"

2010-03-05 Thread Graham Percival
FFS everybody.

Federico: omit point-and-click from your music definition files.  Then make
  violin-score.ly
  cello-score.ly
  all-book.ly
which just include your point-and-click NETURAL music definition
files.  In the -score files, put your \score and enable
point-and-click and the top of it.  In the -book file, put
\pointAndClickOff.

- Graham


On Fri, Mar 5, 2010 at 9:44 AM, Federico Bruni  wrote:
> I have a file (for a book) which includes several files (each piece of
> music).
>
> point-and-click is enabled in each of the single files and I want to keep
> it.
>
> But when I create the book I don't care for point-and-click.
>
> I'd like to keep the pdf smaller and compile it faster..
>
> There's a way to tell LilyPond to disable point-and-click just in the book
> file?
>
> I've tried:
>
> #(ly:set-option 'point-and-click #f)
>
> but it's not working.
>
> Thanks for your help,
>
> Federico
>
> ___
> 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: can't change the style of the timesignatures

2010-03-05 Thread Graham Percival
Why not use \numericTimeSignature ?  See the 2.12 doc page about Time signature.

Cheers,
- Graham


On Fri, Mar 5, 2010 at 1:51 PM, Stefan Thomas
 wrote:
> Dear community,
> I don't understand, why this snippet doesn't work:
> \version "2.12.2"
>
> \layout {
>     \context { \override VerticalAlignment #'max-stretch =
> #ly:align-interface::calc-max-stretch }
>     \context { \Voice \remove Text_spanner_engraver }
>   \context {  \override TimeSignature #'style = #'( ) } %why doesn't this
> this work cerrectly?
> \context { \RemoveEmptyStaffContext \override VerticalAxisGroup
> #'remove-first = ##t }
> }
> \new Staff \relative c' { c4 d e f g1 }
>
>
> ___
> 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: can't change the style of the timesignatures

2010-03-05 Thread Reinhold Kainhofer
Am Freitag, 5. März 2010 14:51:39 schrieb Stefan Thomas:
> Dear community,
> I don't understand, why this snippet doesn't work:
[...]
>   \context {  \override TimeSignature #'style = #'( ) } %why doesn't this
> this work cerrectly?

...because you don't say to which context the override should apply...
 In particular, you need \Staff,\Voice or \Score, or some other context name 
at the beginning of the context block.

Cheers,
Reinhold

-- 
--
Reinhold Kainhofer, reinh...@kainhofer.com, http://reinhold.kainhofer.com/
 * Financial & Actuarial Math., Vienna Univ. of Technology, Austria
 * http://www.fam.tuwien.ac.at/, DVR: 0005886
 * LilyPond, Music typesetting, http://www.lilypond.org


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


Re: can't change the style of the timesignatures

2010-03-05 Thread Stefan Thomas
Dear Graham,
I know this, but: how can I put this into the layout-block?
As far as I've understand, \numericTimeSignature works only for one Staff or
Voice, but never for the whole score.
Or am I wrong?

2010/3/5 Graham Percival 

> Why not use \numericTimeSignature ?  See the 2.12 doc page about Time
> signature.
>
> Cheers,
> - Graham
>
>
> On Fri, Mar 5, 2010 at 1:51 PM, Stefan Thomas
>  wrote:
> > Dear community,
> > I don't understand, why this snippet doesn't work:
> > \version "2.12.2"
> >
> > \layout {
> > \context { \override VerticalAlignment #'max-stretch =
> > #ly:align-interface::calc-max-stretch }
> > \context { \Voice \remove Text_spanner_engraver }
> >   \context {  \override TimeSignature #'style = #'( ) } %why doesn't this
> > this work cerrectly?
> > \context { \RemoveEmptyStaffContext \override VerticalAxisGroup
> > #'remove-first = ##t }
> > }
> > \new Staff \relative c' { c4 d e f g1 }
> >
> >
> > ___
> > 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: can't change the style of the timesignatures

2010-03-05 Thread Mats Bengtsson
Read again in 
http://lilypond.org/doc/v2.13/Documentation/learning/adding-and-removing-engravers#Adding-and-removing-engravers

subsection "Changing all context of the same type" what syntax to use.
The first thing after "\context{" should be the name of the context 
where you want to apply the setting, preceded by a backslash, for example

\layout{
 \context{
   \Staff
   \override TimeSignature #'style = #'( )
 }
}

  /Mats

Stefan Thomas wrote:

Dear community,
I don't understand, why this snippet doesn't work:
\version "2.12.2"

\layout {
\context { \override VerticalAlignment #'max-stretch = 
#ly:align-interface::calc-max-stretch }

\context { \Voice \remove Text_spanner_engraver }
  \context {  \override TimeSignature #'style = #'( ) } %why doesn't 
this this work cerrectly?
\context { \RemoveEmptyStaffContext \override VerticalAxisGroup 
#'remove-first = ##t }

}
\new Staff \relative c' { c4 d e f g1 }



___
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: can't change the style of the timesignatures

2010-03-05 Thread Stefan Thomas
Dear Mats,
thanks. I got what I wanted with
\context { \Score  \override TimeSignature #'style = #'( ) }
I don't know why, but \context { \Staff  \override TimeSignature #'style =
#'( ) }
did not work!

2010/3/5 Mats Bengtsson 

> Read again in
> http://lilypond.org/doc/v2.13/Documentation/learning/adding-and-removing-engravers#Adding-and-removing-engravers
> subsection "Changing all context of the same type" what syntax to use.
> The first thing after "\context{" should be the name of the context where
> you want to apply the setting, preceded by a backslash, for example
> \layout{
>  \context{
>   \Staff
>   \override TimeSignature #'style = #'( )
>  }
> }
>
>  /Mats
>
> Stefan Thomas wrote:
>
>> Dear community,
>> I don't understand, why this snippet doesn't work:
>> \version "2.12.2"
>>
>> \layout {
>>\context { \override VerticalAlignment #'max-stretch =
>> #ly:align-interface::calc-max-stretch }
>>\context { \Voice \remove Text_spanner_engraver }
>>  \context {  \override TimeSignature #'style = #'( ) } %why doesn't this
>> this work cerrectly?
>> \context { \RemoveEmptyStaffContext \override VerticalAxisGroup
>> #'remove-first = ##t }
>> }
>> \new Staff \relative c' { c4 d e f g1 }
>>
>> 
>>
>>
>> ___
>> 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: measurePosition within a music function?

2010-03-05 Thread Carl Sorensen



On 3/5/10 5:05 AM, "Marc Hohl"  wrote:

> 
> This works fine, but I wanted to evaluate the position of the current note
> within the current bar. I found the measurePosition property, but to use
> 
> ly:context-property context 'measurePosition
> 
> in my function, I need the appropriate context. How can I achieve that?
> 
> (I think it must be something very simple, but digging in the sources and
> the manuals, I didn't get a hint. the lsr provides a solution with
> \applyOutput, but this doesn't work here).

It's actually not simple at all, because music functions are evaluated
during the parsing stage, when events are put on the music tree, rather than
during the iteration/translation stage when the events are handed to
contexts.  Therefore, you need something in your music function that will
have evaluation delayed until the translation stage when a context will be
provided as an argument.

This was something I didn't understand when I started working on the
autobeaming.  And it caused me lots of grief until I figured out a
workaround.

The workaround is to create a context-spec-music expression and export it
with ly:export.  You can see some examples at the bottom of
scm/beam-settings.scm.  I won't promise that they're good examples, but they
are examples.

HTH,

Carl



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


Re: hairpin on a single note

2010-03-05 Thread Mika Kuuskankare

On 5.3.2010, at 13:42, Francisco Vila wrote:

> 2010/3/5 Mika Kuuskankare :
> 
>> %%% SNIPPET STARTS %
>> scresc = #(define-music-function (parser location startDyn endDyn) (string? 
>> string?)
> 
> What about
> 
> { c2\fp\<
>   \override DynamicText #'extra-spacing-width = #'(-30 . 0)
> r\fz
> c1 }
> 
> 
> -- 
> Francisco Vila. Badajoz (Spain)
> www.paconet.org , www.csmbadajoz.com

Francisco,

Thanks for your input. I'm in 2.12.3 and in this version I cannot see the 
hairpin at all (it even says "crescendo too small")... furthermore, I really 
need to insert the expression in one single event only...

BTW, overriding 'extra-spacing-width' doesn't seem to do anything for me.


regards,

Mika Kuuskankare





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


Re: pointAndClickOff in a "book file"

2010-03-05 Thread Federico Bruni
Il giorno Fri, 05 Mar 2010 13:53:28 +0100
"Bertalan Fodor (LilyPondTool)"  ha scritto:

> > point-and-click is enabled in each of the single files and I want
> > to keep it.
> > 
> By default enabled or explicitly? That would override 
> -dno-point-and-click I think.

Explicitly...
But not in all of them..

I've just found out that only one of the seven included files had 
\pointAndClickOn (I can't
remember why I put it there).

I've removed it, now everything is OK: when I compile book.ly using
the -dno-point-and-click option I get the .pdf for publish.

My mistake, sorry!

Federico
-- 
http://gnurag.net/blog/
http://fsfe.org/
http://groups.fsf.org/wiki/LibrePlanetItalia
___
lilypond-user mailing list
lilypond-user@gnu.org
http://lists.gnu.org/mailman/listinfo/lilypond-user


Converting Noteworthy scores to LilyPond

2010-03-05 Thread Phil Holmes
Noteworthy is an example of a low-cost music notation software product. 
I've no connection with the company, but am an enthusiastic user.


I've now finished my initial stab at creating a tool that takes a complete 
Noteworthy score and automatically translates it to LilyPond.  With care, I 
believe it means you never have to hack the LilyPond files again, making 
editing and version control of your scores so much easier.  It's a free 
download, and a full description and download can be found at 
http://www.holmessoft.co.uk/homepage/software/nwc2ly/.


I hope it may be useful and improve the take-up of LilyPond.

--
Phil Holmes




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


\include and alterations

2010-03-05 Thread Federico Bruni
Hi,

I have another problem with the use of \include.

I have a file which compiles fine, even though I get this error message:
programming error: no solution found for Bezier intersection

Anyway, the output is fine.

Now, if I include this file in my book.ly file, I get a bunch of errors related 
to that included file.
The message is the same for all of them:

error: syntax error, unexpected STRING, expecting > or DRUM_PITCH or 
MUSIC_FUNCTION or NOTENAME_PITCH

The problems are related to all the altered notes in the file.
I'm using the default (dutch) names of notes in that file.

Can anyone give me some hint on how to track this problem?
I don't even knowwhere to start from...


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


Re: \include and alterations

2010-03-05 Thread Francisco Vila
2010/3/5 Federico Bruni :
> Can anyone give me some hint on how to track this problem?

I you craft a minimal set of files that show the problem, I promise
trying to reproduce it.

-- 
Francisco Vila. Badajoz (Spain)
www.paconet.org , www.csmbadajoz.com


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


Re: hairpin on a single note

2010-03-05 Thread Mats Bengtsson


Mika Kuuskankare wrote:

On 5.3.2010, at 13:42, Francisco Vila wrote:

  

2010/3/5 Mika Kuuskankare :



%%% SNIPPET STARTS %
scresc = #(define-music-function (parser location startDyn endDyn) (string? 
string?)
  

What about

{ c2\fp\<
\override DynamicText #'extra-spacing-width = #'(-30 . 0)
r\fz
c1 }


--
Francisco Vila. Badajoz (Spain)
www.paconet.org , www.csmbadajoz.com



Francisco,

Thanks for your input. I'm in 2.12.3 and in this version I cannot see the hairpin at all 
(it even says "crescendo too small")... furthermore, I really need to insert 
the expression in one single event only...
  
The following version of Francisco's example will work both in versions 
2.12 and 2.13.


{\once \override Hairpin #'minimum-length = #7 c2\fp\< r\fz c1 }



However, for your scheme version, you may want to use a solution like
\afterGrace {c1 \ff \> } {s16 \!\pp }
as a starting point. I made a quick attempt to make a music function 
solution for it, but didn't get further than the following, which gives 
syntax errors, probably because of limitations of what can be 
interpreted within a #{ ... #}. Writing it all in Scheme should work, 
though.



mycresc = #(define-music-function (parser location startDyn endDyn note) 
(string? string? ly:music? )
#{ \afterGrace {$note #(ly:export (make-music 'AbsoluteDynamicEvent 
'text $startDyn)) }

   { s #(ly:export (make-music 'AbsoluteDynamicEvent 'text $endDyn)) } #})


   /Mats


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


Re: more than 2 voices using partcombine

2010-03-05 Thread Mark Polesky
Eby Mani wrote:
> If i put OrganLHTwo on \voiceThree  and the remaining on
> \voiceOne & \voiceTwo , everything seems fine, but get
> messed up when \voiceOne and \voiceThree share homophonic
> sections.

It looks like the partcombine function defaults to using
voiceOne and voiceTwo.  I think that it shouldn't be too
hard to add two new functions:

partcombineUp   (voiceOne + voiceThree)
partcombineDown (voiceTwo + voiceFour)

This would be the ideal solution.  I'll ask on the developer
list.

- Mark


  


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


Re: \include and alterations

2010-03-05 Thread Federico Bruni
I thaught I was not able to do a minimal example which could fail,
but it was easier than expected.

I guess the problem is that the previous included file has an \include 
"english.ly" statement,
and it seems that this breaks the next file (which uses default names instead).

Here's the example:

file0.ly

\version "2.13"
\include "english.ly"

\new TabStaff \relative c {
 \set TabStaff.stringTunings = #guitar-drop-d-tuning
 d,1
 1
}

%%%

file1.ly

\version "2.13"

\new TabStaff \relative c {
 \set TabStaff.stringTunings = #guitar-drop-d-tuning
 d,1
 1
}

%%%

book.ly

\version "2.13"


\include "file0.ly"
\include "file1.ly"
___
lilypond-user mailing list
lilypond-user@gnu.org
http://lists.gnu.org/mailman/listinfo/lilypond-user


Re: \include and alterations

2010-03-05 Thread Francisco Vila
2010/3/5 Federico Bruni :
> I guess the problem is that the previous included file has an \include
> "english.ly" statement,
>
> and it seems that this breaks the next file (which uses default names
> instead).

> file1.ly
>
> \version "2.13"
>
> \new TabStaff \relative c {
>   \set TabStaff.stringTunings = #guitar-drop-d-tuning
>   d,1
>   1

Yes, changing fis to fs here does fix the issue.

-- 
Francisco Vila. Badajoz (Spain)
www.paconet.org , www.csmbadajoz.com


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


is \partial counted as a bar?

2010-03-05 Thread Seng Hin Yew
Good day all...

I'm having a problem that lilypond will exclude the \partial bar in bar
counting. This \partial i meant was the first bar of a score. How to make LP
calculate it as a first bar?

-- 
Martin Seng Hin Yew
Addtone Guitar Ensemble
___
lilypond-user mailing list
lilypond-user@gnu.org
http://lists.gnu.org/mailman/listinfo/lilypond-user


Re: \include and alterations

2010-03-05 Thread Francisco Vila
2010/3/5 Francisco Vila :
>> file1.ly
>>
>> \version "2.13"

\include "nederlands.ly"

This would be the right approach, I think.
-- 
Francisco Vila. Badajoz (Spain)
www.paconet.org , www.csmbadajoz.com


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


Re: Slur shapes

2010-03-05 Thread David Stocker
You have to ctrl.-click on the printed example to see the underlying 
code in a separate browser tab or window, then you can copy and paste 
the code which will yield the result in LilyPond.


David

On 03/04/2010 09:21 AM, Mats Bengtsson wrote:
It seems that you have looked at the snippet 
http://lsr.dsi.unimi.it/LSR/Item?id=639
The command \shapeSlur which is used in this example is not included 
in LilyPond by default, but is rather defined within the example file 
itself. To use it, you have to copy the lines from "shapeSlur =" down 
to "cords))" into the top of your own .ly file.


   /Mats

Phil Holmes wrote:
If I use the snippet attached, the slur over the notes goes way 
higher than I'd want and makes the stave spacing in my score poor.  
I've tried using:


\shapeSlur #'(x1 y1 x2 y2 x3 . .x4 y4)   [well, actually \shapeSlur 
#'(0 -2.5 -1 3.5 0 0 0 -2.5) ]


but get an error:

error: unknown escaped string: `\shapeSlur'

Does anyone have any ideas on how to get a less extreme shape to the 
slur, please?


--
Phil Holmes


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




--
David Stocker
804-598-3762
http://notesettersinc.com

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


Re: \include and alterations

2010-03-05 Thread Federico Bruni
Il giorno Fri, 5 Mar 2010 18:32:56 +0100
Francisco Vila  ha scritto:

> >> file1.ly
> >>
> >> \version "2.13" 
> 
> \include "nederlands.ly"
> 
> This would be the right approach, I think.


Yes, of course. Stupid me..

I thaught \include "english" was enabled just in the first file,
instead it's "propagated" to the second file.
I hope one day I'll understand the logic of \include ;-)
___
lilypond-user mailing list
lilypond-user@gnu.org
http://lists.gnu.org/mailman/listinfo/lilypond-user


Re: is \partial counted as a bar?

2010-03-05 Thread Graham Percival
On Sat, Mar 06, 2010 at 01:32:41AM +0800, Seng Hin Yew wrote:
>I'm having a problem that lilypond will exclude the \partial bar in bar
>counting. This \partial i meant was the first bar of a score. How to make
>LP calculate it as a first bar?

This is not typical notation, but if you want to do that, the
simplest way would be to put:
  \set Score.BarNumber = #2
at the beginning of your piece.

(I'm not 100% about the exact syntax, nor whether you want to
start at bar 1 or bar 2, but that's the basic idea)

Cheers,
- Graham


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


Re: is \partial counted as a bar?

2010-03-05 Thread Xavier Scheuer
2010/3/5 Seng Hin Yew :

> I'm having a problem that lilypond will exclude the \partial bar in
> bar counting. This \partial i meant was the first bar of a score.
> How to make LP calculate it as a first bar?

You could also not use \partial and start your first measure with
spacer rests (s4 ...).

Of course it must also have some drawbacks...

Cheers,
Xavier

-- 
Xavier Scheuer 


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


Re: Dumb Emacs lilypond-mode question

2010-03-05 Thread Arjan Bos

On 28 feb 2010, at 08:11, James Bailey wrote:

> If I remember correctly, GUI apps don't by default load your $PATH, there's a 
> trick somewhere to get them to do it, I just don't remember where or how. But 
> that may be what you need.

The trick is not very simple. To have full control over your environment 
variables, like $PATH,  you need the file environment.plist in the ~/.MacOSX 
directory.

Here's my environment.plist. Please adjust it to your settings, because using 
it unmodified is asking for trouble. After changing it, you need to log out an 
log in to effectuate those changes.


environment.plist
Description: Binary data


However, this method can interfere with desktop apps that want some default 
library, instead one on your modified path. So what I do most of the time is to 
open a Terminal.app and issue the `open /Applications/Emacs.app' command. This 
gives me a GUI Emacs with terminal environment.


HTH,
Arjan

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


Re: Dumb Emacs lilypond-mode question

2010-03-05 Thread Arjan Bos

On 28 feb 2010, at 06:46, Tim McNamara wrote:

> I've had lilypond-mode working in Emacs for a year now, using Carbon Emacs on 
> Mac OS X 10.4.  Works great, kuds to whomever wrote the mode.  I just built 
> the latest Emacs 23.1 to give it a try; it initially didn't work with 
> Lilypond at all until I remembered I had to add the lilypond-mode .el files 
> to site-lisp inside Emacs.app.  So, did that and lilypond-mode is 
> automatically loaded when I open a .ly file.  Yay.  Everything looks fine, 
> syntax coloring works, etc.
> 
> However, I can't compile.  C-c C-l results in "Compilation exited abnormally 
> with code 127" (paraphrasing from memory here; there's also a /bin/bash 
> complaint too).  Interestingly C-c C-s launches the designated PDF viewer 
> (Preview) just fine, if I open a .ly file that has already been compiled and 
> has a rendered PDF already.
> 
> This is not a new issue, when I tried to set up Carbon Emacs about a year ago 
> I had the same problem... but I can't remember the fix and hence that is the 
> "dumb" part of my question. I haven't been able to track the fix down in the 
> archives of the lilypond-user list, which is where I got the fix last year 
> IIRC.  Can anybody point me in the right direction?

Tim,

You can also customize Lilypond `M-x customize-group Lilypond' and change the 
`Lilypond lilypond Command' to something on your GUI path.

HTH,
Arjan

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


Re: is \partial counted as a bar?

2010-03-05 Thread Graham Percival
On Sat, Mar 06, 2010 at 02:55:29AM +0800, Seng Hin Yew wrote:
>On Sat, Mar 6, 2010 at 2:31 AM, Graham Percival 
>wrote:
> 
>  (I'm not 100% about the exact syntax, nor whether you want to
>  start at bar 1 or bar 2, but that's the basic idea)
> 
>I'm copying music from a pdf file source from the internet. That means
>other software using the non-standard bar calculation.
>The command "\set Score.BarNumber = #2" gives me the following error:
> 
> "warning: type check for `BarNumber' failed; value `2' must be of type
>`list'"

I missed the word "certain" above.  "I'm not 100% about the exact
syntax".

Read the manual to see how to set the bar number.

- Graham


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


Re: is \partial counted as a bar?

2010-03-05 Thread Xavier Scheuer
> I missed the word "certain" above.  "I'm not 100% about the exact
> syntax".
>
> Read the manual to see how to set the bar number.

\set Score.currentBarNumber = #2

http://lilypond.org/doc/v2.12/Documentation/user/lilypond/Bars#Bar-numbers

;)

--
Xavier Scheuer 


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


Re: Vertical dashed line conecting notes

2010-03-05 Thread Neil Thornock
This may be more cumbersome than you want, but it's what I have used.
It could be "scheme"-ified to dodge having to write all this out every
time, but here it is anyway.

\once \override TextSpanner #'extra-offset = #'(0 . -5)
\once \override TextSpanner #'(bound-details right padding) = #9
\once \override TextSpanner #'rotation = #'(90 -1 0)
c'\startTextSpan c' c' c' c' c'\stopTextSpan


Best
Neil


On Thu, Mar 4, 2010 at 6:50 PM, Caio Barros  wrote:
> That looked very nice, but I still think that dashed lines work better
> because it is already used by other composers (like Stockhausen to quote a
> famous name) and it is not confused with anything else like a barline or a
> glissando.
> I got my problem solved with other solution, but I still would like to see
> this done.
>
> 2010/3/4 Robin Bannister 
>>
>> Here is an example of the arpeggio approach (not dashed).
>>
>> Cheers,
>> Robin
>>
>>
>
>
> ___
> lilypond-user mailing list
> lilypond-user@gnu.org
> http://lists.gnu.org/mailman/listinfo/lilypond-user
>
>



-- 
Neil Thornock, D.M.
Check out the newly designed website!
http://neilthornock.net
Assistant Professor of Music
Composition/Theory
Brigham Young University


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


Re: dynamic and midi velocity

2010-03-05 Thread David Raleigh Arnold
On Thursday 04 March 2010 18:36:01 Philippe Hezaine wrote:
> Martin Tarenskeen a écrit :
> > On Thu, 4 Mar 2010, David Raleigh Arnold wrote:
> >> So why on earth is conversion from velocity to volume in decibels an
> >> issue?  If you are using ppp pp p mp mf f ff fff why convert at all?
> >> Just use velocity.  Regards, daveA
> >
> > That was not the issue being discussed here.
> >
> > When we are talking about "Velocity" and "Volume" we are talking - at
> > least in this thread - about two different specific MIDI messages.
> >
> > Velocity is a 7 bit value (0~127) that is part of a MIDI Note-On or MIDI
> > Note-Off message. Each single note has such a value in a MIDI stream.
> >
> > Volume is one of the MIDI Control Change messages, Nr. 7 to be exactly.
> > These can not be specified for each single note, but for each of the 16
> > MIDI channels.
> >
> > Velocity and Volume are used for different purposes in MIDI sequencers
> > and MIDI files.
> >
> > Currently if Lilypond scores are exported as MIDI files, the ppp mf ff
> > and so on are written as MIDI Volume values, not as MIDI Velocity values.
> >
> > In many cases MIDI Velocity messages are more suitable to translate such
> > dynamics into MIDI. That's why people are interested in that conversion
> > script. (including me)
> 
> Here are excerpts of discussions with Dominic Sacré when I used
> mididings instead of midicomp.
> 
> "The problem you're probably noticing here is that CC7 (and all other
> controllers) always pertain to a whole MIDI channel. The only way to
> have two notes at the same time on the same channel, but with different
> volumes, is to use the note-on velocities (as you know)."
> 
> 
> "The volume controller doesn't interact with individual notes at all. It
> just changes the volume immediately, affecting all notes on the
> respective channel, even those which are already playing at that time."
> 
> 
> "... 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."
> 
> Hope this helps to understand some differences between CC7 (volume) and
> velocities.
> Cheers.
> 

It couldn't be simpler.

Ideally the volume should be preset for each instrument according to
ratios expressing the relative natural loudness of the instrument, IOW
set it and forget it, and only velocity should be used for dynamics.  That is 
obviously the purpose of the design.  Why fight it?  No good can come from 
twiddling the volume in the middle of the performance.  Regards, daveA

-- 
For beginners: very easy guitar music, solos, duets, exercises. Early
intermediate guitar solos. One best scale set for all guitarists.
http://www.openguitar.com/scalescomparison.html ::: plus new and
better chord and arpeggio exercises.  http://www.openguitar.com 


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