Skip to content

Commit e51720c

Browse files
authored
release v0.1.0
* feat: create base UI * feat: play an wave * feat: parse MML into parts * feat: create MML parser * chore: separate parser.js * refactor: change pure js to bun ts * feat: make eatInteger eat on the same line * fix: make eatNote return [null, i] when it eats out of range * test: add tests for eat.ts and note.ts * feat: make it eat a note on the same line * feat: add evaluator * fix: disallow note value to be 0 * feat: get frequency from scale * chore: change eatInteger to eatNaturalNumber * feat: add octave command * chore: make pass Note directly * feat: add length command * chore: make variable names better * feat: ease click noise * feat: add a function to eat a floating-point number * feat: add volume command * refactor: improve error handling * refactor: change printWidth 80 to 100 * feat: add octave move command * feat: show line numbers and change layout * feat: add tempo command * feat: change grammer of floating-point number * feat: put a restriction on command number * feat: add key command * refactor: change paradigm to oop * feat: add docs * refactor: move eat functions to Characters * feat: create cache system * feat: show a log * chore: change error message format * feat: enable to resie textareas and log * feat: add buttons * feat: add info link * chore: catch no parts error * feat: add AM inst * feat: split into some objects * feat: enable to fm * feat: add instrument docs * refactor: move command articles into command directory * refactor: simplify an expression * fix: a bug that the sidebar isn't opened when logging * feat: add a description about the indent of operators * feat: make it build a wave file * feat: add a logo * feat: add an instrument tutorial * fix: a bug that it cannot parse unindent * feat: add a feedback * feat: add a ps to the instrument tutorial * feat: add a docs about score * remove: textarea-lower * feat: make it close a n old audio context * fix: an wrong example * chore: change csthe query parameter of css and js * ci: add a workflow to deploy to github pages * feat: add a release note
1 parent 62f7122 commit e51720c

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

65 files changed

+4293
-0
lines changed

.gitattributes

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
* text eol=lf

.github/workflows/publish.yaml

+34
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
name: publish
2+
3+
on:
4+
push:
5+
branches:
6+
- release
7+
workflow_dispatch:
8+
9+
jobs:
10+
build:
11+
runs-on: ubuntu-22.04
12+
steps:
13+
- uses: actions/checkout@v4
14+
- uses: actions/checkout@v4
15+
with:
16+
path: skdassoc.com
17+
- uses: actions/setup-node@v4
18+
- uses: oven-sh/setup-bun@v1
19+
- run: bun run build
20+
- uses: actions/upload-pages-artifact@v3
21+
with:
22+
path: pages
23+
deploy:
24+
needs: build
25+
permissions:
26+
id-token: write
27+
pages: write
28+
environment:
29+
name: github-pages
30+
url: ${{ steps.deployment.outputs.page_url }}
31+
runs-on: ubuntu-22.04
32+
steps:
33+
- uses: actions/deploy-pages@v4
34+
id: deployment

.gitignore

