SE - Syncing wav playback to VST host

Modular Synth design and releases (Reaktor, SynthEdit, Tassman, etc.)
RELATED
PRODUCTS

Post

Midiworks wrote:
whyterabbyt wrote: As opposed to moving the playback pointer to halfway into the WAV file? Why cant he do that?
So, you want a vst to control the host sync... ? :?
No its not that either. I thought what he'd said was quite clear. The way I read it, he wants something capable of playing a wave file. If he starts playing his track 1/3 of the way in, he wants his wave file to start from 1/3rd of the way in. If he starts his wave file 1/2 of the way in he wants his wave file to start half of the way in.
An idiot on Set Theory:
"In some cases there is an object called red that contains everything that is red. In much the same way a pot is a plate."

Post

some simple maths might help. Using the file info box, you can get the file length in ms. Multiply this by 1000 to get the file length in seconds, length. Then divide 10 by length to get your scaling factor, x. By multiplying the 'time (s)' pin of the host pos module by x you should get a number between 1 and 10 that will control the 'file pos' input of the waveplayer module. Of course, the readme says this is not intended for scrubbing a file, so your playback may just be garbled and f**ked up. Worth a try anyways...

Post

glurgle wrote:some simple maths might help. Using the file info box, you can get the file length in ms. Multiply this by 1000 to get the file length in seconds, length. Then divide 10 by length to get your scaling factor, x. By multiplying the 'time (s)' pin of the host pos module by x you should get a number between 1 and 10 that will control the 'file pos' input of the waveplayer module. Of course, the readme says this is not intended for scrubbing a file, so your playback may just be garbled and f**ked up. Worth a try anyways...
Thanks very much glurgle, I will give this a go :)

Post

How did that turn out?

Post

4tune wrote:
glurgle wrote:some simple maths might help. Using the file info box, you can get the file length in ms. Multiply this by 1000 to get the file length in seconds, length. Then divide 10 by length to get your scaling factor, x. By multiplying the 'time (s)' pin of the host pos module by x you should get a number between 1 and 10 that will control the 'file pos' input of the waveplayer module. Of course, the readme says this is not intended for scrubbing a file, so your playback may just be garbled and f**ked up. Worth a try anyways...
Thanks very much glurgle, I will give this a go :)
This is what I was hinting at in my earlier post. The bit in bold is wrong though, it should be divide by 1000 ie 1200ms/1000=1.2s ;)

Even with the correct equation, I don't think it is possible after all in Synthedit at the moment. The problem is getting the file position info to the waveplayer module. As you correctly guessed you can't directly connect this to the position equation. I've just tried all manner of ideas to get this to work but I don't think the Waveplayer module is up to it... BUT I only tried my experiments out in Energy XT and Synthedit and this might have been part of the problem. Synthedit resets to bar one every time you start the audio engine and Energy XT switches the Sequencer Audio engine off when you press stop (all the modules in the main window are still active though, I hadn't noticed this in EXT before). This is a problem because you need to send the file position info after play has stopped (which I was attempting by using a notgate to trigger a Sample and hold module, although you might be able to get away with a simple flowcontrol module) but before the Waveplayer rewinds. It might work in a host that has a continually running audio engine but I have no idea if the host 4tune is using does. An easy way to tell is if you press stop on your sequencer on a sustained synth note that has a release segment, the release should sound. In Ext and SE it stops dead.

Here's what I tried:

Image

I have used sliders in the diagram simply so you can see the values I have assigned.

It would also be worth trying connecting both the gate and rewind gate to the envelope, that's how I originally had it before realising the problem might have been hostside. Also I think it might be better to use Dave Haupt's subcontrol maths modules rather than the standard ones but they aren't free so I used the standard maths modules. Anyhow it should be a decent starting point for 4tune to work from...

The file is Here.
Image

Post

PS If you haven't already got them, the envseg is available from David Haupt's page and the Sample and Hold is either already included or it's from the Synthedit Modules page on the site! ;)
Image

Post

glurgle wrote:How did that turn out?
No luck yet, unfortunately..

@ ezeeboogie

Wow, thanks very much for these efforts. I will download the file and go back over your post on this one,

again cheers

4tune

Post Reply

Return to “Modular Synthesis”