FoscFixedDurationContainer

Returns a FoscFixedDurationContainer.


Description

Fixed duration container


Attributes Summary

Instance Properties

targetDuration_ Sets target duration of fixed-duration container.

Instance Methods

isFull Is true when preprolated duration equals target duration. Otherwise false.
isMisfilled Is true when preprolated duration does not equal target duration. Otherwise false.
isOverfull Is true when preprolated duration is greater than target duration. Otherwise false.
isUnderfull Is true when preprolated duration is less than target duration. Otherwise false.


Usage

  1. FIXME ERROR: Message music not understood.

    m = Array.fill(5, { |i| FoscNote(60+i, FoscDuration(1, 8)) });
    x = FoscFixedDurationContainer(FoscDuration(3, 4), m);
    x.music;
    x.targetDuration.inspect;
    x.inspect;
    x.isFull;
    x.isMisfilled;
    x.isOverfull;
    x.isUnderfull;
    x.prCheckDuration;
    x.targetDuration_([5, 8]);
    x.targetDuration.pair;


Instance Properties


targetDuration_

Sets target duration of fixed-duration container.


Instance Methods


isFull

Is true when preprolated duration equals target duration. Otherwise false.

Returns true or false.


isMisfilled

Is true when preprolated duration does not equal target duration. Otherwise false.

Returns true or false.


isOverfull

Is true when preprolated duration is greater than target duration. Otherwise false.

Returns true or false.


isUnderfull

Is true when preprolated duration is less than target duration. Otherwise false.

Returns true or false.