Re: adding rests automatically

2008-10-13 Thread Trevor Daniels

Hi Eyolf

No one has looked at Chapter 6 yet, but I agree this could be improved. 
I'll do it now.


Trevor

- Original Message - 
From: Eyolf Østrem [EMAIL PROTECTED]

To: lilypond-user lilypond-user@gnu.org
Sent: Saturday, October 11, 2008 6:45 PM
Subject: Re: adding rests automatically



On 11.10.2008 (11:01), Carl D. Sorensen wrote:

You can read about music functions in the documentation.  See the 
notation

reference for 2.11, section 6.  Music functions.


The paradigm in the beginning is confusing:

function =
   #(define-music-function (parser location var1 var2... )
   (var1-type? var2-type?...)
 #{
   ...music...
 #})

where

argiith variable

argi-type?  type of variable


It is clear what it means, of course, but a mathematician would be 
troubled

by a where clause which defines arguments which are not present in the
equation, and a musician may be confused by it, at least intially.

Eyolf

--
___  __Frobtech, Inc.
   /__/\ ___/_/\
   \  \ \   / /\\
\  \ \_/__   /  \ If you've got the job,
_\  \ \  /\_/___ \ we've got the frob.
   // \__\/ /  \   /\ \
   ___//___/\ / _\/__
  /  / \   \// //\
   __/  /   \   \  // // _\__
  / /  / \___\// // /   /\
 /_/__/___/ // /___/  \
 \ \  \___\ \\ \   \  /
  \_\  \  /  /\\ \\ \___\/
 \  \/  /  \\ \\  /
  \_/  /\\ \\/
   /__/  \\  /
   \   _  \  /_\/
\ //\  \/ \  \ \
 //  \  \  /   \  \ \
 \\  /___\/ \  \ \
  \\/\__\/


___
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


adding rests automatically

2008-10-11 Thread Stefan Thomas
Dear Lilypond users,
is there possibilitiy to add the rests in the below quoted example not by
hand but automatically?

\version 2.11.49
restmusic = { d8 r d' r fis r d' r  e r d' r a r cis' r }
\new Staff { \clef bass \key d \major \restmusic }
___
lilypond-user mailing list
lilypond-user@gnu.org
http://lists.gnu.org/mailman/listinfo/lilypond-user


Re: adding rests automatically

2008-10-11 Thread Graham Percival
Yes; use a music function.  See the docs.

Cheers,
- Graham


On Sat, 11 Oct 2008 17:51:33 +0200
Stefan Thomas [EMAIL PROTECTED] wrote:

 Dear Lilypond users,
 is there possibilitiy to add the rests in the below quoted example
 not by hand but automatically?
 
 \version 2.11.49
 restmusic = { d8 r d' r fis r d' r  e r d' r a r cis' r }
 \new Staff { \clef bass \key d \major \restmusic }
 


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


Re: adding rests automatically

2008-10-11 Thread Carl D. Sorensen



On 10/11/08 9:51 AM, Stefan Thomas [EMAIL PROTECTED]
wrote:

 Dear Lilypond users,
 is there possibilitiy to add the rests in the below quoted example not by hand
 but automatically?

 \version 2.11.49
 restmusic = { d8 r d' r fis r d' r  e r d' r a r cis' r }
 \new Staff { \clef bass \key d \major \restmusic }


This can be done through the use of a music function.  You would just pass
the notes to the function, and it would return the rest of the music.

You can read about music functions in the documentation.  See the notation
reference for 2.11, section 6.  Music functions.

Carl



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


Re: adding rests automatically

2008-10-11 Thread Eyolf Østrem
On 11.10.2008 (11:01), Carl D. Sorensen wrote:

 You can read about music functions in the documentation.  See the notation
 reference for 2.11, section 6.  Music functions.

The paradigm in the beginning is confusing:

function =
#(define-music-function (parser location var1 var2... )
(var1-type? var2-type?...)
  #{
...music...
  #})

where

argiith variable

argi-type?  type of variable  


It is clear what it means, of course, but a mathematician would be troubled
by a where clause which defines arguments which are not present in the
equation, and a musician may be confused by it, at least intially.

Eyolf

-- 
 ___  __   Frobtech, Inc.
/__/\ ___/_/\  
\  \ \   / /\\
 \  \ \_/__   /  \ If you've got the job,
 _\  \ \  /\_/___ \ we've got the frob.
// \__\/ /  \   /\ \
___//___/\ / _\/__
   /  / \   \// //\
__/  /   \   \  // // _\__
   / /  / \___\// // /   /\
  /_/__/___/ // /___/  \
  \ \  \___\ \\ \   \  /
   \_\  \  /  /\\ \\ \___\/
  \  \/  /  \\ \\  /
   \_/  /\\ \\/
/__/  \\  /
\   _  \  /_\/
 \ //\  \/ \  \ \
  //  \  \  /   \  \ \
  \\  /___\/ \  \ \
   \\/\__\/


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