Skip to content

Commit cd579a6

Browse files
committed
Cleanup + release 0.6.2
1 parent 5753161 commit cd579a6

23 files changed

+8999
-5829
lines changed

.editorconfig

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
# For details see http://EditorConfig.org
2+
3+
# Unix-style newlines with a newline ending every file
4+
[*]
5+
end_of_line = lf
6+
insert_final_newline = true
7+
8+
# Matches multiple files with brace expansion notation
9+
# Set default charset
10+
[*.{js,py,ts}]
11+
charset = utf-8
12+
indent_style = space
13+
indent_size = 4

.eslintrc.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,12 +23,13 @@
2323
"indent": ["error", 4],
2424
"import/extensions": ["off"],
2525
"import/prefer-default-export": ["off"],
26-
"import/no-named-as-default": ["off"],
26+
"import/no-named-as-default": ["off"],
2727
"import/no-named-as-default-member": ["off"],
2828
"import/no-unresolved": ["off"],
2929
"import/no-extraneous-dependencies": ["off"],
3030
"max-len": ["off"],
3131
"new-cap": ["off"],
32+
"no-bitwise": ["off"],
3233
"no-case-declarations": ["error"],
3334
"no-console": ["off"],
3435
"no-continue": ["off"],

README.md

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -275,8 +275,21 @@ rename to "midicube" in honor of Mudcube.
275275

276276
## ES6 Conversion
277277

278-
ES6 Conversion by Michael Scott Cuthbert:
278+
ES6 Conversion by Michael Scott Asato Cuthbert:
279279

280280
* [Github](https://github.com/mscuthbert)
281281
* [MIT cuthbertLab Github](https://github.com/cuthbertLab)
282282

283+
## Development
284+
285+
Build midicube with:
286+
287+
```
288+
npm run watch
289+
```
290+
291+
to publish a new version change the version tag in package.json and run
292+
293+
```
294+
npm publish
295+
```

examples/Basic.html

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
<!DOCTYPE html>
2-
<html xmlns = "http://www.w3.org/1999/xhtml">
2+
<html xmlns="http://www.w3.org/1999/xhtml" lang="en">
33
<head>
44
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
5+
<title>Play one note.</title>
56
</head>
67
<body>
78
<script type="text/javascript">
@@ -26,6 +27,7 @@
2627
};
2728
</script>
2829
<button onclick="load_and_play()">Click Me to play a note!</button>
30+
<p>You might need to click a few times to disable browser anti-audio protection</p>
2931
<script src="../build/midicube.js"></script>
3032
</body>
3133
</html>

examples/MIDIPlayer.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<!DOCTYPE html>
2-
<html xmlns="http://www.w3.org/1999/xhtml">
2+
<html xmlns="http://www.w3.org/1999/xhtml" lang="en">
33
<head>
44
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
55
<title>midicube - Sequencing in Javascript (fork of MIDI.js)</title>

examples/WhitneyMusicBox.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
<link href="http://fonts.googleapis.com/css?family=Andada" rel="stylesheet" type="text/css" />
1212
<style>
1313
body {
14-
background: #000; color: #fff; font-family: andada; line-height: 1.5em;
14+
background: #000; color: #fff; font-family: andada, serif; line-height: 1.5em;
1515
}
1616
a {
1717
color: #fff
@@ -22,7 +22,7 @@
2222
Whitney Music Box animation in HTML5.<br>
2323
Graphics code by <a href="https://github.com/jbum/Whitney-Music-Box-Examples">Jim Bumgardner</a>.<br>
2424
Audio created with <a href="https://github.com/mudcube/MIDI.js">MIDI.js</a><br>
25-
<canvas id="mycanvas" />
25+
<canvas id="mycanvas"></canvas>
2626
<script type="text/javascript">
2727

2828
var dc;

0 commit comments

Comments
 (0)