Loading...
Logo
Processing Forum
Greetings,

I've been trying to figure out a simple way to alter the volume of sounds that I am triggering.  I know I could just open the sounds in a DAW and reduce the volume but that seems silly to me as I would like to be able to tweak the volume in the context of the sketch.

I am loading .mp3 samples and triggering them based upon mouse events.  My triggered sounds are too loud right now in comparison to the looping ambient sounds.

Any suggestions?

Thanks,
Darin

Replies(2)

Hey, I guess you're already off somewhere else since this post is a year ago.

But to close this post

there is

jjingle.setVollume(newVolume);

and

jjingle.setGain(newGain);

they both don't work for all cases.
But one of them mostly does.

Hope that helpes.

Actually, I just starting working again on a audio project in processing so your timing is perfect!  Thanks!