Recording Sound + Image

Mar 6, 2012 at 2:06pm

Recording Sound + Image

Hello,

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 on…in 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!!

Thanks!

#62187
Mar 6, 2012 at 2:24pm

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).

p

#224612
Mar 6, 2012 at 3:19pm

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!

#224613
Mar 6, 2012 at 3:46pm

one possibility(more elegant versions?):

Helmuth

– Pasted Max Patch, click to expand. –
#224614
Mar 6, 2012 at 3:50pm

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!

– Pasted Max Patch, click to expand. –
#224615
Mar 6, 2012 at 5:02pm

So helpful!!!!

Thank you very much!!! i think I can do it front his point. will post an update of the final patch!

#224616

You must be logged in to reply to this topic.