mml.inc.php

サマリMML再生プラグイン
リビジョン1.1
対応バージョン1.4x1
投稿者Logue
投稿日2008-02-18 (月) 10:55:18

概要

MML(Music Macro Language)をJSMMLを用いて再生します。jQuery依存です。

使用方法

#mml(タイトル,楽器){MML}

楽器の部分にreverseと打ち込むと、オクターブが逆転します。

mml.inc.phpは、マビノギ用のMML再生プラグインmabimml.inc.php?と互換性があります。#mabimmlを#mmlに変更することでそのままマビノギ用のMMLを再生することができます。ただし、JSMMLの実装の違いから、テンポが120以外だったり、付点記号付きのLが含まれるMMLは正常に再生できない場合があります。

JSMML.swfは、公式のものでなく、Web素材/JSMMLのものを使用することを推奨します。

サンプル

#mml(不思議な話を){{
$conf0=@3 @w12 @E1,0,24,80,16 @F1,32,72,24 @P32 v8l4o5;
$conf0 l64g&g&g&g&g&g&g&g&g&g&g&g&g&g&g&g&g&g&g&g&g&g&g&g&g&g&g&g&g&g&g&gv0g2t136v15l8gc-dgdbgdac-cfcafca+cdfcdafdg4b+bgdc-gc-dgdbgdac-cfcafca+cdfdfafdgrb+bgdc-gc-dgdbgdac-cfcafca+cdfdafcdgrb+bgdc-gc-dgdbgdac-cfcafca+cdfdafcdgrb+bgdc-gc-dgdbgdac-cfcafca+cdfdafcdgrb+bgdc-gc-dgdbgdac-cfcafca+cdfdafcdgrb+bgdc-gab+gab+gagab+gab+gadd+gdd+gdd+dd+gdd+gdd+gab+gab+gagab+gab+gadd+gdd+gdd+dd+gdd+gdd+cdecdecdcdfcdfcd>c4rc4r>c4<ccrc4r>c4o5fga+fga+fgfga+fga+fgdd+gdd+gdd+dd+gdd+gdd+o3aarar<e>araarar<e>araarar<ef+ga4<d>a4<d>ba;
$conf0r1v15l4.>gdg4fcf4d+dl4d>d.g2r8<g.d.gf.c.fd+.d.d>d.g2r8g8gg<d8g>f8ff<c8fd+8d+d+l8f>dfgl4gg<d8g>g8gg<d8g>f8ff<c8fd+8d+d+l8f>dfgl4gg<d8g>g8gg<d8g>f8ff<c8fd+8d+d+l8f>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ga8b.bb+l8ba4.<cdf4d+d4c>a+4g4.g2r>a4a+<c2r>a4a+<c4dfdc4.>a+16a16a+1&a+4.ra4a+<c2r>a4a+<c4dfdl4c.>a+16a16a+1aa+<a1&a1g1.gal2a+agf4r4fd+c+cc1&c1d.r8e8f+8g8f+8d8c8>b8a8f+8;
$conf1 l1.rrrrrrrrrrrrrrrrrrrrrrv13a1&a1v13l4o7d.c2r8d.cr8cl2dc>a+f4g4ra+g+fg1.l8agf+df+1;
#mml(G線上のアリア){{
/** Flute **/
$conf0=@2 @w52 @E1,8,48,80,24 @F1,36,80,18 @L8,36,0,128 @P96 v8l4o5;
$conf0 t120l64<d&d&d&d&d&d&d&d&d&d&d&d&d&d&d&d&d&d&d&d&d&d&d&d&d&d&d&d&d&d&d&dv0l2ct32v13f+f+f+8l16bgf+32e32dc+dl64c+dc+dc+8.l16>ba8aa8b+b<c8f+c>a<f+cred+agd8edef+rere>ba<dc+gf+f+4.g+ad8d32e32f+f+eedc+>bb32<c+32dd8l48c+dc+l16>bc+2<c+4c+l32dc+c-c+l16>aabb+8.bagf+gaf+<bagf+g4l32gf+rdl16c+>bc+def+gf+ge<edc+>ba+b<c+8edc+c-c+d32e32>f+ed2d8b8<df+ed>e8f+g+aa<agl32f+ea16>a8b8b16<c+dl64c+dc+dc+8l16>bc+drc+a8bb+b<c+f+ed8c+c-c+d+gf+e8d+c+d+eagf+d+e>brbgeec+eab<c+eggec+d>a8<f+g32a32d4rf+ab+b4.d8>ec+egbagf+<edef+32g32gf+8ed32c+32c-8c+el48dedc+16d16t120d1.;
$conf0 r1v13<d2d2d>baal8ed+d+eb.b4&b16<g4.g>e2d4.ef+g+16a16bg+af+f+g+e2e4e4el16d+ef+4r8<b8>d+8<d+8e4ee8.>a+b<c+8c+de8rf+>edc+8f+8f+8edg8<d8>f+2<d4>ag+a8<b4.l8>bbrf+ee.d16ee<d4.de4.ef+4.f+g4>a4a4<c+>aa<f+4>aaga4g2l16<c+eg8g8d8r8c+>br8b8a4gl48f+gf+g8d1.;
$conf0 r1v13a2b2dee2<a2>f+2b2aa<d.l8d>addeeaaea2a4a4<a4.c>b4bbb2<e4er4g4f+>bbbab2e4f+4g+4eeeerg+a4a4ed4f+f+e4c+c+g4f+e2rgf+edddddef+4d2ab<ee>aaagf+4edf+1.;

