Event timing problem


    Jan 01 2009 | 9:49 pm
    Hello all Happy New Year! I've been trying something out using the MSP Tutorial patch on MIDI Panning as a departure. I am using two Graphic Function Editors to control the envelope of a noise source and also the panning of the noise as it's played. The note and corresponding panning are both triggered by a single bang. Heres the problem. Say I have a sound travel from all the way left to all the way right over the course of it's duration. When triggered again the sound will start in the right channel for a brief instant before going back to the left channel to repeat. How do I get the sound and the panning to start at the same time? I've tried rearranging the Left to Right orientation of elements in my patch to see if it's got something to do with event order in Max but so far that hasn't seemed to make a difference. Any help you could give is very appreciated. Thank you very much in advance.
    -B

    • Jan 01 2009 | 10:18 pm
      also HAPPY NEW YEAR
      It would be good to post your patch.
      Anyway. Do you use trigger (or t) to make sure that you know the order in which events are occurring in stead of relying on right to left order?
      Best, Hans.
    • Jan 01 2009 | 10:37 pm
      Sorry, I thought that uploading the patch as an attachment would work.
      Here is the text. Thanks!
    • Jan 02 2009 | 1:06 am
      Hi Blazorge,
      The base of your problem lies in the fact that you mix up control rate messages and audio-streams. each control rate message takes from 1 to 20 ms to take hold (this depends on your preferences settings regarding the scheduler).
      When you end the sweep you stay on 127 and keep doing snapshots. This means that when you start there has just been a snapshot of 127 ready at the right side of your signal multiplication.
      As soon as you push the bang button, the noise starts. your Linear Crosfade though is still busy to go from right (your 127 devided by 127) to left (what takes an amazing 20 ms because of the line object!!!
      I made a small addition that takes the panningpoint back to the start (The 2nd outlet of the breakpoint function editor sents out a float and then a list. I pick out the float which is the first Y-value of the breakpoint function). I wait till the audio-envelope is finished end then I bang the float that is waiting in the message box to the line-object that is instantly reset to the begin point.
      I hope that will answer your question.
    • Jan 03 2009 | 12:36 am
      Thanks so much for your help. This has helped me learn a lot. Your solution is very clever and I really appreciate it. I myself added send and receive objects leading from the right outlet of the "Panning" breakpoint function editor back to it's own inlet at the top so that when the graph is changed with a mouse action, the start position is refreshed for a new event. I don't know anything about finessing Max/MSP/Jitter preferences (or for that matter any computer system settings) to optimize performance. I've always just left the default settings. I wonder if there are any articles out there that address this? Anyway, thanks very much again and Happy New Year!
      -B