mirror of
https://github.com/Tonejs/Tone.js
synced 2024-11-16 00:27:58 +00:00
updating to new API
This commit is contained in:
parent
eda4553169
commit
9d96b50bff
3 changed files with 17 additions and 18 deletions
|
@ -114,8 +114,8 @@
|
|||
"attack" : 0.001,
|
||||
"decay" : 0.01,
|
||||
"sustain" : 0.5,
|
||||
"min" : 200,
|
||||
"max" : 1200
|
||||
"baseFrequency" : 200,
|
||||
"octaves" : 2.6
|
||||
}
|
||||
}).toMaster();
|
||||
|
||||
|
@ -123,7 +123,6 @@
|
|||
bass.triggerAttackRelease(note, "16n", time);
|
||||
}, ["C2", ["C3", ["C3", "D2"]], "E2", ["D2", "A1"]]).start(0);
|
||||
|
||||
bassPart.humanize = true;
|
||||
bassPart.probability = 0.9;
|
||||
|
||||
//set the transport
|
||||
|
|
|
@ -164,8 +164,8 @@
|
|||
"filterEnvelope": {
|
||||
"attack": 0.01,
|
||||
"decay": 0.03,
|
||||
"min": 4000,
|
||||
"max": 700,
|
||||
"baseFrequency": 4000,
|
||||
"octaves": -2.5,
|
||||
"exponent": 4,
|
||||
}
|
||||
}).connect(lowPass);
|
||||
|
@ -186,8 +186,8 @@
|
|||
"filterEnvelope": {
|
||||
"attack": 0.01,
|
||||
"decay": 0.03,
|
||||
"min": 4000,
|
||||
"max": 700,
|
||||
"baseFrequency": 4000,
|
||||
"octaves": -2.5,
|
||||
"exponent": 4,
|
||||
|
||||
}
|
||||
|
@ -247,13 +247,13 @@
|
|||
|
||||
var kick = new Tone.Oscillator("A2").connect(kickEnvelope).start();
|
||||
|
||||
kickSnapEnv = new Tone.ScaledEnvelope({
|
||||
kickSnapEnv = new Tone.FrequencyEnvelope({
|
||||
"attack": 0.005,
|
||||
"decay": 0.01,
|
||||
"sustain": 0,
|
||||
"release": 0,
|
||||
"min": "110",
|
||||
"max": 700
|
||||
"baseFrequency": "A2",
|
||||
"octaves": 2.7
|
||||
}).connect(kick.frequency);
|
||||
|
||||
var kickPart = new Tone.Part(function(time){
|
||||
|
|
|
@ -58,8 +58,8 @@
|
|||
"attack" : 0.001,
|
||||
"decay" : 0.02,
|
||||
"sustain" : 1,
|
||||
"min" : 6000,
|
||||
"max" : 600
|
||||
"baseFrequency" : 6000,
|
||||
"octaves" : -3.3
|
||||
},
|
||||
"filter" : {
|
||||
"type" : "highpass"
|
||||
|
@ -85,8 +85,8 @@
|
|||
"attack" : 0.001,
|
||||
"decay" : 0.01,
|
||||
"sustain" : 0,
|
||||
"min" : 3000,
|
||||
"max" : 10000
|
||||
"baseFrequency" : 3000,
|
||||
"octaves" : 2
|
||||
},
|
||||
}).chain(distortion, drumCompress);
|
||||
|
||||
|
@ -186,8 +186,8 @@
|
|||
"decay" : 0.05,
|
||||
"sustain" : 0.3,
|
||||
"release" : 2,
|
||||
"min" : 100,
|
||||
"max" : 10000
|
||||
"baseFrequency" : 100,
|
||||
"octaves" : 4
|
||||
}
|
||||
},
|
||||
"voice1" : {
|
||||
|
@ -211,8 +211,8 @@
|
|||
"decay" : 0.05,
|
||||
"sustain" : 0.7,
|
||||
"release" : 2,
|
||||
"min" : 5000,
|
||||
"max" : 2000
|
||||
"baseFrequency" : 5000,
|
||||
"octaves" : -1.5
|
||||
}
|
||||
}
|
||||
}).toMaster();
|
||||
|
|
Loading…
Reference in a new issue