/** Mandolin **/
$conf1=@1 @w20 @E1,0,48,36,12 @F1,32,72,64 @P32 v8l4o5;
$conf1 t120l64d&d&d&d&d&d&d&d&d&d&d&d&d&d&d&d&d&d&d&d&d&d&d&d&d&d&d&d&d&d&d&dv0d2t32v15l8>d<dc+>c+c-ba>ag<gg+>g+a<ag>gf+<f+e>ed+<d+c-b>e<ed>dc+<c+>a<ad<dc+>c+c-bg+eade>el16ab<c+degf+el8>a<ag>gf+<f+e>ed+<d+f+c-e<ed>dc+<c+>b>ba+b<c+>a+b<gef+c-ba>ag+<g+f+>f+e<ed>dc+<c+de>a<ag>gf+<f+g>gg+<g+a>aa+<a+bc-e<ed>dc+<c+>e<c+d>dcb+b>ba<ag>gf+<f+e>ed<dc+>a<dgaga>at120d1.;
}}
G線上のアリア
/** Flute **/
$conf0=@2 @w52 @E1,8,48,80,24 @F1,36,80,18 @L8,36,0,128 @P96 v8l4o5;
$conf0 t120l64<d&d&d&d&d&d&d&d&d&d&d&d&d&d&d&d&d&d&d&d&d&d&d&d&d&d&d&d&d&d&d&dv0l2ct32v13f+f+f+8l16bgf+32e32dc+dl64c+dc+dc+8.l16>ba8aa8b+b<c8f+c>a<f+cred+agd8edef+rere>ba<dc+gf+f+4.g+ad8d32e32f+f+eedc+>bb32<c+32dd8l48c+dc+l16>bc+2<c+4c+l32dc+c-c+l16>aabb+8.bagf+gaf+<bagf+g4l32gf+rdl16c+>bc+def+gf+ge<edc+>ba+b<c+8edc+c-c+d32e32>f+ed2d8b8<df+ed>e8f+g+aa<agl32f+ea16>a8b8b16<c+dl64c+dc+dc+8l16>bc+drc+a8bb+b<c+f+ed8c+c-c+d+gf+e8d+c+d+eagf+d+e>brbgeec+eab<c+eggec+d>a8<f+g32a32d4rf+ab+b4.d8>ec+egbagf+<edef+32g32gf+8ed32c+32c-8c+el48dedc+16d16t120d1.;
$conf0 r1v13<d2d2d>baal8ed+d+eb.b4&b16<g4.g>e2d4.ef+g+16a16bg+af+f+g+e2e4e4el16d+ef+4r8<b8>d+8<d+8e4ee8.>a+b<c+8c+de8rf+>edc+8f+8f+8edg8<d8>f+2<d4>ag+a8<b4.l8>bbrf+ee.d16ee<d4.de4.ef+4.f+g4>a4a4<c+>aa<f+4>aaga4g2l16<c+eg8g8d8r8c+>br8b8a4gl48f+gf+g8d1.;
$conf0 r1v13a2b2dee2<a2>f+2b2aa<d.l8d>addeeaaea2a4a4<a4.c>b4bbb2<e4er4g4f+>bbbab2e4f+4g+4eeeerg+a4a4ed4f+f+e4c+c+g4f+e2rgf+edddddef+4d2ab<ee>aaagf+4edf+1.;

/** Mandolin **/
$conf1=@1 @w20 @E1,0,48,36,12 @F1,32,72,64 @P32 v8l4o5;
$conf1 t120l64d&d&d&d&d&d&d&d&d&d&d&d&d&d&d&d&d&d&d&d&d&d&d&d&d&d&d&d&d&d&d&dv0d2t32v15l8>d<dc+>c+c-ba>ag<gg+>g+a<ag>gf+<f+e>ed+<d+c-b>e<ed>dc+<c+>a<ad<dc+>c+c-bg+eade>el16ab<c+degf+el8>a<ag>gf+<f+e>ed+<d+f+c-e<ed>dc+<c+>b>ba+b<c+>a+b<gef+c-ba>ag+<g+f+>f+e<ed>dc+<c+de>a<ag>gf+<f+g>gg+<g+a>aa+<a+bc-e<ed>dc+<c+>e<c+d>dcb+b>ba<ag>gf+<f+e>ed<dc+>a<dgaga>at120d1.;

インストール

  1. Web素材/JSMMLからJSMMLをダウンロードして、スキンディレクトリに入れます。
  2. mml.inc.phpをプラグインフォルダに入れる。

ダウンロード

mml.inc.php.2.tgz

関連リンク

コメント

Show recent 10 comments. Go to the comment page.

  • mml プラグインに変更してみたら、切り替え時以外に常にメニューが全開状態になりました。 -- upk? 2010-07-06 (火) 19:50:32
  • あと、再生ボタンが表示されなくなるバグがありますね; -- Logue 2010-07-07 (水) 07:55:03