Re: Arpeggios from chordmode?

2011-08-01 Thread Gilles



Is there as simple way to get chord mode to return:

c4 e g

instead of

4



Is something like that what you wanted ?


#(use-modules (ice-9 receive))
%% see http://www.gnu.org/software/guile/manual/guile.html#Multiple-Values

#(define (chords-list->seq-list lst)
(receive (notes others)
 (partition (lambda(x) (ly:duration? (ly:music-property x
'duration)))
lst)
 (map (lambda(x)
(let ((elts (list x)))
  (if (pair? others)(begin
 (set! elts (append elts others))
 (set! others '(
  (make-music 'EventChord 'elements elts)))
   notes)))

chordsToSeq = #(define-music-function (parser location music)(ly:music?)
(music-map
(lambda (x)
  (if (eq? 'EventChord (ly:music-property x 'name))
(make-music 'SequentialMusic 'elements
(chords-list->seq-list (ly:music-property x 'elements)))
x))
music))


music = \chordmode {d4:min7\f g:7 c:maj7}

\new Voice \chordsToSeq \music
%%

Gilles<>___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: Transparent Measure

2011-08-01 Thread Stefan Thomas
Dear Shelby,
I would try it with \stopStaff and and \startStaff
I think You have something in mind like one can find in some scores of
Lutoslwaski, don't You?


> I'd like to be able to insert a transparent measure (remove the staff
> lines) at
> any point in a staff.
>
> I've tried:
>
> \overrride StaffSymbol #'transparent = ##t
>
> But it only works at the beginning of a Staff, and cannot be changed back
> to
> engrave the lines.
>
___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Lilypond with the Command Line

2011-08-01 Thread ctesta
Hello,

I am wondering if it is possible to compile a lilypond source file on the
command line but pass arguments on the command line. For example let's say
the source file by default prints as a treble clef. Could you pass a
command on the command line and tell Lilypond to process the source file
and change it to a bass clef instead? without changing the source file
permanently? Could this be done using the Scheme evaluate function?

http://lilypond.org/doc/v2.12/Documentation/user/lilypond-program/Command-line-options-for-lilypond#Command-line-options-for-lilypond

Please let me know if this is possible and if so where I might find some
info on it.

Thanks,
Carl


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


Re: Lilypond with the Command Line

2011-08-01 Thread Graham Percival
On Mon, Aug 01, 2011 at 03:31:21PM -0400, cte...@wesleyan.edu wrote:
> I am wondering if it is possible to compile a lilypond source file on the
> command line but pass arguments on the command line. For example let's say
> the source file by default prints as a treble clef. Could you pass a
> command on the command line and tell Lilypond to process the source file
> and change it to a bass clef instead? without changing the source file
> permanently? Could this be done using the Scheme evaluate function?

Yes.  Use \tag, and look on LSR for more information.  There's 1
or 2 examples of this there.

Cheers,
- Graham

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


Re: Renaissance lute and tab

2011-08-01 Thread Neil Puttock
2011/7/24 Janek Warchoł :

> Hmm, does this work or is this just a proof-of-concept?  I wasn't able
> to determine it after reading
> http://www.gnu.org/software/guile/manual/html_node/Exactness.html

I suppose it might break if users try to make pitches with really
extreme real numbers; it could cause a numerical overflow if int64 is
too small to hold the numerator or denominator.

> If this works, should i wrap it into a patch and put it on Rietveld or
> will you do it yourself?

Well, there is an alternative which might be preferable: only allow
fractions as the third argument (via the predicate ly_is_fraction).

Cheers,
Neil

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