Re: Nope...still don't get the new spacing variables at all

2011-03-04 Thread Phil Holmes



--
Phil Holmes


- Original Message - 
From: Janek Warchoł lemniskata.bernoull...@gmail.com

To: James Lowe james.l...@datacore.com
Cc: lilypond-user lilypond-user@gnu.org
Sent: Thursday, March 03, 2011 10:24 PM
Subject: Re: Nope...still don't get the new spacing variables at all


2011/3/3 James Lowe james.l...@datacore.com:
 So can someone tell me (and they don't have to tell me numbers or tell 
 me

 where to put the variable - I get that bit) WHICH flippin'
 staff-staff-thingy-dooby variable I am supposed to use?



Just off the top of my head - maybe score-system-spacing
#'basic-distance is what you need to change?



HTH,
Janek


I'd agree that's what it should be.  But it doesn't seem to work.  I think 
that's a bug, and it could be argued it's a regression, since you could 
space scores apart in 2.12.


James - workaround which does work:

\header {}

\paper {
score-markup-spacing #'minimum-distance = #50
}

MusicMain = { \relative c'' { c4 c c c } }

MusicCoda = { \relative c'' { b4 b b b } }

\score {
 \MusicMain
}

\markup {   }

\score {
 \MusicCoda
}



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


Re: Nope...still don't get the new spacing variables at all

2011-03-04 Thread Phil Holmes

And repeated, without my sig at the top :-(

- Original Message - 
From: Phil Holmes m...@philholmes.net
To: Janek Warchoł lemniskata.bernoull...@gmail.com; James Lowe 
james.l...@datacore.com

Cc: lilypond-user lilypond-user@gnu.org
Sent: Friday, March 04, 2011 9:09 AM
Subject: Re: Nope...still don't get the new spacing variables at all



- Original Message - 
From: Janek Warchoł lemniskata.bernoull...@gmail.com

To: James Lowe james.l...@datacore.com
Cc: lilypond-user lilypond-user@gnu.org
Sent: Thursday, March 03, 2011 10:24 PM
Subject: Re: Nope...still don't get the new spacing variables at all


2011/3/3 James Lowe james.l...@datacore.com:
 So can someone tell me (and they don't have to tell me numbers or tell 
 me

 where to put the variable - I get that bit) WHICH flippin'
 staff-staff-thingy-dooby variable I am supposed to use?



Just off the top of my head - maybe score-system-spacing
#'basic-distance is what you need to change?



HTH,
Janek


I'd agree that's what it should be.  But it doesn't seem to work.  I think 
that's a bug, and it could be argued it's a regression, since you could 
space scores apart in 2.12.


James - workaround which does work:

\header {}

\paper {
score-markup-spacing #'minimum-distance = #50
}

MusicMain = { \relative c'' { c4 c c c } }

MusicCoda = { \relative c'' { b4 b b b } }

\score {
 \MusicMain
}

\markup {   }

\score {
 \MusicCoda
}




--
Phil Holmes



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


Re: [OT] Vivi, the Virtual Violinist, plays LilyPond music

2011-03-04 Thread Graham Percival
On Fri, Mar 04, 2011 at 12:01:23AM +0100, Janek Warchoł wrote:
 2011/3/3 Graham Percival gra...@percival-music.ca:
   \time 4 = 72
 Meanwhile, there is a mistake in the example code (in your mail and on
 the website) - there should be \tempo 4 = 96 instead of \time 4 = 72.

Oops!  Thanks, fixed.

 Thanks for sharing this! I'm looking forward to hearing Vivi perform
 on a $1000 violin with a skill of a violinist with 5 years of
 experience :)

Well, playing on a $1000 (or even $1,000,000) violin is just a
matter of getting a recording of somebody tapping on such an
instrument.  Such recordings (I only need 12 milliseconds of a tap
noise!) _are_ available online, but I haven't yet found a
recording which stated that it was available under the GPL.  And
since sound recordings are covered by copyright, I can't just take
an existing one.  :(

I might work up the courage to send emails to those people and ask
for permission to include their recording in Artifastring (i.e.
place them under the GPLv3), now that I have a real example of how
I'd use it.


Playing with a skill of 5 years will probably take me another
18-24 months to reach.  :)

