-
Notifications
You must be signed in to change notification settings - Fork 4
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Some initial parameter values not received (Unity) #254
Comments
@chuckyOHare can you post a URL link to your heavy patch? |
Sure thing: https://enzienaudio.com/h/buckyohare/pd_test/ |
Ok, I've made a patch which features all 46 of the receive objects which I'm using in my synth patch (minus all the synth stuff) and I've sent each one back into the Unity console via a unique send. https://enzienaudio.com/h/buckyohare/connection_test/ |
Sorry I should have realised the potential solution much earlier! In the generated *AudioLib.cs file change the following line (1481):
to
Your patch works for me now in Unity. Basically, there's a pre-allocated amount of memory that handles input messages on every process block. Because you've got a lot of parameters it'll reach the memory pool limit pretty quickly. The code change above increases the amount of memory allocated. Here are the default values: This actually reminds me I should make a change to scale the default values based on the number of in/output parameters. Sorry about any inconvience that caused! |
|
It works! Thanks a million, I definitely wouldn't have found that myself. Onwards at last! |
Hi there. I've built a basic synth and I'm trying to integrate it into Unity.
My issue is that a lot of the parameters don't receive their initial values.
I've been debugging for ages trying to figure out why some parameters receive their initial values and some don't. It appears to change depending on the receiver name. A receiver called OSC1_AMFreq will get its initial value while OSC1_level will not.
Am I missing something regarding naming conventions for receivers? Is there a maximum number of receivers which I'm exceeding?
I've surpassed my 40th compile already, most of which have just been trying to figure this out. Any help would be appreciated.
FYI, the initial values do appear correctly in the Unity editor, however I can hear that they don't actually transmit to the patch. I've double checked by sending their received values (or lack of) straight back into Unity's console.
synth1.zip
The text was updated successfully, but these errors were encountered: