forked from gree/sf2synth.js
-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
14 changed files
with
252 additions
and
143 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,4 @@ | ||
import Parser from "../src/Parser.ts" | ||
export default Parser | ||
export { | ||
Parser | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,4 @@ | ||
import WebMidiLink from "../src/WebMidiLink.ts" | ||
export default WebMidiLink | ||
export { | ||
WebMidiLink | ||
} |
Binary file not shown.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
../bin |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
../fixture |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
<!DOCTYPE html> | ||
<html lang="en"> | ||
<head> | ||
<meta charset="UTF-8"> | ||
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | ||
<meta http-equiv="X-UA-Compatible" content="ie=edge"> | ||
<title>Document</title> | ||
<script src="./bin/sf2.synth.js"></script> | ||
<script> | ||
const url = './fixture/TestSoundFont.sf2' | ||
const wml = new WebMidiLink() | ||
wml.setLoadCallback(function(arraybuffer) { | ||
// ロード完了時の処理 | ||
}) | ||
wml.setup(url) | ||
</script> | ||
<link rel="stylesheet" href="style.css"> | ||
</head> | ||
<body> | ||
<div class="synth"></div> | ||
</body> | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,99 @@ | ||
.synth { | ||
font-size: 12px; | ||
margin: 0; | ||
background: rgb(0, 0, 0); | ||
color: rgb(159, 159, 253); | ||
font-family: Consolas; | ||
overflow: hidden; | ||
/* -webkit-app-region: drag; */ | ||
border-top: 1.5em rgba(255, 255, 255, 0.13) solid; | ||
padding-top: 0.25em; | ||
} | ||
|
||
.synth .keys>div { | ||
float: left; | ||
} | ||
|
||
.synth .keys>.white, .keys>.black { | ||
position: relative; | ||
} | ||
|
||
.synth .keys { | ||
overflow: hidden; | ||
background: black; | ||
-webkit-app-region: no-drag; | ||
} | ||
|
||
.synth .keys>.white { | ||
width: 5px; | ||
height: 20px; | ||
background: rgb(85, 85, 90); | ||
border-right: 1px solid black; | ||
box-sizing: border-box; | ||
} | ||
|
||
.synth .keys>.black { | ||
width: 3px; | ||
background: rgb(0, 0, 0); | ||
height: 11px; | ||
left: 1px; | ||
margin-left: -3px; | ||
z-index: 999; | ||
} | ||
|
||
.synth .volume::before {content: "VOL:";} | ||
|
||
.synth .panpot::before {content: "PAN:";} | ||
|
||
.synth .pitchBend::before {content: "BEND:";} | ||
|
||
.synth .pitchBendSensitivity::before { | ||
content: "RANGE:"; | ||
} | ||
|
||
.synth select { | ||
background: transparent; | ||
color: currentColor; | ||
border: none; | ||
outline: none; | ||
font-family: Consolas; | ||
width: 12em; | ||
font-size: 100%; | ||
-webkit-app-region: no-drag; | ||
} | ||
|
||
.synth option { | ||
background: black; | ||
color: rgb(159, 159, 253); | ||
} | ||
|
||
.synth .program, .volume, .panpot, .pitchBend, .pitchBendSensitivity { | ||
display: inline-block; | ||
} | ||
|
||
.synth .key.white.note-on, | ||
.synth .key.black.note-on { | ||
background: rgb(246, 196, 78); | ||
} | ||
|
||
.synth h1 { | ||
float: left; | ||
font-size: 240%; | ||
margin: 0 7px 0px 0; | ||
} | ||
|
||
.synth header p { | ||
margin: 0; | ||
} | ||
|
||
.synth header { | ||
overflow: hidden; | ||
} | ||
|
||
.synth header .version { | ||
opacity: 0.7; | ||
} | ||
|
||
.synth button[disabled] { | ||
opacity: 0.4; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters