Add files via upload

This commit is contained in:
2020-10-19 03:20:26 +02:00
committed by GitHub
parent aa15929b52
commit 4b6f99289c
6 changed files with 82 additions and 45 deletions

View File

@@ -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)

View File

@@ -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);

View File

@@ -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