User Forum    :: Powered by YaBB
  « MIDI-OX User Forum - Limit Polyphony With A Script »
Welcome, Guest. Please Login or Register.
May 9th, 2025, 9:08am


Home Home Help Help Search Search Members Members Login Login Register Register


   MIDI-OX User Forum
   MIDI-OX
   Scripting Questions
(Moderator: Jamie OConnell)
   Limit Polyphony With A Script
« Previous topic | Next topic »
Pages: 1  Reply Reply Notify of replies Notify of replies Send Topic Send Topic Print Print
   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 Quote Modify 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
*****






   
WWW Email

Gender: male
Posts: 2027
Re: Limit Polyphony With A Script
« Reply #1 on: Sep 3rd, 2010, 3:07am »
Quote Quote Modify 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.

Pages: 1  Reply Reply Notify of replies Notify of replies Send Topic Send Topic Print Print

« Previous topic | Next topic »


MIDI-OX User Forum » Powered by YaBB 1 Gold - SP 1.3.1!
YaBB © 2000-2003. All Rights Reserved.