Colour tracking to cut out main audio mix (combing 2 max patches)

    May 05 2010 | 2:35 pm
    Im very new to max/msp and need help asap.
    I have 2 max patches one that uses colour tracking with jit.findbounds with a web camrea that tracks red, green and blue triggering different audio samples. The other uses a dac~ to output different audio to different channel outputs. Which plays the main audio mix that i want playing constantly
    What i want to do is have the dac~ (main mix) to play and have the colour tracking patch to cut out the main mix and play the tiggered audio corresponding to the colour shown on the web camera. Then when the colour is removed the main mix will play.
    I would appreciate any help in making me achieve this. Thanks

    • May 06 2010 | 2:23 pm
      It sounds like what you're wanting to do is:
      a) have a "main mix" soundfile running constantly,
      b) when a particular color occurs, then
      --1) trigger the corresponding soundfile,
      --2) fade down the main mix while fading up the triggered soundfile, and
      c) when the color disappears
      --1) fade up the main mix while fading down the soundfile,
      --2) stop the soundfile when the crossfade has finished.
      A really good object for such audio crossfades is matrix~.
      Some possibly relevant example exist at: