Skip to content

MIDI CC to rate? #143

Open
Open
@TubularCorpration

Description

@TubularCorpration

I've been poking around in the video player code a bit and it looks like it wouldn't be that tough to implement CC control of playback rate, but I'm not sure what the valid range of speed values are. I think I could probably work out how to scale CC data to a valid range and write an action that would read the current playback location, set the rate to the scaled CC value, and then retrigger the clip from the current playback location that was read earlier (from what I can tell the current increase/decrease speed functions have to retrigger the current clip to make the speed change take effect, so I'm assuming if I wanted to change the speed on the fly without changing the current playback location the function would need to retrigger it at the current location after setting the new rate). Does this sound correct?

I'm basically looking for a way to set the speed to a specific value via MIDI in the same way I've been setting the playback position, so the sequencer I'm using to control playback position can use a different CC to control speed. Not expecting smooth changes, just looking to fire off single CC values.

Also when I was in there I noticed a typo in actions.py:

def decrease_speed(self):
    print("increasing speed !")

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions