Creating cue points in a track

nssykes@hotmail.com's icon

Hi
I need help, I am trying to create a virtual dj patch, where you can mix tracks together. I have everything sorted that a dj would need in order to mix. ie pitch controll, nudgeing, scratching, eq level, crossfaders, and searching forwards and backwards within a track. But i am missing the vital element, which is being able to cue the track at a certain point within the track so the user can return to that designated time point over and over again by just a click of a button and play the track from that point. ie skip forward the track.. stop or pause the track..CUE at the stopped or paused point.. hit "bang" and return to the CUE point every time you hit "bang"... Press play to play from the cue point.

Ive been looking into ways in which to display a the milleseconds that have elapsed when playing the tune, so you could simply go back to the exact time point in the tune and create a marker, but with little success... Im not really sure if i was on the right track or not as there are prob a few ways by which it could be done

I hope this explanation makes sense to you guys, if you have any ideas on how to create cue points you would make me a very happy man!

Kind Regards
Nick

Andrew Benson's icon

The answer to this will largely depend on how exactly you are playing
your tracks. Are you driving it with a master phasor~? Are you using
sfplay~, wave~, play~, index~, 2d.wave~, groove~? There are a lot of
possible solutions to your problem but without knowing something more
specific, all you are going to get are vague answers. Maybe you could
extract the important part of your patch and post it here?

Cheers,
Andrew B.

Peter McCulloch's icon

Depends on how you're playing the sound. If you're using sfplay~, you
can add some extra arguments to give you a signal-rate display of time
in ms. Bang triggers snapshot~, which stores the start point as a cue
in an sflist~ for the sfplay~.

Peter McCulloch

On Mar 8, 2007, at 3:22 PM, Nick Sykes wrote:

>
> Hi
> I need help, I am trying to create a virtual dj patch, where you can
> mix tracks together. I have everything sorted that a dj would need in
> order to mix. ie pitch controll, nudgeing, scratching, eq level,
> crossfaders, and searching forwards and backwards within a track. But
> i am missing the vital element, which is being able to cue the track
> at a certain point within the track so the user can return to that
> designated time point over and over again by just a click of a button
> and play the track from that point. ie skip forward the track.. stop
> or pause the track..CUE at the stopped or paused point.. hit "bang"
> and return to the CUE point every time you hit "bang"... Press play to
> play from the cue point.
>
> Ive been looking into ways in which to display a the milleseconds that
> have elapsed when playing the tune, so you could simply go back to the
> exact time point in the tune and create a marker, but with little
> success... Im not really sure if i was on the right track or not as
> there are prob a few ways by which it could be done
>
> I hope this explanation makes sense to you guys, if you have any ideas
> on how to create cue points you would make me a very happy man!
>
> Kind Regards
> Nick
>
>
www.petermcculloch.com

nssykes@hotmail.com's icon

Hi
I have attached a draft example copy of the patch ive been working on. This should give a better idea of what i need to do.
Thankyou
Nick

seejayjames's icon

Cues in sfplay~ would work well. Also loop points in groove~ (see the helpfile for groove~, also for waveform~). The waveform~ interface is really great (don't neglect the multiple key combinations with the mouse, particularly shift in several modes does something different, you'll see). In the case of immediate jumps to different loop sections you could use a simple preset object connected to the loop start / stop points (as you don't need interpolation---if you do, use pattr). You can then set loop points for particular waves and access them all through clicking, changing number boxes for the preset, or automating the preset (mtr, coll, random, etc.) You'll find tons of possibilities there and the waveform~ interface looks great.

One note about "pitch control"---hopefully you have looked not just at the speed control (which is simple but changes pitch *and* duration) but also at gizmo~ (which changes only pitch, not duration, with reasonable results for about an octave or so in either direction). You can't do this with traditional turntables, so exploit the power of software for this great feature---you don't always want the duration to change, sometimes only the pitch, so that you can tune while staying in sync. As far as time stretching or compressing without changing pitch, a combination of speed and gizmo~ can do this, though I'm sure there are more sophisticated methods too.

Don't forget effects -- filtergraph~, delay~, overdrive~, and amplitude modulation (multiply the signal with an LFO cycle~ or other waveform). Then there's convolution too.... some great effects are possible with this.

sfrecord~ to save your stuff. You can then load these mixed files back in and use them as you continue to build your sound.

--CJ

LoneMonad aka don malone's icon

take a look at aMente (Trax)
http://faculty.roosevelt.edu/malone/downloads.htm
clck on Chicago Workshop