-
Notifications
You must be signed in to change notification settings - Fork 2
module node liveosc Clip.API
node-liveosc~ Clip
Clip object, represents a clip in the Ableton Live set.
| Name | Type | Description |
|---|---|---|
liveosc |
Object | LiveOSC instance |
track |
Object | Track this Clip belongs to |
id |
Number | id of the clip |
- Source:
-
The coarse pitch of the clip (audio clips only)
- Number
- Source:
-
EventEmitter for clip events
- EventEmitter
- Source:
-
The fine pitch of the clip (audio clips only)
- Number
- Source:
-
The id of this clip
- Number
- Source:
-
The length of the clip in beats
- Number
- Source:
-
Instance of LiveOSC
- Object
- Source:
-
The loop end position of the clip in beats
- Number
- Source:
-
The loop start position of the clip in beats
- Number
- Source:
-
The loop enabled state of the clip
- Number
- Source:
-
The name of this clip
- String
- Source:
-
The playing state of this clip
0 = empty (no clip) 1 = stopped 2 = playing 3 = triggered
- Number
- Source:
-
The track this clip belongs to
- Object
- Source:
-
The warping mode of the clip
0 = Beats 1 = Tones 2 = Texture 3 = Repitch 4 = Complex 5 = Complex Pro
- Number
- Source:
-
Called when a clip is refreshed or destroyed
- Source:
-
Emit a clip event
Name Type Description evString event name
paramsObject event parameters
- Source:
-
Listen for a clip event, current events are:
state loopstart loopend loopstate warping coarse fine name destroy
Name Type Description evstring event name
cbfunction callback
- Source:
-
Trigger the clip to start playing
- Source:
-
Refresh the state of the clip
- Source:
-
Sets the loop end position of the clip in beats
Name Type Description loopendNumber the loop end position in beats
- Source:
-
Sets the loop start position of the clip in beats
Name Type Description loopstartNumber the loop start position in beats
- Source:
-
Enable or disable looping of the clip
Name Type Description loopstateNumber 0 to disable, 1 to enable
- Source:
-
Set the name of the clip
Name Type Description nameString the new clip name
- Source:
-
Set the pitch of the clip (audio only)
Name Type Description coarseNumber the coarse pitch of the clip
fineNumber the fine pitch of the clip
- Source:
-
Set the warping mode of the clip
0 = Beats 1 = Tones 2 = Texture 3 = Repitch 4 = Complex 5 = Complex Pro
Name Type Description warpingNumber the new warping mode
- Source:
-
Trigger the clip to stop playing
- Source:
-
Focus the clip
- Source:
-
Listen for /live/clip/info
Name Type Description trackIdNumber the id of the track
clipIdNumber the id of the clip
stateNumber the new playing state of the clip
lengthNumber the new length of the clip
- Source:
-
Listen for /live/clip/name
Name Type Description trackIdNumber the id of the track
clipIdNumber the id of the clip
nameString the new name of the track
- Source:
-
Listen for /live/clip/loopend
Name Type Description trackIdNumber the id of the track
clipIdNumber the id of the clip
loopendNumber the new loopend position
- Source:
-
Listen for /live/clip/loopstart
Name Type Description trackIdNumber the id of the track
clipIdNumber the id of the clip
loopstartNumber the new loopstart position
- Source:
-
Listen for /live/clip/loopstate
Name Type Description trackIdNumber the id of the track
clipIdNumber the id of the clip
loopstateNumber the new loop state
- Source:
-
Listen for /live/pitch
Name Type Description trackIdNumber the id of the track
clipIdNumber the id of the clip
coarseNumber the new coarse pitch
fineNumber the new fine pitch
- Source:
-
Listen for /live/clip/warping
Name Type Description trackIdNumber the id of the track
clipIdNumber the id of the clip
warpingNumber the new warping state
- Source: