adding markers/flag to audio recordings

vivamax's icon

can anyone suggest a quick way to add markers to an audio recording. preferably, live during recording if not by editing the recorded file.

pdelges's icon

On 17-mai-07, at 19:51, assegid kidane wrote:

>
> can anyone suggest a quick way to add markers to an audio recording.
> preferably, live during recording if not by editing the recorded file.

I'm afraid there are no way to add markers in a soundfile thru Max/MSP
yet. You could record the markers positions in a [coll]. I think I once
saw in a sound editor on MacOSX the possibility to import a text file
containing markers positions, but don't remember which one it was
(Amadeus maybe...)

But you can read markers in Max/MSP with [sfmarkers~] ;-)
I sometimes think I should add this feature to this object, but nobody
showed interested in this so far, and I don't like the idea that in a
realtime environment, you have to wait many seconds until the soundfile
with the added markers is saved. It should rather be a feature of
[sfrecord~] (but I'm afraid the problem of saving the file would be the
same: you now how many markers you have only once you finished the
recording)

p

davidestevens's icon

The way I've done this is to record pointers into a coll and store it
with the soundfile. When I load a soundfile, I also load the coll,
and use that to determine the playback segments. I'm just about to
make a conference call, but I can either give you a bit more
explanation, or try and separate out that part of my patch if you
need more help.

David

On 18 May 2007, at 10:17, Patrick Delges wrote:

>
> On 17-mai-07, at 19:51, assegid kidane wrote:
>
>>
>> can anyone suggest a quick way to add markers to an audio
>> recording. preferably, live during recording if not by editing the
>> recorded file.
>
> I'm afraid there are no way to add markers in a soundfile thru Max/
> MSP yet. You could record the markers positions in a [coll]. I
> think I once saw in a sound editor on MacOSX the possibility to
> import a text file containing markers positions, but don't remember
> which one it was (Amadeus maybe...)
>
> But you can read markers in Max/MSP with [sfmarkers~] ;-)
> I sometimes think I should add this feature to this object, but
> nobody showed interested in this so far, and I don't like the idea
> that in a realtime environment, you have to wait many seconds until
> the soundfile with the added markers is saved. It should rather be
> a feature of [sfrecord~] (but I'm afraid the problem of saving the
> file would be the same: you now how many markers you have only once
> you finished the recording)
>
> p
>

vivamax's icon

Thanks Patrick. The sfmarkers~ object is a great idea. But my copy of Max does not have sfmarkers~ :-) I was very excited for a moment though. I am currently using the coll object to create a separate marker file. If you know of an application that can combine the text marker file with the sound track, please let me know. Both mac and PC.

vivamax's icon

Thank you for your Help David. I am currently working with the coll object to accomplish this. Is there a way to get the current time including fractions of a second (millisecond or 1/100th of a second)in max? The date function gives time in seconds resolution. The ticks outlet is in 1/60th secs but it is relative to system start up and I am wondering if it will match the time stamping of the sound recording precisely. cpuclock outputs in milliseconds but it counts relative to max startup. How do you precisely match the sound file with the marker file?

pdelges's icon

On 21 mai 07, at 01:20, assegid kidane wrote:

> Thanks Patrick. The sfmarkers~ object is a great idea. But my copy of
> Max does not have sfmarkers~ :-)

See www.maxobjects.com
There is actually only a Mac version. f.e.?? ;-)

> I was very excited for a moment though. I am currently using the coll
> object to create a separate marker file. If you know of an application
> that can combine the text marker file with the sound track, please let
> me know. Both mac and PC.

I have no time to check now, but it is possible to import markers via
AmadeusII (Mac), although I don't know if they will be stored as
markers in the file. There is a demo of Amadeus, so you can check
yourself ;-)

> Is there a way to get the current time including fractions of a second
> (millisecond or 1/100th of a second)in max?

In [sfplay~], there is an optional outlet (even 2 outlets) that gives
you accurate positions.
In [sfrecord~], the outlet is not optional, it's always there.
Check the help files!

_____________________________
Patrick Delges

Centre de Recherches et de Formation Musicales de Wallonie asbl
http://users.skynet.be/crfmw/max

davidestevens's icon

hi Oz,

here's the timer part of my recorder patch. I match the sound file
and marker file by giving them the same name during the saving
process. If you're not sure how that works, I could send or upload
the "compile buffer" part of my patch, but it's too large to post as
text.
When the paired files are reloaded, I use the marker coll to send
play from/to instructions to my playback module (which uses
[play~ ]). What I do is to select the segment I want to play by
number (ie segment 1, 2, 3, etc) and use those numbers to recall the
miilisecond positions within the file from the coll. (Segment 1 is
slot 1 in the coll etc).
So - send segment number to coll; that retrieves play start/stop
positions; send those to play~ .
Does that make sense? The functionality of all this is distributed
across several different subpatchers, so it's not really possible for
me to send something which illustrates the whole process in a single
patch.

David

Max Patch
Copy patch and select New From Clipboard in Max.