ambiera logo

Ambiera Forum

Discussions, Help and Support.

folder icon Ambiera Forum > CopperCube > Announcements and Showcase
forum topic indicator Sound Effect Parameters
person icon
guest_Robbo
Guest
Quote
2026-04-17 08:58:08

I just added the ability to adjust any of the parameters for each sound effect when using sound nodes.

https://robo25.itch.io/coppercube-apis-version-2

Using property attributes, you select what sound effect you want ('SoundFX') then adjust the settings as needed.

Default values below can be changed via 'FXData1', 'FXData2', 'FXData3' & 'FXData4'
If adjusting true/false, use 0 or 1 instead

'FXGain' has been removed as now you can edit each value yourself


Sample code for using a sound node:

var node = ccbGetSceneNodeFromName("Sound3D");
ccbSetSceneNodeProperty(node, "PlayMode", "nothing");
// reset playmode each time if re-using the same sound node
ccbSetSceneNodeProperty(node, "SoundFX", "Echo");
// add sound effect name before adjusting values
ccbSetSceneNodeProperty(node, "FXData1", 100, 50, 50);
// adjust first 3 values as required
ccbSetSceneNodeProperty(node, "FXData2", 1.1, 1, 16);
// adjust next 3 values if applicable else ignore
ccbSetSceneNodeProperty(node, "FXData3", 10, 5, 20);
// adjust next 3 values if applicable else ignore
ccbSetSceneNodeProperty(node, "FXData4", 90, 0, 0);
// adjust last 3 values if applicable else ignore
ccbSetSceneNodeProperty(node, "PlayMode", "play_once"); // play the sound effect

Please test it out and let me know of any issues, or alternatively if you find any much better parameter settings than the default please post below and let us all know...

person icon
gazzauk
Registered User
Quote
2026-04-18 04:13:37

I've run a quick test and appears to be working ok. I like all those extra reverb params.

Passing the params is a little long winded but it works. Is there a limit on the amount of parameters a function call can have ? Maybe you could pass an array variable ??

Now if only we could have multiple effects active for each sound...ha..ha..i'm asking too much now.
I was thinking something like this:

var node = ccbGetSceneNodeFromName("Sound3D");
ccbSetSceneNodeProperty(node, "SoundFX", "Echo", "Reverb");
ccbSetSceneNodeProperty(node, "ParamsReverb", -1000, -100, 0, 1.49, 0.83, -2602, 0.007, 200, 0.011, 100, 100, 5000);
ccbSetSceneNodeProperty(node, "ParamsEcho", 20, 10, 200, 200, 0);
ccbSetSceneNodeProperty(node, "PlayMode", "play_once");



Big thanks for the update Robo!

person icon
guest_Robbo
Guest
Quote
2026-04-18 11:45:40

Thanks 'gazzauk' - yes its a little long winded but the best I could come up with for now, and yes, I thought about passing an array instead of groups of vector 3's - might look into that later.

You would have to ask Niko about multiple soundFX for the same sound - somehow I would doubt it but you can ask him...

person icon
blackwater
Registered User
Quote
2026-04-18 23:44:38

Woho, thanks for this R!


Create reply:










 

  

Possible Codes


Feature Code
Link [url] www.example.com [/url]
Bold [b]bold text[/b]
Image [img]http://www.example.com/image.jpg[/img]
Quote [quote]quoted text[/quote]
Code [code]source code[/code]

Emoticons


icon_holyicon_cryicon_devilicon_lookicon_grinicon_kissicon_monkeyicon_hmpf
icon_sadicon_happyicon_smileicon_uhicon_blink   






Copyright© Ambiera e.U. all rights reserved.
Contact | Imprint | Products | Privacy Policy | Terms and Conditions |