Skip to content

Commit a878edf

Browse files
committed
Minification, created JS offline version, fixed export in old safari, cleaned up some code.
1 parent 78dc479 commit a878edf

File tree

15 files changed

+236
-478
lines changed

15 files changed

+236
-478
lines changed

beepbox-synth/app.yaml

Lines changed: 13 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -6,15 +6,7 @@ default_expiration: "3h"
66

77
#skip_files:
88
#- ^(.*/)?app\.yaml
9-
#- ^(.*/)?app\.yml
109
#- ^(.*/)?index\.yaml
11-
#- ^(.*/)?index\.yml
12-
#- ^(.*/)?#.*#
13-
#- ^(.*/)?.*~
14-
#- ^(.*/)?.*\.py[co]
15-
#- ^(.*/)?.*/RCS/.*
16-
#- ^(.*/)?\..*
17-
#- ^Crypto/
1810

1911
handlers:
2012

@@ -23,21 +15,17 @@ handlers:
2315
upload: BeepBoxOnline\.swf
2416
expiration: "12h"
2517

26-
- url: /BeepBoxOffline\.swf
27-
static_files: BeepBoxOffline.swf
28-
upload: BeepBoxOffline\.swf
29-
30-
- url: /BeepBoxEmbedded\.swf
31-
static_files: BeepBoxEmbedded.swf
32-
upload: BeepBoxEmbedded\.swf
33-
3418
- url: /beepbox_editor\.js
3519
static_files: beepbox_editor.js
36-
upload: beepbox_editor.js
20+
upload: beepbox_editor\.js
21+
22+
- url: /beepbox_editor\.min\.js
23+
static_files: beepbox_editor.min.js
24+
upload: beepbox_editor\.min\.js
3725

3826
- url: /beepbox_synth\.js
3927
static_files: beepbox_synth.js
40-
upload: beepbox_synth.js
28+
upload: beepbox_synth\.js
4129

4230
- url: /favicon\.ico
4331
static_files: favicon.ico
@@ -51,22 +39,13 @@ handlers:
5139
static_files: index.html
5240
upload: index\.html
5341

