What beat within the clip that the bend starts
How many beats the bend lasts
How much bend to apply, valid values range from 0 - 127, or a Tween object which defines a strategy for how to change over the course of the bend's lifetime.
Which channel to play the bend on, valid values range from 0 - 15, or null to allow whatever is playing the clip to decide
Which channel to send the bend to, valid values range from 0 - 15, or null to allow whatever is playing the clip to decide
The difference between the start
and end
values.
Attempts to set this to a negative value will result in an error being thrown.
The value which the range ends at.
Attempts to set this to a value less than start
will result in an error being thrown.
How much bend to apply, valid values range from -1 to +1, or an ITween object to allow for values that change over time.
In the MIDI standard, bends are defined by 2 7-bit numbers put together, this makes sense within the specification, but is not particularly friendly to work with. Shimi prefers to work with percentages for ease of use.
An example of using a tween to make a bend that smoothly eases up:
clipBend.percent = Tween.sineInOut(0, 1);
The value which the range starts at.
Attempts to set this to a value greater than end
will result in an error being thrown.
Returns the name of this type. This can be used rather than instanceof which is sometimes unreliable.
Accepts a value and returns what percentage of the way into the range that the value is.
The returned value can be negative, or greater than 100%, if the passed in value is less than the range start, or greater than the range end.
The value to compare against the range.
Static
loadGenerated using TypeDoc
ClipBend represents a bend to be played within a clip, specifying the start and end of the bend, as well as the bend amount and optionally shape.