Add files via upload
This commit is contained in:
@@ -13,7 +13,7 @@ synth1 = new Tone.FMSynth({
|
||||
release: 0,
|
||||
},
|
||||
|
||||
}).toMaster();
|
||||
}).toDestination();
|
||||
|
||||
piano.on('change',function(keyValue) {
|
||||
if (keyValue.state == true) { // If Key is down
|
||||
@@ -29,7 +29,6 @@ function midiNote(note, vel){
|
||||
piano.toggleKey(note, false)
|
||||
}
|
||||
}
|
||||
|
||||
//filters
|
||||
function updateFilter1(){
|
||||
var filter1 = new Tone.AutoFilter(filter1_1).start(); //LFO
|
||||
@@ -39,7 +38,6 @@ function updateFilter1(){
|
||||
synth1.chain(filter1, distortion1, reverb1, Tone.Destination);
|
||||
}
|
||||
|
||||
|
||||
// Controls
|
||||
var sus1_d = new Nexus.Dial('#sustain1', dial_settings1)
|
||||
var dec1_d = new Nexus.Dial('#decay1', dial_settings1)
|
||||
|
||||
@@ -12,8 +12,7 @@ synth2 = new Tone.FMSynth({
|
||||
sustain: 0,
|
||||
release: 0,
|
||||
},
|
||||
|
||||
}).toMaster();
|
||||
}).toDestination();
|
||||
|
||||
piano.on('change',function(keyValue) {
|
||||
if (keyValue.state == true) { // If Key is down
|
||||
@@ -67,7 +66,6 @@ rel2_d.on('change',function(value) {
|
||||
select2.on('change',function(value) {
|
||||
synth2.oscillator.type = value.value;
|
||||
});
|
||||
|
||||
//Effect knobs
|
||||
dist2.on('change',function(value) {
|
||||
dist2_2 = value.toFixed(1);
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
//Piano roll
|
||||
var piano = new Nexus.Piano('#target',{
|
||||
'size': [750,125],
|
||||
'size': [850,125],
|
||||
'mode': 'button', // 'button', 'toggle', or 'impulse'
|
||||
'lowNote': 24,
|
||||
'highNote': 100
|
||||
|
||||
Reference in New Issue
Block a user