Add files via upload
This commit is contained in:
59
css/style.css
Normal file
59
css/style.css
Normal file
@@ -0,0 +1,59 @@
|
|||||||
|
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@500&display=swap');
|
||||||
|
@import url('https://fonts.googleapis.com/css2?family=Archivo+Black&display=swap');
|
||||||
|
|
||||||
|
.osc {
|
||||||
|
display: flex;
|
||||||
|
/* margin: 0px 30px 45px 30px; */
|
||||||
|
text-align: center;
|
||||||
|
background-color: #ffffff;
|
||||||
|
}
|
||||||
|
|
||||||
|
.osc>* {
|
||||||
|
margin: 5px;
|
||||||
|
}
|
||||||
|
|
||||||
|
body:not(.name) {
|
||||||
|
display: flex;
|
||||||
|
justify-content: center;
|
||||||
|
flex-direction: column;
|
||||||
|
align-items: center;
|
||||||
|
background-color: #80cbc4;
|
||||||
|
font-family: 'Noto Sans JP', sans-serif;
|
||||||
|
background-image: linear-gradient(rgb(0 0 0 / 91%), rgb(0 0 0 / 91%)), url(../img/noise.gif);
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
.row {
|
||||||
|
display: flex;
|
||||||
|
flex-direction: row;
|
||||||
|
margin: 20px;
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
.row>* {
|
||||||
|
margin: 20px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.wrapper {
|
||||||
|
background-color: #eeeeee;
|
||||||
|
}
|
||||||
|
|
||||||
|
.logo {
|
||||||
|
height: 90px;
|
||||||
|
background-color: #68686842;
|
||||||
|
font-family: 'Archivo Black', sans-serif;
|
||||||
|
font-size: 60px;
|
||||||
|
padding-left: 30px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.name {
|
||||||
|
margin-left: 10px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.preset_loader {
|
||||||
|
float: right;
|
||||||
|
font-size: 16px;
|
||||||
|
margin-right: 20px;
|
||||||
|
font-family: 'Noto Sans JP', sans-serif;
|
||||||
|
margin-top: 63px;
|
||||||
|
}
|
||||||
BIN
img/noise.gif
Normal file
BIN
img/noise.gif
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 183 KiB |
58
index.html
58
index.html
@@ -2,37 +2,28 @@
|
|||||||
<html lang="en">
|
<html lang="en">
|
||||||
<head>
|
<head>
|
||||||
<meta charset="UTF-8" />
|
<meta charset="UTF-8" />
|
||||||
|
<meta name="description" content="Simple Midi synth in your webbrowser">
|
||||||
|
<meta name="keywords" content="MIDI Synth Online">
|
||||||
|
<meta name="author" content="Ludvig Olausson">
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
||||||
<script src="https://cdn.jsdelivr.net/npm/nexusui@latest/dist/NexusUI.js"></script>
|
<script src="https://cdn.jsdelivr.net/npm/nexusui@latest/dist/NexusUI.js"></script>
|
||||||
<!-- <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/materialize/1.0.0/css/materialize.min.css"> -->
|
<title>EMP. - Synth By Azaaxin</title>
|
||||||
<title>Document</title>
|
<link rel="stylesheet" href="css/style.css">
|
||||||
<style>
|
|
||||||
.osc{
|
|
||||||
display: flex;
|
|
||||||
margin: 0px 30px 45px 30px;
|
|
||||||
}
|
|
||||||
.osc > * {
|
|
||||||
margin: 5px;
|
|
||||||
}
|
|
||||||
body{
|
|
||||||
display: flex;
|
|
||||||
justify-content: center;
|
|
||||||
flex-direction: column;
|
|
||||||
align-items: center;
|
|
||||||
text-align: center;
|
|
||||||
}
|
|
||||||
.row{
|
|
||||||
display: flex;
|
|
||||||
flex-direction: row;
|
|
||||||
margin:20px;
|
|
||||||
}
|
|
||||||
.row > *{
|
|
||||||
margin: 5px;
|
|
||||||
}
|
|
||||||
</style>
|
|
||||||
</head>
|
</head>
|
||||||
<body class="teal lighten-3">
|
<body class="teal lighten-3">
|
||||||
<div id="name"> Oscillator 1</div>
|
<div class="wrapper">
|
||||||
|
<div class="logo">EMP.
|
||||||
|
<div class="preset_loader">
|
||||||
|
<label>Preset:</label>
|
||||||
|
<select>
|
||||||
|
<option>Default</option>
|
||||||
|
<option>Empty</option>
|
||||||
|
<option>Empty</option>
|
||||||
|
<option>Empty</option>
|
||||||
|
</select>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="name"> Oscillator 1</div>
|
||||||
<div class="osc">
|
<div class="osc">
|
||||||
<div class="row">
|
<div class="row">
|
||||||
<div id="decay1">Decay</div>
|
<div id="decay1">Decay</div>
|
||||||
@@ -45,11 +36,9 @@
|
|||||||
<div id="dist1">Distortion</div>
|
<div id="dist1">Distortion</div>
|
||||||
<div id="lfo1">LFO</div>
|
<div id="lfo1">LFO</div>
|
||||||
<div id="reverb1">Reverb</div>
|
<div id="reverb1">Reverb</div>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div id="name"> Oscillator 2</div>
|
<div class="name"> Oscillator 2</div>
|
||||||
|
|
||||||
<div class="osc">
|
<div class="osc">
|
||||||
<div class="row">
|
<div class="row">
|
||||||
<div id="decay2">Decay</div>
|
<div id="decay2">Decay</div>
|
||||||
@@ -63,12 +52,9 @@
|
|||||||
<div id="lfo2">LFO</div>
|
<div id="lfo2">LFO</div>
|
||||||
<div id="reverb2">Reverb</div>
|
<div id="reverb2">Reverb</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
||||||
<div id="target"></div>
|
<div id="target"></div>
|
||||||
|
</div>
|
||||||
</body>
|
</body>
|
||||||
<script
|
<script
|
||||||
src="https://cdnjs.cloudflare.com/ajax/libs/tone/14.7.62/Tone.js"
|
src="https://cdnjs.cloudflare.com/ajax/libs/tone/14.7.62/Tone.js"
|
||||||
@@ -76,12 +62,8 @@
|
|||||||
crossorigin="anonymous"
|
crossorigin="anonymous"
|
||||||
></script>
|
></script>
|
||||||
<script src="scripts/webmidi.min.js"></script>
|
<script src="scripts/webmidi.min.js"></script>
|
||||||
|
|
||||||
<script src="scripts/scripts.js"></script>
|
<script src="scripts/scripts.js"></script>
|
||||||
<script src="scripts/osc1.js"></script>
|
<script src="scripts/osc1.js"></script>
|
||||||
<script src="scripts/osc2.js"></script>
|
<script src="scripts/osc2.js"></script>
|
||||||
<script src="scripts/midi.js"></script>
|
<script src="scripts/midi.js"></script>
|
||||||
|
|
||||||
<!-- <script src="https://cdnjs.cloudflare.com/ajax/libs/materialize/1.0.0/js/materialize.min.js"></script> -->
|
|
||||||
|
|
||||||
</html>
|
</html>
|
||||||
|
|||||||
@@ -13,7 +13,7 @@ synth1 = new Tone.FMSynth({
|
|||||||
release: 0,
|
release: 0,
|
||||||
},
|
},
|
||||||
|
|
||||||
}).toMaster();
|
}).toDestination();
|
||||||
|
|
||||||
piano.on('change',function(keyValue) {
|
piano.on('change',function(keyValue) {
|
||||||
if (keyValue.state == true) { // If Key is down
|
if (keyValue.state == true) { // If Key is down
|
||||||
@@ -29,7 +29,6 @@ function midiNote(note, vel){
|
|||||||
piano.toggleKey(note, false)
|
piano.toggleKey(note, false)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
//filters
|
//filters
|
||||||
function updateFilter1(){
|
function updateFilter1(){
|
||||||
var filter1 = new Tone.AutoFilter(filter1_1).start(); //LFO
|
var filter1 = new Tone.AutoFilter(filter1_1).start(); //LFO
|
||||||
@@ -39,7 +38,6 @@ function updateFilter1(){
|
|||||||
synth1.chain(filter1, distortion1, reverb1, Tone.Destination);
|
synth1.chain(filter1, distortion1, reverb1, Tone.Destination);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
// Controls
|
// Controls
|
||||||
var sus1_d = new Nexus.Dial('#sustain1', dial_settings1)
|
var sus1_d = new Nexus.Dial('#sustain1', dial_settings1)
|
||||||
var dec1_d = new Nexus.Dial('#decay1', dial_settings1)
|
var dec1_d = new Nexus.Dial('#decay1', dial_settings1)
|
||||||
|
|||||||
@@ -12,8 +12,7 @@ synth2 = new Tone.FMSynth({
|
|||||||
sustain: 0,
|
sustain: 0,
|
||||||
release: 0,
|
release: 0,
|
||||||
},
|
},
|
||||||
|
}).toDestination();
|
||||||
}).toMaster();
|
|
||||||
|
|
||||||
piano.on('change',function(keyValue) {
|
piano.on('change',function(keyValue) {
|
||||||
if (keyValue.state == true) { // If Key is down
|
if (keyValue.state == true) { // If Key is down
|
||||||
@@ -67,7 +66,6 @@ rel2_d.on('change',function(value) {
|
|||||||
select2.on('change',function(value) {
|
select2.on('change',function(value) {
|
||||||
synth2.oscillator.type = value.value;
|
synth2.oscillator.type = value.value;
|
||||||
});
|
});
|
||||||
|
|
||||||
//Effect knobs
|
//Effect knobs
|
||||||
dist2.on('change',function(value) {
|
dist2.on('change',function(value) {
|
||||||
dist2_2 = value.toFixed(1);
|
dist2_2 = value.toFixed(1);
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
//Piano roll
|
//Piano roll
|
||||||
var piano = new Nexus.Piano('#target',{
|
var piano = new Nexus.Piano('#target',{
|
||||||
'size': [750,125],
|
'size': [850,125],
|
||||||
'mode': 'button', // 'button', 'toggle', or 'impulse'
|
'mode': 'button', // 'button', 'toggle', or 'impulse'
|
||||||
'lowNote': 24,
|
'lowNote': 24,
|
||||||
'highNote': 100
|
'highNote': 100
|
||||||
|
|||||||
Reference in New Issue
Block a user