Appends a new note with the given pitch, velocity and number of ticks, which logically means a note-down for the given number of ticks and a
note-up afterwards.
Returns the first tick of the given chord section number (starting from 0) or -1 if the chord section number is negative or at or beyond the
end of the song.
Returns the number of ticks the current chord section will be played from the given tick position before the next chord section will begin or
the song will end.
Returns the number of ticks the current chord will be played from the given tick position before the chord will change or the song will end
(whichever happens first).
Returns the length of the interval beginning with the given tick, i.e., the number of ticks until the activity state changes or the end of the
vector is reached.
Version of the usual String.hashCode() method that computes a long hash code instead of an int hash code, using the same algorithm as the
original method.
Returns the minimum and the maximum length of all activity segments of the given ActivityVector as well as the minimum and maximum length of
all pauses between activity segments, all counted in chord sections.
Returns the pitch of the given chord offset. 0 will return the low pitch, 1 the middle pitch, 2 the high pitch, 3 the low pitch transposed up
by 1 octave, etc.
Converts the given random value (between 0 and 1) into a double with a power distribution of the given exponent between min (inclusive) and max
(exclusive).
Returns the current random seed, which is the last seed set by setRandomSeed() or the initial random seed if setRandomSeed() hasn't been called
before.
Returns a random double uniformly distributed within min (inclusive) and max (exclusive). max cannot be returned by this method, but even if it
could, the probability for the random value being exactly max would be negligible (in the order of 2^-53).
Represents a pattern, which is like a repeatable Sequence, but is immutable and allows particular notes (or offsets) as well as wildcards used for
special purposes.
Implements a generic sequence engine that generates a random pattern, with random pitches, random note and pause lengths, random legato and random
velocity, as well as the ability to repeat subpatterns.
Implements a generic sequence engine that generates a random pattern, with random pitches, random note and pause lengths, random legato and random
velocity, as well as the ability to repeat subpatterns.
Implements a generic sequence engine that generates a random pattern, with random pitches, random note and pause lengths, random legato and random
velocity, as well as the ability to repeat subpatterns.
Modifies the ActivityVector so that all interval changes from inactive to active are postponed by startTicks and all changes from active to
inactive are postponed by stopTicks ticks. startTicks and stopTicks may also be negative to prepone instead of postpone.
Extension to the RemoteControl which allows terminal-style communication, e.g., allowing input of lines by the user and allowing output of lines by
the system.