SynthMaker

VST parameter array

Archive · 2006 11 old posts

From the original SynthMaker forum (2004–2014), with its members’ names and dates.

MyCo ·

Hi !

I need some help with my module: http://music-drive.com/presettest.osm

It has to save a text as vst parameter array, and it also has to load it from a VST Preset. I want to use it to store a file path. But at the moment it is realy buggy and I don't realy understand how the VST parameter array module works.

Thanks

oddson ·

OK, so it's a little buggy but I think you've got it most of the way there. It would take me a while to figure out how it works to see why it doesn't. I'll try to get back to you within the hour unless someone smarter figures it out first... 🙂

(Are you sure you don't want to wait for the devs to support data chunks instead of going ahead with this?) 😉

EDIT

first discovery... the sample hold thing that you got from the bug post by rl... it in causing the first is last problem. If you add 1 to the index of the VST param it goes away... but I'm not sure why it's working that way....

rl may have been right that the bug is in the VST param and not in the loop as I speculated...

Second - you need to clear the array your using for the display if the lenght of the input string in longer than the array.. That will get rid of the problem of old text not clearing. It won't stop the problem of it being saved in the VST. You'll need some way to clear it too and I haven't got that figured out either...

rl ·

funny, I was working on the same idea.

It kinda works (as long you do not change the program number).

-> VSTstring.osm

oddson ·

From rl's schematic I'd say the first problem is you need to add a sample and hold between the float value calculation and the VST array...

Hey rl... did you know yours is cutting out duplicate characters? Was this intentional?

edit... if it wasn't, you need to trigger the string array from the loop because the Graph to Float doesn't trigger when the value doesn't change between graph points.. (bug?)

MyCo ·

I think I'm closer to the goal now: http://music-drive.com/VSTstring2.osm

Something is also missing, a trigger when the String is loaded completely, otherwise I can't trigger a "load from wave".

oddson ·

The string array has a done trigger... that should work.

If not, you could run it through a timer with fraction of a second delay to make sure the string is fully ready to go before the file read stuff is triggered.

I see you've gone mostly with rl's solution. But I can't see how you got around the deleting repeated characters. I see you've used the split instead of resetting the array, but I can't see how that would have got rid of the problem. 😕

MyCo ·

The clear trigger input can't be used, I don't know why, but this was the main problem. Now the array is not cleared, so I need a string split, to hide the previous array data, if there was a longer text before. It is not a good way, but it seems to work.

oddson ·

MyCo wrote: The clear trigger input can't be used...

How do you mean? rl was using it

MyCo wrote: ...Now the array is not cleared, so I need a string split, to hide the previous array data, if there was a longer text before...

Yeah I figured out what you were doing. Very clever but I'm not sure why you needed it... nor how it's fixing the multicharacter problem.

Assuming your solution is to fix the multiple character limitation, then what's wrong with this instead?

rl ·

Great guys, you've been working on the topic, while I was asleep. Now I'm back fresh and working again:

Thanks, Oddson, I didn't notice the cutting of duplicate characters; the solution in your illustration above (big red arrow) works perfectly.

At the top of the schematic there should be 0.5 added to the numerator of the divide by 128 operation to avoid rounding errors (by mistake it's 0 actually).

The only thing missing is to make it work when a VST program has switched. I'm suspecting the first loop to run and thus thrashing the VST Parameter Array's data. This needs more examiniation. I'm out until tomorrow - but I don't mind anyone to continue 😉

oddson ·

Oh, another problem, you can't click-edit the string. If you click into the middle of the text and add letters it just adds another copy of the last character. 🙁

edit - looked at it over and over and it seems to me the input string should be recalculated when it changes but the VST Array doesn't seem to notice the changes in the string. I can't figure it out 😕

MyCo ·

well, I don't know a way out... I tried a lot, but I don't get a better solution than that what we have now.

Wrote something here? To have a post removed or your name hidden, write to [email protected].

Before your first post

A few rules keep this a friendly place. You agree to them once.

Shown next to what you post, here and in the app. It doesn’t have to be your real name: 3–24 lower-case letters, digits or _ (capitals become lower case, spaces become _).

    Then your post goes up straight away.

    Delete this reply?

    Open it in SynthMaker?

    It goes on the track you’re editing there, in place of that track’s sound, and into My sounds. Your other tracks stay as they are.

    Want to keep that track’s sound? Start a new song in SynthMaker first (Song › New song), then open this.

    Report this reply?

    Only the developer reads reports. The person isn’t told who reported them.

    What’s wrong with it?

    Block this person?

    You won’t see their posts and replies here any more. They aren’t told, and you can unblock them at any time.

    People you’ve blocked

    Their posts and replies are hidden from you. Unblock someone to see them again.

    The community rules

    A few rules keep this a friendly place. Everyone agrees to them once, before their first post.