Help with setting up part of my patch

    May 16 2011 | 12:32 pm
    Afternoon everyone,
    I was just after some guidance with some work I have been doing.
    After creating a patch which will play samples when the inputs of a controller I've made are used I'm struggling to set it so that the sample to be triggered plays after the controllers input goes over 1 (its on a scale of 0-1000 which is turned into a value from 0-127).
    All I'm trying to do in this patch is have it so that when a signal goes through which is >1 (when the sensor inputs detect anything) a sample is played.
    I've got it to detect the incoming signals, just struggling with getting it to play as I've no idea what function I need to use.
    If there is a tutorial anyone knows of on the internet which could help me with this feel free to just post a link.
    Many thanks

    • May 16 2011 | 1:15 pm
      try buffer~ and groove~, or for direct play use sfplay~
      you might also try [change] on your signal detection so that it won't continuously trigger while it's above 1.
    • May 17 2011 | 3:54 pm
      slightly different approach, finally getting nearer what I need but its gone strangely wrong...