Welcome to %s forums

BrainModular Users Forum

Login Register

global track data window

I need help on a Patch
woodslanding
Member
Posts: 1327

Unread post by woodslanding » 23 Jun 2012, 07:44

I am trying to create a popup window that will dynamically display the data for a selected track in my virtual mixer. My thought was to send the data associated with a track as a single array to keep it all together, to cut down on sends and receives, and to make it easier to add new parameters. Here's a very simple test wkp:

http://www.sensomusic.com/forums/upload ... olTest.wkp

Here are the big issues I've encountered:
The passIfChanged method for syncing two controls does not work here, because of the delay between send and recieve. So it's necessary to make sure communication is always only one-way. From track to global upon selecting a new track, and from global to track thereafter. It would be nice if both controls could be active, but I have not found a way to do this in usine.

When the channel is changed, it is necessary to stop the data from the previous track from being sent to the newly selected track. FIXED

When the global window is closed, it needs to stop sending data to the selected track, otherwise its controls stop working. FIXED

When the global window is opened, it needs to get current data for the correct track. PROBLEMATIC

When data in a track is changed by the conductor, that needs to be reflected in the global window. Which means disabling its input until the conductor has sent data to the track, and then loading in the new data for the track. NOT WORKING NOW--HAS WORKED BEFORE, BUT NOT WITH ARRAYS

Currently, I'm having a problem that I'm seeing data (from a previous preset?) showing up, and I can't figure out where it's coming from, or how it's getting stored, and showing up in the data.... to create the bug, close the global window, change the conductor preset, and reopen the window. Data from the previously selected preset will populate the fader.

I'm hoping maybe someone (maybe with a better understanding of arrays? or scripting?) will see right away what's eluding me. Otherwise, this is a good chance for me to outline the problem for myself, and maybe it will be clear in the morning.....


Cheers,
-eric
Custom Ryzen 5900x MATX build, Win10, Fireface UFX, touchscreen
Custom 2 manual midi keyboard
Usine, Kontakt, Reaktor, Synthmaster, Byome, Arturia, Soundtoys, Unify

woodslanding
Member
Posts: 1327

Unread post by woodslanding » 24 Jun 2012, 06:21

okay, after writing this, I did have a breakthrough idea.

If I carry the channel number with the array data, I can insure that data never goes to the wrong channel.

-e
Custom Ryzen 5900x MATX build, Win10, Fireface UFX, touchscreen
Custom 2 manual midi keyboard
Usine, Kontakt, Reaktor, Synthmaster, Byome, Arturia, Soundtoys, Unify

woodslanding
Member
Posts: 1327

Unread post by woodslanding » 25 Jun 2012, 06:54

Okay, I got it working, and I'm posting it to the addons. Hopefully it's useful to someone else.

cheers,
-e
Custom Ryzen 5900x MATX build, Win10, Fireface UFX, touchscreen
Custom 2 manual midi keyboard
Usine, Kontakt, Reaktor, Synthmaster, Byome, Arturia, Soundtoys, Unify

User avatar
nay-seven
Site Admin
Posts: 5684
Location: rennes France
Contact:

Unread post by nay-seven » 25 Jun 2012, 08:25

Great , thanks to share !

woodslanding
Member
Posts: 1327

Unread post by woodslanding » 13 Jul 2012, 06:39

Well, don't get too excited..... I am having problems with this setup freezing my computer--I have to do a hard reboot.

I am trying to track it down. I want to find out if there are problems with my array handling. If you see anything problematic with my initialization or setting of arrays in this patch, I'd like to know..... the patch seems to work fine, but expanded to 7 controllers and 12 tracks, not so well at all!

Meanwhile I will search this forum. But it is very hard to debug when my WKP crashes windows in the first 30 seconds :(
Custom Ryzen 5900x MATX build, Win10, Fireface UFX, touchscreen
Custom 2 manual midi keyboard
Usine, Kontakt, Reaktor, Synthmaster, Byome, Arturia, Soundtoys, Unify

User avatar
nay-seven
Site Admin
Posts: 5684
Location: rennes France
Contact:

Unread post by nay-seven » 13 Jul 2012, 07:17

have you test to read or send us the log file after a crash...?
how many VST in this config..?
when you say 7 controllers, you mean 7 hardware midi controllers or..?

woodslanding
Member
Posts: 1327

Unread post by woodslanding » 14 Jul 2012, 07:31

okay, I found the prob, and it isn't in this part after all... it was a similar setup with parameters, which had a large array buss looking for a home it couldn't find.

There are some small bugfixes to this setup, but it's basically good. I'll upload them soon.

By controls, I meant sliders, etc that will go in the global window. And there are 18 vsts in my config.... always pushing the limit :/ I'd like to set up 8 sliders to control parameters for each vst via this method, but the CPU is prohibitive--I can't run over 15% cpu on my machine without getting dropouts :(

cheers--and thanks as always!
Custom Ryzen 5900x MATX build, Win10, Fireface UFX, touchscreen
Custom 2 manual midi keyboard
Usine, Kontakt, Reaktor, Synthmaster, Byome, Arturia, Soundtoys, Unify

Post Reply