Forums > MaxMSP

Record live but keep only the end

Apr 30 2009 | 8:02 pm


I would like to ask for some advice. I am working on a percussion instrument connected with the Arduino. The idea is to record the performance but with only keeping the last 4-5 seconds of it.

Basically I stop playing > increase the volume of the recorded sample > and hear it as if it was a long delay.

Is this possible or shall I just have it easy : press a button with my feet to record > press again to stop > and play the buffer back in groove for instance?

Out of convenience I would like to avoid the last one as I would like to trigger sounds with my feet.

Any help greatly appreciated.
Thank you

Apr 30 2009 | 9:44 pm

any particular reason why you need it recorded? why not just use a long delay? then you could check the incoming level and if it is below a certain threshold you increase the volume of the delayed signal so you can hear it.
just a thought…

May 01 2009 | 5:30 am

hello MIB

this is a very good idea (tapin and tapout)! Though I would like to keep the "part of the signal" and loop it, change the rate of it with an infrared sensor.
thank you!


May 01 2009 | 7:14 am

it’s late and my brain might not be working properly, but once you have your tapin/tapout setup the way you need with fade-ins/outs it shouldn’t be too difficult to record that to disk or buffer, since you should know exactly how long it is going to be and when it started… but I would suggest to have a crack at the delay first and see if that is working for you at all, and then go from there.

another way might be to just record everything to disk with sfrecord~ then load it into a buffer and just keep (or play) the last 4 seconds. you might want to look at waveform~ and the "crop" message for that… the downside for that is that you might have to deal with huge files.

if you need more help just post your patch or relative part thereof, someone will be able to help…

May 01 2009 | 10:12 am

Hi K

It sounds like you just need to record in a small loop. The record~ will by default record in a loop.
If you set a buffer size to 5 sec then you will always have the last 5 seconds of your performance in the buffer.
You then just need to stop recording and there you have your 5 sec loop you can use in groove~
If groove~ is looping it will play a copy of your signal as if there was no loop. Then when you stop recording it will be a sound loop.

May 01 2009 | 10:56 am

ohhh Yes, thank you Morton and MIB, this is what I was looking for.
nice and simple.

all the best

Viewing 6 posts - 1 through 6 (of 6 total)

Forums > MaxMSP