Using MIDI within a poly~


    Apr 03 2006 | 7:54 pm
    Hi,
    I can't seem to find any help with this in the tutorial files. I've set up a tri~ in a poly~ with two voices. I'm using a MIDI notein to trigger the tri~.
    So I unpack the data within the poly~ and it plays a seperate note in each instance fine, however the problem is that the correct instance will never receive a noteoff message. Do I have to use 'target' for each noteon and noteoff message and keep a track of which instance is in use manually or is there a way for the poly~ to automatically send the correct noteoff to the correct instance?
    Hopefully my explaination wasn't too bad there.
    Cheers, Al.

    • Apr 03 2006 | 8:07 pm
      Quote: Al wrote on Mon, 03 April 2006 12:54 ----------------------------------------------------
      > > So I unpack the data within the poly~
      ...but your "notein" is outside the poly~, yes?
      >Do I have to use 'target' for each noteon and noteoff message and keep a track of which instance is in use manually or is there a way for the poly~ to automatically send the correct noteoff to the correct instance? >
      right. Use poly (no ~) or Borax to manage this for you.
      mz
    • Apr 03 2006 | 8:54 pm
      It seems to me to be impossible to target an instance that is busy although most probably I have done something wrong. I have used the 'poly' object to find the voice number. I then use a 'set target $1' messagebox to create a messagebox with the correct target number in it. My Midi note information is held in another messagebox and I use a 't b b' to bang the target message first and the note information second but I still can't seem to get noteoffs to work.
      Cheers for the help,
      Al.
    • Apr 03 2006 | 9:00 pm
      Quote: Al wrote on Mon, 03 April 2006 13:54 ---------------------------------------------------- > It seems to me to be impossible to target an instance that is busy although most probably I have done something wrong. I have used the 'poly' object to find the voice number. I then use a 'set target $1' messagebox to create a messagebox with the correct target number in it. My Midi note information is held in another messagebox and I use a 't b b' to bang the target message first and the note information second but I still can't seem to get noteoffs to work. > > Cheers for the help, > > Al. ----------------------------------------------------
      Busy poly~'s ignore the messages "note" and "midinote". You'll need to send your noteoff as some other message.
      Post a patch?
      mzed
    • Apr 03 2006 | 9:33 pm
      I think the target numbers can't be working correctly. There's probably a far simpler way of doing this:
      _____________ Maxsynth.pat _____________
      ________________ triangleosc.pat ________________
    • Apr 03 2006 | 9:46 pm
      Here's the outside patch:
    • Apr 03 2006 | 9:47 pm
      triangleosc.pat:
    • Apr 03 2006 | 10:02 pm
      That's great, very neat. So simple really, should have thought about it before.
      Thanks alot!
      Al.
    • Apr 05 2006 | 9:10 am
      Alistair wrote: > That's great, very neat. So simple really, should have thought about it before.
      But still, it could be much much simpler, all the polyphony handling is built into poly~...
      simplified triangleosc:
      simplified main patcher:
      --
      [][] [][][] [][] [][][] [][][][][][][][][][][][][][][]
      Stefan Tiedje Klanggestalter Electronic Composition & Improvisation
      /~~~~~ \ /|() ()| ))))) )| | |( \ /// _/)/ ))))) ___/ ///
      -------------------------x---- --_____-----------|----------- --(_|_ ----|-----|-----()---- -- _|_)----|-----()----------- ----------()------------x-----
      14, Av. Pr. Franklin Roosevelt, 94320 Thiais, France Phone at CCMIX +33-1-57 42 91 09