Cheers,
- Graham

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


Re: How to do jazz-style bar repeats

2011-03-04 Thread jakob lund
Hola

 Now, I am not sure how to actually use this in a file.  I tried just using 
 \include in my file and putting the \inlineMMRN R2.*4 where I want it to 
 appear.  I ended up with 3/4 time, five empty bars with rehearsal marks at 
 the top of the score, followed by a repeat and six bars with the desired 
 indication of four bars to be repeated, followed by another repeat.  And the 
 bars where I want the effect to render didn't.  Obviously that was not as you 
 intended it to be used!


R2. is a full bar rest in 3/4 time (a dotted 2/4 rest that is). For
4/4 you just use R1, and multiply with the number of bars, like in
R1*8 for 8 bars.

There's still a problem though -- look at this example

#(define (whiteunder grob) (grob-interpret-markup grob
  (markup #:vcenter #:whiteout #:pad-x 1 (ly:grob-property grob 'text

inlineMMRN = {
  \once \override Score.MultiMeasureRest #'layer = #-2
  \once \override Score.MultiMeasureRestNumber #'layer = #-1
  \once \override Score.MultiMeasureRestNumber #'Y-offset = #0
  \once \override Score.MultiMeasureRestNumber #'stencil = #whiteunder
}

solos = {
  \override Score.MultiMeasureRest #'minimum-length = #20
  \bar |:
  \inlineMMRN R1*4
  \inlineMMRN R1*4
  \bar :|
}

{
  
\new ChordNames \chordmode {
  s1
  a1*4:m7
  b:m7-5
}
\new Staff {
  \time 4/4
  s1
  \set Score.markFormatter = #format-mark-box-alphabet
  \set Score.skipBars = ##t
  \override MultiMeasureRest #'expand-limit = 1
  \solos
}
  
}


How can we center the chord symbols above the inlineMMR's?


Also: Does anybody know how to produce the `fat bracketed' repeat bars
often used in jazz (example in the Real Book exerpt attached to Tim's
first mail in this thread)?



Jakob.

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


Re: How to do jazz-style bar repeats

2011-03-04 Thread Robin Bannister
Tim McNamara wrote: 
I am not sure how to actually use this in a file. 
  
The multimeasure.ly has four sections; 
 the first two are needed to define inlineMMRN, 
 the last two give an example of using \inlineMMRN. 
  
The example I used is a rough skeleton of Blessed Relief, 
whose last part corresponds to your bar-repeats.pdf. 
  
  
So multimeasure.ly is a standalone snippet producing a pdf with 
44 bars of spacer rests (up to rehearsal mark [E]) followed by 
24 bars of inlineMMRN usage (held in the solos variable). 
All those 68 bars showed up at the top of your own pdf. 
  
  
You don't need these example sections in your file, 
just the first two: whiteunder and inlineMMRN. 
So either paste in just these two or comment out the last two. 
   
   
Then you have to apply inlineMMRN at each place you want it to be active. 
You ask for a multi-measure rest (big R) 
and let \inlineMMRN move its count down into the staff. 
  
So for 6 bars of 4/4 time you need R1*6 - like this 

\inlineMMRN R1*6
  
  
And for decent horizontal proportions you need to modify #'minimum-length. 
  
  
Cheers, 
Robin


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


Re: Using lyrics in a markup

2011-03-04 Thread Jan-Peter Voigt

On 10.02.2011 09:20, Marc Hohl wrote:

Am 08.02.2011 12:00, schrieb Jan-Peter Voigt:

Hello Marc, hello Jakob, hello list,

I just wanted to share a tiny extension of the lyrics-markup function:

...
(cond
  ((eq? (ly:music-property lyrics 'name) 'LyricEvent)
   (ly:music-property lyrics 'text))
  ((eq? (ly:music-property lyrics 'name) 'HyphenEvent)
   (list --))
  ((eq? (ly:music-property lyrics 'name) 'LineBreakEvent)
   (list linebreakindicator))
;; to include stanza, copy the following three lines into the 
conditional of the function
  ((and (equal? (ly:music-property lyrics 'name) 
'PropertySet)

(equal? (ly:music-property lyrics 'symbol) 'stanza))
   (markup #:bold (ly:music-property lyrics 'value)))
...

So if there are \set stanza statements, they will go into the markup.

This is great! Will this go into the lsr snippet, too?

Regards,

Marc


Hello again,

I came across our lyrics-markup snippet and made another extension: 
Stanza numbers often are left to the verse block. Now there is another 
bool-parameter to the verse-command, wich tells, if the stanza number 
shall be left of the verse or inline. I will post this to LSR, when I 
treat multiple stanza numbers correctly with the first one left.


It would be nice, if someone could test it.

Cheers,
Jan-Peter

%%snip%%
\version 2.12.3

#(define linebreakindicator \\)

% \nl command that inserts the placeholder event into a lyrics
nl = #(make-music 'LineBreakEvent)

% format lyrics bold
lyrbold = #(define-music-function (parser location lyrics) (ly:music?)
  (music-map
(lambda (m)
(begin
  (if (equal? (ly:music-property m 'name) 'LyricEvent)
  (ly:music-set-property! m 'text (markup #:bold 
(ly:music-property m 'text

  m))
lyrics))

% format lyrics italic
lyritalic = #(define-music-function (parser location lyrics) (ly:music?)
  (music-map
(lambda (m)
(begin
  (if (equal? (ly:music-property m 'name) 'LyricEvent)
  (ly:music-set-property! m 'text (markup #:italic 
(ly:music-property m 'text

  m))
lyrics))


%% Function to extract strings from lyrics.
#(define (lyrics-list lyrics append-stanza)
Return only syllables and hyphens from  @code{lyrics}.
(if (ly:music? lyrics)
(cond
  ((eq? (ly:music-property lyrics 'name) 'LyricEvent)
   (ly:music-property lyrics 'text))
  ((eq? (ly:music-property lyrics 'name) 'HyphenEvent)
   (list --))
  ((eq? (ly:music-property lyrics 'name) 'LineBreakEvent)
   (list linebreakindicator))
  ((and (eq? (ly:music-property lyrics 'name) 'PropertySet)
(eq? (ly:music-property lyrics 'symbol) 'stanza))
   (if append-stanza
 (begin (append-stanza (markup #:bold 
(ly:music-property lyrics 'value))) '())

 (markup #:bold (ly:music-property lyrics 'value
  (else (let ((elt (ly:music-property lyrics 'element))
  (elts (ly:music-property lyrics 'elements)))
 (if (ly:music? elt)
 (lyrics-list elt append-stanza)
 (if (null? elts)
 '()
 (map (lambda(x)
 (lyrics-list x 
append-stanza))

  elts)
)
'()))

#(define (flatten-nonmarkup-list x)
Unnest list, but don't flatten markup constructs!
(cond ((null? x) '())
  ((not (pair? x)) (list x))
  (else (append (if (markup? (car x))
(list (car x))
(flatten-nonmarkup-list (car x)))
(flatten-nonmarkup-list (cdr x))

#(define (reduce-hyphens text)
(let eat ((wd (car text)) (wds (cdr text)))
 (cond
   ((null? wds) (list wd))
   ((and (equal? -- (car wds)) (not (null? (cdr wds
(eat (markup #:concat (wd (cadr wds)))
 (cddr wds)))
   (else (cons (markup wd) (eat (car wds) (cdr wds)))

#(define (split-on predicate? l)
(let loop ((h '()) (r l))
  (cond
((null? r)
 (if (null? h) h (list (reverse h
((predicate? (car r))
 (if (null? h)
 (loop h (cdr r))
 (cons (reverse h) (loop '() (cdr r)
(else
  (loop (cons (car r) h) (cdr r))

#(define-markup-command (verse layout props lyrics stanzblock) 
(ly:music? boolean?)

  Verse command 

RE: How to do jazz-style bar repeats

2011-03-04 Thread James Lowe
Hello,

)-Original Message-
)From: lilypond-user-bounces+james.lowe=datacore@gnu.org
)[mailto:lilypond-user-bounces+james.lowe=datacore@gnu.org] On
)Behalf Of Robin Bannister
)Sent: 04 March 2011 10:32
)To: Tim McNamara; lilypond-user lilypond-user
)Subject: Re: How to do jazz-style bar repeats
)
)Tim McNamara wrote:
) I am not sure how to actually use this in a file.
)
)The multimeasure.ly has four sections;
)  the first two are needed to define inlineMMRN,
)  the last two give an example of using \inlineMMRN.
)
)The example I used is a rough skeleton of Blessed Relief, whose last part
)corresponds to your bar-repeats.pdf.
)
)
)So multimeasure.ly is a standalone snippet producing a pdf with
)44 bars of spacer rests (up to rehearsal mark [E]) followed by
)24 bars of inlineMMRN usage (held in the solos variable).
)All those 68 bars showed up at the top of your own pdf.
)
)
)You don't need these example sections in your file, just the first two:
)whiteunder and inlineMMRN.
)So either paste in just these two or comment out the last two.
)
)
)Then you have to apply inlineMMRN at each place you want it to be
)active.
) You ask for a multi-measure rest (big R) and let \inlineMMRN move its
) count down into the staff.
)
)So for 6 bars of 4/4 time you need R1*6 - like this
) \inlineMMRN R1*6
)
)
)And for decent horizontal proportions you need to modify #'minimum-
)length.
)

Maybe an email got lost somewhere but the mails I got on this thread jumped 
from a 'how do I' to a 'thanks that's really helpful' without anything in 
between.

I think whatever the outcome of this 'hack/workaround', will be really useful 
on the LilyPond Snippet Repository for other users. So I just didn't want this 
to be 'lost'.

James




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


RE: Nope...still don't get the new spacing variables at all

2011-03-04 Thread James Lowe
Phil,

)-Original Message-
)From: Phil Holmes [mailto:m...@philholmes.net]
)Sent: 04 March 2011 09:09
)To: Janek Warchoł; James Lowe
)Cc: lilypond-user
)Subject: Re: Nope...still don't get the new spacing variables at all
)
)
)
)--
)Phil Holmes
)
)
)- Original Message -
)From: Janek Warchoł lemniskata.bernoull...@gmail.com
)To: James Lowe james.l...@datacore.com
)Cc: lilypond-user lilypond-user@gnu.org
)Sent: Thursday, March 03, 2011 10:24 PM
)Subject: Re: Nope...still don't get the new spacing variables at all
)
)
)2011/3/3 James Lowe james.l...@datacore.com:
)  So can someone tell me (and they don't have to tell me numbers or
)tell
)  me
)  where to put the variable - I get that bit) WHICH flippin'
)  staff-staff-thingy-dooby variable I am supposed to use?
)
) Just off the top of my head - maybe score-system-spacing
) #'basic-distance is what you need to change?
)
) HTH,
) Janek
)
)I'd agree that's what it should be.  But it doesn't seem to work

Oh thanks so much for clarifying this and it wasn't just me going mad :)

I did write that last email rather late and I was a bit tired (which is never a 
good combination to write emails), so I probably did come across a bit terse, 
for that I am sorry.

I'll play about with the suggestions given so far. Thanks again,

James

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


Re: How to do jazz-style bar repeats

2011-03-04 Thread Phil Holmes
 Original Message - 
From: James Lowe james.l...@datacore.com


I think whatever the outcome of this 'hack/workaround', will be really 
useful on the LilyPond Snippet Repository for other users. So I just 
didn't want this to be 'lost'.



James


http://lsr.dsi.unimi.it/LSR/Item?id=753


There you go.

--
Phil Holmes


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


Re: How to do jazz-style bar repeats

2011-03-04 Thread Colin Hall

Hi Tim,

I use a slash notehead on the middle line of the stave, see below.

Cheers,
Colin.

%
% Harmony
%
harmonyIntro = \chordmode
{
  bf1:m |
  bf1:m |
  bf1:m |
  c2:7 f2:7 |
}

%
% Piano music sections
%
pianoRightIntro =
{
  bf df' f'2_\markup \small { L.H.} ~ a df' f'2 |
  af! df' f'2 ~ g df' f'2 |
  gf! df' f'2 ~ f df' f'2 |
  \override NoteHead #'style = #'slash
  \override Stem #'transparent = ##t
  bf'4 bf'4 bf'4 bf'4 |
  \revert NoteHead #'style
  \revert Stem #'transparent

}


On Thu, Mar 03, 2011 at 06:58:26AM +, David Bobroff wrote:
 On 3/3/2011 6:23 AM, Tim McNamara wrote:
 I have not been able to locate a way to do jazz style multiple bar repeats 
 like these for writing out chord progressions for solos.  Can anyone point 
 me to the place in the documentation (assuming there is such a place)?
 
 Thanks!
 
 
 
 
 
 ___
 lilypond-user mailing list
 lilypond-user@gnu.org
 http://lists.gnu.org/mailman/listinfo/lilypond-user
 
 Tim,
 
 I suspect you're looking for percent repeats found in section
 1.4.2 of the notation manual of the current stable release.
 
 -David

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


-- 

Colin Hall
South Mains
West Linton
EH46 7AY
Scotland

Tel: 01968 661994
Mob: 07786 677582

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


Re: How to wreathe crescendo ?

2011-03-04 Thread tobias bora
Thanks for your answer.

And how could I use a hight resolution ? Indeed, I've used in lilypond
paper-size= A4, but maybe it's not enough.

And how could I use cresc --- ?

Thanks.

2011/3/2 Francisco Vila paconet@gmail.com

 2011/3/2 Tim Sheasby t...@sheafpublishing.co.za
  On 02 Mar 2011, at 11:57 AM, Francisco Vila wrote:
 
  Printed material is commonly made with very high-resolution renderers.
  I don't know exactly: ten thousand dots per inch?  Maybe not that
  much, but high enough so you can not see the 'stairs'.

  Used to work in a DTP bureau. Resolution is anything between 1000 and
 3600 dpi on an imagesetter. Most default to 1200 or 2400 dpi.
  Effectively eliminating visible stairs as you pointed out.

 Thank you, that's a fact, I'll try to remember.

 My first laser was 300dpi and it looked crappy.  Then, I could spot
 the difference between 600 and 1200, the latter is very good to my
 eyes.  However, printed scores still look usually, not always, better
 than my 1200 home laser material.


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




-- 

Venez vite sur mon site : http://tobias.o-n.fr . Un site pour musiciens et
programmeurs !!!
___
lilypond-user mailing list
lilypond-user@gnu.org
http://lists.gnu.org/mailman/listinfo/lilypond-user


Re: Using lyrics in a markup

2011-03-04 Thread Marc Hohl

Am 04.03.2011 12:12, schrieb Jan-Peter Voigt:

[...]




Hello again,

I came across our lyrics-markup snippet and made another extension: 
Stanza numbers often are left to the verse block. Now there is another 
bool-parameter to the verse-command, wich tells, if the stanza number 
shall be left of the verse or inline. I will post this to LSR, when I 
treat multiple stanza numbers correctly with the first one left.


It would be nice, if someone could test it.

Just a quick response after a short test:

Works for me, but as you mentioned, it fails when more stanzas are 
declared and

stanzblock = ##t.

Apart from this, would a separate property be the better way to handle 
the output?


Anyway, this is a very useful enhancement for my current project - great 
work, thank you!


Regards,

Marc


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


FW: How to wreathe crescendo ?

2011-03-04 Thread James Lowe
hello

From: lilypond-user-bounces+james.lowe=datacore@gnu.org 
[mailto:lilypond-user-bounces+james.lowe=datacore@gnu.org] On Behalf Of 
tobias bora
Sent: 04 March 2011 15:21
To: Francisco Vila
Cc: Tim Sheasby; lilypond-user@gnu.org
Subject: Re: How to wreathe crescendo ?

Thanks for your answer.

And how could I use a hight resolution ? Indeed, I've used in lilypond 
paper-size= A4, but maybe it's not enough.

And how could I use cresc --- ?

---
See:
http://lilypond.org/doc/v2.13/Documentation/notation/writing-text#index-text-spanners
You can put any string in you like the example gives you rit. - - - - - -
Also with regard to the resolution, what is the reason you are not just using 
the PDF output?
or maybe you can use a different output if you use the command line
http://lilypond.org/doc/v2.13/Documentation/usage/command_002dline-usage#command-line-options-for-lilypond
James


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


Re: FW: How to wreathe crescendo ?

2011-03-04 Thread Reinhold Kainhofer
Am Freitag, 4. März 2011, um 17:14:13 schrieb James Lowe:
 And how could I use cresc --- ?
 
 ---
 See:
 http://lilypond.org/doc/v2.13/Documentation/notation/writing-text#index-tex
 t-spanners 
 You can put any string in you like the example gives you rit. - - - - - -

Actually, for text cresc/decresc/dim spanners, there is a better (native) 
solution:
http://lilypond.org/doc/v2.13/Documentation/notation/expressive-marks-
attached-to-notes#dynamics

In particular, simply use \cresc instead of \ (and end it with the usual \! 
mark). This approach has the advantage that the MIDI will also contain the 
crescendo, and you have a way to tweak the appearance globally.

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: How to wreathe crescendo ?

2011-03-04 Thread Francisco Vila
2011/3/4 tobias bora tobias.b...@gmail.com:
 Thanks for your answer.

 And how could I use a hight resolution ? Indeed, I've used in lilypond
 paper-size= A4, but maybe it's not enough.

lilypond --png -dresolution=600 yourfile.ly

300 is already fairly good but this depends on the final size.

-- 
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: [OT] Vivi, the Virtual Violinist, plays LilyPond music

2011-03-04 Thread Graham Percival
On Thu, Mar 03, 2011 at 03:50:37PM -0500, Michael Ellis wrote:
 I've been thinking for a while about broaching the subject of
 LilyPond's midi output on this forum -- I feel  that this is one area
 where Lily is rather behind the curve compared to her commercial
 sisters. I wonder if some of your work could be applicable to helping
 LilyPond generate sound that's as beautiful as the sheet music.

Unfortunately, Vivi isn't applicable to lilypond directly --
redistributing all the audio feature extraction and machine
learning code would be a monumental task, as well as probably
quadrupling the download size.  The kind of audio performance by
Vivi is not at all related to MIDI.

A first place to look at improving the MIDI output would be
integrating Dr. Peter Chubb's work on articulate.ly:
http://www.nicta.com.au/people/chubbp/articulate

Cheers,
- Graham

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


Re: [OT] Vivi, the Virtual Violinist, plays LilyPond music

2011-03-04 Thread Michael Ellis
Thanks Graham,
I just downloaded and looked at Dr. Chubb's script.  It looks nicely
coded  and seems to address a number of issues that bother me about
LilyPond's midi output.
Cheers,
Mike



On Fri, Mar 4, 2011 at 2:48 PM, Graham Percival
gra...@percival-music.ca wrote:
 On Thu, Mar 03, 2011 at 03:50:37PM -0500, Michael Ellis wrote:
 I've been thinking for a while about broaching the subject of
 LilyPond's midi output on this forum -- I feel  that this is one area
 where Lily is rather behind the curve compared to her commercial
 sisters. I wonder if some of your work could be applicable to helping
 LilyPond generate sound that's as beautiful as the sheet music.

 Unfortunately, Vivi isn't applicable to lilypond directly --
 redistributing all the audio feature extraction and machine
 learning code would be a monumental task, as well as probably
 quadrupling the download size.  The kind of audio performance by
 Vivi is not at all related to MIDI.

 A first place to look at improving the MIDI output would be
 integrating Dr. Peter Chubb's work on articulate.ly:
 http://www.nicta.com.au/people/chubbp/articulate

 Cheers,
 - Graham


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


Re: [OT] Vivi, the Virtual Violinist, plays LilyPond music

2011-03-04 Thread Janek Warchoł
2011/3/4 Graham Percival gra...@percival-music.ca
  Thanks for sharing this! I'm looking forward to hearing Vivi perform
  on a $1000 violin with a skill of a violinist with 5 years of
  experience :)

 Well, playing on a $1000 (or even $1,000,000) violin is just a
 matter of getting a recording of somebody tapping on such an
 instrument.  Such recordings (I only need 12 milliseconds of a tap
 noise!) _are_ available online, but I haven't yet found a
 recording which stated that it was available under the GPL.  And
 since sound recordings are covered by copyright, I can't just take
 an existing one.  :(

Does this mean that Artifastring is already able to simulate violing
sounds so perfectly that everything is a matter of teaching it how
to do so?
I don't have much experience with violin, but judging by the audio
samples i thought that it could use some improvement (independently of
Vivi's playing skill improvement).
Regardless of this issue, i like Vivi's articulation. It doesn't sound
soulless as midi does.
Perhaps i'm underappreciating your work - sorry for that... I suppose
it's because i didn't learn bowed instruments myself.
Keep up the great work!

 I might work up the courage to send emails to those people and ask
 for permission to include their recording in Artifastring (i.e.
 place them under the GPLv3), now that I have a real example of how
 I'd use it.

Good luck then!

 Playing with a skill of 5 years will probably take me another
 18-24 months to reach.  :)

That's three times faster than human - quite good :)
Good luck!
Janek

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


adjusting horizontal spacing and page turns

2011-03-04 Thread Douglas Ridgway
I'm working on the Mozart bassoon concerto from Mutopia. I'd like to
include the tutti sections on the bassoon part, but in small notes,
because they are usually not played. I used \tiny, but the result
seems kind of stretched out, and the page turns end up in unpleasant
spots. A standalone .ly of the first movement is attached. Any advice
on improving layout? For comparison, check out the first page of the
Edition Peters scan of the bassoon part on
http://imslp.org/wiki/Bassoon_Concerto_in_B-flat_major,_K.191/186e_%28Mozart,_Wolfgang_Amadeus%29
(http://imslp.org/wiki/Special:ImagefromIndex/39385).

Thanks!
doug.


tst3.ly
Description: Binary data
___
lilypond-user mailing list
lilypond-user@gnu.org
http://lists.gnu.org/mailman/listinfo/lilypond-user


Re: adjusting horizontal spacing and page turns

2011-03-04 Thread m...@apollinemike.com
On Mar 4, 2011, at 7:26 PM, Douglas Ridgway wrote:

 I'm working on the Mozart bassoon concerto from Mutopia. I'd like to
 include the tutti sections on the bassoon part, but in small notes,
 because they are usually not played. I used \tiny, but the result
 seems kind of stretched out, and the page turns end up in unpleasant
 spots. A standalone .ly of the first movement is attached. Any advice
 on improving layout? For comparison, check out the first page of the
 Edition Peters scan of the bassoon part on
 http://imslp.org/wiki/Bassoon_Concerto_in_B-flat_major,_K.191/186e_%28Mozart,_Wolfgang_Amadeus%29
 (http://imslp.org/wiki/Special:ImagefromIndex/39385).
 
 Thanks!
 doug.
 tst3.ly___
 lilypond-user mailing list
 lilypond-user@gnu.org
 http://lists.gnu.org/mailman/listinfo/lilypond-user

Hey Doug,

Check out: 
http://lilypond.org/doc/v2.12/Documentation/user/lilypond/Writing-parts
It'll also give you some ideas on how to structure the document so that you can 
keep the solo part intact w/o having to worry about weaving in all of the cue 
notes.

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


Re: [OT] Vivi, the Virtual Violinist, plays LilyPond music

2011-03-04 Thread Graham Percival
On Sat, Mar 05, 2011 at 12:54:31AM +0100, Janek Warchoł wrote:
 2011/3/4 Graham Percival gra...@percival-music.ca
  Well, playing on a $1000 (or even $1,000,000) violin is just a
  matter of getting a recording of somebody tapping on such an
  instrument.  Such recordings (I only need 12 milliseconds of a tap
  noise!) _are_ available online, but I haven't yet found a
  recording which stated that it was available under the GPL.  And
  since sound recordings are covered by copyright, I can't just take
  an existing one.  :(
 
 Does this mean that Artifastring is already able to simulate violing
 sounds so perfectly that everything is a matter of teaching it how
 to do so?

Artifastring is a very imperfect simulation of a violin.  You can
think about this as having two stages: 1. the actions of the four
strings, and 2. the actions of the body (the big empty part of
the instrument).  The way that it simulates the effect of a violin
body (or cello body) is by using a mathematical operation called
convolution.  This convolution is done by multiplying the sum of
the output samples of the strings with literally an audio
recording of tapping a violin.  In engineering terms, this is an
approximation of the impulse response.

Because of this, switching to a different violin sound is purely a
matter of switching the tap recording.

 I don't have much experience with violin, but judging by the audio
 samples i thought that it could use some improvement (independently of
 Vivi's playing skill improvement).

Yes and no.  The actions of the strings are imperfect, but the
violin used for the impulse response really is a bad instrument.
The £100 pounds figure actually included the bow, case, and
shipping.

Also, generating an impulse response by tapping the instrument is
not a perfect impulse response.  It's a decent approximation, but
serious acoustics researchers would use a frequency sweep or
something like that instead.

But I'm not a serious acoustics researcher -- my goal is to
advance the art of automatic music performance.  There's enough
work that I can do on performing chords, vibrato, and the like,
such that I'm not hugely concerned with the instrument quality at
the moment.  And the methods for training Vivi are completely
general; if/when the violin sounds change (or even changes to a
cello or viola), all I need to do is spend 2-3 hours teaching her
how to play that instrument, by classifying audio!  In other
words, there's no programming involved in this training; I'm just
acting like a parent of a music student.

Of course, I'm hoping that when I present this at a conference,
somebody from the audience will say wow, that's nice work, but
it's a pity that your physical model only approximates XYZ.  I
have code that does this; could we work together?  I don't mind
putting that code under the GPLv3.

So far, the only other open-source bowed-string simulation that I
know of is the 1986 Smith algorithm, implemented in the Synthesis
Toolkit in C++.  Most of the algorithms in Artifastring have been
improved in the 2000s, but it's still much better than the version
in STK.
(the big open-source audio programs like Csound, Chuck, and
supercollider, all use STK for physical modeling, which means the
25-year-old string algorithm)

Cheers,
- Graham

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


Re: How to do jazz-style bar repeats

2011-03-04 Thread keith Luke
If chop marks are the desired output, there's another way of doing it as
described in the LilyPond Snippetsdocument.  Just do a search on *Rhythmic
slashes*. It the rs function overrides a quarter note rest for quarter note
marks.  You can replace the r4 with an appropriate rest for other durations.


On Thu, Mar 3, 2011 at 6:37 PM, Tim McNamara tim...@bitstream.net wrote:

 On Mar 3, 2011, at 6:30 PM, Colin Hall wrote:

  For the record I've attached a complete source file to demonstrate how I
 do chop marks.


 I like how those render and will have other uses for them.  Thanks!
 ___
 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: How to do jazz-style bar repeats

2011-03-04 Thread Tim McNamara
Thanks for that, too!

On Mar 4, 2011, at 10:18 PM, keith Luke wrote:

 If chop marks are the desired output, there's another way of doing it as 
 described in the LilyPond Snippetsdocument.  Just do a search on Rhythmic 
 slashes. It the rs function overrides a quarter note rest for quarter note 
 marks.  You can replace the r4 with an appropriate rest for other durations.
 
 
 On Thu, Mar 3, 2011 at 6:37 PM, Tim McNamara tim...@bitstream.net wrote:
 On Mar 3, 2011, at 6:30 PM, Colin Hall wrote:
 
  For the record I've attached a complete source file to demonstrate how I do 
  chop marks.
 
 
 I like how those render and will have other uses for them.  Thanks!

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