Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can i use CC to control the instrument? #134

Open
RevolGMPHL opened this issue Dec 12, 2022 · 2 comments
Open

Can i use CC to control the instrument? #134

RevolGMPHL opened this issue Dec 12, 2022 · 2 comments
Assignees
Labels
enhancement New feature or request

Comments

@RevolGMPHL
Copy link

Can i use CC to control the instrument?i want to use CC to control the kontakt instrument, like string or wind. So,how to load the CC controller on kontakt.Thank you so much!

@DBraun DBraun self-assigned this Dec 12, 2022
@DBraun DBraun added the enhancement New feature or request label Dec 12, 2022
@DBraun
Copy link
Owner

DBraun commented Dec 12, 2022

I haven't tested this, so I would request your assistance. A few things might work.

  1. Look for MIDI CC parameters in synth.get_parameters_description(). Treat them like any other parameter. You can set them as constants or give them numpy arrays for automation.

  2. Using some other Python library, save your MIDI CC automation into a MIDI file and then call synth.load_midi(filepath, clear_previous=True, beats=False, all_events=True). Those are the default kwargs for load_midi. all_events is the kwarg that is meant to signify that all events (including MIDI CC) will be used from the file. However, I haven't gotten around to testing this yet, sorry!

@RevolGMPHL
Copy link
Author

I try this how it works

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants