mirror of
https://github.com/Tonejs/Tone.js
synced 2024-11-15 00:07:08 +00:00
changing instances of Tone.SimpleSynth to Tone.Synth
[skip ci]
This commit is contained in:
parent
49fc9d7bb6
commit
1231c53b58
11 changed files with 18 additions and 17 deletions
|
@ -17,6 +17,7 @@
|
|||
* Switching parameter position of type and size in Tone.Analyser
|
||||
* Tone.Meter uses Tone.Analyser instead of ScriptProcessorNode.
|
||||
* Tone.Envelope has 5 new attack/release curves: "sine", "ease", "bounce", "ripple", "step"
|
||||
* Renamed Tone.SimpleSynth -> Tone.Synth
|
||||
|
||||
DEPRECATED:
|
||||
* Removed SimpleFM and SimpleAM
|
||||
|
|
|
@ -39,7 +39,7 @@
|
|||
<script type="text/javascript">
|
||||
|
||||
//the synth
|
||||
var synth = new Tone.SimpleSynth().toMaster()
|
||||
var synth = new Tone.Synth().toMaster()
|
||||
.set("envelope.attack", 0.04);
|
||||
|
||||
//send audio to each of the effect channels
|
||||
|
|
|
@ -80,7 +80,7 @@
|
|||
/**
|
||||
* PIANO
|
||||
*/
|
||||
var piano = new Tone.PolySynth(4, Tone.SimpleSynth, {
|
||||
var piano = new Tone.PolySynth(4, Tone.Synth, {
|
||||
"volume" : -8,
|
||||
"oscillator" : {
|
||||
"partials" : [1, 2, 1],
|
||||
|
|
|
@ -29,8 +29,8 @@
|
|||
<div id="Explanation">
|
||||
<a href="http://tonejs.org/docs/#FMSynth">Tone.FMSynth</a>
|
||||
is composed of two
|
||||
<a href="http://tonejs.org/docs/#SimpleSynth">Tone.SimpleSynths</a>
|
||||
where one Tone.SimpleSynth modulates the frequency of a second Tone.SimpleSynth.
|
||||
<a href="http://tonejs.org/docs/#Synth">Tone.Synths</a>
|
||||
where one Tone.Synth modulates the frequency of a second Tone.Synth.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
|
|
@ -41,7 +41,7 @@
|
|||
|
||||
<script type="text/javascript">
|
||||
|
||||
var synth = new Tone.PolySynth(3, Tone.SimpleSynth, {
|
||||
var synth = new Tone.PolySynth(3, Tone.Synth, {
|
||||
"oscillator" : {
|
||||
"type" : "fatsawtooth",
|
||||
"count" : 3,
|
||||
|
|
|
@ -84,8 +84,8 @@
|
|||
};
|
||||
|
||||
//left and right synthesizers
|
||||
var synthL = new Tone.SimpleSynth(synthSettings).connect(merge.left);
|
||||
var synthR = new Tone.SimpleSynth(synthSettings).connect(merge.right);
|
||||
var synthL = new Tone.Synth(synthSettings).connect(merge.left);
|
||||
var synthR = new Tone.Synth(synthSettings).connect(merge.right);
|
||||
|
||||
//the two Tone.Sequences
|
||||
var partL = new Tone.Sequence(function(time, note){
|
||||
|
|
|
@ -41,7 +41,7 @@
|
|||
|
||||
<script type="text/javascript">
|
||||
|
||||
var synth = new Tone.PolySynth(6, Tone.SimpleSynth, {
|
||||
var synth = new Tone.PolySynth(6, Tone.Synth, {
|
||||
"oscillator" : {
|
||||
"partials" : [0, 2, 3, 4],
|
||||
}
|
||||
|
|
|
@ -37,7 +37,7 @@
|
|||
</div>
|
||||
</div>
|
||||
<script id="JSCode" type="text/javascript">
|
||||
var polySynth = new Tone.PolySynth(4, Tone.SimpleSynth).toMaster();
|
||||
var polySynth = new Tone.PolySynth(4, Tone.Synth).toMaster();
|
||||
|
||||
Tone.Transport.start();
|
||||
|
||||
|
|
|
@ -39,9 +39,9 @@
|
|||
}
|
||||
});
|
||||
|
||||
require(["Tone/core/Master", "Tone/instrument/SimpleSynth"],
|
||||
function(Master, SimpleSynth){
|
||||
var synth = new SimpleSynth().toMaster();
|
||||
require(["Tone/core/Master", "Tone/instrument/Synth"],
|
||||
function(Master, Synth){
|
||||
var synth = new Synth().toMaster();
|
||||
synth.triggerAttackRelease("C4", "8n");
|
||||
});
|
||||
</script>
|
||||
|
|
|
@ -7,7 +7,7 @@ var ExampleList = {
|
|||
"Microphone" : "mic"
|
||||
},
|
||||
"Instruments" : {
|
||||
"SimpleSynth" : "simpleSynth",
|
||||
"Synth" : "simpleSynth",
|
||||
"MonoSynth" : "monoSynth",
|
||||
"FMSynth" : "fmSynth",
|
||||
"PolySynth" : "polySynth",
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
<html>
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<title>SimpleSynth</title>
|
||||
<title>Synth</title>
|
||||
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">
|
||||
<link rel="icon" type="image/png" sizes="174x174" href="./style/favicon.png">
|
||||
|
@ -38,9 +38,9 @@
|
|||
}
|
||||
</style>
|
||||
<div id="Content">
|
||||
<div id="Title">SimpleSynth</div>
|
||||
<div id="Title">Synth</div>
|
||||
<div id="Explanation">
|
||||
<a href="http://tonejs.org/docs/#SimpleSynth" target="_blank">Tone.SimpleSynth</a> is composed simply of a
|
||||
<a href="http://tonejs.org/docs/#Synth" target="_blank">Tone.Synth</a> is composed simply of a
|
||||
<a href="http://tonejs.org/docs/#OmniOscillator" target="_blank">Tone.OmniOscillator</a>
|
||||
routed through a
|
||||
<a href="http://tonejs.org/docs/#AmplitudeEnvelope" target="_blank">Tone.AmplitudeEnvelope</a>.
|
||||
|
@ -51,7 +51,7 @@
|
|||
|
||||
<script type="text/javascript">
|
||||
|
||||
var synth = new Tone.SimpleSynth({
|
||||
var synth = new Tone.Synth({
|
||||
"oscillator" : {
|
||||
"type" : "square"
|
||||
},
|
||||
|
|
Loading…
Reference in a new issue