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">
|
||||
<head>
|
||||
<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" />
|
||||
<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>Document</title>
|
||||
<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>
|
||||
<title>EMP. - Synth By Azaaxin</title>
|
||||
<link rel="stylesheet" href="css/style.css">
|
||||
</head>
|
||||
<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="row">
|
||||
<div id="decay1">Decay</div>
|
||||
@@ -45,11 +36,9 @@
|
||||
<div id="dist1">Distortion</div>
|
||||
<div id="lfo1">LFO</div>
|
||||
<div id="reverb1">Reverb</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<div id="name"> Oscillator 2</div>
|
||||
|
||||
<div class="name"> Oscillator 2</div>
|
||||
<div class="osc">
|
||||
<div class="row">
|
||||
<div id="decay2">Decay</div>
|
||||
@@ -63,12 +52,9 @@
|
||||
<div id="lfo2">LFO</div>
|
||||
<div id="reverb2">Reverb</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
<div id="target"></div>
|
||||
|
||||
</div>
|
||||
</body>
|
||||
<script
|
||||
src="https://cdnjs.cloudflare.com/ajax/libs/tone/14.7.62/Tone.js"
|
||||
@@ -76,12 +62,8 @@
|
||||
crossorigin="anonymous"
|
||||
></script>
|
||||
<script src="scripts/webmidi.min.js"></script>
|
||||
|
||||
<script src="scripts/scripts.js"></script>
|
||||
<script src="scripts/osc1.js"></script>
|
||||
<script src="scripts/osc2.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>
|
||||
|
||||
@@ -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