Re: Changing notehead sizes within chords

2015-06-30 Thread David Kastrup
David B. Stocker notesetters...@gmail.com writes:

 On 06/29/2015 06:32 PM, lilypond-user-requ...@gnu.org wrote:

 Maybe:

 \version 2.18.2

 font-size-tweak =
 #(define-music-function (parser location music) (ly:music?)
 (map-some-music
   (lambda (m)
 (and (music-is-of-type? m 'note-event)
  #{ \tweak font-size #-3 $m #}))
   music))
 HTH,
Harm

 Klaus and Thomas,

 Thank you. These are exactly the kind of thing I was looking for.

 I've been starting to fool around with scheme and it's going very
 slowly. Maybe examining these and learning how/why they work will help
 me with the lilypond-specific scheme knowledge required to start
 solving some of these challenges.

 Do either of you recommend a source on Scheme for beginners?

Your best bet at this level is the Extending LilyPond guide in the
manuals: the above example contains actually only two typical Scheme
constructs, namely lambda and and.  All the rest are specific to
LilyPond.

And even then you'll just find some of those constructs covered in the
guide.  The next step then is skimming

ly/music-functions-init.ly

and see what makes sense to you, trying to look up some of the functions
used there (several more complicated ones are defined in
scm/music-functions.scm).

And read the user list for people's problems and the given solutions.

-- 
David Kastrup

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


Re: Partial Bars

2015-06-30 Thread Helge Kruse
Hi Bill,

Can you please include a minimal compilable example that shows your
problem? I don't plan to do both
- goto the next shop or library to get that menut
- guess what 'part' expresses in the context of that piece
- write an example that could probably the same problems yours have

Partial measures are possible in different ways, also 'in the middle'.

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


Re: transposable figured bass?

2015-06-30 Thread Chris Yate
On 29 June 2015 at 19:13, Thomas Morley thomasmorle...@gmail.com wrote:

 2015-06-29 18:08 GMT+02:00 Ralf Mattes r.mat...@mh-freiburg.de:
 
  Just a question - is this an example drawn from a historic source?
  What you call a flat sign would back then be called a fa-sign and
  the corresponing sharp sign would be read as a mi sign. Both voces
  are independent of transposition, so C♭ does _not_ denote a C flat
  (ces) but rather a C-fa which is exactly what is needed in your example
  in _both_ cases, so (in case this is not an original source) you might
  better write 65♭ in the first, untransposed case.
 
  HTH Ralf Mattes



 I'd like to  second that, it's what I learned decades ago, iirc ;)

 See also the attached png from BWV 121
 Sorry for the bad resolution.
 (Although the right Hand is not Bach ofcourse.)

 The score can be downloaded at

 http://imslp.org/wiki/Christum_wir_sollen_loben_schon,_BWV_121_%28Bach,_Johann_Sebastian%29

 Cheers,
   Harm


I will look at my (modern) harmony book to see what they use. I think for a
tierce de picardie chord in the key of Gm, they would use a Natural to
indicate the major third, and a Sharp to indicate the same interval in the
key of Dm.  However, that raises the important question of what an ABRSM
Theory examiner would do, if I used a flat sign to write a minor triad in a
chord where the major third is sharpened...

Another think -- in the example you give, is a natural sign only there to
correct a previous accidental on the figure? (otherwise, what else would
it mean?).

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


Re: Changing notehead sizes within chords

2015-06-30 Thread David Kastrup
Thomas Morley thomasmorle...@gmail.com writes:

 2015-06-30 7:57 GMT+02:00 David Kastrup d...@gnu.org:

 And read the user list for people's problems and the given solutions.

 Yep, I still benefit from studying those problems/solutions.
 Actually, my proposal is inspired by
 http://lists.gnu.org/archive/html/lilypond-user/2015-06/msg00673.html
 adjusting it to the current problem/version exactly as David K recommended.

Imitation is the sincerest form of flattery.

-- 
David Kastrup

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


Re: Tweaking in scheme

2015-06-30 Thread Peter Gentry
 

-Original Message-
From: David Kastrup [mailto:d...@gnu.org] 
Sent: Monday, June 29, 2015 3:13 PM
To: Peter Gentry
Cc: lilypond-user@gnu.org
Subject: [SPAM] Re: [SPAM] Re: Tweaking in scheme

David Kastrup d...@gnu.org writes:

 Peter Gentry peter.gen...@sunscales.co.uk writes:

-Original Message-
From: David Kastrup [mailto:d...@gnu.org]

One can also try to do this kind of iteration oneself in order to 
only use the less invasive tweaks and get the color covered:

\version 2.19.22
tweakIV =
#(define-music-function (music) (ly:music?)
   (map-some-music
 (lambda (m)
   (and (music-is-of-type? 'note-event)

Yikes.  Of course (music-is-of-type? m 'note-event) here.

(tweak 'color red (tweak 'style 'harmonic m
 music))

--
David Kastrup

Big improvement in clarity (smugness justified)  - and comforting to see that 
even the gods can slip up occaisionally (it's a daily
occurrence for mere mortals)  :)


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


Re: Changing notehead sizes within chords

2015-06-30 Thread Thomas Morley
2015-06-30 7:57 GMT+02:00 David Kastrup d...@gnu.org:
 David B. Stocker notesetters...@gmail.com writes:

 On 06/29/2015 06:32 PM, lilypond-user-requ...@gnu.org wrote:

 Maybe:

 \version 2.18.2

 font-size-tweak =
 #(define-music-function (parser location music) (ly:music?)
 (map-some-music
   (lambda (m)
 (and (music-is-of-type? m 'note-event)
  #{ \tweak font-size #-3 $m #}))
   music))
 HTH,
Harm

 Klaus and Thomas,

 Thank you. These are exactly the kind of thing I was looking for.

 I've been starting to fool around with scheme and it's going very
 slowly. Maybe examining these and learning how/why they work will help
 me with the lilypond-specific scheme knowledge required to start
 solving some of these challenges.

 Do either of you recommend a source on Scheme for beginners?

 Your best bet at this level is the Extending LilyPond guide in the
 manuals: the above example contains actually only two typical Scheme
 constructs, namely lambda and and.  All the rest are specific to
 LilyPond.

 And even then you'll just find some of those constructs covered in the
 guide.  The next step then is skimming

 ly/music-functions-init.ly

 and see what makes sense to you, trying to look up some of the functions
 used there (several more complicated ones are defined in
 scm/music-functions.scm).

For typical scheme- (better guile-) constructs you can refer to the
guile manual and you'll find a lot of scheme-tutorials online.


 And read the user list for people's problems and the given solutions.

Yep, I still benefit from studying those problems/solutions.
Actually, my proposal is inspired by
http://lists.gnu.org/archive/html/lilypond-user/2015-06/msg00673.html
adjusting it to the current problem/version exactly as David K recommended.


Cheers,
  Harm

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