ableton-js
Advanced tools
Comparing version 1.2.6 to 1.3.0
@@ -167,3 +167,22 @@ import { Ableton } from ".."; | ||
view: SongView; | ||
jumpToCue(time: number): Promise<any>; | ||
continuePlaying(): Promise<any>; | ||
createAudioTrack(index?: number): Promise<any>; | ||
createMidiTrack(index?: number): Promise<any>; | ||
createReturnTrack(index?: number): Promise<any>; | ||
createScene(index?: number): Promise<any>; | ||
deleteReturnTrack(index: number): Promise<any>; | ||
deleteScene(index: number): Promise<any>; | ||
deleteTrack(index: number): Promise<any>; | ||
duplicateScene(index: number): Promise<any>; | ||
duplicateTrack(index: number): Promise<any>; | ||
isCuePointSelected(): Promise<any>; | ||
jumpBy(amount: number): Promise<any>; | ||
jumpToNextCue(): Promise<any>; | ||
jumpToPrevCue(): Promise<any>; | ||
playSelection(): Promise<any>; | ||
scrubBy(amount: number): Promise<any>; | ||
startPlaying(): Promise<any>; | ||
stopAllClips(): Promise<any>; | ||
stopPlaying(): Promise<any>; | ||
tapTempo(): Promise<any>; | ||
} |
139
ns/song.js
@@ -99,13 +99,144 @@ "use strict"; | ||
} | ||
Song.prototype.jumpToCue = function (time) { | ||
Song.prototype.continuePlaying = function () { | ||
return __awaiter(this, void 0, void 0, function () { | ||
return __generator(this, function (_a) { | ||
return [2 /*return*/, this.ableton.sendCommand(this.ns, undefined, "jump_to_cue", { | ||
time: time | ||
})]; | ||
return [2 /*return*/, this.sendCommand("continue_playing")]; | ||
}); | ||
}); | ||
}; | ||
Song.prototype.createAudioTrack = function (index) { | ||
return __awaiter(this, void 0, void 0, function () { | ||
return __generator(this, function (_a) { | ||
return [2 /*return*/, this.sendCommand("create_audio_track", { index: index })]; | ||
}); | ||
}); | ||
}; | ||
Song.prototype.createMidiTrack = function (index) { | ||
return __awaiter(this, void 0, void 0, function () { | ||
return __generator(this, function (_a) { | ||
return [2 /*return*/, this.sendCommand("create_midi_track", { index: index })]; | ||
}); | ||
}); | ||
}; | ||
Song.prototype.createReturnTrack = function (index) { | ||
return __awaiter(this, void 0, void 0, function () { | ||
return __generator(this, function (_a) { | ||
return [2 /*return*/, this.sendCommand("create_return_track", { index: index })]; | ||
}); | ||
}); | ||
}; | ||
Song.prototype.createScene = function (index) { | ||
return __awaiter(this, void 0, void 0, function () { | ||
return __generator(this, function (_a) { | ||
return [2 /*return*/, this.sendCommand("create_scene", { index: index })]; | ||
}); | ||
}); | ||
}; | ||
Song.prototype.deleteReturnTrack = function (index) { | ||
return __awaiter(this, void 0, void 0, function () { | ||
return __generator(this, function (_a) { | ||
return [2 /*return*/, this.sendCommand("delete_return_track", { index: index })]; | ||
}); | ||
}); | ||
}; | ||
Song.prototype.deleteScene = function (index) { | ||
return __awaiter(this, void 0, void 0, function () { | ||
return __generator(this, function (_a) { | ||
return [2 /*return*/, this.sendCommand("delete_scene", { index: index })]; | ||
}); | ||
}); | ||
}; | ||
Song.prototype.deleteTrack = function (index) { | ||
return __awaiter(this, void 0, void 0, function () { | ||
return __generator(this, function (_a) { | ||
return [2 /*return*/, this.sendCommand("delete_track", { index: index })]; | ||
}); | ||
}); | ||
}; | ||
Song.prototype.duplicateScene = function (index) { | ||
return __awaiter(this, void 0, void 0, function () { | ||
return __generator(this, function (_a) { | ||
return [2 /*return*/, this.sendCommand("duplicate_scene", { index: index })]; | ||
}); | ||
}); | ||
}; | ||
Song.prototype.duplicateTrack = function (index) { | ||
return __awaiter(this, void 0, void 0, function () { | ||
return __generator(this, function (_a) { | ||
return [2 /*return*/, this.sendCommand("duplicate_track", { index: index })]; | ||
}); | ||
}); | ||
}; | ||
Song.prototype.isCuePointSelected = function () { | ||
return __awaiter(this, void 0, void 0, function () { | ||
return __generator(this, function (_a) { | ||
return [2 /*return*/, this.sendCommand("is_cue_point_selected")]; | ||
}); | ||
}); | ||
}; | ||
Song.prototype.jumpBy = function (amount) { | ||
return __awaiter(this, void 0, void 0, function () { | ||
return __generator(this, function (_a) { | ||
return [2 /*return*/, this.sendCommand("jump_by", { amount: amount })]; | ||
}); | ||
}); | ||
}; | ||
Song.prototype.jumpToNextCue = function () { | ||
return __awaiter(this, void 0, void 0, function () { | ||
return __generator(this, function (_a) { | ||
return [2 /*return*/, this.sendCommand("jump_to_next_cue")]; | ||
}); | ||
}); | ||
}; | ||
Song.prototype.jumpToPrevCue = function () { | ||
return __awaiter(this, void 0, void 0, function () { | ||
return __generator(this, function (_a) { | ||
return [2 /*return*/, this.sendCommand("jump_to_prev_cue")]; | ||
}); | ||
}); | ||
}; | ||
Song.prototype.playSelection = function () { | ||
return __awaiter(this, void 0, void 0, function () { | ||
return __generator(this, function (_a) { | ||
return [2 /*return*/, this.sendCommand("play_selection")]; | ||
}); | ||
}); | ||
}; | ||
Song.prototype.scrubBy = function (amount) { | ||
return __awaiter(this, void 0, void 0, function () { | ||
return __generator(this, function (_a) { | ||
return [2 /*return*/, this.sendCommand("scrub_by", { amount: amount })]; | ||
}); | ||
}); | ||
}; | ||
Song.prototype.startPlaying = function () { | ||
return __awaiter(this, void 0, void 0, function () { | ||
return __generator(this, function (_a) { | ||
return [2 /*return*/, this.sendCommand("start_playing")]; | ||
}); | ||
}); | ||
}; | ||
Song.prototype.stopAllClips = function () { | ||
return __awaiter(this, void 0, void 0, function () { | ||
return __generator(this, function (_a) { | ||
return [2 /*return*/, this.sendCommand("stop_all_clips")]; | ||
}); | ||
}); | ||
}; | ||
Song.prototype.stopPlaying = function () { | ||
return __awaiter(this, void 0, void 0, function () { | ||
return __generator(this, function (_a) { | ||
return [2 /*return*/, this.sendCommand("stop_playing")]; | ||
}); | ||
}); | ||
}; | ||
Song.prototype.tapTempo = function () { | ||
return __awaiter(this, void 0, void 0, function () { | ||
return __generator(this, function (_a) { | ||
return [2 /*return*/, this.sendCommand("tap_tempo")]; | ||
}); | ||
}); | ||
}; | ||
return Song; | ||
}(_1.Namespace)); | ||
exports.Song = Song; |
{ | ||
"name": "ableton-js", | ||
"version": "1.2.6", | ||
"version": "1.3.0", | ||
"description": "Control Ableton Live from Node", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
68578
1635