ヘビーローテーション
あいうぉんちゅ〜♪
/**
* Copyright fumix ( http://wonderfl.net/user/fumix )
* MIT License ( http://www.opensource.org/licenses/mit-license.php )
* Downloaded from: http://wonderfl.net/c/bJHv
*/
package
{
import flash.text.TextFieldAutoSize;
import flash.text.TextField;
import org.si.sion.SiONData;
import org.si.sion.SiONDriver;
import flash.display.Sprite;
public class Main extends Sprite {
private var driver : SiONDriver;
private var note : SiONData;
public function Main()
{
driver = new SiONDriver(8192);
//MMLデータ作成
//var mml:String = "#SIGN{E}; t178 @32 l4 o5 r2 [efg2)))efg2(((]3gab2g2f2e2o6c2co5affgabbbg e2rga2c2edcde1";
var mml:String = "#SIGN{E}; t178 @32 l4 o5 r2 [efg1&g2]3gab2g2f2e2o6c2co5affgabbbg e2rga2c2edcde1";
note = driver.compile(mml);
//楽譜データ演奏
driver.play(note);
var tf:TextField = new TextField();
//tf.autoSize = TextFieldAutoSize.LEFT;
tf.wordWrap = true;
tf.width = 300;
tf.text = mml;
tf.x = 100;
tf.y = 100;
addChild(tf);
}
}
}