mirror of
https://github.com/Tonejs/Tone.js
synced 2024-11-16 00:27:58 +00:00
changing simpleSynth sounds
This commit is contained in:
parent
65f15a1ef2
commit
77c7b85da5
1 changed files with 9 additions and 4 deletions
|
@ -52,14 +52,19 @@
|
|||
|
||||
var synth = new Tone.Synth({
|
||||
"oscillator" : {
|
||||
"type" : "square"
|
||||
"type" : "fmtriangle",
|
||||
"modulationIndex" : 1.2,
|
||||
"harmonicity" : 0.25,
|
||||
"modulationType" : "sine"
|
||||
},
|
||||
"envelope" : {
|
||||
"attack" : 0.01,
|
||||
"attackCurve" : 'exponential',
|
||||
"attack" : 0.05,
|
||||
"decay" : 0.2,
|
||||
"sustain" : 0.2,
|
||||
"release" : 0.2,
|
||||
}
|
||||
"release" : 1.5,
|
||||
},
|
||||
"portamento" : 0.05
|
||||
}).toMaster();
|
||||
|
||||
// GUI //
|
||||
|
|
Loading…
Reference in a new issue