Add warp markers, extended notes, and time conversion to clip handler#198
Open
bimsonz wants to merge 1 commit intoideoforms:masterfrom
Open
Add warp markers, extended notes, and time conversion to clip handler#198bimsonz wants to merge 1 commit intoideoforms:masterfrom
bimsonz wants to merge 1 commit intoideoforms:masterfrom
Conversation
Warp markers: get/add/move/remove endpoints using Live 12 WarpMarker API (clip.add_warp_marker with WarpMarker object constructor). Extended notes: 8-field format adding probability, velocity_deviation, and release_velocity via get/notes_extended and add/notes_extended endpoints. Uses MidiNoteSpecification constructor kwargs. Time conversion: beats-to-samples and samples-to-beats via clip.beat_to_sample_time/sample_to_beat_time. New methods: crop, quantize, select_all_notes, deselect_all_notes. New read-only properties: is_arrangement_clip, sample_rate, signature_numerator, signature_denominator.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
WarpMarkerAPIbeat_to_sample_time/sample_to_beat_timeDetails
Warp markers: Uses
Live.Clip.WarpMarker(sample_time, beat_time)constructor andclip.add_warp_marker()for Live 12 compatibility. Shadow marker is excluded from get responses.Extended notes:
get/notes_extendedreturns 8 fields per note (pitch, start, duration, velocity, mute, probability, velocity_deviation, release_velocity).add/notes_extendedpasses all fields viaMidiNoteSpecificationconstructor kwargs with fallback for older Live versions.Time conversion:
convert/timeendpoint converts between beats and samples using clip's native conversion methods.Files changed
clip.py— all changes in a single file (120 insertions, 9 deletions)