Needs a lot of cleanup. Data has been de-duplicated, and where identical copies existed, one of them has been replaced with a symlink. Some files have been excluded, such as binaries, installers and debug dumps. Some of that may still be present.
43 lines
No EOL
1.5 KiB
JavaScript
43 lines
No EOL
1.5 KiB
JavaScript
//
|
|
// audioReverbOn.js
|
|
// examples
|
|
//
|
|
// Copyright 2014 High Fidelity, Inc.
|
|
//
|
|
//
|
|
// Gives the ability to be set various reverb settings.
|
|
//
|
|
//
|
|
// Distributed under the Apache License, Version 2.0.
|
|
// See the accompanying file LICENSE or http://www.apache.org/licenses/LICENSE-2.0.html
|
|
|
|
// http://wiki.audacityteam.org/wiki/GVerb#Instant_reverb_settings
|
|
var audioOptions = new AudioEffectOptions({
|
|
// Square Meters
|
|
maxRoomSize: 50,
|
|
roomSize: 50,
|
|
|
|
// Seconds
|
|
reverbTime: 10,
|
|
|
|
// Between 0 - 1
|
|
damping: 0.50,
|
|
inputBandwidth: 0.75,
|
|
|
|
// dB
|
|
earlyLevel: -22,
|
|
tailLevel: -28,
|
|
dryLevel: 0,
|
|
wetLevel: 6
|
|
});
|
|
|
|
AudioDevice.setReverbOptions(audioOptions);
|
|
AudioDevice.setReverb(true);
|
|
print("Reverb is now on with the updated options.");
|
|
|
|
function scriptEnding() {
|
|
AudioDevice.setReverb(false);
|
|
print("Reberb is now off.");
|
|
}
|
|
|
|
Script.scriptEnding.connect(scriptEnding); |