Author |
Topic: Limit Polyphony With A Script (Read 2012 times) |
|
magicalplug
New Member

 MIDI-OX Rules!
Posts: 1
|
 |
Limit Polyphony With A Script
« on: Aug 9th, 2010, 12:46pm » |
Quote Modify
|
Hi. I'm completely new to scripting. I need some help writing a script so MIDI-OX limits the polyphony allowed through in a specific note range. I.e. between C2 and C4 I only want three notes to ever be allowed through simultaneously, meaning old notes are killed as new ones come through - ensuring polyphony remains at three notes max. In addition, I would like to be able to toggle whether notes are forced to sustain (creating a legato effect) or not. Is this possible within the realms of MIDI OX scripting, and if so can anyone help me get started?
|
« Last Edit: Aug 9th, 2010, 12:47pm by magicalplug » |
IP Logged |
|
|
|
Jamie OConnell
Administrator
    


Gender: 
Posts: 2027
|
 |
Re: Limit Polyphony With A Script
« Reply #1 on: Sep 3rd, 2010, 3:07am » |
Quote Modify
|
It's possible. You're going to need to keep a list and count of which notes are sounding, and discard any or turn off any that exceed polyphony limits. You might also need to associate timestamps to turn off the oldest note.
|
|
IP Logged |
--Jamie Music is its own reward.
|
|
|
|