Is there a size limit to .h2p files ?

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

Post

I'm doing some experimenting and i have a problem with large .h2p files. Since i load samples i have to do

Code: Select all

float Wave[ 128 ]; 
Wave[0] = 0.0; 
Wave[1] = 0.0490676761; 
Wave[2] = 0.0980171412; 
Wave[3] = 0.146730468; 
.....
.....
Wave[125] = -0.14672789; 
Wave[126] = -0.0980143994; 
Wave[127] = -0.0490647815; 
Selected.WaveTable.set( 1 , Wave ); 

Wave[0] = 0.0; 
Wave[1] = 0.0906094313; 
Wave[2] = 0.178134948; 
Wave[3] = 0.259730339; 
and so on.

However when i try to load the whole 16 Wavetable set Zebra2 crashes. A 38 k file loads fine while a 48k does not.
So is there a size limit or have i messed something else up ?

I could do something boring like only allowing the first 8 waves to be loaded but i think you understand why i don't want that. :D



Teaser:
Image

*It is made to be easy to use. You set the export destination once and it always exports your files in there.
*It autonames the files after the first and last file loaded.
*You can of course change the export name and if you forget the .h2p it automatically adds it.
*When you load a file it generates the empty slots using DFT.

There are still a couple of bugs to squash but hopefully i can finish it this evening and upload a first beta.
This will of course be free and even open source so you can compile it for Mac if you like.

Post

There is a limit of length of line, of length of bytecode and of number of variables.

I did the mistake to think that the current implementation is "more than they could ever use"...

However, I've provisorically added 4 times the memory for the next update (due soon, really!) and I'll eventually switch to dynamic memory usage for future versions...

Later,

;) Urs

Post

(It looks gorgeous btw.)

Post

Ok,i see. Cool. Thanks.

Post

jupiter8 wrote:Ok,i see. Cool. Thanks.
I can send you the code to create a binary representation of the wavetable - and how to compress it to the "ugly section" in normal preset .h2ps...

Hmmm, gotta get out a beta for the MSEG bugfix soon anyway...

;) Urs

Post

Urs wrote:
jupiter8 wrote:Ok,i see. Cool. Thanks.
I can send you the code to create a binary representation of the wavetable - and how to compress it to the "ugly section" in normal preset .h2ps...

Hmmm, gotta get out a beta for the MSEG bugfix soon anyway...

;) Urs
I could be a bit out of my depth on that one. Sounds a bit to complicated for me i think.

I think i'll just export the first 14 waves and blame the rest on you. :D
And when the update comes i'll fix it so it exports all 16. It's just one line of code.

That'll be fine for now i think.

Post

Urs wrote:Hmmm, gotta get out a beta for the MSEG bugfix soon anyway...
Have you finally found a solution for that sucker, yet..?
Image

Post

beej wrote:
Urs wrote:Hmmm, gotta get out a beta for the MSEG bugfix soon anyway...
Have you finally found a solution for that sucker, yet..?
No. Just guessing...

Havn't had time to fully install everything on my Win partition... and it doesn't really occurr on MacOS X...

Post

That teaser .... :o :shock: :cry: :help: :love: and wheres the drool smiley when u need it ?
www.xsynth.com - Sound Synthesis with Vintage flavour

Post

mkastrup wrote:That teaser .... :o :shock: :cry: :help: :love: and wheres the drool smiley when u need it ?
Thanks. :oops: There's nothing to it really. I used JUCE so every program looks like that. Hopefully it will be done in a few days. Had some other stuff to take care off first. Seems like every problem i deal with creates two new ones. :hihi:

And there's always the things you did'nt think off that needs solving. It worked fine a few days ago but then i managed to mess it up again. Now it is really near a first release. I missed something and had to implement it and broke some stuff in the process.

I'll probably continue on it tomorrow and will hopefully release something in a day o three after that.

EDIT: Urs, is there a limit to the filename length as well ?

Post

jupiter8 wrote:EDIT: Urs, is there a limit to the filename length as well ?
Hmmm, 64 maybe? Anyway, don't make them too long or they'll never fit in the Preset Manager :oops:

Post

Urs wrote:
jupiter8 wrote:EDIT: Urs, is there a limit to the filename length as well ?
Hmmm, 64 maybe? Anyway, don't make them too long or they'll never fit in the Preset Manager :oops:
Yeah,i noticed that. I'll figure out a smart way to shorten the auto naming suggestion.
I just had a crash with a long filename that i thought might be that but was probably something else.

Post Reply

Return to “u-he”