hairpin

Returns a hairpin.


Description

Attaches hairpin indicators to leaves in selection.

[ ]


Usage

  1. Example

    a = FoscVoice(FoscLeafMaker().(#[60,62,64,65], 1/4));
    a[0..].hairpin('p < f');
    a.show;

  2. Example

    a = FoscVoice(FoscLeafMaker().(#[60,62,64,65], 1/4));
    a[0..].hairpin('< f');
    a.format;
    \new Voice {
        c'4
        \<
        d'4
        e'4
        f'4
        \f
    }
  3. Example

    a = FoscVoice(FoscLeafMaker().(#[60,62,64,65], 1/4));
    a[0..].hairpin('f >o !');
    a.show;

    a.format;
    \new Voice {
        c'4
        \f
        - \tweak circled-tip ##t
        \>
        d'4
        e'4
        f'4
        \!
    }
  4. Example

    a = FoscVoice(FoscLeafMaker().(#[60,62,64,65], 1/4));
    a[0..].hairpin('p > !');
    a.show;

    a.format;
    \new Voice {
        c'4
        \p
        \>
        d'4
        e'4
        f'4
        \!
    }
  5. Hairpin can be tweaked. Note that tweaks effects the hairpin only, and not the dynamics.

    a = FoscVoice(FoscLeafMaker().(#[60,62,64,65], 1/4));
    a[0..].hairpin('sfz > p', tweaks: #[['color', 'blue']]);
    a.show;