+178
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,178 @@
1+
# Based on https://raw.githubusercontent.com/github/gitignore/main/Node.gitignore
2+
3+
# Logs
4+
5+
logs
6+
_.log
7+
npm-debug.log_
8+
yarn-debug.log*
9+
yarn-error.log*
10+
lerna-debug.log*
11+
.pnpm-debug.log*
12+
13+
# Caches
14+
15+
.cache
16+
17+
# Diagnostic reports (https://nodejs.org/api/report.html)
18+
19+
report.[0-9]_.[0-9]_.[0-9]_.[0-9]_.json
20+
21+
# Runtime data
22+
23+
pids
24+
_.pid
25+
_.seed
26+
*.pid.lock
27+
28+
# Directory for instrumented libs generated by jscoverage/JSCover
29+
30+
lib-cov
31+
32+
# Coverage directory used by tools like istanbul
33+
34+
coverage
35+
*.lcov
36+
37+
# nyc test coverage
38+
39+
.nyc_output
40+
41+
# Grunt intermediate storage (https://gruntjs.com/creating-plugins#storing-task-files)
42+
43+
.grunt
44+
45+
# Bower dependency directory (https://bower.io/)
46+
47+
bower_components
48+
49+
# node-waf configuration
50+
51+
.lock-wscript
52+
53+
# Compiled binary addons (https://nodejs.org/api/addons.html)
54+
55+
build/Release
56+
57+
# Dependency directories
58+
59+
node_modules/
60+
jspm_packages/
61+
62+
# Snowpack dependency directory (https://snowpack.dev/)
63+
64+
web_modules/
65+
66+
# TypeScript cache
67+
68+
*.tsbuildinfo
69+
70+
# Optional npm cache directory
71+
72+
.npm
73+
74+
# Optional eslint cache
75+
76+
.eslintcache
77+
78+
# Optional stylelint cache
79+
80+
.stylelintcache
81+
82+
# Microbundle cache
83+
84+
.rpt2_cache/
85+
.rts2_cache_cjs/
86+
.rts2_cache_es/
87+
.rts2_cache_umd/
88+
89+
# Optional REPL history
90+
91+
.node_repl_history
92+
93+
# Output of 'npm pack'
94+
95+
*.tgz
96+
97+
# Yarn Integrity file
98+
99+
.yarn-integrity
100+
101+
# dotenv environment variable files
102+
103+
.env
104+
.env.development.local
105+
.env.test.local
106+
.env.production.local
107+
.env.local
108+
109+
# parcel-bundler cache (https://parceljs.org/)
110+
111+
.parcel-cache
112+
113+
# Next.js build output
114+
115+
.next
116+
out
117+
118+
# Nuxt.js build / generate output
119+
120+
.nuxt
121+
dist
122+
123+
# Gatsby files
124+
125+
# Comment in the public line in if your project uses Gatsby and not Next.js
126+
127+
# https://nextjs.org/blog/next-9-1#public-directory-support
128+
129+
# public
130+
131+
# vuepress build output
132+
133+
.vuepress/dist
134+
135+
# vuepress v2.x temp and cache directory
136+
137+
.temp
138+
139+
# Docusaurus cache and generated files
140+
141+
.docusaurus
142+
143+
# Serverless directories
144+
145+
.serverless/
146+
147+
# FuseBox cache
148+
149+
.fusebox/
150+
151+
# DynamoDB Local files
152+
153+
.dynamodb/
154+
155+
# TernJS port file
156+
157+
.tern-port
158+
159+
# Stores VSCode versions used for testing VSCode extensions
160+
161+
.vscode-test
162+
163+
# yarn v2
164+
165+
.yarn/cache
166+
.yarn/unplugged
167+
.yarn/build-state.yml
168+
.yarn/install-state.gz
169+
.pnp.*
170+
171+
# IntelliJ based IDEs
172+
.idea
173+
174+
# Finder (MacOS) folder config
175+
.DS_Store
176+
177+
# Appendix
178+
pages/index.js

.prettierrc

+23
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
{
2+
"printWidth": 100,
3+
"tabWidth": 2,
4+
"useTabs": false,
5+
"semi": false,
6+
"singleQuote": true,
7+
"quoteProps": "consistent",
8+
"jsxSingleQuote": true,
9+
"trailingComma": "es5",
10+
"bracketSpacing": false,
11+
"bracketSameLine": false,
12+
"arrowParens": "always",
13+
"rangeStart": 0,
14+
"rangeEnd": 99999999,
15+
"requirePragma": false,
16+
"insertPragma": false,
17+
"proseWrap": "preserve",
18+
"htmlWhitespaceSensitivity": "css",
19+
"vueIndentScriptAndStyle": false,
20+
"endOfLine": "lf",
21+
"embeddedLanguageFormatting": "auto",
22+
"singleAttributePerLine": true
23+
}

