WavToZ2 now for Mac!!!! Now Beta.

Official support for: u-he.com
RELATED
PRODUCTS

Post

Image

So i finally got it working (i think) :lol:

It is made for loading wav samples into Zebra2. When you load a sample it makes a DFT of it and automatically calculates the samples "inbetween". Kinda like morphing. That's why there's always a Sine wave loaded in the first and last slot. You can load new ones in there of course.

Once you start it you should set the export library. It should be ..Program Files\u-he\Zebra2\Modules\Oscillator or wherever you choose to install Z2. It saves this location so you should only have to do it once. That's the WavToZ2.ini file if anyone is curious.

It autonames the exportfile for you and if you forget the .h2p extension it automatically adds one for you.
For your own sanity i suggest you don't make to long filenames as that looks really weird in Z2. You know what i mean once you see it.

For the moment Z2 has a limitation on how big .h2p files can be so it only exports the first 12 waves unfortunatly. But Urs is aware of this and has promised a fix in the near future. When that happens i will fix it so it exports all 16 files.

Some FAQs and WTFs?
* As it DFTs the wave which is a rather limited Fourier transform the wave could be quite different from the original. I've been thinking of having an option to load it raw without the DFT but then the "ghosts" will possibly be quite weird as they are calculated from the DFT. I have'nt decided yet which way to go but a user option is feasible.
* There's no limit to the filelength of the imported files but as you can imagine long wav files will sound quite different as they are resampled to fit into Z2.


Download here :
http://www.tekno.chalmers.se/~magolo/sy ... Zebra2.zip
This is made with JUCE so you have the source code here if anyone is interested. The comments makes for some interesting reading if nothing else. As you can see there's quite some issues in there. :D
http://www.tekno.chalmers.se/~magolo/sy ... oZ2src.zip
Last edited by jupiter8 on Wed Feb 13, 2008 5:00 pm, edited 4 times in total.

Post

No mention of platforms - I take it this is PC only..?
Image

Post

beej wrote:No mention of platforms - I take it this is PC only..?
Sorry PC only. I don't have a Mac but since the source code is included someone should be able to port this to Mac.

Post

jupiter8 wrote:
beej wrote:No mention of platforms - I take it this is PC only..?
Sorry PC only. I don't have a Mac but since the source code is included someone should be able to port this to Mac.
from what i read its most easy to compile from juice to both Intel mac & PPC mac (duel binary) so hopefully someone will come to the rescue soon :)

i'm on PC & just wanted to say thanks allot for this!!!

will give it a test later tonight


:)

Subz

Post

Some stuff i forgot
* If the filename exists it autonames it for you. So if you have SineToSine it'll rename it SineToSine001.

Todo list (might or might not happen)
* Real time preview of the result. So you don't have to guess what the outcome is.
* Better FFT algorithm. Not sure of how this will effect the sound. It'll have some ill effects that i want to avoid.
* Straight wav import without FFT. Easy to implement. I'll just remove a line of code and add a button.
* Export to wav for other uses than Z2. Easy one as well.
* Drag and drop. This was supposed to be in it but i could'nt figure out how to do it. :D Frankly i'm not to keen on this myself but i really should learn how to do it anyways so it might happen.
* Turn off ghosts. I dunno could be useful. I try to keep the number of controls to a minimum so it'll be as easy to use as possible.
* Mac version. I probably won't have access to a Mac until this Autumn so hopefully someone else will do it for me. :D
* There are some (probably a lot) of efficiency tweaks i could do to make it faster but it isn't slow as it is. I hardly notice it on a PIV 2.4 gHz. Probably should do them anyway.
* Probably more stuff i have forgot.

Post

thanks!

Post

----Woah, 3rd party apps for Zebra ?! Zebra must be getting very popular. Way cool to see someone making something like this. I have no idea how to utilize it, but I'm compelled to say thanks on behalf of the Zebra user community anyways. :)

Jeff

Post

liars&ashes wrote:----Woah, 3rd party apps for Zebra ?! Zebra must be getting very popular. Way cool to see someone making something like this. I have no idea how to utilize it, but I'm compelled to say thanks on behalf of the Zebra user community anyways. :)

