Tone.js/Tone/instrument/preset/FMSynth.preset.js

242 lines
4.2 KiB
JavaScript
Raw Normal View History

2014-09-03 18:54:46 +00:00
define(["Tone/core/Tone", "Tone/instrument/FMSynth"], function(Tone){
/**
* named presets for the FMSynth
* @const
* @static
* @type {Object}
*/
2014-09-04 23:13:55 +00:00
Tone.FMSynth.prototype.preset = {
2014-09-03 18:54:46 +00:00
"Trumpet" : {
"portamento" : 0,
"harmonicity" : 1,
"modulationIndex" : 4,
"carrier" : {
"volume" : 0,
"portamento" : 0,
2014-10-01 02:49:17 +00:00
"oscillator" : {
"type" : "square"
},
2014-09-03 18:54:46 +00:00
"filter" : {
"Q" : 2,
"type" : "lowpass",
"rolloff" : -12
},
"envelope" : {
"attack" : 0.01,
"decay" : 1,
"sustain" : 0.7,
"release" : 0.4
},
"filterEnvelope" : {
"attack" : 0.06,
"decay" : 0.07,
"sustain" : 0.35,
"release" : 0.8,
"min" : 3000,
"max" : 6500
}
},
"modulator" : {
"volume" : -6,
"portamento" : 0,
2014-10-01 02:49:17 +00:00
"oscillator" : {
"type" : "triangle"
},
2014-09-03 18:54:46 +00:00
"filter" : {
"Q" : 0,
"type" : "lowpass",
"rolloff" : -12
},
"envelope" : {
"attack" : 0.15,
"decay" : 0.3,
"sustain" : 1,
"release" : 1.5
},
"filterEnvelope" : {
"attack" : 0.03,
"decay" : 0.25,
"sustain" : 0.7,
"release" : 1,
"min" : 20000,
"max" : 20000
}
}
},
"Koto" : {
"portamento" : 0,
"harmonicity" : 3.01,
"modulationIndex" : 12.7,
"carrier" : {
"volume" : 0,
"portamento" : 0,
2014-10-01 02:49:17 +00:00
"oscillator" : {
"type" : "triangle"
},
2014-09-03 18:54:46 +00:00
"filter" : {
"Q" : 2,
"type" : "lowpass",
"rolloff" : -12
},
"envelope" : {
"attack" : 0.01,
"decay" : 2,
"sustain" : 0,
"release" : 0.8
},
"filterEnvelope" : {
"attack" : 0.06,
"decay" : 0.07,
"sustain" : 0.35,
"release" : 0.8,
"min" : 20000,
"max" : 20000
}
},
"modulator" : {
"volume" : -1,
"portamento" : 0,
2014-10-01 02:49:17 +00:00
"oscillator" : {
"type" : "sine"
},
2014-09-03 18:54:46 +00:00
"filter" : {
"Q" : 0,
"type" : "lowpass",
"rolloff" : -12
},
"envelope" : {
"attack" : 0.02,
"decay" : 2,
"sustain" : 0,
"release" : 0.8
},
"filterEnvelope" : {
"attack" : 0.03,
"decay" : 0.25,
"sustain" : 0.7,
"release" : 1,
"min" : 20000,
"max" : 20000
}
}
},
"ScratchAttack" : {
"portamento" : 0,
"harmonicity" : 10,
"modulationIndex" : 50,
2014-09-03 18:54:46 +00:00
"carrier" : {
"volume" : 0,
"portamento" : 0,
2014-10-01 02:49:17 +00:00
"oscillator" : {
"type" : "square"
},
2014-09-03 18:54:46 +00:00
"filter" : {
"Q" : 2,
"type" : "lowpass",
"rolloff" : -12
},
"envelope" : {
"attack" : 0.08,
"decay" : 0.3,
"sustain" : 0,
2014-09-03 18:54:46 +00:00
"release" : 1.2
},
"filterEnvelope" : {
"attack" : 0.01,
"decay" : 0.1,
"sustain" : 0,
"release" : 0.2,
"min" : 200,
"max" : 10000
}
},
"modulator" : {
"volume" : -6,
"portamento" : 0,
2014-10-01 02:49:17 +00:00
"oscillator" : {
"type" : "sine"
},
2014-09-03 18:54:46 +00:00
"filter" : {
"Q" : 1,
"type" : "highpass",
"rolloff" : -48
},
"envelope" : {
"attack" : 0.1,
2014-09-03 18:54:46 +00:00
"decay" : 0.2,
"sustain" : 0.3,
"release" : 0.01
},
"filterEnvelope" : {
"attack" : 0.2,
"decay" : 0.2,
"sustain" : 0.8,
"release" : 0.01,
"min" : 20,
"max" : 2000
}
}
},
"DistGit" : {
"portamento" : 0,
"harmonicity" : 1,
"modulationIndex" : 10,
"carrier" : {
"volume" : 0,
"portamento" : 0,
2014-10-01 02:49:17 +00:00
"oscillator" : {
"type" : "square"
},
2014-09-03 18:54:46 +00:00
"filter" : {
"Q" : 2,
"type" : "lowpass",
"rolloff" : -12
},
"envelope" : {
"attack" : 0.001,
"decay" : 3.3,
"sustain" : 0,
"release" : 1.2
},
"filterEnvelope" : {
"attack" : 0.05,
"decay" : 0.15,
"sustain" : 1,
"release" : 1.5,
"min" : 400,
"max" : 4000
}
},
"modulator" : {
"volume" : -3,
"portamento" : 0,
2014-10-01 02:49:17 +00:00
"oscillator" : {
"type" : "sine"
},
2014-09-03 18:54:46 +00:00
"filter" : {
"Q" : 1,
"type" : "lowpass",
"rolloff" : -48
},
"envelope" : {
"attack" : 0.3,
"decay" : 0.4,
"sustain" : 1,
"release" : 1.7
},
"filterEnvelope" : {
"attack" : 0.02,
"decay" : 0.02,
"sustain" : 0.1,
"release" : 1.5,
"min" : 200,
"max" : 200
}
}
},
};
2014-09-04 23:13:55 +00:00
return Tone.FMSynth.prototype.preset;
2014-09-03 18:54:46 +00:00
});