Modify script "Notes per octave"?

Holzwurm
Holzwurm Member Posts: 2 Newcomer
edited March 20 in Scripting Workshop

Hi, I hope I'm in the right place for my question, which is: The script "Notes per octave", found among the presets of the script editor, has worked well for me, but now I would need to be able to automate the "Notes per octave" field's value by mIdi cc message. The value range in the original script is 1-1200

As I'm not able to edit the script beyond a trial-and-error approach, I would really appreciate if somebody could tell me if it would be possible to downscale the value range to 1-127 and make it "learnable" to midi cc messages.

Thanks!

Comments

  • theodorech
    theodorech Member Posts: 84 Member

    You’ll need to switch from ui_value_edit to ui_knob if you want to make it MIDI CC learnable. So it should look like this:

    declare ui_knob $Notes (1, 1200, 1)
    

    1 is the minimum value and 1200 is the maximum. Adjust those numbers based on what you need.

  • Holzwurm
    Holzwurm Member Posts: 2 Newcomer

    Thank you, that was very helpful!

Back To Top