[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Scaled grace
From: |
Urs Liska |
Subject: |
Re: Scaled grace |
Date: |
Tue, 21 Mar 2017 12:08:10 +0100 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Icedove/45.6.0 |
Am 21.03.2017 um 12:05 schrieb Malte Meyn:
>
> Am 21.03.2017 um 11:44 schrieb Malte Meyn:
>> Or if you don’t want variants for all \grace variants (i. e. \grace,
>> \slashedGrace, \appoggiatura, \acciaccatura, \afterGrace), just make a
>> function that takes a music expression and scales it to 1. Maybe this
>> could also be nice for cadenza-like things in real time notes (if you
>> combine it with \newSpacingSection or a duration argument):
>>
>> […]
> scaleToLength =
> #(define-music-function (dur mus) (ly:duration? ly:music?)
> (let* ((real-len (ly:music-length mus))
> (mom (ly:duration-length dur))
> (ratio-mom (ly:moment-div mom real-len))
> (ratio (cons (ly:moment-main-numerator ratio-mom)
> (ly:moment-main-denominator ratio-mom))))
> #{
> \scaleDurations #ratio #mus
> #}))
>
> % from Chopin’s Nocturne op. 15 No. 2
> \new PianoStaff <<
> \new Staff \relative {
> \time 2/4
> \key fis \major
> \teeny
> \scaleToLength 2 {
> b'8([ ais b) ais( a gis) a( gis a) gis( g fis) g( fis g)
> fis\( f e eis fis eis dis( eis fis) ais( gis eis fis dis gis)\)]
> }
> }
> \new Staff \relative {
> \clef bass
> \key fis \major
> << { s8 d4 } \\ { fis,8( d' <gis b> cis,) } >>
> }
Cool. We should definitely discuss the proper set of options and include
that to LilyPond (or if that's for some reason not desired to openLilyLib).
Urs
- RE: Re: What can Premusic do that others can't?, (continued)
- Re: What can Premusic do that others can't?, Bernardo Barros, 2017/03/21
- Re: What can Premusic do that others can't?, Hans Åberg, 2017/03/21
- Re: What can Premusic do that others can't?, Malte Meyn, 2017/03/21
- Scaled grace (was: What can Premusic do that others can't?), Urs Liska, 2017/03/21
- Re: Scaled grace, Urs Liska, 2017/03/21
- Re: Scaled grace, Malte Meyn, 2017/03/21
- Re: Scaled grace, Malte Meyn, 2017/03/21
- Re: Scaled grace,
Urs Liska <=
- Re: Scaled grace, Werner LEMBERG, 2017/03/21
- Re: What can Premusic do that others can't?, Jacques Menu Muzhic, 2017/03/20
- Square characters, have, 2017/03/20
- Re: What can Premusic do that others can't?, Juan Cristóbal Cerrillo, 2017/03/20
- Re: What can Premusic do that others can't?, David Kastrup, 2017/03/21
- Re: What can Premusic do that others can't?, Malte Meyn, 2017/03/20
- Re: What can Premusic do that others can't?, Simon Albrecht, 2017/03/20
- Re: What can Premusic do that others can't?, Johan Vromans, 2017/03/21
Re: Parallel Square Premusic, Malte Meyn, 2017/03/20
Re: Parallel Square Premusic, Joseph Austin, 2017/03/21