working with waveset data

Official support for: u-he.com
Post Reply New Topic
RELATED
PRODUCTS

Post

one thing that bugs me when working with zebra oscillators is that i cant seem to copy one wavetable (or whatever u want to call it!) to another slot on the same waveset (same oscillator). at first i saw the copy waveset command and thought that would work, but it copies the whole waveset rather than individual wavetables...

i'm trying to create oscillator presets with specific characteristics at each step, and currently i'm having to draw in from scratch on each wavetable which is both time consuming and brain numbing! :-o

so im curious to hear how other users get round this particular problem, or maybe there are other utilities like wav2zebra? (BTW, i'm on mac)

being a bit impatient, i was even thinking of making my own app in max msp to generate the wavetable data (a bit like wav2zebra, but more like metasynth...). But then i would need to understand how the preset data is stored...

any tips or pointers very much appreciated!

Post

wavphorm wrote:so im curious to hear how other users get round this particular problem
I RTFM.
The waveform selector is located below the waveform editor.

This is where you choose one of the 16 waveforms to edit. The currently selected waveform is colored differently.

Option-drag (Mac), ctrl-drag (PC): use to rearrange the waveforms.

Command-click (Mac), alt-click (PC) on a non-selected waveform will result in the waveforms morphing from the selected to the command-clicked waveform. This way you can quickly create a whole set of waveforms to edit later.

Option-command-click (Mac), ctrl-alt-click (PC) on an unselected waveform copies the currently selected waveform to the clicked one.

Right-click brings up a context menu to exchange, copy or morph waveforms. Basically the same options as above
wavphorm wrote:or maybe there are other utilities like wav2zebra? (BTW, i'm on mac)
And i did that too. Wav2Zebra2 is written in Java so it works on Macs too.

Post

my bad, i use to be able to do this but its been a while since i worked with the oscillators... RTFM it is!

yeah thanks jupiter8 for your wav2zebra2 java app, but if i understand your app correctly, you extract a certain number of samples from an audio file to create a wavetable (eg. 512 samples in length).

My needs are quite different as i want to create waveforms based on mathematical expressions, a bit like the metasynth oscillator menu (sin, saw, sqr, noise, etc...). i am pretty sure it will be easier and quicker for me to generate these rather than to draw them in, so i'm going to look into how to write the data as an oscillator preset.

Can you provide any info / details on the way zebra stores the oscillator data?

thanks

Post

Just load a wave in Wav2Zebra2 and export it and open it in a text editor and it should be entirely obvious. Don't recall the specifics but it is a just a text file you can read and see for yourself how it's done.

Here's the code for it:

Code: Select all

FileWriter writer = new FileWriter(exportFile);
					String temp1 ="";
					temp1 += "#defaults=no \n";
					temp1 += "#cm=OSC \n";
					temp1 += "Wave=2 \n";
					temp1 += "<? \n\n";
					temp1 += "float Wave[ 128 ]; \n";
					for (int j=0;j<16;j++){                             
						
						if (gui.waveDisplays[j].getFileName() != "") {
							for (int i = 0; i < 128; i++) {
								String sampleValue = "" + soundData[j][i];
								if (soundData[j][i] < 0.001f
										&& soundData[j][i] > -0.001f) {
									sampleValue = "0.0";
								}
								temp1 += "Wave[" + i + "] = " + sampleValue
										+ "; \n";
							}
							temp1 += "Selected.WaveTable.set( " + (j+1) +" , Wave ); \n\n";
						}						
					}
					temp1 += "?> \n";
					writer.write(temp1);
					writer.close();

Post

thanks jupiter8, i'll digest this and will post see what i can come up with. :)

Post

wavphorm wrote:Can you provide any info / details on the way zebra stores the oscillator data?
I just looked in an h2p extended file - it seems that the wavetables are somewhere in the block of binary data at the end... ??

Post

Howard wrote:
wavphorm wrote:Can you provide any info / details on the way zebra stores the oscillator data?
I just looked in an h2p extended file - it seems that the wavetables are somewhere in the block of binary data at the end... ??
Urs compresses the data to save some disc space. Zebra2 will read a simple text file like i described earlier but i think it compresses the data if you re-save the preset.

Post Reply

Return to “u-he”