Skip to content

Commit

Permalink
🗑️ Deprecate removeNotes and add removeNotesExtended as a replace…
Browse files Browse the repository at this point in the history
…ment
  • Loading branch information
leolabs committed Sep 10, 2023
1 parent 3a2571f commit ac02271
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions src/ns/clip.ts
Original file line number Diff line number Diff line change
Expand Up @@ -303,6 +303,8 @@ export class Clip extends Namespace<

/**
* Deletes all notes that start in the given area.
*
* @deprecated starting with Live 11, use `removeNotesExtended` instead
*/
removeNotes(
fromTime: number,
Expand All @@ -318,6 +320,23 @@ export class Clip extends Namespace<
]);
}

/**
* Deletes all notes that start in the given area.
*/
removeNotesExtended(
fromTime: number,
fromPitch: number,
timeSpan: number,
pitchSpan: number,
) {
return this.sendCommand("remove_notes_extended", [
fromTime,
fromPitch,
timeSpan,
pitchSpan,
]);
}

/**
* Replaces selected notes with an array of new notes.
*/
Expand Down

0 comments on commit ac02271

Please sign in to comment.