[
{
"id": "gs.Condition",
"params": {
"variable": {
"name": "Audio Volume",
"index": 242,
"scope": 1,
"changed": true,
"domain": "com.degica.vnm.default"
},
"numberValue": 0,
"textValue": "",
"switchValue": 0,
"valueType": 0,
"operation": 0,
"previewBackground": {
"name": "$live_preview_snapshot"
}
},
"indent": 0,
"uid": "95532EFF5A6F68447609D331144696FDA399"
},
{
"id": "gs.JumpToLabel",
"params": {
"name": "end of audio fade",
"target": "activeContext"
},
"indent": 1,
"uid": "04C1CAAB9ED3124285892E51C70191300231"
},
{
"id": "gs.Condition",
"params": {
"variable": {
"name": "Audio Volume",
"index": 242,
"scope": 1,
"changed": true,
"domain": "com.degica.vnm.default"
},
"numberValue": {
"name": "New Audio Volume",
"index": 243,
"scope": 1,
"changed": true,
"domain": "com.degica.vnm.default"
},
"textValue": "",
"switchValue": 0,
"valueType": 0,
"operation": 2,
"previewBackground": {
"name": "$live_preview_snapshot"
}
},
"indent": 0,
"uid": "B517214C7BB2104C618A9A92EBC6353E383F"
},
{
"id": "gs.ChangeBooleanVariables",
"params": {
"target": 0,
"targetReferenceDomain": "com.degica.vnm.default",
"targetReference": {
"index": 0,
"scope": 1,
"domain": "com.degica.vnm.default"
},
"targetVariable": {
"name": "Audio must be lowered?",
"index": 0,
"scope": 0,
"domain": "com.degica.vnm.default"
},
"targetRangeScope": 0,
"rangeStart": 0,
"rangeEnd": 0,
"value": 1,
"previewBackground": {
"name": "$live_preview_snapshot"
}
},
"indent": 1,
"uid": "97EC084134A5334B43181D11F45BB21DF980"
},
{
"id": "gs.Comment",
"params": {
"text": "The logic behind it is: if it needs (for example) 1000ms to go from 1 to 100, it means that it loops 1000/20ms = 50 times\nSo in 50 loops it needs to cover a 99 volume difference\n\n99/50 = 2 gain every loop of 20ms"
},
"indent": 0,
"uid": "4103EBD174682146B3684158BC07B1CB3088",
"expanded": true
},
{
"id": "gs.ChangeNumberVariables",
"params": {
"target": 0,
"targetVariable": {
"name": "Copy of audio volume",
"index": 0,
"scope": 0,
"domain": "com.degica.vnm.default"
},
"targetScope": 0,
"targetRange": {
"start": 0,
"end": 0
},
"targetReferenceDomain": "com.degica.vnm.default",
"targetReference": {
"index": 0,
"scope": 1,
"domain": "com.degica.vnm.default"
},
"operation": 0,
"source": 0,
"sourceValue": {
"name": "Audio Volume",
"index": 242,
"scope": 1,
"changed": true,
"domain": "com.degica.vnm.default"
},
"sourceRandom": {
"start": 0,
"end": 0
},
"sourceScope": 0,
"sourceVariable": {
"index": 0,
"scope": 1,
"domain": "com.degica.vnm.default"
},
"sourceReferenceDomain": "com.degica.vnm.default",
"sourceReference": {
"index": 0,
"scope": 1,
"domain": "com.degica.vnm.default"
},
"previewBackground": {
"name": "$live_preview_snapshot"
}
},
"indent": 0,
"uid": "95F8645559C4544EE00809971B4B25AD743E"
},
{
"id": "gs.ChangeNumberVariables",
"params": {
"target": 0,
"targetVariable": {
"name": "Volume Gain/Loss",
"index": 1,
"scope": 0,
"domain": "com.degica.vnm.default"
},
"targetScope": 0,
"targetRange": {
"start": 0,
"end": 0
},
"targetReferenceDomain": "com.degica.vnm.default",
"targetReference": {
"index": 0,
"scope": 1,
"domain": "com.degica.vnm.default"
},
"operation": 0,
"source": 0,
"sourceValue": {
"name": "New Audio Volume",
"index": 243,
"scope": 1,
"changed": true,
"domain": "com.degica.vnm.default"
},
"sourceRandom": {
"start": 0,
"end": 0
},
"sourceScope": 0,
"sourceVariable": {
"index": 0,
"scope": 1,
"domain": "com.degica.vnm.default"
},
"sourceReferenceDomain": "com.degica.vnm.default",
"sourceReference": {
"index": 0,
"scope": 1,
"domain": "com.degica.vnm.default"
},
"previewBackground": {
"name": "$live_preview_snapshot"
}
},
"indent": 0,
"uid": "871CD2FC7D3D314E867B2F22381F6F6D19E0"
},
{
"id": "gs.ChangeNumberVariables",
"params": {
"target": 0,
"targetVariable": {
"name": "Volume Gain/Loss",
"index": 1,
"scope": 0,
"domain": "com.degica.vnm.default"
},
"targetScope": 0,
"targetRange": {
"start": 0,
"end": 0
},
"targetReferenceDomain": "com.degica.vnm.default",
"targetReference": {
"index": 0,
"scope": 1,
"domain": "com.degica.vnm.default"
},
"operation": 2,
"source": 0,
"sourceValue": {
"name": "Copy of audio volume",
"index": 0,
"scope": 0,
"domain": "com.degica.vnm.default"
},
"sourceRandom": {
"start": 0,
"end": 0
},
"sourceScope": 0,
"sourceVariable": {
"index": 0,
"scope": 1,
"domain": "com.degica.vnm.default"
},
"sourceReferenceDomain": "com.degica.vnm.default",
"sourceReference": {
"index": 0,
"scope": 1,
"domain": "com.degica.vnm.default"
},
"previewBackground": {
"name": "$live_preview_snapshot"
}
},
"indent": 0,
"uid": "E1AB26C786FC2444FF7A3452AFAE46CC494B"
},
{
"id": "gs.ChangeNumberVariables",
"params": {
"target": 0,
"targetVariable": {
"name": "Time(ms)",
"index": 2,
"scope": 0,
"domain": "com.degica.vnm.default"
},
"targetScope": 0,
"targetRange": {
"start": 0,
"end": 0
},
"targetReferenceDomain": "com.degica.vnm.default",
"targetReference": {
"index": 0,
"scope": 1,
"domain": "com.degica.vnm.default"
},
"operation": 4,
"source": 0,
"sourceValue": 20,
"sourceRandom": {
"start": 0,
"end": 0
},
"sourceScope": 0,
"sourceVariable": {
"index": 0,
"scope": 1,
"domain": "com.degica.vnm.default"
},
"sourceReferenceDomain": "com.degica.vnm.default",
"sourceReference": {
"index": 0,
"scope": 1,
"domain": "com.degica.vnm.default"
},
"previewBackground": {
"name": "$live_preview_snapshot"
}
},
"indent": 0,
"uid": "6C9B8F5E51A6364AFC08C52468469FB7F8FE"
},
{
"id": "gs.ChangeDecimalVariables",
"params": {
"roundMethod": 1,
"target": 0,
"targetVariable": {
"name": "Volume Gain/Loss",
"index": 1,
"scope": 0,
"domain": "com.degica.vnm.default"
},
"targetScope": 0,
"targetRange": {
"start": 0,
"end": 0
},
"targetReferenceDomain": "com.degica.vnm.default",
"targetReference": {
"index": 0,
"scope": 1,
"domain": "com.degica.vnm.default"
},
"operation": 4,
"source": 0,
"sourceValue": {
"name": "Time(ms)",
"index": 2,
"scope": 0,
"domain": "com.degica.vnm.default"
},
"sourceRandom": {
"start": 0,
"end": 0
},
"sourceScope": 0,
"sourceVariable": {
"index": 0,
"scope": 1,
"domain": "com.degica.vnm.default"
},
"sourceReferenceDomain": "com.degica.vnm.default",
"sourceReference": {
"index": 0,
"scope": 1,
"domain": "com.degica.vnm.default"
},
"previewBackground": {
"name": "$live_preview_snapshot"
}
},
"indent": 0,
"uid": "CB2A59E88552B341DF5A390997DC192EACF1",
"expanded": true
},
{
"id": "gs.Condition",
"params": {
"variable": {
"name": "Volume Gain/Loss",
"index": 1,
"scope": 0,
"domain": "com.degica.vnm.default"
},
"numberValue": 0,
"textValue": "",
"switchValue": 0,
"valueType": 0,
"operation": 0,
"previewBackground": {
"name": "$live_preview_snapshot"
}
},
"indent": 0,
"uid": "808D3DB6696CC24C144B0576C968ADD31F6A"
},
{
"id": "gs.Condition",
"params": {
"variable": {
"name": "Audio must be lowered?",
"index": 0,
"scope": 0,
"domain": "com.degica.vnm.default"
},
"numberValue": 0,
"textValue": "",
"switchValue": 1,
"valueType": 1,
"operation": 0,
"previewBackground": {
"name": "$live_preview_snapshot"
}
},
"indent": 1,
"uid": "D084329B069A26484A794BF34131B17BCA55"
},
{
"id": "gs.ChangeNumberVariables",
"params": {
"target": 0,
"targetVariable": {
"name": "Volume Gain/Loss",
"index": 1,
"scope": 0,
"domain": "com.degica.vnm.default"
},
"targetScope": 0,
"targetRange": {
"start": 0,
"end": 0
},
"targetReferenceDomain": "com.degica.vnm.default",
"targetReference": {
"index": 0,
"scope": 1,
"domain": "com.degica.vnm.default"
},
"operation": 0,
"source": 0,
"sourceValue": -1,
"sourceRandom": {
"start": 0,
"end": 0
},
"sourceScope": 0,
"sourceVariable": {
"index": 0,
"scope": 1,
"domain": "com.degica.vnm.default"
},
"sourceReferenceDomain": "com.degica.vnm.default",
"sourceReference": {
"index": 0,
"scope": 1,
"domain": "com.degica.vnm.default"
},
"previewBackground": {
"name": "$live_preview_snapshot"
}
},
"indent": 2,
"uid": "B0E715BF2A67714283898B343414DA001907"
},
{
"id": "gs.ConditionElse",
"params": {},
"indent": 1,
"uid": "A374F7A119557849AA6A2427415974FB7CF4"
},
{
"id": "gs.ChangeNumberVariables",
"params": {
"target": 0,
"targetVariable": {
"name": "Aumento/Riduzione volume",
"index": 1,
"scope": 0,
"domain": "com.degica.vnm.default"
},
"targetScope": 0,
"targetRange": {
"start": 0,
"end": 0
},
"targetReferenceDomain": "com.degica.vnm.default",
"targetReference": {
"index": 0,
"scope": 1,
"domain": "com.degica.vnm.default"
},
"operation": 0,
"source": 0,
"sourceValue": 1,
"sourceRandom": {
"start": 0,
"end": 0
},
"sourceScope": 0,
"sourceVariable": {
"index": 0,
"scope": 1,
"domain": "com.degica.vnm.default"
},
"sourceReferenceDomain": "com.degica.vnm.default",
"sourceReference": {
"index": 0,
"scope": 1,
"domain": "com.degica.vnm.default"
},
"previewBackground": {
"name": "$live_preview_snapshot"
}
},
"indent": 2,
"uid": "6638BFA0214EA347657AFE91A9619147A5B2"
},
{
"id": "gs.ChangeDecimalVariables",
"params": {
"roundMethod": 0,
"target": 0,
"targetVariable": {
"name": "Volume Gain/Loss",
"index": 1,
"scope": 0,
"domain": "com.degica.vnm.default"
},
"targetScope": 0,
"targetRange": {
"start": 0,
"end": 0
},
"targetReferenceDomain": "com.degica.vnm.default",
"targetReference": {
"index": 0,
"scope": 1,
"domain": "com.degica.vnm.default"
},
"operation": 4,
"source": 0,
"sourceValue": 100,
"sourceRandom": {
"start": 0,
"end": 0
},
"sourceScope": 0,
"sourceVariable": {
"index": 0,
"scope": 1,
"domain": "com.degica.vnm.default"
},
"sourceReferenceDomain": "com.degica.vnm.default",
"sourceReference": {
"index": 0,
"scope": 1,
"domain": "com.degica.vnm.default"
},
"previewBackground": {
"name": "$live_preview_snapshot"
}
},
"indent": 0,
"uid": "6E5A39BE687A2342B23B5C66E81528887977",
"expanded": true
},
{
"id": "gs.ChangeDecimalVariables",
"params": {
"roundMethod": 0,
"target": 0,
"targetVariable": {
"name": "Audio Volume",
"index": 242,
"scope": 1,
"changed": true,
"domain": "com.degica.vnm.default"
},
"targetScope": 0,
"targetRange": {
"start": 0,
"end": 0
},
"targetReferenceDomain": "com.degica.vnm.default",
"targetReference": {
"index": 0,
"scope": 1,
"domain": "com.degica.vnm.default"
},
"operation": 4,
"source": 0,
"sourceValue": 100,
"sourceRandom": {
"start": 0,
"end": 0
},
"sourceScope": 0,
"sourceVariable": {
"index": 0,
"scope": 1,
"domain": "com.degica.vnm.default"
},
"sourceReferenceDomain": "com.degica.vnm.default",
"sourceReference": {
"index": 0,
"scope": 1,
"domain": "com.degica.vnm.default"
},
"previewBackground": {
"name": "$live_preview_snapshot"
}
},
"indent": 0,
"uid": "318D96AF4F18F7401B1ADA9791A101BE6789",
"expanded": true
},
{
"id": "gs.ChangeDecimalVariables",
"params": {
"roundMethod": 0,
"target": 0,
"targetVariable": {
"name": "New Audio Volume",
"index": 243,
"scope": 1,
"changed": true,
"domain": "com.degica.vnm.default"
},
"targetScope": 0,
"targetRange": {
"start": 0,
"end": 0
},
"targetReferenceDomain": "com.degica.vnm.default",
"targetReference": {
"index": 0,
"scope": 1,
"domain": "com.degica.vnm.default"
},
"operation": 4,
"source": 0,
"sourceValue": 100,
"sourceRandom": {
"start": 0,
"end": 0
},
"sourceScope": 0,
"sourceVariable": {
"index": 0,
"scope": 1,
"domain": "com.degica.vnm.default"
},
"sourceReferenceDomain": "com.degica.vnm.default",
"sourceReference": {
"index": 0,
"scope": 1,
"domain": "com.degica.vnm.default"
},
"previewBackground": {
"name": "$live_preview_snapshot"
}
},
"indent": 0,
"uid": "5FCC41F5642227442E6BC421027C29ED72BD",
"expanded": true
},
{
"id": "gs.LoopCommand",
"params": {},
"indent": 0,
"uid": "4ED3F5EF85B586485C7B39232536E224FE43"
},
{
"id": "gs.WaitCommand",
"params": {
"time": 1.2
},
"indent": 1,
"uid": "9FDD33DD33B077452C0A111690DCCD46B986"
},
{
"id": "gs.ChangeDecimalVariables",
"params": {
"roundMethod": 0,
"target": 0,
"targetVariable": {
"name": "Audio Volume",
"index": 242,
"scope": 1,
"changed": true,
"domain": "com.degica.vnm.default"
},
"targetScope": 0,
"targetRange": {
"start": 0,
"end": 0
},
"targetReferenceDomain": "com.degica.vnm.default",
"targetReference": {
"index": 0,
"scope": 1,
"domain": "com.degica.vnm.default"
},
"operation": 1,
"source": 0,
"sourceValue": {
"name": "Volume Gain/Loss",
"index": 1,
"scope": 0,
"domain": "com.degica.vnm.default"
},
"sourceRandom": {
"start": 0,
"end": 0
},
"sourceScope": 0,
"sourceVariable": {
"index": 0,
"scope": 1,
"domain": "com.degica.vnm.default"
},
"sourceReferenceDomain": "com.degica.vnm.default",
"sourceReference": {
"index": 0,
"scope": 1,
"domain": "com.degica.vnm.default"
},
"previewBackground": {
"name": "$live_preview_snapshot"
}
},
"indent": 1,
"uid": "0195C3AD29AAF14E8A99B3D94F08F80D7195",
"expanded": true
},
{
"id": "gs.Condition",
"params": {
"variable": {
"name": "Audio Volume",
"index": 242,
"scope": 1,
"changed": true,
"domain": "com.degica.vnm.default"
},
"numberValue": 1,
"textValue": "",
"switchValue": 0,
"valueType": 0,
"operation": 2,
"previewBackground": {
"name": "$live_preview_snapshot"
}
},
"indent": 1,
"uid": "244CD0C0233123453F6A6436C84C9450FF66"
},
{
"id": "gs.ChangeNumberVariables",
"params": {
"target": 0,
"targetVariable": {
"name": "Audio Volume",
"index": 242,
"scope": 1,
"changed": true,
"domain": "com.degica.vnm.default"
},
"targetScope": 0,
"targetRange": {
"start": 0,
"end": 0
},
"targetReferenceDomain": "com.degica.vnm.default",
"targetReference": {
"index": 0,
"scope": 1,
"domain": "com.degica.vnm.default"
},
"operation": 0,
"source": 0,
"sourceValue": 1,
"sourceRandom": {
"start": 0,
"end": 0
},
"sourceScope": 0,
"sourceVariable": {
"index": 0,
"scope": 1,
"domain": "com.degica.vnm.default"
},
"sourceReferenceDomain": "com.degica.vnm.default",
"sourceReference": {
"index": 0,
"scope": 1,
"domain": "com.degica.vnm.default"
},
"previewBackground": {
"name": "$live_preview_snapshot"
}
},
"indent": 2,
"uid": "FE4A3F9048E8B34EAD7813467BB5393CA066"
},
{
"id": "gs.Condition",
"params": {
"variable": {
"name": "Audio Volume",
"index": 242,
"scope": 1,
"changed": true,
"domain": "com.degica.vnm.default"
},
"numberValue": 0,
"textValue": "",
"switchValue": 0,
"valueType": 0,
"operation": 4,
"previewBackground": {
"name": "$live_preview_snapshot"
}
},
"indent": 1,
"uid": "6EF616AB106574427B3990D2FA071CD30C19"
},
{
"id": "gs.ChangeNumberVariables",
"params": {
"target": 0,
"targetVariable": {
"name": "Audio Volume",
"index": 242,
"scope": 1,
"changed": true,
"domain": "com.degica.vnm.default"
},
"targetScope": 0,
"targetRange": {
"start": 0,
"end": 0
},
"targetReferenceDomain": "com.degica.vnm.default",
"targetReference": {
"index": 0,
"scope": 1,
"domain": "com.degica.vnm.default"
},
"operation": 0,
"source": 0,
"sourceValue": 0,
"sourceRandom": {
"start": 0,
"end": 0
},
"sourceScope": 0,
"sourceVariable": {
"index": 0,
"scope": 1,
"domain": "com.degica.vnm.default"
},
"sourceReferenceDomain": "com.degica.vnm.default",
"sourceReference": {
"index": 0,
"scope": 1,
"domain": "com.degica.vnm.default"
},
"previewBackground": {
"name": "$live_preview_snapshot"
}
},
"indent": 2,
"uid": "572E16A89A6D254F4E7897E718C6714470AA"
},
{
"id": "gs.Script",
"params": {
"script": "var n = GameManager.variableStore.numbers; \n\nAudioManager.audioBuffersByLayer[n[241]].volume = n[242]"
},
"indent": 1,
"expanded": true
},
{
"id": "gs.Condition",
"params": {
"variable": {
"name": "Audio must be lowered?",
"index": 0,
"scope": 0,
"domain": "com.degica.vnm.default"
},
"numberValue": 0,
"textValue": "",
"switchValue": 1,
"valueType": 1,
"operation": 0,
"previewBackground": {
"name": "$live_preview_snapshot"
}
},
"indent": 1,
"uid": "FA89A7FB6355D9410E68581376D0353C0264"
},
{
"id": "gs.Condition",
"params": {
"variable": {
"name": "Audio Volume",
"index": 242,
"scope": 1,
"changed": true,
"domain": "com.degica.vnm.default"
},
"numberValue": {
"name": "New Audio Volume",
"index": 243,
"scope": 1,
"changed": true,
"domain": "com.degica.vnm.default"
},
"textValue": "",
"switchValue": 0,
"valueType": 0,
"operation": 5,
"previewBackground": {
"name": "$live_preview_snapshot"
}
},
"indent": 2,
"uid": "7B8F1B3657B751468D797F8265DDEF9F340A"
},
{
"id": "gs.BreakLoopCommand",
"params": {},
"indent": 3,
"uid": "41665C121B41D844FF89DDF6515C45E94B02"
},
{
"id": "gs.ConditionElse",
"params": {},
"indent": 1,
"uid": "556A7E766692D148265A503638C12E221EF4"
},
{
"id": "gs.Condition",
"params": {
"variable": {
"name": "Audio Volume",
"index": 242,
"scope": 1,
"changed": true,
"domain": "com.degica.vnm.default"
},
"numberValue": {
"name": "New Audio Volume",
"index": 243,
"scope": 1,
"changed": true,
"domain": "com.degica.vnm.default"
},
"textValue": "",
"switchValue": 0,
"valueType": 0,
"operation": 3,
"previewBackground": {
"name": "$live_preview_snapshot"
}
},
"indent": 2,
"uid": "139D687B611B29430F8B6F97D1318C542555"
},
{
"id": "gs.BreakLoopCommand",
"params": {},
"indent": 3,
"uid": "E975D4325910D34ED53A79D74579FC400A26"
},
{
"id": "gs.Label",
"params": {
"name": "end of audio fade"
},
"indent": 0,
"uid": "B3337C272A6B784C4529E4E24DF28DBAD185"
},
{
"id": "gs.ChangeDecimalVariables",
"params": {
"roundMethod": 1,
"target": 0,
"targetVariable": {
"name": "Audio Volume",
"index": 242,
"scope": 1,
"changed": true,
"domain": "com.degica.vnm.default"
},
"targetScope": 0,
"targetRange": {
"start": 0,
"end": 0
},
"targetReferenceDomain": "com.degica.vnm.default",
"targetReference": {
"index": 0,
"scope": 1,
"domain": "com.degica.vnm.default"
},
"operation": 3,
"source": 0,
"sourceValue": 100,
"sourceRandom": {
"start": 0,
"end": 0
},
"sourceScope": 0,
"sourceVariable": {
"index": 0,
"scope": 1,
"domain": "com.degica.vnm.default"
},
"sourceReferenceDomain": "com.degica.vnm.default",
"sourceReference": {
"index": 0,
"scope": 1,
"domain": "com.degica.vnm.default"
},
"previewBackground": {
"name": "$live_preview_snapshot"
}
},
"indent": 0,
"uid": "F3190873735451477F4A82847FBD2F035EAA",
"expanded": true
}
].novelsharp/vn-scene-command