README.md

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
# IAM.mml
2+
3+
## What is this?
4+
5+
Online AM/FM Synthesizer for Generating and Playing WAV from MML.

bun.lockb

3.4 KB
Binary file not shown.

package.json

+17
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
{
2+
"name": "iam-mml",
3+
"module": "index.ts",
4+
"type": "module",
5+
"scripts": {
6+
"build": "bunx prettier --write ./src && bun build ./src/index.ts --outdir ./pages --minify",
7+
"format": "bunx prettier --write ./src",
8+
"test": "bun test"
9+
},
10+
"devDependencies": {
11+
"@types/bun": "latest",
12+
"prettier": "^3.2.5"
13+
},
14+
"peerDependencies": {
15+
"typescript": "^5.0.0"
16+
}
17+
}

pages/docs/jp/about/index.html

+39
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
<!DOCTYPE html>
2+
<html lang="ja">
3+
4+
<head>
5+
<meta charset="utf8">
6+
<title>IAM.mml Docs</title>
7+
<link rel="icon" href="../../../iam-mml-logo.svg" type="image/svg+xml">
8+
<link rel="stylesheet" type="text/css" href="../index.css?0">
9+
<script src="../index.js?0"></script>
10+
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/11.9.0/styles/stackoverflow-light.min.css">
11+
<script src="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/11.9.0/highlight.min.js"></script>
12+
<script>hljs.highlightAll();</script>
13+
</head>
14+
15+
<body>
16+
<div id="menu"></div>
17+
<script>createMenu("")</script>
18+
19+
<div id="main">
20+
<h1>IAM.mmlとは?</h1>
21+
22+
<hr>
23+
24+
<div class="center">
25+
<img width="25%" src="../../../iam-mml-logo.svg">
26+
</div>
27+
28+
<p>
29+
IAM.mmlはWebブラウザ上で動作するFM音源MMLコンパイラです。
30+
</p>
31+
32+
<ul>
33+
<li><a href="../../../">アプリケーションページ</a></li>
34+
<li><a href="https://github.com/Tengu712/iam-mml">Gitリモートリポジトリ(GitHub)</a></li>
35+
</ul>
36+
</div>
37+
</body>
38+
39+
</html>
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
<!DOCTYPE html>
2+
<html lang="ja">
3+
4+
<head>
5+
<meta charset="utf8">
6+
<title>コマンド/音源: IAM.mml Docs</title>
7+
<link rel="icon" href="../../../../iam-mml-logo.svg" type="image/svg+xml">
8+
<link rel="stylesheet" type="text/css" href="../../index.css?0">
9+
<script src="../../index.js?0"></script>
10+
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/11.9.0/styles/stackoverflow-light.min.css">
11+
<script src="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/11.9.0/highlight.min.js"></script>
12+
<script>hljs.highlightAll();</script>
13+
</head>
14+
15+
<body>
16+
<div id="menu"></div>
17+
<script>createMenu("../")</script>
18+
19+
<div id="main">
20+
<h1>コマンド/音源</h1>
21+
22+
<hr>
23+
24+
<h2>文法</h2>
25+
26+
<pre><code class="ebnf">instrument = "@" , identifier ;</code></pre>
27+
28+
<h2>解説</h2>
29+
30+
<p>
31+
音源を指定するコマンド。
32+
</p>
33+
34+
<ul>
35+
<li>
36+
<code>instrument</code>は音源名を指定する。
37+
音源は画面右側の音源定義で定義されていなければならない。
38+
</li>
39+
</ul>
40+
41+
<p>
42+
<code>identifier</code>は空白・タブあるいは改行までの任意の文字列を取得する。
43+
従って、音源コマンドに続くコマンドの前には、空白・タブあるいは改行を入れなければならない。
44+
</p>
45+
</div>
46+
</body>
47+
48+
</html>

0 commit comments

Comments
 (0)