ずいぶん前に書いたソフトの、個人的なリバイバル版です。 A personal revival of a small tool I wrote many years ago.
公開するタイミングを逃したり、ハードディスクの事故で消えたりして、ちゃんと完成しないままになっていました。 I missed the right time to release it, then lost it to a hard drive crash before it was ever truly finished.
10年以上前に少しだけ公開した版は、マイクロメディア社の Flash を使ったもの。当時としては珍しく、MacでもWindowsでも同じソフトが動くクロスプラットフォーム環境でした。サンプリングした自分のギターの音まで鳴らして、結構気合いを入れて作った記憶があります。 The version I released more than ten years ago was built with Macromedia Flash. Back then it was a rare cross-platform environment where the same program worked on both Mac and Windows. I even sampled my own guitar just for the playback.
最近では、セキュリティ上の理由から Flash はブラウザで動かなくなってしまいました。
その代わり、最近のブラウザはプラグインなしでバニラなJavaScript だけで音を鳴らせるようになっています。
それなら、と最新ぴかぴかの環境で、きらきらするソフトを書いてみたのが今回のきっかけです。
Today, Flash has disappeared from modern browsers for security reasons.
On the other hand, Modern browsers can generate sound using vanilla JavaScript, with no plugins or external libraries required at all.
That was enough to make me think, “Why not build it again?”
もともとは、DADGADやオープンボイシングで遊んでいるときに偶然見つけた「謎コード」を忘れないためのメモでした。 It originally started as a way to remember those mysterious chord shapes I discovered while experimenting with DADGAD tuning and open voicings.
紙に書いても、テキストファイルに残しても、気が付くとどこかへ行ってしまう。それなら譜面のようにきれいに印刷できたら、ちゃんと取っておく気になるんじゃないか。そんな発想がスタートです。 Even if I wrote them on paper or saved them in a text file, they always seemed to disappear. I thought that if they could be printed neatly like a music sheet, I’d be much more likely to keep them. That simple idea became the starting point.
これはシンプルなコードブックではありません。 自分だけのコードブックを作るための、ノーテーションツールです。 This isn’t just another chord book. It’s a notation tool for building your own chord book.
ブラウザにコードダイアグラムを表示し、クリックすると少しだけ音も鳴ります。 これ以上のUIはありません。 このページのソースを持ち帰って、自分でCSSを書き、自分のレイアウトで使ってください。 It draws chord diagrams directly in your browser, and clicking one plays a simple preview of the chord. That’s pretty much the entire user interface. Take the source, write your own CSS, and make it fit your own layout.
Basic Usage
基本は、div のクラスにコード名を書くだけです。 In most cases, simply specify the chord name.
簡単なコードなら、内蔵データベースからフォームを探して表示します。 「そのAじゃなくて…」という場合は、下記のように指定します。 Common chord shapes are loaded from the built-in database. If you want a different fingering, simply describe it yourself.
<div class="chord"
name="Intro"
start="5"
str="0,1,3,3,0,x">
</div>
コードネームが分からなければ、name="" にしてください。
コード名の代わりに構成音を表示します。
そのままメモとして残してもいいし、お気に入りのAIに
If you don’t know the chord name, simply leave name="".
The played notes will be displayed instead.
Keep them as a memo, or ask your favorite AI:
What is the best chord name for these notes?とか聞いてもいいし。
Layout
コードを並べるだけで、譜面のようなレイアウトになります。 Just arrange the chord diagrams in order, and you’ll have something that feels like a lead sheet.
<div class="chord" name="D"></div>
<div class="chord same"></div>
<div class="chord" name="G"></div>
<div class="break"></div>
<div class="chord" name="A"></div>
class="chord same"
は直前のコードを複製します。
同じフォームが続く場合に便利です。
class="chord same"
duplicates the previous chord.
Useful when the same shape appears repeatedly.
class="break"
は改行です。
コードを並べて、必要なところで改行してください。
class="break"
simply starts a new line.
Arrange the diagrams however you like.
あとはCSSを書くだけ。 自分だけのコードシートを作ってください。 ソースは、できるだけ読みやすく書いてあります。興味があれば、ぜひ中も覗いてみてください。 The rest is just CSS. Make it yours. The source code is intentionally kept simple. Feel free to look inside and make it your own.
名前じゃなくて、響きを残しておきたいな。 Sometimes it’s better to preserve the sound than the name.
@media print {
.site-header,
.breadcrumb,
.post-navigation,
.site-footer nav {
display: none;
}
}
Reference
- サンプル1 Sample1
- ダウンロード Download 改造、再配布には、一切の制限ありません、あなたのスパイスを足してシェアしましょう There are no restrictions on modification or redistribution. Add your own spice, then pass it on.