Recording Sound + Image

    Mar 06 2012 | 2:06 pm
    I've been taking a Max/MSP basic course thru Mass Art and now I'm starting to build my final project - I need some Help!
    I need to achieve:
    1. Record 1 second of sound every 288 seconds, saving it with a name like Sample1, Sample2, Sample3 and so a specified folder. 2. Record one Image snapshot thru the camera every 288 seconds too, and save them in the same way..Image1, Image2, etc.
    My project consists on a 24 hour time-lapse of an installation. Both the sound and image capture can be triggered by the same bang, but my conflict is in the saving of the files.
    How can I automate the saving of a recording sound so I don't have to type the file name every 288 seconds over a 24 hour period of time?
    It should be simple, let me know if it makes sense!!

    • Mar 06 2012 | 2:24 pm
      In Max' Extras menu, there is a patch called "Quickrecord". Edit the patch and have a look at the Path patcher. There, you'll see how to create a filename based on the time. The idea is to use date and sprintf (or combine).
    • Mar 06 2012 | 3:19 pm
      Thank you Patrick,
      The combination of both "date" and "sprintf" works perfectly for saving audio samples with the current time format. Now That I move forward with my patch, I'm finding other simple issues. I will look further, but I'm trying to create a counter that will output a bang every 2 minutes. That's simple to achieve, but exactly:
      I need to output two bangs (1 second apart each) every two minutes. This way the bang will trigger the recording on/off for one second every 2 minutes.
      I wil look further, it seems simple but if you have any suggestion please let me know!
    • Mar 06 2012 | 3:46 pm
      one possibility(more elegant versions?):
    • Mar 06 2012 | 3:50 pm
      metro 120000 will give you a bang every 2 minutes, and with a delay 1000, you'll get a second bang one second later.
      If you need precise timings, I'd check if there is not time drift over 24h with metro. If it's the case you may rather use a phasor~, which will give you more accurate results.
      As you use date, you could also trigger it quite fact (every 100ms for instance) and check when the minutes turn into an odd (or even) value. So, no worries about a metro drift!
    • Mar 06 2012 | 5:02 pm
      So helpful!!!!
      Thank you very much!!! i think I can do it front his point. will post an update of the final patch!