Jump to content

Multiple LV2 Globals From One VI


Recommended Posts

Alright I know there's a way to do it. I've seen it posted before and can't find the old posts now for the life of me. I don't want to just copy my LV2 global and then have to make duplicate changes every time I change something internally during the development process.

I remember vaguely something about making the LV2 global re-entrant then using a wrapper for each instance--something like that--seems like you would still have to add controls and indicators to each wrapper if the guts changed though.

What's the best way to do this? (Or where are the posts if it's been posted previously?)

Link to comment

That was indeed a much earlier post on LV2 globals... I re-read that before posting this time though--it does not have the information I'm looking for (unless I missed it the second time skimming through).

I now understand LV2 globals and how they function but whenever I have used one I have only needed to use one instance of it. Now the case has arisen where I may want to have two instances of the same global, ie, two different data sets. The painful way to do it would be to make a copy of the LV2 VI and rename it two a second file. As I said though, I'm almost sure I've read a better way to do it... one where the same file can be instantiated or something of the sort, which would not require duplicate changes if the core functionality needed to be updated.

Link to comment

I now understand LV2 globals and how they function but whenever I have used one I have only needed to use one instance of it. Now the case has arisen where I may want to have two instances of the same global, ie, two different data sets. The painful way to do it would be to make a copy of the LV2 VI and rename it two a second file. As I said though, I'm almost sure I've read a better way to do it... one where the same file can be instantiated or something of the sort, which would not require duplicate changes if the core functionality needed to be updated.

5073[/snapback]

The idea of many of the same data sets or Objects is the reason GOOP was created. Try looking into the OpenG Goop.

If not how about

Instead of one Cluster in your LV2 global why not use an Array of them. Then create a terminal that specifies which element in the array to

operate on.

Link to comment

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.