Ambiera Forum

Discussions, Help and Support.

Ambiera Forum > CopperCube > Feature requests and bug reports
missing ccbLoadSound()

DouweDabbe
Guest
Quote
2021-11-01 00:31:13

while there exists:
ccbReadFileContents() for reading text and do
something later with it. and
ccbLoadTexture() for reading images also for later use.

There is no function to load sounds / soundfragments for processing and later output.

I am missing this in my approach for making a Piano android app after a web html5 example. I do know there are other approaches but it would be nice if sounds where available for manipulation such as concat and more.


Robo
Guest
Quote
2021-11-01 02:35:14

You can load different sounds as needed...once in memory wont load in again:

var playSnd = "sounds/" + this.sound + this.File_type;
ccbSetSceneNodeProperty(this.Sound_Node, "PlayMode", "nothing");
ccbSetSceneNodeProperty(this.Sound_Node, "SoundFileName", playSnd);
ccbSetSceneNodeProperty(this.Sound_Node, "Volume", vol);
ccbSetSceneNodeProperty(this.Sound_Node, "PlayMode", "play_once");

Using the above you have to reset the play once every time with play 'nothing' else wont play again the next time.
This way you can play any sound/music with its own sound node and controlled separately instead of changing system volume.


DouweDabbe
Guest
Quote
2021-11-01 22:27:34

thank you, that looks promissing will try later

also how can we do things as reverb, fade in , fade out,

my piano has paddles, i think it does reverb and dimming

reverb kind of echo sound warm up through a mechanical sound reflector inside instrument.
so this would at least increase volume for all current sounding notes.

dimming is when a thick woolen damper is placed on the strings inside instrument.
which lowers at least the volume for all notes.

then there is key up whitch can switch of that individual note but a fast fade out would be more natural.


VP
Guest
Quote
2021-11-01 23:16:55

For reverb, you could pass the audio from CCB through something like savihost with a reverb vst. (such as TeufelsbergReverb.dll).

This would make all the audio have reverb but it's possible that you could pass MIDI commands from coppercube to trigger and specific changes as almost all VST effects can be controlled by simple instructions generated by almost any source - but that's a MIDI thing, not a coppercube thing - so you;d get better support from a MIDI forum (BOME MIDI translator) is fairly helpful forum and they offer a free version which would probably achieve what you want to do.


VP
Guest
Quote
2021-11-01 23:23:15

Ah, sorry, I just noticed you said "Android", the method I outlined is better suited to Windows.Although MIDI works on almost all platforms (including Android, RaspberyPi and Arduino, BOME and the VST reverb dll are primarily designed for windows.


DouweDabbe
Guest
Quote
2021-11-03 22:03:16

midi is really nice as they have this soundbank support for diverse instruments.
Also midi music files are also very small.

thanks for the tip i will investigate.


Create reply:


Posted by: (you are not logged in)


Enter the missing letter in: "Int?rnational" (you are not logged in)


Text:

 

  

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


   






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