Jeff
Plan A was that this utility was going to be so simple it did'nt even need a manual. Seems like i failed miserably. :lol:

Plan B. This is a utility to load samples into Z2. Since Z2 "only" handles singlecycle waveforms it resamples any sample to 128 "steps" and performs a Fourier transform. So you can use any sample. Just don't expect it to sound the same. Long samples obviously will bear no resemblance to the original. Single cycle waveforms should sound about the same.

The reason for the Fourier transform is to get single cycle waveforms that loops nicely. You loose some info though so you might get weird results. The other reason for the Fourier transform is that you can morph new waveforms. That's the empty slots called ghosts.

So just set the export folder first.This you should only need to do once. Then load audiofiles into the slots. When you're done simply press export and the next time you load up Zebra2 you will have those samples available in a new wavetable.

Post

Ok. Here's a little tutorial.
Image
This is where you set the export path. IE the place the files needs to be for Z2 to see them. Just press the button "Set Export path".
It needs to be in "Program Files\u-he\Zebra2\Modules\Oscillator".

Image
Next you load some samples. Here i've loaded a Square and Saw wave from a JD 800 into slot 1 and 16.Note how the slots inbetween morphs from the first wave to the last. You can load and unload as many times as you want. Note that if you load something into slot 1 or 16 and then unloads it (clear) it will revert back to a sine. This is intentional for the morphing process to have something to work against. When you're done you simple press "Export" and you're done.


Image
The next time you load up Zebra press the little button that is called "default" in this picture and the browser comes up.Now you can choose from the wavetables you've just created. Simple as that really.

EDIT: The reason i called it a preview is that Z2 is currently up to snuff with my crazy ideas. :D It has a size limit to the .h2p files which means it only exports the first 12 wavs. This will be fixed soon i hope.
The program is of course free and will continue to be so. It is open source as well.

Post

And anyone who generates any libraries of waveforms knows where to upload them to... *cough*HERE!*cough*...

;)
Image

Post

beej wrote:And anyone who generates any libraries of waveforms knows where to upload them to... *cough*HERE!*cough*...

;)
I'll add them to the OSC section of the web hotlink sticky as soon as I see them. Now we just need people to actually make some... :wink:

Post

Can't you increase the acuracy of your DFT by working with periodically enlarged verions of the single cycle wave?

I need an "exam-break" project, so I think I'm going to mess with your code a bit :)

Post

Kyran wrote:Can't you increase the acuracy of your DFT by working with periodically enlarged verions of the single cycle wave?

I need an "exam-break" project, so I think I'm going to mess with your code a bit :)
Since the Z2 only holds 128 sample values i see no reason to go over 128 harmonics. To be honest it does'nt even do 128 for the moment because i got some weird results that i have'nt been able to track down. I believe it does 96 harmonics.

Feel free to do whatever you want with it. Please tell me if you do something cool ( or anything for that matter) with it.

Post

jupiter8 wrote: Since the Z2 only holds 128 sample values i see no reason to go over 128 harmonics. To be honest it does'nt even do 128 for the moment because i got some weird results that i have'nt been able to track down. I believe it does 96 harmonics.
Interesting. I wonder why you're seeing problems past 96 harmonics. What happens to the partials past 96 in your testing, something specific?

Post

bmrzycki wrote:
jupiter8 wrote: Since the Z2 only holds 128 sample values i see no reason to go over 128 harmonics. To be honest it does'nt even do 128 for the moment because i got some weird results that i have'nt been able to track down. I believe it does 96 harmonics.
Interesting. I wonder why you're seeing problems past 96 harmonics. What happens to the partials past 96 in your testing, something specific?
That was a really weird problem. One i have'nt looked into much. When i had 128 harmonics almost all sounds came out completly silent.
I lowered it to 120 harmonics and almost all sounds where OK. So i tried with 96 harmonics and it seems like that works alright.
Why that is i have no idea for the moment.

This should'nt happen of course and it is high on my todo list. Do note that a Z2 wave can max hold 128 (or is it 127?) harmonics. But realistically anything over 64 is probably overkill anyways. However it bugs me to no end it does'nt work as i expected so i'll try and fix this. You probably won't notice any difference anyways but still. It should work.

Post Reply

Return to “u-he”