54-
- url: /embed\.html
55-
static_files: embed.html
56-
upload: embed\.html
57-
58-
- url: /test\.html
59-
static_files: test.html
60-
upload: test\.html
61-
62-
- url: /js\.html
63-
static_files: js.html
64-
upload: js\.html
65-
66-
- url: /flash\.html
67-
static_files: flash.html
68-
upload: flash\.html
69-
7042
- url: /synth_example\.html
7143
static_files: synth_example.html
7244
upload: synth_example\.html
45+
46+
- url: /beepbox_offline\.html
47+
static_files: beepbox_offline.html
48+
upload: beepbox_offline\.html
49+
http_headers:
50+
Content-Type: text/html
51+
Content-Disposition: "attachment; filename=beepbox_offline.html"
Lines changed: 119 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,119 @@
1+
<!DOCTYPE html>
2+
<html lang="en">
3+
<head>
4+
<meta charset="utf-8" />
5+
<title>BeepBox</title>
6+
<meta name="description" content="BeepBox is an online tool for sketching and sharing chiptune melodies. " />
7+
<meta name="keywords" content="chiptune, music, melody, composition, tool, square wave, NES, NSF, BeepBox, beepbox" />
8+
<meta name="viewport" content="width=700">
9+
<meta name="apple-mobile-web-app-capable" content="yes"/>
10+
<meta name="apple-mobile-web-app-status-bar-style" content="black"/>
11+
<meta name="mobile-web-app-capable" content="yes"/>
12+
<meta name="format-detection" content="telephone=no">
13+
<style type="text/css">
14+
div {
15+
margin: 0;
16+
padding: 0;
17+
}
18+
body {
19+
font-family: sans-serif;
20+
font-size: 16px;
21+
color: #ffffff;
22+
}
23+
h1 {
24+
font-size: 30px;
25+
text-align: center;
26+
}
27+
.centerDiv {
28+
margin: 0px auto;
29+
}
30+
a {
31+
color: #8866ff;
32+
}
33+
</style>
34+
</head>
35+
36+
<body bgcolor="#000000"> <div class="centerDiv" style="width: 700px">
37+
38+
<div id="beepboxEditorContainer" style="width: 700px; height: 645px;"></div>
39+
40+
<h1>
41+
BeepBox Offline
42+
</h1>
43+
<p id="introduction">
44+
BeepBox is an online (and offline!) tool for sketching and sharing chiptune melodies.
45+
</p>
46+
<p>
47+
All song data is packaged into the URL at the top of your browser.
48+
When you make changes to the song, the URL is updated to reflect your changes.
49+
When you are satisfied with your song, just copy and paste the URL to save and share your song!
50+
</p>
51+
52+
<h1>
53+
Instructions
54+
</h1>
55+
<p>
56+
You can add or remove notes by clicking on the gray rows at the top.
57+
BeepBox automatically plays the notes out loud for you. Try it!
58+
</p>
59+
<p>
60+
Notes go into patterns, and you can edit one pattern at a time.
61+
Those numbered boxes at the bottom of the editor are the different patterns you can edit.
62+
Click the other boxes to move to a different part of the song, or click the arrows on the currently selected box to swap which pattern is played during that part of the song.
63+
</p>
64+
<p>
65+
There are four rows of patterns that BeepBox can play simultaneously, and each row has its own set of patterns.
66+
The first three rows can play melodies and the bottom row is for drums.
67+
</p>
68+
<p>
69+
The purple loop underneath the numbered boxes controls which part of the song is currently repeating.
70+
Move the loop to listen to a different part of the song, or drag the ends to expand the loop to include the whole song.
71+
</p>
72+
<p>
73+
When BeepBox has focus (click on its interface above), you can use these keyboard shortcuts: <br/>
74+
</p>
75+
<p style="margin-left:50px;">
76+
Spacebar: Pause or Resume<br/>
77+
Z: Undo<br/>
78+
Y or Shift Z: Redo<br/>
79+
C: Copy the current pattern<br/>
80+
V: Paste the current pattern<br/>
81+
[ ]: Move the playhead backward and forward<br/>
82+
Arrow Keys: Change which bar is selected<br/>
83+
1-8: Reassign a pattern to the currently selected bar<br/>
84+
</p>
85+
<p>
86+
In the pattern editor, you can click and drag horizontally on a note to adjust its duration.
87+
You can also click above or below an existing note to enable a rapid arpeggio/trill effect, oscillating between two or more simultaneous notes.
88+
</p>
89+
<p>
90+
ADVANCED: Drag vertically from an existing note to bend its pitch, or drag vertically from above or below the note to adjust its volume.
91+
</p>
92+
<p>
93+
BeepBox has many more features.
94+
Try playing with the buttons and menus on the right side to find out what it can do!
95+
</p>
96+
<h1>
97+
About
98+
</h1>
99+
<p>
100+
BeepBox is developed by <a href="http://www.johnnesky.com">John Nesky</a>.
101+
</p>
102+
<p>
103+
BeepBox does not claim ownership over songs created with it, so original songs belong to their authors.
104+
</p>
105+
<p>
106+
Neither John Nesky nor BeepBox assume responsibility for any copyrighted material played on BeepBox. No songs are ever received, recorded, or distributed by BeepBox's servers. All song data is contained in the URL after the hash (#) mark, and BeepBox running inside your browser converts that data into sound waves.
107+
</p>
108+
<p>
109+
You can download and use <a href="https://bitbucket.org/shaktool/beepbox">the source code</a> under the MIT license.
110+
</p>
111+
</div>
112+
113+
<script type="text/javascript">
114+
115+
/* INSERT_BEEPBOX_SOURCE_HERE */
116+
117+
</script>
118+
119+
</body></html>

beepbox-synth/flash.html

Lines changed: 0 additions & 202 deletions
This file was deleted.

0 commit comments

Comments
 (0)