On EASILY synchronizing WAV samples to OMPT tempo/MIDI Clock

Started by AmericanDiamond, May 07, 2009, 06:00:43

Previous topic - Next topic

AmericanDiamond

I'm thinking this topic has been covered before in the several years of this forum's existence, but I've searched and have not found this specific topic discussed.

I'm already familiar with the WAV sync feature and with the development of OMPT's handling decimal BPM.  However, in the time being, with full WAV samples that I use in OMPT that do not have a perfectly whole BPM, how do I easily syncronize it to the built-in tempo without using a multitude of S61, SDx and Txx commands?

I have done the above many times only to come out with imperfect sync most of the time.  I want to sync as perfectly as possible so that I may add VST effects seamlessly (internally with OMPT and with other programs that host VSTs) and play VSTis on top of the WAV file.  The built-in sync feature in the Instrument tab leaves too much room for deviation on any BPM set.

Is there a simpler, more accurate and easier way to do it in OMPT?  Is there a (freeware) external program or VST that does this with greater precision and accuracy?  This would cut down on production time significantly.

Louigi Verona

Unfortunately it would be difficult anywhere. With DAWs like FLStudio synchronization can be a bit easier because you can actually see the waveform - it is visual - and if necessary, move it a bit. With MPT you do not have any visual aids.

However, even in FLStudio or whatever other DAW you would have sync problems with long wavs - eventually it'll go out of phase at least a little. Automatic sync is something I know to be available in dj software. Take Traktor studio for instance. But it requires preparation - that is, beat grids. And I haven't ever heard of anything like that being in DAWs, let alone OMPT which is best for handling samples rather than mixing and syncing wav files.

What I would suggest is to use shorter wave files. I do not know why you would want to use wave files and what are their typical lengths, but if you are using like a 3 minute wave file - you can be 100% sure that if you do not know it's tempo - it'll go out of sync somewhere.

You can try to edit the file carefully in a sound editor first - make sure to trim it, so that there is no empty space before the wave, so that the start of the sound is right in the beginning of the file.

If, however, you are using a file the tempo of which you already know (like, a wav rendition of something you yourself made in OMPT) then there should be no sync problems at all. I very often do this in FLStudio and I have 3-7 minute wave files going perfectly in sync with whatever goes on top of it if it is the same tempo.

LPChip

Maybe you can archieve what you want by loading OpenMPT as VSTi in another host.

I know there's a post somewhere on this forum with a download link to a VSTi version of OpenMPT. That way, you can have the host do all the syncing.
"Heh, maybe I should've joined the compo only because it would've meant I wouldn't have had to worry about a damn EQ or compressor for a change. " - Atlantis
"yes.. I think in this case it was wishful thinking: MPT is makng my life hard so it must be wrong" - Rewbs

Saga Musix

» No support, bug reports, feature requests via private messages - they will not be answered. Use the forums and the issue tracker so that everyone can benefit from your post.

AmericanDiamond

Thanks LV, LPChip and Jojo.  Trimming the initial silence and painstakingly placing the start and end points of each loop in the sample editor are what I do each time already.

The OMPT VSTi plugin is a step in the right direction.  But when I used it today in VSTHost, it was unbearably choppy, with and without ASIO.  This may be because I have two HDD in use (one external USB), and this PC only has USB 1.1 capability until I can upgrade that component.  I moved all my plugins to the external drive and put the OMPT VSTi .dll file there as well and, although noticeably slower in loading time than before, the previous plugins remain unchanged by the move.

From what I heard, nevertheless, through the ghastly choppiness, it really sounded like OMPT VSTi helped the WAV keep in sync with VSTHost.  Of course I have to try it with more WAV files to see (I did get a manual good sync before using this so I hope I'm not confounding the results).

Do I need to move the OMPT VSTi .dll to the internal C drive for it to be faster?  Also, the plugin uses 1.17.02.48 and not .52 and hangs when I try to close it from the File menu, forcing me to manually end the process through Ctrl-Alt-Del.

Saga Musix

Unless you have a really low amount of RAM, hard drives are never involved in playback, so this really can't be a reason for choppy playback. I'd rather bet on a (too) small buffer or too high cpu load.
» No support, bug reports, feature requests via private messages - they will not be answered. Use the forums and the issue tracker so that everyone can benefit from your post.

uncloned

thanks - this vsti version looks to be really, really interesting

I'd like to combine sonar and openmpt - this looks like the ticket.

LPChip

Btw: I also added a link to the VSTi version on my site, and a link there is located in the software download post on this forum.
"Heh, maybe I should've joined the compo only because it would've meant I wouldn't have had to worry about a damn EQ or compressor for a change. " - Atlantis
"yes.. I think in this case it was wishful thinking: MPT is makng my life hard so it must be wrong" - Rewbs

Relabsoluness

Quote from: "LPChip"Btw: I also added a link to the VSTi version on my site, and a link there is located in the software download post on this forum.
I think it would be worth mentioning next to the link that the VST build is not developed, build or maintained by people involved in OpenMPT development.

LPChip

Quote from: "Relabsoluness"
Quote from: "LPChip"Btw: I also added a link to the VSTi version on my site, and a link there is located in the software download post on this forum.
I think it would be worth mentioning next to the link that the VST build is not developed, build or maintained by people involved in OpenMPT development.

It could be if you commit Pelya's code in the SVN. He gave a link to that too in his post. That way, we always have an up to date VSTi too.
"Heh, maybe I should've joined the compo only because it would've meant I wouldn't have had to worry about a damn EQ or compressor for a change. " - Atlantis
"yes.. I think in this case it was wishful thinking: MPT is makng my life hard so it must be wrong" - Rewbs

AmericanDiamond

Quote from: "Jojo"Unless you have a really low amount of RAM, hard drives are never involved in playback, so this really can't be a reason for choppy playback. I'd rather bet on a (too) small buffer or too high cpu load.

Well, Jojo, I have a total of 192 MB of RAM, and my CPU load does shoot up to 100% every time I play anything in OMPT :oops:.  Can I alter my buffer size on both the traditional audio driver and ASIO?  I don't know what to do about the CPU though (if that's the case).

Saga Musix

Playback buffer size doesn't really change anything, it just may stress your CPU more or less, but another 4kb in your RAM won't really involve heavy ram/disk swapping. And really, 192mb of ram is quite nothing nowadays. i think even the oldest machines in my room have at least 256mb. ^^
» No support, bug reports, feature requests via private messages - they will not be answered. Use the forums and the issue tracker so that everyone can benefit from your post.

AmericanDiamond

lol, you're telling me?  Several years ago I added 128 MB to bring it up from 64.  Until I can get a completely new custom PC (dream come true), this is all I have.

But back to the original concern, are those conditions (mentioned before) why the OMPT VSTi is extremely choppy (choppier than OMPT itself)?  What are some things I can do to alleviate/eliminate that?  What are some other ways I can sync WAV to the host automatically?

AmericanDiamond

New season for this topic?

I've seen some DJ software that claim to beatmatch and sync WAV files and other types of files in them, like Mixxx, Jackson and Pacemaker Editor.  Can these programs (or others like it) be incorporated into OMPT?

Is there a temporary way (until floating-point tempos are formally addressed in OMPT) to deal with WAV files that have "decimal" tempos?  This is what may be causing all of the sync issues.

ADDED: I didn't want to reveal what types of WAV files I'm using, but I'm doing a video game music "remixing" project, particularly the Sonic the Hedgehog Genesis series (and other games), in which I sometimes add instruments on top of the WAV recordings or rearrange the WAV tracks.

Saga Musix

And what do you mean with "incorporating" Software, please? ModPlug is not a DJ toll primarily, nor a beatmatching software.

And non-integer tempos can easily be used, for example by an alternating Txx-Scheme. For example, for a tempo of 135.5 BPM you could simply put T87 on every second row and T88 on all the others.
» No support, bug reports, feature requests via private messages - they will not be answered. Use the forums and the issue tracker so that everyone can benefit from your post.