Cadenza question

2006-05-12 Thread Rick Hogg
How do I get my cadenzas to maintain bar numbers?  LilyPond halts numbering bars until after I turn off the cadenza, and I don't want that.  Example:bar 55 | cadenza | bar 56I want:bar 55 | (bar 56 cadenza) | bar 57Thanks in advance!
		How low will we go? Check out Yahoo! Messenger’s low  PC-to-Phone call rates.___
lilypond-user mailing list
lilypond-user@gnu.org
http://lists.gnu.org/mailman/listinfo/lilypond-user


Re: Scheme book?

2006-05-12 Thread Pedro Kröger
"Rick Hansen (aka RickH)" <[EMAIL PROTECTED]> writes:

> Is this the best book to learn Scheme?

The Scheme Programming Language [1] and Teach Yourself Scheme in Fixnum
Days [2] are available online and are good, fast-paced introductions to
scheme if you already know how to program.

How to Design Programs [3] is a more general book, and like SICP [4] has
more to do with ideas about process and computation then with the
language itself (i.e. syntax and the like). if you know how to program,
HTDP may be a litte boring, but SICP will be mind blowing if you are an
experienced programmer.

Pedro Kröger

Footnotes: 
[1] http://www.scheme.com/tspl3/

[2] http://www.ccs.neu.edu/home/dorai/t-y-scheme/t-y-scheme-Z-H-1.html

[3] http://www.htdp.org/

[4] http://mitpress.mit.edu/sicp/full-text/book/book.html



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


Re: Two questions: slashes and rhythmic cues

2006-05-12 Thread Paul Scott

Graham Percival wrote:


On 12-May-06, at 10:33 AM, Stan Mulder wrote:

But when the parts are transposed the slashes move all over the place 
for the Bb and Eb instruments. Is there are way to keep the slash 
exactly on a certain note and ignore the transposition?



I was about to ask the same question.
As it happens, this is part of an example in 9.2.6 Defining new 
contexts.  You should be able to figure out how to extract the 
portions that you need.
Thanks.   It looks like a bit of work but less than what I did to solve 
this on my own.


Great new manual!!!  Thanks for all of your work!

Paul Scott



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


Re: Scheme book?

2006-05-12 Thread Rick Hansen (aka RickH)

Thanks Nicolas



Nicolas Sceaux wrote:
> 
> "Rick Hansen (aka RickH)" <[EMAIL PROTECTED]> writes:
> 
>> Is this the best book to learn Scheme?
>>
>> The Scheme Programming Language : Third Edition by: R. Kent Dybvig
> 
> I cannot comment on it.
> 
>> Any others (that are not real expensive) recommended?
> 
> HTDP and SICP are available on-line:
> 
>   
>   
> 
> 
> ___
> lilypond-user mailing list
> lilypond-user@gnu.org
> http://lists.gnu.org/mailman/listinfo/lilypond-user
> 
> 

--
View this message in context: 
http://www.nabble.com/Scheme-book--t1608678.html#a4363748
Sent from the Gnu - Lilypond - User forum at Nabble.com.



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


Re: Scheme book?

2006-05-12 Thread Nicolas Sceaux
"Rick Hansen (aka RickH)" <[EMAIL PROTECTED]> writes:

> Is this the best book to learn Scheme?
>
> The Scheme Programming Language : Third Edition by: R. Kent Dybvig

I cannot comment on it.

> Any others (that are not real expensive) recommended?

HTDP and SICP are available on-line:

  
  


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


Re: Using Scheme

2006-05-12 Thread Nicolas Sceaux

Mats Bengtsson <[EMAIL PROTECTED]> writes:

> Trent Johnston wrote:
>
>>Sorry I should have been a bit more specific before...
>>
>>I tried using
>>
>>manBeam = #(define-music-function (parser location beg end) (number?
>>number?)
>> #{ \once \override Beam #'positions = #'($beg . $end) #} )
>>

> Nicolas recently answered a closely related question.
> One solution should be to replace
> #'($beg . $end)
> by
> (cons $beg $end)

To Trent:
You need to understand that a scheme form preceded by a quote (that's
called a quoted form) is not evaluated. Thus, something like 
'(var1 . var2) evaluates to that, (var1 . var2), eg a cons cell
containing two symbols, var1 and var2. But what you want is a cons cell
with two numbers, the value of the variables var1 and var2. So you
should not quote the form, so that the variables should be evalutated.
Instead, you make the cons cell using the function `cons':
  (cons var1 var2) ==> (3 . 6) 
supposing that var1 and var2 respectively evaluate to 3 and 6.

  manBeam = 
  #(define-music-function (parser location beg end)
  (number? number?)
#{ \once \override Beam #'positions = #(cons $beg $end) #})

  \manBeam #3 #6

or:

  manBeam =
  #(define-music-function (parser location beg-end)
  (cons?)
#{ \once \override Beam #'positions = #$beg-end #})

  \manBeam #'(3 . 6)
  \manBeam #(cons 3 6)

nicolas


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


Re: Two questions: slashes and rhythmic cues

2006-05-12 Thread Graham Percival


On 12-May-06, at 10:33 AM, Stan Mulder wrote:

But when the parts are transposed the slashes move all over the place 
for the Bb and Eb instruments. Is there are way to keep the slash 
exactly on a certain note and ignore the transposition?


As it happens, this is part of an example in 9.2.6 Defining new 
contexts.  You should be able to figure out how to extract the portions 
that you need.


 Also, that symbol should not be a playable one. Is there a way to 
differentiate it from a repeat slash marking so as to not have it play 
in the midi output?


I have no idea about this, though.

Cheers,
- Graham



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


midi2ly and MacOSX 10.4.6 PPC

2006-05-12 Thread Mark Anderson

Hi

Has any one built the midi2ly and etf2ly tools for PPC MacOSX 10.4.6  
that they would be willing to send to me?  MacOS X Intel versions  
would also be handy as I intend to upgrade sometime later this year.


Thanks a lot,

Mark



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


Re: Which version of Lilypond to use?

2006-05-12 Thread Stan Mulder

Graham Lloyd wrote:

Gentlemen,
Which version of Lilypond should I useor can I use...on my iMac OS X 10.1.5?

Thanks,
Graham


I think it's best to use the latest stable version if it's available for 
your system. I'm on Linux and my distro installs version 2.6.3 as a 
systemwide default, but I was able to download the latest 2.8.x which 
installed itself in my home directory and that works really well. I see 
there is package available for OS/X here:


http://lilypond.org/web/install/#2.8


Have you tried it?


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


Two questions: slashes and rhythmic cues

2006-05-12 Thread Stan Mulder
Let me try posting this again. Previously post got attached to another 
thread...


I've read the archives and see people discussing this but not sure 
anything was decided. I'm writing a jazz lead sheet and need slashes 
with chords over them. It's the slashes that I'm having a problem with. 
I found that I could use the following:


\override NoteHead #'style = #'slash
\override Stem #'transparent = ##t
g4 g g g
g g g g

But when the parts are transposed the slashes move all over the place 
for the Bb and Eb instruments. Is there are way to keep the slash 
exactly on a certain note and ignore the transposition? Also, that 
symbol should not be a playable one. Is there a way to differentiate it 
from a repeat slash marking so as to not have it play in the midi output?




The second question regards rhythmic cues, smallish notes that would 
appear in or above the staff indicating rhythmic "hits" or "kicks", but 
again this would only indicate rhythm and not be a playable note in midi 
output. It should also not be transposable.


Stan



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


Which version of Lilypond to use?

2006-05-12 Thread Graham Lloyd
Gentlemen,
Which version of Lilypond should I useor can I use...on my iMac OS X 10.1.5?

Thanks,
Graham



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


Scheme book?

2006-05-12 Thread Rick Hansen (aka RickH)

Is this the best book to learn Scheme?

The Scheme Programming Language : Third Edition
by: R. Kent Dybvig

http://www.amazon.com/gp/product/0262541483/qid=1147450224/sr=1-1/ref=sr_1_1/102-0386747-3623321?s=books&v=glance&n=283155

Any others (that are not real expensive) recommended?

thanks
Rick


--
View this message in context: 
http://www.nabble.com/Scheme-book--t1608678.html#a4361071
Sent from the Gnu - Lilypond - User forum at Nabble.com.



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


Scheme book?

2006-05-12 Thread Rick Hansen (aka RickH)

Is this the best book to learn Scheme?

The Scheme Programming Language : Third Edition
by: R. Kent Dybvig

http://www.amazon.com/gp/product/0262541483/qid=1147450224/sr=1-1/ref=sr_1_1/102-0386747-3623321?s=books&v=glance&n=283155

Any others (that are not real expensive) recommended?

thanks
Rick


--
View this message in context: 
http://www.nabble.com/Scheme-book--t1608676.html#a4361069
Sent from the Gnu - Lilypond - User forum at Nabble.com.



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


Two questions: slashes and rhythmic cues

2006-05-12 Thread Stan Mulder
I've read the archives and see people discussing this but not sure 
anything was decided. I'm writing a jazz lead sheet and need slashes 
with chords over them. It's the slashes that I'm having a problem with. 
I found that I could use the following:


\override NoteHead #'style = #'slash
\override Stem #'transparent = ##t
g4 g g g
g g g g

But when the parts are transposed the slashes move all over the place 
for the Bb and Eb instruments. Is there are way to keep the slash 
exactly on a certain note and ignore the transposition? Also, that 
symbol should not be a playable one. Is there a way to differentiate it 
from a repeat slash marking so as to not have it play in the midi output?




The second question regards rhythmic cues, smallish notes that would 
appear in or above the staff indicating rhythmic "hits" or "kicks", but 
again this would only indicate rhythm and not be a playable note in midi 
output. It should also not be transposable.


Stan


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


Alignment bug?

2006-05-12 Thread lilypond
I've just copied the "commonly tweaked properties" alignment example from p174 
of the 2.8 manual (section 8.1.3)

If I don't alter the alignment, my text is centre-justified. If I copy the 
example exactly, my text is right-justified, as expected.

If I change "right" to "left", it goes back to the centre default!

(Using the ?current cygwin version, 2.6.4)

Cheers,
Wol



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


Re: Using Scheme

2006-05-12 Thread Mats Bengtsson

Nicolas recently answered a closely related question.
One solution should be to replace
#'($beg . $end)
by
(cons $beg $end)

  /Mats

Trent Johnston wrote:


Sorry I should have been a bit more specific before...

I tried using

manBeam = #(define-music-function (parser location beg end) (number?
number?)
#{ \once \override Beam #'positions = #'($beg . $end) #} )

but whenever I try to use it

\manBeam #6 #6  --- I get or any other possible combinations

"ERROR: Wrong type (expecting real number): lilyvartmpb"


From what I can piece together from the documentation and the user-list I

think there is something more I need to do.. but can't figure that out.

Trent

- Original Message - 
From: "Paul Scott" <[EMAIL PROTECTED]>

To: "Trent Johnston" <[EMAIL PROTECTED]>
Cc: 
Sent: Friday, May 12, 2006 7:23 PM
Subject: Re: Using Scheme


| Trent Johnston wrote:
| > Thanks for your help Paul, but I was actually looking at Beam settings
| >
| > a way to simplify \once \override Beam #'positions = #'( number .
number )
| >
| I understood that.
| > I used the padText as an example but couldn't get it to work with the
above
| > example...
| >
| I didn't have a quick application like yours to test since haven't used
| beam settings but I was just trying to help you understand how variables
| work so you could create your 'posBeam' (or whatever you want to call
| it) definition from the padText example.
|
| A quick attempt (completely untested) would be
|
|  posBeam = #(define-music-function (parser location num1 num2)
(number? number?)
|  #{
|\once \override Beam #'position = #'( $num1 . $num2 )
|  #})
|
| Without testing I don't know whether you would apply it as:
|
| \posBeam #3 #2
| or
| \posBeam ( #3 . #2 )
| or something different.
|
| Paul
|
|


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




--
=
Mats Bengtsson
Signal Processing
Signals, Sensors and Systems
Royal Institute of Technology
SE-100 44  STOCKHOLM
Sweden
Phone: (+46) 8 790 8463 
   Fax:   (+46) 8 790 7260
Email: [EMAIL PROTECTED]
WWW: http://www.s3.kth.se/~mabe
=



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


Re: lilypond-book

2006-05-12 Thread Mats Bengtsson

That's weird! Are you sure that you run latex and not pdflatex
(apparently, since you say that you convert from .tex to .dvi
also otherwise)? What TeX installation do you use? I have only
tried MikTeX on Windows, but TeXLive should work as well,
as far as I can understand.

  /Mats

bubba wrote:


Mats,

The specific error I'm getting is "LaTeX Error: Unknown graphics 
extension: .eps."  I've never tried to use graphics in my LaTeX 
documents before, so that's why I've never run into this before.  But, 
as far as just converting from .tex to .dvi to .ps to .pdf, I do that 
all the time without trouble.  Thanks again for your help and time.


~bubba





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


Re: Tutorial vs. actual printout

2006-05-12 Thread Graham Percival


On 11-May-06, at 3:57 PM, Kieren Richard MacMillan wrote:


Hi, Rick:


When I do it the measure is as wide as my page.  Why is that?


Try adding
\paper { ragged-right = ##t }


Thanks; I've added this info to the tutorial.

Cheers,
- Graham



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


Re: margin in sheet music lilypond-book

2006-05-12 Thread Graham Percival


On 9-May-06, at 2:58 AM, Lodewijk Koopman wrote:

So the width of the sheet music is correct; it's the same as 
\textwidth. When I
open the eps-files that make up the sheet music, I notice that they 
have a

margin on the left side, of 15pt.


Sorry, I can't help a lot, but something's better than nothing: try 
changing some of the properties described in 10.4.2 page formatting.  
In particular, I'm suspicious that this may be due to horizontal-shift; 
try setting that to 0.


Cheers,
- Graham



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


Re: lilypond-book

2006-05-12 Thread Mats Bengtsson

Just follow the instructions in the manual on how to
run latex, dvips and ps2pdf (actually, to be able to run
ps2pdf, you also need to add
C:\Program Files\LilyPond\usr\share\ghostscript\8.50\lib\
to the path).

  /Mats

bubba wrote:


Mats,

You have definately helped me.  I've now gotten lilypond-book to work 
- almost.  The good news is that it's now running and outputting 
files.  The bad news is that it's not outputting a .dvi file.  It 
seems like it's outputting everything else, though.  It even gives me 
a .psfonts file.  As far as I know, I've done everything just as you 
directed.  Is there something more I'm missing?


~bubba

On 5/11/06, *Mats Bengtsson* < [EMAIL PROTECTED] 
> wrote:


Unfortunately, there are some problems with lilypond-book, convert-ly,
midi2ly and some other utilities on Windows, since they are
implemented
using a scripting language called Python and the version of Python
which
is included in the LilyPond package is broken.

A workaround is described in
http://lists.gnu.org/archive/html/lilypond-user/2006-04/msg00363.html


However, with lilypond-book there are a couple of additional
problem in
Windows:

- The python version included with LilyPond will still interfere,
so you
have to
  run lilypond-book using the following command
python "C:\Program Files\LilyPond\usr\bin\lilypond-book.py" -o out
--psfonts myfile.lytex

- You have to run it twice. The first time you run it, it will end
with
an error
  message but if you just run the same command another time, it will
work fine.

   /Mats


bubba wrote:

>I've having trouble using lilypond-book.  I'm a brand new
lilypond user - I just
>installed it two days ago for the first time.  I can use lilypond
just fine, but
>I haven't been able to figure out how to use lilypond-book.  I'm
running Windows
>XP and lilypond 2.8.0.1 .  I've read through the
tutorial section on
>lilypond-book and the user manual section on it (although I
didn't see any
>difference between them).  I've tried different options.  I've
read through the
>mailing list archive - not much help for a complete newbie.  And,
I still
>haven't been able to get it to work.
>
>Overall, I think lilypond is awesome.  My brother is a musician
getting his
>masters/doctorate.  He's home for the summer and I fully intend
on getting him
>hooked on this program.  But, I want to get lilypond-book to work
first.  I
>would appreciate any pointers anyone can give me.
>
>~bubba
>
>
>
>___
>lilypond-user mailing list
> lilypond-user@gnu.org 
>http://lists.gnu.org/mailman/listinfo/lilypond-user
>
>

--
=
Mats Bengtsson
Signal Processing
Signals, Sensors and Systems
Royal Institute of Technology
SE-100 44  STOCKHOLM
Sweden
Phone: (+46) 8 790 8463
Fax:   (+46) 8 790 7260
Email: [EMAIL PROTECTED]

WWW: http://www.s3.kth.se/~mabe 
=





--
=
Mats Bengtsson
Signal Processing
Signals, Sensors and Systems
Royal Institute of Technology
SE-100 44  STOCKHOLM
Sweden
Phone: (+46) 8 790 8463 
   Fax:   (+46) 8 790 7260
Email: [EMAIL PROTECTED]
WWW: http://www.s3.kth.se/~mabe
=



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


Re: Beginners first attempt

2006-05-12 Thread Paul Scott

Colin Wilding wrote:

Hmmm... how about using hidden notes instead of spaces?
  

Sounds good!  Thanks,

Paul



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


Re: Beginners first attempt

2006-05-12 Thread Colin Wilding

Hmmm... how about using hidden notes instead of spaces?


Paul Scott-3 wrote:
> 
> 
> The next problem I sometimes miss is the ability to add a slur to a 
> shortcut in a similar manner.
> 
> Paul
> 
> 
> 
> ___
> lilypond-user mailing list
> lilypond-user@gnu.org
> http://lists.gnu.org/mailman/listinfo/lilypond-user
> 
> 
--
View this message in context: 
http://www.nabble.com/Beginners-first-attempt-t1575027.html#a4355712
Sent from the Gnu - Lilypond - User forum at Nabble.com.



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


Re: Using Scheme

2006-05-12 Thread Trent Johnston
thanx for all your help..


- Original Message - 
From: "Paul Scott" <[EMAIL PROTECTED]>
To: "Trent Johnston" <[EMAIL PROTECTED]>
Cc: 
Sent: Friday, May 12, 2006 7:44 PM
Subject: Re: Using Scheme


| Trent Johnston wrote:
| > Sorry I should have been a bit more specific before...
| >
| > I tried using
| >
| > manBeam = #(define-music-function (parser location beg end) (number?
| > number?)
| >  #{ \once \override Beam #'positions = #'($beg . $end) #} )
| >
| > but whenever I try to use it
| >
| > \manBeam #6 #6  --- I get or any other possible combinations
| >
| > "ERROR: Wrong type (expecting real number): lilyvartmpb"
| >
| > >From what I can piece together from the documentation and the user-list
I
| > think there is something more I need to do.. but can't figure that out.
| >
| Ok.  Hopefully Nicolas or someone will help.  Otherwise I may look
| further next week.
|
| Paul
|
|


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


Re: Using Scheme

2006-05-12 Thread Paul Scott

Trent Johnston wrote:

Sorry I should have been a bit more specific before...

I tried using

manBeam = #(define-music-function (parser location beg end) (number?
number?)
 #{ \once \override Beam #'positions = #'($beg . $end) #} )

but whenever I try to use it

\manBeam #6 #6  --- I get or any other possible combinations

"ERROR: Wrong type (expecting real number): lilyvartmpb"

>From what I can piece together from the documentation and the user-list I
think there is something more I need to do.. but can't figure that out.
  
Ok.  Hopefully Nicolas or someone will help.  Otherwise I may look 
further next week.


Paul



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


Re: Using Scheme

2006-05-12 Thread Trent Johnston
Sorry I should have been a bit more specific before...

I tried using

manBeam = #(define-music-function (parser location beg end) (number?
number?)
 #{ \once \override Beam #'positions = #'($beg . $end) #} )

but whenever I try to use it

\manBeam #6 #6  --- I get or any other possible combinations

"ERROR: Wrong type (expecting real number): lilyvartmpb"

>From what I can piece together from the documentation and the user-list I
think there is something more I need to do.. but can't figure that out.

Trent

- Original Message - 
From: "Paul Scott" <[EMAIL PROTECTED]>
To: "Trent Johnston" <[EMAIL PROTECTED]>
Cc: 
Sent: Friday, May 12, 2006 7:23 PM
Subject: Re: Using Scheme


| Trent Johnston wrote:
| > Thanks for your help Paul, but I was actually looking at Beam settings
| >
| > a way to simplify \once \override Beam #'positions = #'( number .
number )
| >
| I understood that.
| > I used the padText as an example but couldn't get it to work with the
above
| > example...
| >
| I didn't have a quick application like yours to test since haven't used
| beam settings but I was just trying to help you understand how variables
| work so you could create your 'posBeam' (or whatever you want to call
| it) definition from the padText example.
|
| A quick attempt (completely untested) would be
|
|  posBeam = #(define-music-function (parser location num1 num2)
(number? number?)
|  #{
|\once \override Beam #'position = #'( $num1 . $num2 )
|  #})
|
| Without testing I don't know whether you would apply it as:
|
| \posBeam #3 #2
| or
| \posBeam ( #3 . #2 )
| or something different.
|
| Paul
|
|


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


Re: Using Scheme

2006-05-12 Thread Paul Scott

Trent Johnston wrote:

Thanks for your help Paul, but I was actually looking at Beam settings

a way to simplify \once \override Beam #'positions = #'( number . number )
  

I understood that.

I used the padText as an example but couldn't get it to work with the above
example...
  
I didn't have a quick application like yours to test since haven't used 
beam settings but I was just trying to help you understand how variables 
work so you could create your 'posBeam' (or whatever you want to call 
it) definition from the padText example.


A quick attempt (completely untested) would be

posBeam = #(define-music-function (parser location num1 num2) (number? 
number?)
#{
  \once \override Beam #'position = #'( $num1 . $num2 )
#})

Without testing I don't know whether you would apply it as:

\posBeam #3 #2
or
\posBeam ( #3 . #2 )
or something different.

Paul



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


Re: Beginners first attempt

2006-05-12 Thread Paul Scott

Colin Wilding wrote:

Yes, I see your point.

What I meant, though, was that you cannot attach the markup *directly* to a
variable, e.g. as

 \gDown^\markup{ .. }

at least, I don't think you can.  It didn't work for me with the \downbow
anyway.
  

I agree.

<< { } { } >>  allowed me a lot of freedom in creating musical shortcuts.

The next problem I sometimes miss is the ability to add a slur to a 
shortcut in a similar manner.


Paul



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


Re: Using Scheme

2006-05-12 Thread Graham Percival


On 11-May-06, at 11:21 PM, Trent Johnston wrote:


\once \override Beam #'positions = #'( number . number )
 
using a shortcut say \manBeam and specify the numbers beginning and 
ending beam height. I want to use this to alter the height of beams 
that have accidentals in them or lengthen some shorter beams.

 
In 5.4 Advanced tweaks with scheme gives some information about using 
only the one variable as in the padText example.


Add another variable to the (parser location foo bar), and add a 
section (number? number?).


Cheers,
- Graham


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


Re: Beginners first attempt

2006-05-12 Thread Colin Wilding

Here you go then - my attempt at a structured version of your music:

%% start here

\version "2.8.1"
#(set-global-staff-size 17.17)

\paper {
#(define dump-extents #t)
indent = 0\mm
linewidth = 160\mm - 2.0 * 0.4\in
ragged-right = ##f
ragged-bottom = ##t
ragged-last-bottom = ##t
after-title-space = 1\mm%between title and first system
before-title-space = 1\mm   %between last system of one 
score and title of
next
}

\layout {
\context { \Lyrics \override LyricSpace #'minimum-distance = #1.2 }
}


\header {
  title = "Sister Golden Hair"
  composer = "America"
}

csmD = { 4 \downbow }
csmU = { 4 \upbow }
csmBar = { \csmD \csmD \csmD \csmU }
aD = {  4 \downbow }
aU = {  4 \upbow }
aBar = { \aD \aD \aD \aU }
eD = { 4 \downbow }
eU = { 4 \upbow }
eBar = { \eD \eD \eD \eU }
gsmD = { 4 \downbow }
gsmU = { 4 \upbow }
gsmBar = { \gsmD \gsmD \gsmD \gsmU }
bD = { 4 \downbow }
bU = { 4 \upbow }
bBar = { \bD \bD \bD \bU }
fsmD = { 4 \downbow }
fsmU = { 4 \upbow }
fsmBar = { \fsmD \fsmD \fsmD \fsmU }
esusD = { 4 \downbow }
esusU = { 4 \upbow }
asusD = { 4 \downbow }

%intro = { \csmBar \aBar \eBar \eBar \gsmBar }
intro = { \csmBar \aBar \eBar \eBar \gsmBar }

introChords = \chordmode { 
cis1:m a e e gis:m
}

verseIntro = { \gsmBar \csmBar \bBar \aBar \aBar }

verseChords = \chordmode { 
gis1:m cis:m b a a
e1 e gis:m gis:m
a e gis:m gis:m
a fis:m
cis2:m gis:m
a1 fis:m a
e2 e:sus4
e1
}

verseIntro = { \gsmBar \csmBar \bBar \aBar \aBar }

verse = {
\eBar \eBar \gsmBar \gsmBar
\aBar \eBar \gsmBar \gsmBar 
\aBar \fsmBar 
\csmD \csmU \gsmD \gsmU
\aD \aU \aD \aU
\fsmD \fsmU \fsmD \fsmU
\aD \aU \aD \aU
\eD \eU
\esusD \esusU
\eD \eU
\eD \eU
}

verseLyricsI = \lyricmode {
 Well I tried to make it Sunday.
 But I got so damn depressed
 that I set my sights on Monday
 and I got myself undressed.
 Im not ready for the altar,
 but I do agree theres times,
 when a woman sure can be a friend ofmine
}
verseLyricsII = \lyricmode  { 
Well I keep on thinking bout you
Sister Golden hair delight
And I just can't live without you
Cant you see it in my eyes
I've been one poor coresspondent
I've been too to hard to find
But it doesnt mean
You aint been on my mind
}

chorusChords = \chordmode { 
e2 r
b1 b a e b b a e
fis:m7
gis:m5+
a:9
}

chorus = {
\eD \eU r4 r4
\bBar
\bBar
\aBar
\eD \eU \eD \eU
\bBar
\bBar
\aBar
\eD \eU \eD \eU
1 \downbow
1 \downbow
1 \downbow
}


chorusLyrics = \lyricmode {
Will you meet me in the mid -- dle
%hyphenate words
Will you meet me in the _ air
%add skips
Will_you love me just a little
%Join words
Just enough to show you care
Well I tried to make it
I dont mind saying
I just cant take it.
}
outroChords = \chordmode { 
a2:sus4 a
b1 b a e b b a e b b a e
}

outro = {
\asusD \asusD \aD \aD
\bBar
\bBar
\aBar
\eD \eU \eD \eU
\bBar
\bBar
\aBar
\eD \eU \eD \eU
\bBar
\bBar
\aBar
\eD \eU \eD
}

\score {
<<
\new Staff { \introChords }
\new Staff { \intro }
>>
\header { piece = "Intro" }
}
\score {
<<
\new ChordNames { \verseChords }
\new Staff { 
\verseIntro \break
\new Voice = "sungVerse" { \verse }
}
\new Lyrics \lyricsto "sungVerse" { \verseLyricsI }
\new Lyrics \lyricsto "sungVerse" { \verseLyricsII }
>>

\header { piece = "Verse" }
}

\score {
<<
\new ChordNames { \chorusChords }
\new Staff { \new Voice = "sungChorus" { \chorus } }
\new Lyrics \lyricsto "sungChorus" { \chorusLyrics }
>>

\header { piece = "Chorus" }
}

\markup{ "Re-intro" }

\markup{ "Chorus" }

\score {
<<
\new ChordNames { \outroChords }
\new Staff { \outro }
>>
\header { piece = "Outro" }
}

\markup{ \center-align { \line { "C#m" }}}
\markup \fret-diagram-terse #"4-1-(;4-1;6-3;6-4;5-2;4-1-);"

\markup{ \center-align { \line { "A" }}}
\markup \fret-diagram-terse #"5-1-(;7;7;6;5-1;5-1-);"

%% End here

I don't imagine I have converted everything correctly but it should
demonstrate the principles.  I didn't know where they lyrics are meant to
go, so I have just included examples of how to move them around.  You could
usefully enter a key signature, too, I think.

Are you sure you want the chords displayed in full, 

Re: Using Scheme

2006-05-12 Thread Trent Johnston
Thanks for your help Paul, but I was actually looking at Beam settings

a way to simplify \once \override Beam #'positions = #'( number . number )

I used the padText as an example but couldn't get it to work with the above
example...

Trent

- Original Message - 
From: "Paul Scott" <[EMAIL PROTECTED]>
To: "Trent Johnston" <[EMAIL PROTECTED]>; 
Sent: Friday, May 12, 2006 5:32 PM
Subject: Re: Using Scheme


| Paul Scott wrote:
| > Trent Johnston wrote:
| >> Hello,
| >>
| >> I was wondering if someone could help me in using scheme to make a
| >> short cut.
| >>
| >> I'm trying to simplify:
| >>
| >> \once \override Beam #'positions = #'( number . number )
| >>
| >> using a shortcut say \manBeam and specify the numbers beginning and
| >> ending beam height. I want to use this to alter the height of beams
| >> that have accidentals in them or lengthen some shorter beams.
| >>
| >> In 5.4 Advanced tweaks with scheme gives some information about using
| >> only the one variable as in the padText example.
| > I'm not sure what corresponds to that in the 2.8.2 manual
| The online manual I was browsing just changed and now looks line the one
| you were referring to and I see that section.
|
| > but padText may exist because of help I got from Nicolas Sceaux.  Here
| > is my code for textPad.  You might be able to create what you want
| > from this:
| >
| > #(use-modules (ice-9 optargs))
| > #(define* (textPad padding #:optional once?)
| >  (ly:export   ; this is necessary for using the expression
| >   ; directly inside a block
| >   (if once?
| >#{ \once \override TextScript #'padding = #$padding #}
| >#{ \override TextScript #'padding = #$padding #})))
| This suggests I should be able to simplify my (Nicolas') code as per the
| manual.
|
| To possibly help with your question 'padding' in the first line
|
| padText = #(define-music-function (parser location padding) (number?)
|
| indicates a numerical variable as reinforced by the '(number?)'
| You can add more variables (say var2) by adding it/them after the position
of 'padding'
| and changing (number?) to (number? number? ... )
|
| var2 would be referred to in the code as $var2
|
| HTH
|
| I don't time to do any more for a day or two.
|
| Paul
|
|


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


Re: Beginners first attempt

2006-05-12 Thread Colin Wilding


Yes, I see your point.

What I meant, though, was that you cannot attach the markup *directly* to a
variable, e.g. as

 \gDown^\markup{ .. }

at least, I don't think you can.  It didn't work for me with the \downbow
anyway.

Colin

--
View this message in context: 
http://www.nabble.com/Beginners-first-attempt-t1575027.html#a4354420
Sent from the Gnu - Lilypond - User forum at Nabble.com.



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


Re: Using Scheme

2006-05-12 Thread Paul Scott

Paul Scott wrote:

Trent Johnston wrote:

Hello,
 
I was wondering if someone could help me in using scheme to make a 
short cut.
 
I'm trying to simplify:
 
\once \override Beam #'positions = #'( number . number )
 
using a shortcut say \manBeam and specify the numbers beginning and 
ending beam height. I want to use this to alter the height of beams 
that have accidentals in them or lengthen some shorter beams.
 
In 5.4 Advanced tweaks with scheme gives some information about using 
only the one variable as in the padText example.

I'm not sure what corresponds to that in the 2.8.2 manual
The online manual I was browsing just changed and now looks line the one 
you were referring to and I see that section.


but padText may exist because of help I got from Nicolas Sceaux.  Here 
is my code for textPad.  You might be able to create what you want 
from this:


#(use-modules (ice-9 optargs))
#(define* (textPad padding #:optional once?)
 (ly:export   ; this is necessary for using the expression
  ; directly inside a block
  (if once?
   #{ \once \override TextScript #'padding = #$padding #}
   #{ \override TextScript #'padding = #$padding #})))
This suggests I should be able to simplify my (Nicolas') code as per the 
manual.


To possibly help with your question 'padding' in the first line

padText = #(define-music-function (parser location padding) (number?)

indicates a numerical variable as reinforced by the '(number?)'
You can add more variables (say var2) by adding it/them after the position of 'padding' 
and changing (number?) to (number? number? ... )


var2 would be referred to in the code as $var2

HTH

I don't time to do any more for a day or two.

Paul



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


Re: Using Scheme

2006-05-12 Thread Paul Scott

Trent Johnston wrote:

Hello,
 
I was wondering if someone could help me in using scheme to make a 
short cut.
 
I'm trying to simplify:
 
\once \override Beam #'positions = #'( number . number )
 
using a shortcut say \manBeam and specify the numbers beginning and 
ending beam height. I want to use this to alter the height of beams 
that have accidentals in them or lengthen some shorter beams.
 
In 5.4 Advanced tweaks with scheme gives some information about using 
only the one variable as in the padText example.
I'm not sure what corresponds to that in the 2.8.2 manual but padText 
may exist because of help I got from Nicolas Sceaux.  Here is my code 
for textPad.  You might be able to create what you want from this:


#(use-modules (ice-9 optargs))
#(define* (textPad padding #:optional once?)
 (ly:export   ; this is necessary for using the expression
  ; directly inside a block
  (if once?
   #{ \once \override TextScript #'padding = #$padding #}
   #{ \override TextScript #'padding = #$padding #})))


Paul Scott



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