FoscSilenceMask

Returns a FoscSilenceMask.


Description

FoscSilenceMask

Replaces pitched events with rests at matching indices for ‘pattern’.

If ‘fuseRests’ is true, fuse all contiguous rests in the same parent, and extract any rest-filled tuplets.


Attributes Summary

Instance Methods

value
!!!TODO: method for use with rhythm-makers, mutation performed directly on array of selections


Usage

  1. Insert silences.

    FIXME Execution warning: Class FoscSegmentList not found ERROR: Primitive _ObjectIsKindOf failed. Wrong type.

    p = FoscPattern(#[0,1,4,5]) | FoscPattern.last(7);
    m = FoscSilenceMask(p);
    a = FoscRhythmMaker().(1/4 ! 4, #[[1,1,1,1,1]], masks: [m]);
    f = FoscLilypondFile.rhythm(a);
    f.show;
  2. Insert silences and fuse resulting rests.

    FIXME Execution warning: Class FoscSegmentList not found ERROR: Primitive _ObjectIsKindOf failed. Wrong type.

    p = FoscPattern(#[0,1,4,5]) | FoscPattern.last(7);
    m = FoscSilenceMask(p, fuseRests: true);
    a = FoscRhythmMaker().(1/4 ! 4, #[[1,1,1,1,1]], masks: [m]);
    f = FoscLilypondFile.rhythm(a);
    f.show;


Instance Methods


value


!!!TODO:

method for use with rhythm-makers, mutation performed directly on array of selections

  1. FIXME: ERROR: Class not defined

    p = #[3,3,3,3,3,-1,3,3,3,3,3,-1];
    m = Threads.makeImpulseRhythm(4/8 ! 8, #[5], fusePattern: p);
    f = FoscLilypondFile.rhythm(m, stretch: 0.8);
    f.show;