real-time looping

    Jan 24 2006 | 3:28 pm
    Hi, I was wondering if anyone can help me. Basically I built a patch that uses a dancemat to control sample play-back of beats and so on.
    but what I intend to do and just cant figure out (im relatively new to max, about 3 months in) is that once I finish playing out the beat on the mat and i click 'stop' i want it to play back what I just played and loop it.
    is this a bit of a tall order? Im pretty sure its to do with the buffer~ but due to the specific nature of what I want to do, it's quite difficult to figure it out just through the help files.
    Any help would be fantastic! thanks in advance,

    • Jan 24 2006 | 5:41 pm
    • Jan 24 2006 | 7:55 pm
      its a recorded sound, because all the mat does is trigger certain drum samples, it is the audio output of this triggering that I want to loop.
    • Jan 24 2006 | 10:22 pm
      it seems to me that it might be easier to just record the triggering events, rather than the audio -- plus then, you have a lot more power to manipulate the sounds later on!
    • Jan 24 2006 | 11:31 pm
      yeah that does seem like a better idea. just one question, how do I go about that? sorry im really new to this, ill have a look through the tutorials now, but i usually find them too specific.
    • Jan 24 2006 | 11:53 pm
      check out the mtr object. it's a multi-track recorder that records control information rather than audio.
    • Jan 26 2006 | 4:12 pm
      woah it worked fine! thanks so much! that's a great object that i will be using alot in the future. just one question though, is there any way of looping the recorded sequence? ive tried 'loop $1' with no success...
    • Jan 26 2006 | 7:05 pm
      you're welcome, glad i could help!
      you could just set something up to send it a "play" message every time the appropriate number of milliseconds has passed... mtr starts up from the beginning whenever it receives a "play" message.
    • Jan 27 2006 | 10:33 pm
      cool, a dancemat. I'm always into new ways of makin' music without the mouse!!
      Seems like the mtr object is where it's at. boy, are there possibilities with that one..... remember you can overdub track-by-track too, and save the recorded control files.
      If you want to actually record the audio, use sfrecord~ rather than recording into a buffer~ (at least I got better results with it). Plus you can record as long as you want without specifying at the start. It's true the mtr will give you more flexibility, but you might want audio recording too. Heck, you could just use mtr, then have it play back automatically and then hit sfrecord~ !
      Also, with audio tracks, it may be easier to layer your beats (if you want to go that route).
      Have fun!