[plugin] fade in/fade out audio

Post your work in progress addons and get feedback

Post » Mon Jul 06, 2015 4:33 am

@TiAm

Lucky we could have it in 3rd part plugins.
B
108
S
26
G
267
Posts: 4,456
Reputation: 149,747

Post » Sat Apr 02, 2016 8:19 am

Thanks for this !
I wonder how we have to do usually, your plugin make it very easy !

I already used it in my first game :)
B
4
Posts: 4
Reputation: 210

Post » Sat Jun 11, 2016 5:02 am

Is there a way to smoothly crossfade two pieces of music? That is, to fade out one track, while simultaneously fading in another?

Here's an example of what I'm talking about (sorry about the guy talking over it): https://youtu.be/50QEapyTPD4
As the player goes to higher and higher rooms, the audio transitions seamlessly into the next audio file, which is the musical score but with more instruments. The rhythm is kept intact throughout, but the crossfading allows the musical dynamics to vary depending on how far the player has progressed.
B
16
S
5
G
4
Posts: 29
Reputation: 3,100

Post » Sat Jun 11, 2016 5:47 am

@Evdog

It does not support crossfade ( fade-out + fade-in ) in an action in current plugin, user might try use two actions separated, one for fade out, the other for fade-in.
B
108
S
26
G
267
Posts: 4,456
Reputation: 149,747

Post » Mon Jun 13, 2016 3:58 am

Okay cool. Got that working :)

The dB tags seem a bit finnicky, though. I opened your sample .capx and switched

    "Play Fate not looping (tag "") with fade-in volume from "-60dB" to 1 in 1 second"

to

    "Play Fate not looping (tag "") with fade-in volume from "-60dB" to "-10dB" in 1 second"

and everything was silent. Switched it to

    "Play Fate not looping (tag "") with fade-in volume from "-60dB" to "0dB" in 1 second"

and it was still silent. Changed it back to linear numbers

    "Play Fate not looping (tag "") with fade-in volume from "-60dB" to 0.8 in 1 second"

and it was working fine.
B
16
S
5
G
4
Posts: 29
Reputation: 3,100

Post » Mon Jun 13, 2016 4:44 am

Update

Fix bug of end volume in "action:Play", to support db assign in string.


@Evdog
Fixed. Thanks for reporting.
B
108
S
26
G
267
Posts: 4,456
Reputation: 149,747

Post » Wed Aug 03, 2016 9:49 am

Update

Uses audio effect
Set property "Audio effect" to "Yes" to fade in or fade out sound by audio effect, if web audio is supported. Otherwise, it will fade by setting volume every tick.
B
108
S
26
G
267
Posts: 4,456
Reputation: 149,747

Post » Thu Aug 18, 2016 5:38 am

Hi Rex, love your work! Always very useful. I was just wondering if it's possible to get a seek function in this plugin? I'm using the equivalent of audio 'tilesets'. Can't stop the bass channel from popping when it crossfades channels without your plugin, but I can't actually use your plugin in this project without a seek function. Any help would be greatly appreciated, cheers.
B
6
Posts: 8
Reputation: 268

Post » Thu Aug 18, 2016 7:00 am

@kettering bug

Fading action of this plugin only calls the action in official audio plugin, so it is possible to fading audio only use official plugin.

Seeking is another problem, why it needs to add into this fading plugin?
B
108
S
26
G
267
Posts: 4,456
Reputation: 149,747

Post » Thu Aug 18, 2016 9:14 am

Oh sorry, I tried to attach the fade to a tag played with the official audio plugin earlier and it didn't work, so I figured it needed to be played from the helper. But I just tested it then and realized I must have made a mistake. Sorry it's been a very long frustrating day and I'm slowly going crazy. Thanks for getting back to me, and thanks for making all of these awesome plugins! :D
B
6
Posts: 8
Reputation: 268

PreviousNext

Return to Work in Progress Addons

Who is online

Users browsing this forum: No registered users and 0 guests