FoscSustainMask

Returns a FoscSustainMask.


Description

Sustain mask.

FIXME: none of these examples work


Attributes Summary

Instance Methods

value


Usage

  1. Rhythm-maker.

    p = FoscPattern(#[0,1,4,5]) | FoscPattern.last(3);
    m = FoscSustainMask(p);
    a = FoscRhythmMaker();
    m = a.(divisions: 1/4 ! 4, ratios: #[[1,1,1,1,1]], masks: [m]);
    a.show;
  2. Leaf-maker

    a = FoscLeafMaker().((60..75), [1/8]);
    p = FoscPattern(#[0,1,4,5]) | FoscPattern.last(3);
    m = FoscSustainMask(p).([a]);
    FoscSelection(m).show;
  3. Fuse contiguous leaves when fuse is true.

    a = FoscLeafMaker().((60..75), [1/8]);
    p = FoscPattern(#[0,1,4,5]) | FoscPattern.last(3);
    m = FoscSustainMask(p, fuse: true).([a]);
    FoscSelection(m).show;
  4. Rewrite meter for previous example.

    m = FoscMeterSpecifier(meters: #[[4,4],[4,4]], boundaryDepth: 1).(m);
    FoscSelection(m).show;
  5. Fuse contiguous leaves when fuse is true.

    p = FoscPattern(#[0,1,4,5]) | FoscPattern.last(3);
    m = FoscSustainMask(p, fuse: true);
    a = FoscRhythmMaker();
    m = a.(divisions: 1/4 ! 4, ratios: #[[1,1,1,1,1]], masks: [m]);
    FoscSelection(m).show;
  6. Apply tuplet specifier to previous example.

    m = FoscTupletSpecifier(extractTrivial: true, rewriteRestFilled: true, rewriteSustained: true).(m); FoscSelection(m).show;
  7. Create a talea pattern.

    p = FoscPattern(#[0,1,3], period: 6);
    m = FoscSustainMask(p, fuse: true);
    a = FoscRhythmMaker();
    a.(divisions: 1/4 ! 4, ratios: #[[1,1,1,1,1]], masks: [m]);
    a.show;
  8. Example

    m = FoscSustainMask(FoscPattern(indices: #[0,1,4,5,17,18,19]), fuse: true);
    a = FoscRhythmMaker();
    a.(divisions: 1/4 ! 4, ratios: #[[1,1,1,1,1]], masks: [m]);
    a.show;


Instance Methods


value