FoscStaffChange

Returns a FoscStaffChange.


Description

Staff change.


Attributes Summary

Instance Properties

context Gets context. Returns Staff.
staff Gets staff of staff change. Returns staff or nil.
tweaks Tweaks are not implemented on staff change.

Instance Methods: Special Methods

str Gets string representation of staff change.


Usage

  1. Example

    g = FoscStaffGroup();
    a = FoscStaff(FoscLeafMaker().(#[60,62,64,65], [1/8]), name: 'RH');
    b = FoscStaff([FoscSkip(2/4)], name: 'LH');
    g.addAll([a, b]);
    m = FoscStaffChange(b);
    a[2].attach(m);
    g.show;


Instance Properties


context

Gets context. Returns Staff.

  1. Example

    a = FoscStaffChange();
    a.context.postcs;
    'Staff'


staff

Gets staff of staff change. Returns staff or nil.

  1. Example

    a = FoscStaffChange();
    a.staff.isNil.postln;
    true
  2. Example

    x = FoscStaff();
    a = FoscStaffChange(x);
    (a.staff == x).postln;
    true


tweaks

Tweaks are not implemented on staff change.


Instance Methods: Special Methods


str

Gets string representation of staff change.

Returns string.

  1. Default staff change.

    a = FoscStaffChange();
    a.str;
    \change Staff = ##f
  2. Explicit staff change.

    x = FoscStaff(name: 'LH');
    a = FoscStaffChange(x);
    a.str;
    \change Staff = "LH"