UNPKG

@mseep/ableton-copilot-mcp

Version:
17 lines 607 B
import { ableton } from '../ableton.js'; export async function removeNotesExtended(clip, fromPitch, pitchSpan, fromTime, timeSpan) { const abltonMajorVersion = await ableton.application.get('major_version'); if (abltonMajorVersion < 11) { return clip.removeNotes(fromTime, fromPitch, timeSpan, pitchSpan); } return clip.sendCommand('remove_notes_extended', [ fromPitch, pitchSpan, fromTime, timeSpan, ]); } export async function removeAllNotes(clip) { return removeNotesExtended(clip, 0, 127, 0, 9999); } //# sourceMappingURL=clip-utils.js.map