mirror of
https://github.com/HifiExperiments/overte.git
synced 2025-08-04 06:24:41 +02:00
Updated script
This commit is contained in:
parent
997f1db835
commit
5a11104bdf
2 changed files with 25 additions and 30 deletions
|
@ -1,12 +0,0 @@
|
||||||
//
|
|
||||||
// audioReverbOff.js
|
|
||||||
// examples
|
|
||||||
//
|
|
||||||
// Copyright 2014 High Fidelity, Inc.
|
|
||||||
//
|
|
||||||
// Distributed under the Apache License, Version 2.0.
|
|
||||||
// See the accompanying file LICENSE or http://www.apache.org/licenses/LICENSE-2.0.html
|
|
||||||
//
|
|
||||||
//
|
|
||||||
AudioDevice.setReverb(false);
|
|
||||||
print("Reberb is now off.");
|
|
|
@ -8,25 +8,32 @@
|
||||||
// See the accompanying file LICENSE or http://www.apache.org/licenses/LICENSE-2.0.html
|
// See the accompanying file LICENSE or http://www.apache.org/licenses/LICENSE-2.0.html
|
||||||
|
|
||||||
// http://wiki.audacityteam.org/wiki/GVerb#Instant_reverb_settings
|
// http://wiki.audacityteam.org/wiki/GVerb#Instant_reverb_settings
|
||||||
var audioOptions = new AudioEffectOptions();
|
var audioOptions = new AudioEffectOptions({
|
||||||
|
// Square Meters
|
||||||
|
maxRoomSize: 50,
|
||||||
|
roomSize: 50,
|
||||||
|
|
||||||
// Square Meters
|
// Seconds
|
||||||
audioOptions.maxRoomSize = 50;
|
reverbTime: 4,
|
||||||
audioOptions.roomSize = 50;
|
|
||||||
|
|
||||||
// Seconds
|
// Between 0 - 1
|
||||||
audioOptions.reverbTime = 4;
|
damping: 0.50,
|
||||||
|
inputBandwidth: 0.75,
|
||||||
|
|
||||||
// Between 0 - 1
|
// dB
|
||||||
audioOptions.damping = 0.50;
|
earlyLevel: -22,
|
||||||
audioOptions.inputBandwidth = 0.75;
|
tailLevel: -28,
|
||||||
|
dryLevel: 0,
|
||||||
// dB
|
wetLevel: 6
|
||||||
audioOptions.earlyLevel = -22;
|
});
|
||||||
audioOptions.tailLevel = -28;
|
|
||||||
audioOptions.dryLevel = 0;
|
|
||||||
audioOptions.wetLevel = 6;
|
|
||||||
|
|
||||||
AudioDevice.setReverbOptions(audioOptions);
|
AudioDevice.setReverbOptions(audioOptions);
|
||||||
AudioDevice.setReverb(true);
|
AudioDevice.setReverb(true);
|
||||||
print("Reverb is now on with the updated options.");
|
print("Reverb is now on with the updated options.");
|
||||||
|
|
||||||
|
function scriptEnding() {
|
||||||
|
AudioDevice.setReverb(false);
|
||||||
|
print("Reberb is now off.");
|
||||||
|
}
|
||||||
|
|
||||||
|
Script.scriptEnding.connect(scriptEnding);
|
Loading…
Reference in a new issue