XML Feeds

.

[jitter] Re: Video and audio?

Mattijs Kneppers mattijs at smadsteck.nl
Sun May 4 15:23:41 MDT 2008


Quote: Little Bear wrote on Sun, 04 May 2008 23:09
----------------------------------------------------
> Quote: Mattijs wrote on Sun, 04 May 2008 04:47
> ----------------------------------------------------
>  
> > In my patch it shouldn't be necessary to replace anything inside the subpatchers. Just load one video, enable dsp and then it starts a looped playback with the audio and video coming out of separate outlets. 
> 
> 
> 
> The question is how do I control the size of the looped playback?   I want to be able to only loop certain sections of the audio\video.  I added a groove~ in the patch, and it looped the audio in places I wanted but the video rate speeded up, instead of playing the 'corresponding' video frames.  I am guessing I either added the groove~ in the wrong place, or have to put a groove~ for the audio and a getlooppoints for the video that are synced?
> 

This is really a matter of a bit of math. The phasor ramps from 0 to 1, which corresponds to the beginning and end of the sample. If you need it to ramp between different points, you'll have to multiply the output of the phasor with a value (between 0 and 1) and add an offset (between 0 and 1). I don't advise using groove since it has no high quality interpolation mode.

I'm sorry that I don't have time to explain this in more detail, maybe one day I'll make a patch that includes looping, time stretching, beat matching and everything ;) Until then I am afraid you'll need to figure this one out for yourself..

Best,
Mattijs


More information about the jitter mailing list