Standalone timecode control of audio/video/lighting
Hi,
I'm hoping to build a Max patch that will allow simultaneous control of audio clips, video clips and (hopefully) basic lighting. This will ideally work by receiving the input from Serato Timecode Vinyl/WAV and playing the media back at the same speed and direction (the lights would be a bonus addition that should react to the frequency of the audio being played back, rather than directly controlled by timecode).
I have been working my way through the Cycling '74 Tutorials and had a few breakthroughs, but hit a wall recently and could really use some help.
My understanding of the way existing systems work (Traktor/Serato/Ms. Pinky/etc) is that...
- The timecode is 2 channels of the same signal, out of phase with one another by a known amount (Serato = 1kHz tone, 90 degrees out of phase, Traktor was a more complicated 3kHz tone that seemed to pulse from +ve to -ve at certain points when analysed with Audition, I don't have access to Ms. Pinky).
- Media playback direction is determined by the position of one waveform relative to the other, i.e. If channel 1 reaches peak amplitude, before channel 2, playback is reversed (and vice versa).
- Speed of playback is determined by the amount of time found between each channel's peak amplitude.
NB. I imagine it doesn't necessarily need to be peak amplitude that is used as the marker, as long as the same value is used for both channels?
My approach is to analyse each channel and get information of where in their respective cycles they are, then compare the two values and send the relevant playback command to the media clip(s). My patch, attached, uses snapshot to print the values. I also have the "fiddle~" external as it seemed to be a more appropriate way to capture more values on a sample level. However, both these data captures just give me the numbers - I am really struggling to know how to do anything with the data. Should they go in to a list? Should they be fed directly to a media player?
Any help, comments, corrections and/or suggestions would be gratefully received!
Thanks in advance,
Pete
I have investigated:
- "vinylcontrol~", but had issues with "flext" and don't particularly want to pursue it as the ultimate goal is to investigate the possibility of using different types of audio signal as the timecode control.
- "komika's time tunnel", but couldn't even gain access to download it.