loop cropping when recording ends

May 9, 2010 at 3:10pm

loop cropping when recording ends

Hi,

How can you crop a buffer sample as soon as you finish recording and according to the time it finished. I.e. you have a buffer of 2500ms and you stop recording into it at 1500ms, and as soon as you stop recording the buffer is cropped to the exact time recorded – so recording dictates the buffer size.

cheers

#50278
May 9, 2010 at 4:46pm

..because using the [resize] message causes the [buffer~] to be reinitialized, wiping the contents! I know. Although I haven’t used it a lot, look at the [waveform] object (which you ally to your buffer by using the [set myBuffer] message, where myBuffer is the name of the buffer in question); I believe you can crop it to suit, if you send [timer] a bang at the start and at end of recording you can send [waveform] the resulting lapsed time. Sorry to be vague, loaded with ‘flu at the moment

#180374
May 9, 2010 at 4:48pm

ps

can I just ask, why exactly do you need the buffer to be dynamically resized; you can access the recorded samples alone using the [timer] method above, and send the duration value to a [play], [wave] or [groove] object to set start and end points.

#180375
May 9, 2010 at 7:15pm

Hi,

I just wanted a patch that was worked the same was as a guitar pedal with a loop function and have it dynamically resized so that I don’t have to manually crop the samples in a waveform when using a guitar.

thanks for the suggestion, I’ll give that a go now. I thought I’d have to use a timer somehow

cheers

#180376
May 9, 2010 at 7:32pm

It would be interesting, and helpful to many people here, to see your solution, speaking as a fellow ‘guitar-looper’. I have a patch somewhere that allows one to rewrite into several [buffer~]‘s in realtime, which might also be uselful. Keep in touch dood

#180377
May 9, 2010 at 8:26pm

In this patch I record a buffer (stopping the recording if I need), and then I get another buffer with the same duration (and the same contents) of what I’ve recorded. Maybe it can be useful.
regards max

– Pasted Max Patch, click to expand. –
#180378
May 9, 2010 at 8:43pm

Thanks Max

Brendan

#180379

You must be logged in to reply to this topic.