Skip to content

Instantly share code, notes, and snippets.

@goldzulu
Last active March 30, 2021 23:05
Show Gist options
  • Save goldzulu/3e695a841dc0c99db3261e1683e90b8a to your computer and use it in GitHub Desktop.
Save goldzulu/3e695a841dc0c99db3261e1683e90b8a to your computer and use it in GitHub Desktop.
APLA - Making FadeIn,FadeOut Work when using trimToParent
{
"type": "APLA",
"version": "0.91",
"resources": [
{
"number": {
"fadeDuration": 500
}
}
],
"mainTemplate": {
"parameters": [
"payload"
],
"item": {
"type": "Mixer",
"items": [
{
"type": "Sequencer",
"items": [
{
"type": "Speech",
"content": "In Seattle, it's 48 degrees and rainy. If you're headed outside, I suggest a jacket!"
},
{
"type": "Silence",
"duration": "@fadeDuration"
}
]
},
{
"type": "Audio",
"source": "soundbank://soundlibrary/nature/amzn_sfx_rain_03",
"duration": "trimToParent",
"filter": [
{
"type": "Repeat",
"repeatCount": -1
},
{
"type": "FadeIn",
"duration": "@fadeDuration"
},
{
"type": "Volume",
"amount": "20%"
}
]
}
],
"filter": [
{
"type": "FadeOut",
"duration": "@fadeDuration"
}
]
}
}
}
@zeheeba
Copy link

zeheeba commented Mar 30, 2021

This is amazing, thank you for the sample APLA!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment