mirror of
https://github.com/Tonejs/Tone.js
synced 2025-01-28 11:35:03 +00:00
25 lines
447 B
JavaScript
25 lines
447 B
JavaScript
|
define(["Tone/core/Tone", "Tone/effect/Distortion"], function(Tone){
|
||
|
|
||
|
/**
|
||
|
* named presets for Distortion
|
||
|
* @const
|
||
|
* @static
|
||
|
* @type {Object}
|
||
|
*/
|
||
|
Tone.Distortion.prototype.preset = {
|
||
|
"Clean" : {
|
||
|
"distortion" : 0.08,
|
||
|
"oversample" : "4x"
|
||
|
},
|
||
|
"Thick" : {
|
||
|
"distortion" : 0.6,
|
||
|
"oversample" : "none"
|
||
|
},
|
||
|
"Growl" : {
|
||
|
"distortion" : 1.4,
|
||
|
"oversample" : "2x"
|
||
|
}
|
||
|
};
|
||
|
|
||
|
return Tone.Distortion.prototype.preset;
|
||
|
});
|