diff --git a/Muse_performance/app/src/main/AndroidManifest.xml b/Muse_performance/app/src/main/AndroidManifest.xml index ca93473..ce7115c 100644 --- a/Muse_performance/app/src/main/AndroidManifest.xml +++ b/Muse_performance/app/src/main/AndroidManifest.xml @@ -5,9 +5,10 @@ + android:theme="@android:style/Theme.NoTitleBar" + android:largeHeap="true"> @@ -32,11 +33,6 @@ android:label="@string/app_name" android:screenOrientation="portrait"> - - \ No newline at end of file diff --git a/Muse_performance/app/src/main/java/muse/muse_performance/BackSE.java b/Muse_performance/app/src/main/java/muse/muse_performance/BackSE.java index 3acc1b9..e678543 100644 --- a/Muse_performance/app/src/main/java/muse/muse_performance/BackSE.java +++ b/Muse_performance/app/src/main/java/muse/muse_performance/BackSE.java @@ -28,7 +28,7 @@ public void soundLoad(){ soundID[1] = soundPool.load(context,R.raw.hiyoko,1); soundID[2] = soundPool.load(context,R.raw.semi,1); soundID[3] = soundPool.load(context,R.raw.hand,1); - soundID[4] = soundPool.load(context,R.raw.flog2,1); + soundID[4] = soundPool.load(context,R.raw.drop,1); } //鳴らす diff --git a/Muse_performance/app/src/main/java/muse/muse_performance/GraphicView.java b/Muse_performance/app/src/main/java/muse/muse_performance/GraphicView.java index bf7beaa..e4c89e9 100644 --- a/Muse_performance/app/src/main/java/muse/muse_performance/GraphicView.java +++ b/Muse_performance/app/src/main/java/muse/muse_performance/GraphicView.java @@ -9,11 +9,11 @@ import android.media.AudioManager; import android.content.Context; import android.graphics.*; +import android.graphics.Color; import android.view.View; import android.view.Display; import android.view.WindowManager; - public class GraphicView extends View { // 画面状態入手 @@ -24,46 +24,27 @@ public class GraphicView extends View int terminal_height = display.getHeight(); // モニタ縦 //画像読み込み - private int bSize = 100; - public Bitmap ClearBack( Bitmap bmp ) - { - // 縦横取得 - int width = bmp.getWidth(); - int height = bmp.getHeight(); + private static int sSize = 100; + private int bSize = 200; + Resources res = getResources(); + private Bitmap bigTab_bmp = BitmapFactory.decodeResource( res, R.drawable.bigtap ); + private Bitmap tab_bmp = BitmapFactory.decodeResource( res, R.drawable.tab ); - // px取り出し - int[] pixels = new int[width * height]; - bmp.getPixels(pixels, 0, width, 0, 0, width, height); + private Bitmap chick_bmp = BitmapFactory.decodeResource( res, R.drawable.chick ); + private Bitmap clap_bmp = BitmapFactory.decodeResource( res, R.drawable.clap ); + private Bitmap frog_bmp = BitmapFactory.decodeResource( res, R.drawable.frog ); + private Bitmap cicada_bmp = BitmapFactory.decodeResource( res, R.drawable.cicada ); + private Bitmap drop_bmp = BitmapFactory.decodeResource( res, R.drawable.drop ); + private Bitmap delete_bmp = BitmapFactory.decodeResource( res, R.drawable.deleteicon ); - // (0,0)の色取り出し - int c = bmp.getPixel(0,0); + private Bitmap piano_bmp = BitmapFactory.decodeResource( res, R.drawable.piano ); + private Bitmap drum_bmp = BitmapFactory.decodeResource( res, R.drawable.drum ); + private Bitmap arrange1_bmp = BitmapFactory.decodeResource( res, R.drawable.arrange1 ); + private Bitmap arrange2_bmp = BitmapFactory.decodeResource( res, R.drawable.arrange2 ); - // 書き換え - for( int y = 0; y < height; y++ ) - { - for( int x = 0; x < width; x++ ) - { - //(x,y)の部分の色のデータ - if( pixels[x + y * width] == c ) pixels[x + y * width] = 0; - } - } - - // 更新 - bmp.eraseColor(Color.argb(0, 0, 0, 0)); - bmp.setPixels(pixels, 0, width, 0, 0, width, height); - - return bmp; - } - Resources res = getResources(); - Bitmap bigTab_bmp = ClearBack( Bitmap.createScaledBitmap( BitmapFactory.decodeResource( res, R.drawable.bigtab ), bSize, bSize, false ) ); - Bitmap tab_bmp = ClearBack( Bitmap.createScaledBitmap( BitmapFactory.decodeResource( res, R.drawable.tab ), bSize, bSize, false ) ); - Bitmap chick_bmp = ClearBack( Bitmap.createScaledBitmap( BitmapFactory.decodeResource( res, R.drawable.chick ), bSize, bSize, false ) ); - Bitmap clap_bmp = ClearBack( Bitmap.createScaledBitmap( BitmapFactory.decodeResource( res, R.drawable.clap ), bSize, bSize, false ) ); - Bitmap drum_bmp = ClearBack( Bitmap.createScaledBitmap( BitmapFactory.decodeResource( res, R.drawable.drum ), bSize, bSize, false ) ); - Bitmap frog_bmp = ClearBack( Bitmap.createScaledBitmap( BitmapFactory.decodeResource( res, R.drawable.frog ), bSize, bSize, false ) ); - Bitmap fue_bmp = ClearBack( Bitmap.createScaledBitmap( BitmapFactory.decodeResource( res, R.drawable.fue ), bSize, bSize, false ) ); - Bitmap guitar_bmp = ClearBack( Bitmap.createScaledBitmap( BitmapFactory.decodeResource( res, R.drawable.guitar ), bSize, bSize, false ) ); - Bitmap piano_bmp = ClearBack( Bitmap.createScaledBitmap( BitmapFactory.decodeResource( res, R.drawable.piano ), bSize, bSize, false ) ); + private Bitmap objectIcon_bmp = BitmapFactory.decodeResource( res, R.drawable.objicon ); + private Bitmap setting_bmp = BitmapFactory.decodeResource( res, R.drawable.setting ); + private Bitmap frontIcon_bmp = BitmapFactory.decodeResource( res, R.drawable.fronticon ); //画面の位置情報変数 private int r = 0; //半径 @@ -79,8 +60,17 @@ public Bitmap ClearBack( Bitmap bmp ) private float fxpoint[]={-1,-1,-1,-1}; private float fypoint[]={-1,-1,-1,-1}; + //オブジェクトタブのスクロールの一番上 + private int scrollTop = 0; + public void setScrollTop(int i){ this.scrollTop = i; } + public int getScrollTop(){ return this.scrollTop; } + //表裏判定 private boolean scene; + //オブジェクトタブのONとOFFの判定 + private boolean TabFlag = true; + public void TabFlagON(){ this.TabFlag = !this.TabFlag; } //反応したらひっくり返す + public boolean getTabFlag(){ return this.TabFlag; } //音がはねるのを防ぐ private int boundcheck[] = {0,0,0,0,0}; @@ -93,39 +83,31 @@ public Bitmap ClearBack( Bitmap bmp ) private ScheduledExecutorService ses = null; //波生成変数 - static private int graLevel = 13; //グラデーションの段階 static private int graWidth = 2; // グラデーション1段階の幅 - static private int colorDeference = 25; // 波の頂点と一番下の色の差 - - //画面の色 - static private int graTopcolorR=148,graTopcolorG=213,graTopcolorB= 225; - static private int graTopcolorEfeR=0,graTopcolorEfeG=0,graTopcolorEfeB=0; - - ////画面の背景色 - private int colorR = graTopcolorR + colorDeference - ,colorG = graTopcolorG + colorDeference - ,colorB = graTopcolorB + colorDeference; + static private int graLevel = 13; + static final int wR = 148; // 水の最も暗い色 + static final int wG = 213; + static final int wB = 225; //半径の最大値 private int overR = sqrt(x * x + y * y); - //タップしてできた円の半径と当たり判定 + //タップしてできた円の半径 int[] tapCircleR = {0,0,0,0}; - private int[] tapCircleCollisionR = {-1,-1,-1,-1}; //背面のオブジェクトの当たり判定 private int[] backcollisionR = {-1,-1,-1,-1,-1}; //フリックの方向 - private int flickvec[] = {0,0,0,0}; - private int flicklog[] = {0,0,0,0};//前回のフリックの方向を保存 - private int flickchange[] ={0,0,0,0};//フリックのフラグ + private int flickVec[] = {-1,-1,-1,-1}; + private int flickLog[] = new int[4]; //前回のフリックの方向を保存 + private int flicInst[] = new int[4]; + private int flickchange[] = new int[4]; //フリックのフラグ //サウンドプール private BackSE backSE; //変数管理系 public void setFlagPoint(int i,int r) { tapCircleR[i] = r; } - public int getFlagPoint(int i) { return tapCircleR[i]; } //裏座標変数 public float[] getBxpoint(){ @@ -142,12 +124,6 @@ public void setBypoint(int i,float y){ } //表座標変数 - public float[] getFxpoint(){ - return fxpoint; - } - public float[] getFypoint(){ - return fypoint; - } public void setFxpoint(int i,float x){ fxpoint[i]=x; } @@ -159,40 +135,38 @@ public void setFypoint(int i,float y){ public void setScene(boolean i){ this.scene = i; } - public boolean getScene(){ - return this.scene; - } //テンポ変数 public void setBpm(int b){ bpm=b; } - public int getBpm(){ - return bpm; - } //スワイプの方向 - public void setflick(int i,int vec){ - if (flicklog[i] != flickvec[i]) {//変更があったときflicklogに保存 - flicklog[i] = flickvec[i]; + public void setFlick( int i, int vec, int inst ) + { + this.flicInst[i] = inst; + + if( flickVec[i] != vec ) + { + flickLog[i] = flickVec[i]; + flickVec[i] = vec; flickchange[i] = 10; } - if (flickvec[i] == vec) { - flickvec[i] = -1;//停止を選択 + else if( flickchange[i] == 0 ) + { + flickVec[i] = -1; } - else flickvec[i] = vec; } - public int getflick(int i){ return flickvec[i]; } - - //平方根計算メソッド(めのこ平方) - private int sqrt(int num){ - int odd,rood,sum; + private int sqrt(int num) + { + int odd, sum; odd = -1; sum = 0; - while(sum <= num){ + while(sum <= num) + { odd += 2; sum += odd; } @@ -208,23 +182,15 @@ public void run() { //時間更新 r+=8; - /* ------------------------------------ 衝突判定処理 -------------------------------------- */ //タップで生成された波の処理 for(int i=0;i<4;i++){ - if(tapCircleR[i] == 1){ - //中心とタップした波の距離計算 - float num = ((fxpoint[i]-x) * (fxpoint[i]-x)) + ((fypoint[i]-y) * (fypoint[i]-y)); - int dr = sqrt( (int) num ); - //衝突位置計算 - tapCircleCollisionR[i] = (dr/2) % d; - } if(tapCircleR[i] > 0) tapCircleR[i] += 8; if(tapCircleR[i] > overR * 2){ tapCircleR[i] = 0; - tapCircleCollisionR[i] = 0; } } + /* ------------------------------------ 衝突判定処理 -------------------------------------- */ //裏画面の衝突距離計算 for(int i=0;i<5;i++){ if(bxpoint[i] > 0 && bypoint[i] > 0){ @@ -245,9 +211,9 @@ public void run() { postInvalidate(); // rがあふれない処理 - if (r > overR) + if ( r > overR+d ) { - r -= d; + r -= d; } } }; @@ -256,13 +222,26 @@ public void run() { public GraphicView(Context context) { super(context); + + piano_bmp = ClearBack( piano_bmp ); + drum_bmp = ClearBack( drum_bmp ); + arrange1_bmp = ClearBack( arrange1_bmp ); + arrange2_bmp = ClearBack( arrange2_bmp ); + + chick_bmp = ClearBack( chick_bmp ); + clap_bmp = ClearBack( clap_bmp ); + frog_bmp = ClearBack( frog_bmp ); + cicada_bmp = ClearBack( cicada_bmp ); + drop_bmp = ClearBack( drop_bmp ); + delete_bmp = ClearBack( delete_bmp ); } - public void onResume(){ + public void onResume() + { // タイマーの作成 ses = Executors.newSingleThreadScheduledExecutor(); //SE関係 - backSE=new BackSE(5,AudioManager.STREAM_MUSIC,0,getContext()); + backSE = new BackSE(5,AudioManager.STREAM_MUSIC,0,getContext()); //ファイルロード backSE.soundLoad(); @@ -272,231 +251,202 @@ public void onResume(){ ses.scheduleAtFixedRate(task, 0L, 24L, TimeUnit.MILLISECONDS); } - public void changeColor(int changenum,Paint paint,Canvas canvas){ - if( changenum == -1 ) { - paint.setColor(Color.argb(0x90,graTopcolorR+10, graTopcolorG+10, graTopcolorB+10)); - } - else if( changenum == 0 ) { - paint.setColor(Color.argb(0x90,graTopcolorR, graTopcolorG, graTopcolorB)); - } - else if( changenum == 22 ) { - paint.setColor(Color.argb(0x90,graTopcolorR, graTopcolorG - 30, graTopcolorB)); - } - else if( changenum == 40 ) { - paint.setColor(Color.argb(0x90,graTopcolorR, graTopcolorG, graTopcolorB - 30)); - } - else if( changenum == 56 ) { - paint.setColor(Color.argb(0x90,graTopcolorR-30, graTopcolorG, graTopcolorB)); - } - } + protected void ObjectMusic(int i) + { + //20を基点とする + if(boundcheck[i] == 20) boundcheck[i] = 0; - protected void ObjectMusic(int i, Canvas canvas,Paint paint){ - if(boundcheck[i] == 20) boundcheck[i] = 0; //20を基点とする - if(bxpoint[i] > 0 && bypoint[i] > 0 && backcollisionR[i] <= r % d + 8 && backcollisionR[i] >= r % d - 10){ - if(boundcheck[i] == 0){ + if(bxpoint[i] > 0 && bypoint[i] > 0 && backcollisionR[i] <= r % d + 8 && backcollisionR[i] >= r % d - 10) + { + if(boundcheck[i] == 0) + { backSE.soundPlay(i); //チャタリング除去フラグ_インデント boundcheck[i]++; } - else{ - paint.setColor(Color.rgb( 0, 0, 0)); - canvas.drawRect(bxpoint[i]-50,bypoint[i]-50,bxpoint[i]+50,bypoint[i]+50,paint); - } } if(boundcheck[i] > 0) boundcheck[i]++; //boundしてるときにのみチェックをかける(インデント) } - @Override - protected void onDraw(Canvas canvas) + private Bitmap ClearBack( Bitmap bmp ) { - //背景色の設定 - ////白 - canvas.drawColor( Color.rgb( graTopcolorR , graTopcolorG, graTopcolorB ) ); - - frog_bmp = ClearBack( frog_bmp ); + //透過 + int width = bmp.getWidth(); + int height = bmp.getHeight(); + int[] pixels = new int[width * height]; + int c = bmp.getPixel(0, 0); - //Paintオブジェクトの生成 - Paint paint = new Paint(); + // 0,0 のピクセルと同じ色のピクセルを透明化する. + Bitmap bitmap = Bitmap.createBitmap( width, height, Bitmap.Config.ARGB_8888 ); + bmp.getPixels(pixels, 0, width, 0, 0, width, height); - //フリックによる背景の色変更 - paint.setStyle(Paint.Style.FILL); - changeColor(getflick(0),paint,canvas); - canvas.drawRect(0,0,x,y,paint);//背景の描画 - if(flickchange[0] > 0){//背景変更時の動作 - if( flicklog[0] == -1 ) { - paint.setColor(Color.argb(0x90,graTopcolorR+10, graTopcolorG+10, graTopcolorB+10)); - } - else if(flicklog[0] == 0 ) { - paint.setColor(Color.argb(0x90,graTopcolorR, graTopcolorG, graTopcolorB)); - canvas.drawRect(0,0,x,y-(10-flickchange[0])*80,paint); + for (int y = 0; y < height; y++) { + for (int x = 0; x < width; x++) { + if( pixels[x + y * width]== c){ pixels[x + y * width] = 0; } } - else if(flicklog[0] == 22 ) { - paint.setColor(Color.argb(0x90,graTopcolorR, graTopcolorG - 30, graTopcolorB)); - canvas.drawRect((10-flickchange[0])*80,0,x,y,paint); - } - else if( flicklog[0] == 40 ) { - paint.setColor(Color.argb(0x90,graTopcolorR, graTopcolorG, graTopcolorB - 30)); - canvas.drawRect(0,(10-flickchange[0])*80,x,y,paint); - } - else if( flicklog[0] == 56 ) { - paint.setColor(Color.argb(0x90,graTopcolorR-30, graTopcolorG, graTopcolorB)); - canvas.drawRect(0,0,x-(10-flickchange[0])*80,y,paint); - } - - flickchange[0] --; } + bitmap.eraseColor(Color.argb(0, 0, 0, 0)); + bitmap.setPixels(pixels, 0, width, 0, 0, width, height); - changeColor(getflick(1),paint,canvas); - canvas.drawRect(x,0,x*2,y,paint); - if(flickchange[1] > 0){//背景変更時の動作 - if( flicklog[1] == -1 ) { - paint.setColor(Color.argb(0x90,graTopcolorR+10, graTopcolorG+10, graTopcolorB+10)); - } - else if( flicklog[1] == 0 ) { - paint.setColor(Color.argb(0x90,graTopcolorR, graTopcolorG, graTopcolorB)); - canvas.drawRect(x,0,x*2,y - (10-flickchange[1])*80,paint); - } - else if( flicklog[1] == 22 ) { - paint.setColor(Color.argb(0x90,graTopcolorR, graTopcolorG - 30, graTopcolorB)); - canvas.drawRect(x + (10-flickchange[1])*80,0,x*2,y,paint); - } - else if( flicklog[1] == 40 ) { - paint.setColor(Color.argb(0x90,graTopcolorR, graTopcolorG, graTopcolorB - 30)); - canvas.drawRect(x,(10-flickchange[1])*80,x*2,y,paint); - } - else if( flicklog[1] == 56 ) { - paint.setColor(Color.argb(0x90,graTopcolorR-30, graTopcolorG, graTopcolorB)); - canvas.drawRect(x,0,x*2-(10-flickchange[1])*80,y,paint); - } + return bitmap; + } - flickchange[1] --; - } + private void DrawExtendBitmap( Canvas canvas, Bitmap bmp, int x, int y, int xSize, int ySize, int alpha ) + { + Rect src = new Rect( 0, 0, bmp.getWidth(), bmp.getHeight() ); + Rect dst = new Rect( x, y, x + xSize, y + ySize ); - changeColor(getflick(2),paint,canvas); - canvas.drawRect(0,y,x,y*2,paint); - if(flickchange[2] > 0){//背景変更時の動作 - if( flicklog[2] == -1 ) { - paint.setColor(Color.argb(0x90,graTopcolorR+10, graTopcolorG+10, graTopcolorB+10)); - } - else if( flicklog[2] == 0 ) { - paint.setColor(Color.argb(0x90,graTopcolorR, graTopcolorG, graTopcolorB)); - canvas.drawRect(0,y,x,y*2 - (10-flickchange[2])*80,paint); - } - else if( flicklog[2] == 22 ) { - paint.setColor(Color.argb(0x90,graTopcolorR, graTopcolorG - 30, graTopcolorB)); - canvas.drawRect((10-flickchange[2])*80,y,x,y*2,paint); - } - else if( flicklog[2] == 40 ) { - paint.setColor(Color.argb(0x90,graTopcolorR, graTopcolorG, graTopcolorB - 30)); - canvas.drawRect(0,y + (10-flickchange[2])*80,x,y*2,paint); - } - else if( flicklog[2] == 56 ) { - paint.setColor(Color.argb(0x90,graTopcolorR-30, graTopcolorG, graTopcolorB)); - canvas.drawRect(0,y,x - (10-flickchange[2])*80,y*2,paint); - } + Paint paint = new Paint(); + paint.setColor( Color.argb( alpha, 0, 0, 0 )); - flickchange[2] --; - } + canvas.drawBitmap( bmp, src, dst, paint ); + } - changeColor(getflick(3),paint,canvas); - canvas.drawRect(x,y,x*2,y*2,paint); - if(flickchange[3] > 0){//背景変更時の動作 - if( flicklog[3] == -1 ) { - paint.setColor(Color.argb(0x90,graTopcolorR+10, graTopcolorG+10, graTopcolorB+10)); - } - else if( flicklog[3] == 0 ) { - paint.setColor(Color.argb(0x90,graTopcolorR, graTopcolorG, graTopcolorB)); - canvas.drawRect(x,y,x*2,y*2-(10-flickchange[3])*80,paint); - } - else if( flicklog[3] == 22 ) { - paint.setColor(Color.argb(0x90,graTopcolorR, graTopcolorG - 30, graTopcolorB)); - canvas.drawRect(x+(10-flickchange[3])*80,y,x*2,y*2,paint); - } - else if( flicklog[3] == 40 ) { - paint.setColor(Color.argb(0x90,graTopcolorR, graTopcolorG, graTopcolorB - 30)); - canvas.drawRect(x,y + (10-flickchange[3])*80,x*2,y*2,paint); - } - else if( flicklog[3] == 56 ) { - paint.setColor(Color.argb(0x90,graTopcolorR-30, graTopcolorG, graTopcolorB)); - canvas.drawRect(x,y,x*2-(10-flickchange[3])*80,y*2,paint); - } + private void DrawExtendBackInst( int area, Canvas canvas, Bitmap bmp ) + { + DrawExtendBitmap( canvas, bmp, x*(area%2), y*(area/2), x, y, 0x40); + } - flickchange[3] --; - } + @Override + protected void onDraw(Canvas canvas) + { + //グラデーションの色の差の値 + int colorGap; + + //背景色の設定 + colorGap = graWidth * graLevel; + canvas.drawColor( Color.rgb( wR - colorGap, wG - colorGap, wB - colorGap ) ); - //描画色の指定 + //Paintオブジェクトの生成 + Paint paint = new Paint(); + + // 水面表示 paint.setStyle(Paint.Style.STROKE); paint.setStrokeWidth( graWidth ); - //円 - int colorGap; //グラデーションの色の差の値 - - //グラデーション + // 波紋表示 for (int j = -graLevel; j <= graLevel;j ++ ) { //値計算 colorGap = j * graWidth; - if( colorGap < 0 ) colorGap *= -1; + if(colorGap < 0) colorGap *= -1; //色計算 //白 - paint.setColor( Color.rgb( colorR - colorGap, colorG - colorGap, colorB - colorGap) ); + paint.setColor( Color.rgb( wR - colorGap, wG - colorGap, wB - colorGap)); // 表示 //波の数ループ - for( int i = 0; i <= r / d; i++ ) { + for(int i = 0; i <= r / d; i++) { canvas.drawCircle(x, y, d * i + r % d + j * graWidth, paint); } - for(int i = 0; i < 4 ; i++){ - if(tapCircleR[i] > 0){ - if(r % d >= tapCircleCollisionR[i] && r % d < tapCircleCollisionR[i] + 30){ - paint.setColor( Color.rgb( graTopcolorEfeR - colorGap, graTopcolorEfeG - colorGap, graTopcolorEfeB - colorGap) ); - } - canvas.drawCircle(fxpoint[i],fypoint[i], tapCircleR[i] + j * graWidth, paint); - if(r % d >= tapCircleCollisionR[i] && r % d < tapCircleCollisionR[i] + 30){ - paint.setColor( Color.rgb( graTopcolorR - colorGap, graTopcolorG - colorGap, graTopcolorB - colorGap) ); - } - } + for(int i = 0; i < 4; i++) { + if(tapCircleR[i] > 0) + canvas.drawCircle(fxpoint[i], fypoint[i], tapCircleR[i] + j * graWidth, paint); } + } - // 表画面メニュー - if( this.scene ) + // 表画面メニュー + if (this.scene) + { + // 基本表示 + DrawExtendBitmap( canvas, setting_bmp, 0, 0, sSize, sSize, 255 ); // オプション + DrawExtendBitmap( canvas, objectIcon_bmp, terminal_width - sSize, 0, sSize, sSize, 255 ); // 裏画面メニュー + + // 楽器配置 + paint.setStyle(Paint.Style.FILL); + if (fxpoint[0] > 0 && fypoint[0] > 0) { - // 基本表示 - canvas.drawBitmap( frog_bmp, 0, 0, paint );// オプション : TODO - canvas.drawBitmap( frog_bmp, terminal_width - bSize, 0, paint );// 裏画面メニュー : TODO - canvas.drawBitmap( guitar_bmp, 460, 770, paint ); // 左上表示 - canvas.drawBitmap( fue_bmp, 660, 770, paint ); // 右上表示 - canvas.drawBitmap( piano_bmp, 460, 970, paint ); // 左下表示 - canvas.drawBitmap( drum_bmp, 660, 970, paint ); // 右下表示 - - // 楽器配置 - if( fxpoint[0] > 0 && fypoint[0] > 0 ) canvas.drawBitmap( guitar_bmp, fxpoint[0], fypoint[0], paint ); - if( fxpoint[1] > 0 && fypoint[1] > 0 ) canvas.drawBitmap( fue_bmp, fxpoint[1], fypoint[1], paint ); - if( fxpoint[2] > 0 && fypoint[2] > 0 ) canvas.drawBitmap( piano_bmp, fxpoint[2], fypoint[2], paint ); - if( fxpoint[3] > 0 && fypoint[3] > 0 ) canvas.drawBitmap( drum_bmp, fxpoint[3], fypoint[3], paint ); + paint.setColor(Color.RED); + canvas.drawCircle( fxpoint[0] - 30, fypoint[0] - 30, 20, paint); + DrawExtendBackInst( 0, canvas, arrange1_bmp ); } - // 裏画面メニュー - else + if (fxpoint[1] > 0 && fypoint[1] > 0) { - canvas.drawBitmap( frog_bmp, terminal_width - bSize, 0, paint ); // 表への遷移ボタン - canvas.drawBitmap( frog_bmp, 0, 300, paint ); // 打楽器音1 - canvas.drawBitmap( chick_bmp, 0, 450, paint ); // 打楽器音2 - canvas.drawBitmap( frog_bmp, 0, 600, paint ); // 打楽器音3 - canvas.drawBitmap( clap_bmp, 0, 750, paint ); // 打楽器音4 - canvas.drawBitmap( frog_bmp, 0, 900, paint ); // 打楽器音5 - canvas.drawBitmap( drum_bmp, 0, 1070, paint ); // 全消去 - + paint.setColor(Color.MAGENTA); + canvas.drawCircle( fxpoint[1] - 30, fypoint[1] - 30, 20, paint); + DrawExtendBackInst( 1, canvas, arrange2_bmp ); } + if (fxpoint[2] > 0 && fypoint[2] > 0) + { + paint.setColor(Color.BLUE); + canvas.drawCircle( fxpoint[2] - 30, fypoint[2] - 30, 20, paint); + DrawExtendBackInst( 2, canvas, piano_bmp ); + } + if (fxpoint[3] > 0 && fypoint[3] > 0) + { + paint.setColor(Color.GREEN); + canvas.drawCircle( fxpoint[3] - 30, fypoint[3] - 30, 20, paint); + DrawExtendBackInst( 3, canvas, drum_bmp ); + } + } + // 裏画面メニュー + else + { + DrawExtendBitmap( canvas, frontIcon_bmp, terminal_width - sSize, 0, sSize, sSize, 255 ); // 表への遷移ボタン - // 置かれた楽器&打楽器画像表示 - if( bxpoint[0] > 0 && bypoint[0] > 0 ) canvas.drawBitmap( frog_bmp, bxpoint[0], bypoint[0], paint ); - if( bxpoint[1] > 0 && bypoint[1] > 0 ) canvas.drawBitmap( chick_bmp, bxpoint[1], bypoint[1], paint ); - if( bxpoint[2] > 0 && bypoint[2] > 0 ) canvas.drawBitmap( frog_bmp, bxpoint[2], bypoint[2], paint ); - if( bxpoint[3] > 0 && bypoint[3] > 0 ) canvas.drawBitmap( clap_bmp, bxpoint[3], bypoint[3], paint ); - if( bxpoint[4] > 0 && bypoint[4] > 0 ) canvas.drawBitmap( frog_bmp, bxpoint[4], bypoint[4], paint ); + //設置オブジェクト選択バー表示 + if (TabFlag) + { + // 下地 + DrawExtendBitmap( canvas, bigTab_bmp, 0, 300, 280, 1100, 255 ); + + for (int i = 0; i < 4; i++) { + switch ((scrollTop + i) % 6) { + case 0: + DrawExtendBitmap( canvas, frog_bmp, 7, 370 + 250 * i, bSize, bSize, 255 ); // 打楽器音1 + break; + case 1: + DrawExtendBitmap( canvas, chick_bmp, 7, 370 + 250 * i, bSize, bSize, 255 ); // 打楽器音2 + break; + case 2: + DrawExtendBitmap( canvas, cicada_bmp, 7, 370 + 250 * i, bSize, bSize, 255 ); // 打楽器音3 + break; + case 3: + DrawExtendBitmap( canvas, clap_bmp, 7, 370 + 250 * i, bSize, bSize, 255 ); // 打楽器音4 + break; + case 4: + DrawExtendBitmap( canvas, drop_bmp, 7, 370 + 250 * i, bSize, bSize, 255 ); // 打楽器音5 + break; + case 5: + DrawExtendBitmap( canvas, delete_bmp, 7, 370 + 250 * i, bSize, bSize, 255 ); // 全消去 + break; + } + } + } + else + { + DrawExtendBitmap( canvas, tab_bmp, 0, 300, 70, 1100, 255 ); + } + } - // 打楽器音設定 - for( int i = 0; i < bxpoint.length; i++ ) ObjectMusic( i, canvas, paint ); + // 置かれた楽器&打楽器画像表示 + if (bxpoint[0] > 0 && bypoint[0] > 0) { + if (!TabFlag || bxpoint[0] > 280 || bypoint[0] < 370 || bxpoint[0] > 1450) { + DrawExtendBitmap( canvas, frog_bmp, (int)bxpoint[0] - sSize/2, (int)bypoint[0] - sSize/2, sSize, sSize, 255 ); + } + } + if (bxpoint[1] > 0 && bypoint[1] > 0) { + if (!TabFlag || bxpoint[1] > 280 || bypoint[1] < 370 || bxpoint[1] > 1450) { + DrawExtendBitmap( canvas, chick_bmp, (int)bxpoint[1] - sSize/2, (int)bypoint[1] - sSize/2, sSize, sSize, 255 ); + } + } + if (bxpoint[2] > 0 && bypoint[2] > 0) { + if (!TabFlag || bxpoint[2] > 280 || bypoint[2] < 370 || bxpoint[2] > 1450) { + DrawExtendBitmap( canvas, cicada_bmp, (int)bxpoint[2] - sSize/2, (int)bypoint[2] - sSize/2, sSize, sSize, 255 ); + } + } + if (bxpoint[3] > 0 && bypoint[3] > 0) { + if (!TabFlag || bxpoint[3] > 280 || bypoint[3] < 370 || bxpoint[3] > 1450) { + DrawExtendBitmap( canvas, clap_bmp, (int)bxpoint[3] - sSize/2, (int)bypoint[3] - sSize/2, sSize, sSize, 255 ); + } + } + if (bxpoint[4] > 0 && bypoint[4] > 0){ + if (!TabFlag || bxpoint[4] > 280 || bypoint[4] < 370 || bxpoint[4] > 1450) { + DrawExtendBitmap( canvas, drop_bmp, (int)bxpoint[4] - sSize/2, (int)bypoint[4] - sSize/2, sSize, sSize, 255 ); + } } + + // 打楽器音設定 + for (int i = 0; i < bxpoint.length; i++) ObjectMusic(i); } } \ No newline at end of file diff --git a/Muse_performance/app/src/main/java/muse/muse_performance/MainMenu.java b/Muse_performance/app/src/main/java/muse/muse_performance/MainMenu.java index 110d856..72bcf83 100644 --- a/Muse_performance/app/src/main/java/muse/muse_performance/MainMenu.java +++ b/Muse_performance/app/src/main/java/muse/muse_performance/MainMenu.java @@ -3,6 +3,7 @@ import android.app.Activity; import android.content.Intent; import android.os.Bundle; +import android.util.Log; import android.view.View; import android.widget.Button; @@ -14,7 +15,7 @@ public class MainMenu extends Activity int Arrange1InstList[] = { 0, 22, 40 }; int Arrange2InstList[] = { 0, 22, 40 }; - int melodyInstList[] = { 0, 53, 23, 25 }; + int melodyInstList[] = { 0, 57, 22, 25 }; @Override protected void onCreate(Bundle savedInstanceState) @@ -47,6 +48,8 @@ public void onClick(View v) } }); + Log.d("","main "+melodyInstList[1]); + // Optionへ遷移するボタン Button sendButton2 = (Button)findViewById(R.id.send_button2); sendButton2.setOnClickListener(new View.OnClickListener() @@ -68,6 +71,7 @@ public void onClick(View v) intent2.putExtra("MInst3", melodyInstList[3]); intent2.putExtra("BEAT", beat); int requestCode = RESULT; + Log.d("","main "+melodyInstList[1]); startActivityForResult(intent2,requestCode); } }); diff --git a/Muse_performance/app/src/main/java/muse/muse_performance/MidiFileWriter.java b/Muse_performance/app/src/main/java/muse/muse_performance/MidiFileWriter.java index ecf7e2d..e649f00 100644 --- a/Muse_performance/app/src/main/java/muse/muse_performance/MidiFileWriter.java +++ b/Muse_performance/app/src/main/java/muse/muse_performance/MidiFileWriter.java @@ -275,6 +275,27 @@ public void SelectSong( int songNo, int dNo, int[] vel ) this.Song2Percuss( dNo, (byte) vel[3]); break; + case 2: + this.Song3ArrangeA((byte) 0x00, (byte) vel[0]); + this.Song3ArrangeB((byte) 0x01, (byte) vel[1]); + this.Song3Melody((byte) 0x02, (byte) vel[2]); + this.Song3Percuss( dNo, (byte) vel[3]); + break; + + case 3: + this.Song4ArrangeA((byte) 0x00, (byte) vel[0]); + this.Song4ArrangeB((byte) 0x01, (byte) vel[1]); + this.Song4Melody((byte) 0x02, (byte) vel[2]); + this.Song4Percuss( dNo, (byte) vel[3]); + break; + + case 4: + this.Song5ArrangeA((byte) 0x00, (byte) vel[0]); + this.Song5ArrangeB((byte) 0x01, (byte) vel[1]); + this.Song5Melody((byte) 0x02, (byte) vel[2]); + this.Song5Percuss( dNo, (byte) vel[3]); + break; + default: this.Song1ArrangeA((byte) 0x00, (byte) vel[0]); this.Song1ArrangeB((byte) 0x01, (byte) vel[1]); @@ -285,7 +306,7 @@ public void SelectSong( int songNo, int dNo, int[] vel ) } /* オリジナル1 */ - //主旋律 + //主旋律1 protected void Song1Melody( byte ch, byte vel ) { try @@ -330,7 +351,7 @@ protected void Song1Melody( byte ch, byte vel ) } } - // ドラムA + // ドラムA1 protected void Song1PercussionA( byte ch, byte vel ) { try @@ -341,7 +362,7 @@ protected void Song1PercussionA( byte ch, byte vel ) this.addNoteOn( ch, 0, (byte)35, vel); this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_080), (byte)35, (byte)0x00); this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_040), (byte)35, (byte)0x00); - this.addNoteOn( ch, 0, (byte)35, vel); + this.addNoteOn( ch, 0, (byte)40, vel); this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_040), (byte)54, (byte)0x00); this.addNoteOn( ch, 0, (byte)35, vel); @@ -350,7 +371,7 @@ protected void Song1PercussionA( byte ch, byte vel ) this.addNoteOn( ch, 0, (byte)35, vel); this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_080), (byte)35, (byte)0x00); this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_040), (byte)35, (byte)0x00); - this.addNoteOn( ch, 0, (byte)35, vel); + this.addNoteOn( ch, 0, (byte)40, vel); this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_040), (byte)54, (byte)0x00); this.addNoteOn( ch, 0, (byte)35, vel); @@ -359,7 +380,7 @@ protected void Song1PercussionA( byte ch, byte vel ) this.addNoteOn( ch, 0, (byte)35, vel); this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_080), (byte)35, (byte)0x00); this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_040), (byte)35, (byte)0x00); - this.addNoteOn( ch, 0, (byte)35, vel); + this.addNoteOn( ch, 0, (byte)40, vel); this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_040), (byte)54, (byte)0x00); this.addNoteOn( ch, 0, (byte)35, vel); @@ -368,7 +389,7 @@ protected void Song1PercussionA( byte ch, byte vel ) this.addNoteOn( ch, 0, (byte)35, vel); this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_080), (byte)35, (byte)0x00); this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_040), (byte)35, (byte)0x00); - this.addNoteOn( ch, 0, (byte)35, vel); + this.addNoteOn( ch, 0, (byte)40, vel); this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_040), (byte)54, (byte)0x00); this.addNoteOn( ch, 0, (byte)35, vel); @@ -377,7 +398,7 @@ protected void Song1PercussionA( byte ch, byte vel ) this.addNoteOn( ch, 0, (byte)35, vel); this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_080), (byte)35, (byte)0x00); this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_040), (byte)35, (byte)0x00); - this.addNoteOn( ch, 0, (byte)35, vel); + this.addNoteOn( ch, 0, (byte)40, vel); this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_040), (byte)54, (byte)0x00); this.addNoteOn( ch, 0, (byte)35, vel); @@ -386,7 +407,7 @@ protected void Song1PercussionA( byte ch, byte vel ) this.addNoteOn( ch, 0, (byte)35, vel); this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_080), (byte)35, (byte)0x00); this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_040), (byte)35, (byte)0x00); - this.addNoteOn( ch, 0, (byte)35, vel); + this.addNoteOn( ch, 0, (byte)40, vel); this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_040), (byte)54, (byte)0x00); this.addNoteOn( ch, 0, (byte)35, vel); @@ -395,7 +416,7 @@ protected void Song1PercussionA( byte ch, byte vel ) this.addNoteOn( ch, 0, (byte)35, vel); this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_080), (byte)35, (byte)0x00); this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_040), (byte)35, (byte)0x00); - this.addNoteOn( ch, 0, (byte)35, vel); + this.addNoteOn( ch, 0, (byte)40, vel); this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_040), (byte)54, (byte)0x00); this.addNoteOn( ch, 0, (byte)35, vel); @@ -404,7 +425,7 @@ protected void Song1PercussionA( byte ch, byte vel ) this.addNoteOn( ch, 0, (byte)35, vel); this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_080), (byte)35, (byte)0x00); this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_040), (byte)35, (byte)0x00); - this.addNoteOn( ch, 0, (byte)35, vel); + this.addNoteOn( ch, 0, (byte)40, vel); this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_040), (byte)54, (byte)0x00); this.closeTrackData(); @@ -415,7 +436,7 @@ protected void Song1PercussionA( byte ch, byte vel ) } } - // ドラムB + // ドラムB1 protected void Song1PercussionB( byte ch, byte vel ) { try @@ -533,26 +554,259 @@ protected void Song1PercussionB( byte ch, byte vel ) } } - // ドラム管理 + //共通ドラムパート + protected void SongPercussionC( byte ch, byte vel ) + { + try + { + this.addNoteOn( ch, 0, (byte)35, vel); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_160), (byte)35, (byte)0x00); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_160), (byte)35, (byte)0x00); + this.addNoteOn( ch, 0, (byte)35, vel); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_160), (byte)35, (byte)0x00); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_160), (byte)35, (byte)0x00); + this.addNoteOn( ch, 0, (byte)40, vel); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_160), (byte)35, (byte)0x00); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_160), (byte)35, (byte)0x00); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_160), (byte)35, (byte)0x00); + this.addNoteOn( ch, 0, (byte)40, vel); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_160), (byte)35, (byte)0x00); + this.addNoteOn( ch, 0, (byte)35, vel); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_160), (byte)35, (byte)0x00); + this.addNoteOn( ch, 0, (byte)40, vel); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_160), (byte)35, (byte)0x00); + this.addNoteOn( ch, 0, (byte)35, vel); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_160), (byte)35, (byte)0x00); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_160), (byte)35, (byte)0x00); + this.addNoteOn( ch, 0, (byte)40, vel); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_160), (byte)35, (byte)0x00); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_160), (byte)35, (byte)0x00); + this.addNoteOn( ch, 0, (byte)35, vel); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_160), (byte)35, (byte)0x00); + this.addNoteOn( ch, 0, (byte)40, vel); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_160), (byte)35, (byte)0x00); + + this.addNoteOn( ch, 0, (byte)35, vel); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_160), (byte)35, (byte)0x00); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_160), (byte)35, (byte)0x00); + this.addNoteOn( ch, 0, (byte)35, vel); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_160), (byte)35, (byte)0x00); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_160), (byte)35, (byte)0x00); + this.addNoteOn( ch, 0, (byte)40, vel); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_160), (byte)35, (byte)0x00); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_160), (byte)35, (byte)0x00); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_160), (byte)35, (byte)0x00); + this.addNoteOn( ch, 0, (byte)40, vel); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_160), (byte)35, (byte)0x00); + this.addNoteOn( ch, 0, (byte)35, vel); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_160), (byte)35, (byte)0x00); + this.addNoteOn( ch, 0, (byte)40, vel); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_160), (byte)35, (byte)0x00); + this.addNoteOn( ch, 0, (byte)35, vel); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_160), (byte)35, (byte)0x00); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_160), (byte)35, (byte)0x00); + this.addNoteOn( ch, 0, (byte)40, vel); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_160), (byte)35, (byte)0x00); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_160), (byte)35, (byte)0x00); + this.addNoteOn( ch, 0, (byte)35, vel); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_160), (byte)35, (byte)0x00); + this.addNoteOn( ch, 0, (byte)40, vel); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_160), (byte)35, (byte)0x00); + + this.addNoteOn( ch, 0, (byte)35, vel); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_160), (byte)35, (byte)0x00); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_160), (byte)35, (byte)0x00); + this.addNoteOn( ch, 0, (byte)35, vel); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_160), (byte)35, (byte)0x00); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_160), (byte)35, (byte)0x00); + this.addNoteOn( ch, 0, (byte)40, vel); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_160), (byte)35, (byte)0x00); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_160), (byte)35, (byte)0x00); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_160), (byte)35, (byte)0x00); + this.addNoteOn( ch, 0, (byte)40, vel); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_160), (byte)35, (byte)0x00); + this.addNoteOn( ch, 0, (byte)35, vel); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_160), (byte)35, (byte)0x00); + this.addNoteOn( ch, 0, (byte)40, vel); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_160), (byte)35, (byte)0x00); + this.addNoteOn( ch, 0, (byte)35, vel); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_160), (byte)35, (byte)0x00); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_160), (byte)35, (byte)0x00); + this.addNoteOn( ch, 0, (byte)40, vel); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_160), (byte)35, (byte)0x00); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_160), (byte)35, (byte)0x00); + this.addNoteOn( ch, 0, (byte)35, vel); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_160), (byte)35, (byte)0x00); + this.addNoteOn( ch, 0, (byte)40, vel); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_160), (byte)35, (byte)0x00); + + this.addNoteOn( ch, 0, (byte)35, vel); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_160), (byte)35, (byte)0x00); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_160), (byte)35, (byte)0x00); + this.addNoteOn( ch, 0, (byte)35, vel); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_160), (byte)35, (byte)0x00); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_160), (byte)35, (byte)0x00); + this.addNoteOn( ch, 0, (byte)40, vel); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_160), (byte)35, (byte)0x00); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_160), (byte)35, (byte)0x00); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_160), (byte)35, (byte)0x00); + this.addNoteOn( ch, 0, (byte)40, vel); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_160), (byte)35, (byte)0x00); + this.addNoteOn( ch, 0, (byte)35, vel); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_160), (byte)35, (byte)0x00); + this.addNoteOn( ch, 0, (byte)40, vel); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_160), (byte)35, (byte)0x00); + this.addNoteOn( ch, 0, (byte)35, vel); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_160), (byte)35, (byte)0x00); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_160), (byte)35, (byte)0x00); + this.addNoteOn( ch, 0, (byte)40, vel); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_160), (byte)35, (byte)0x00); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_160), (byte)35, (byte)0x00); + this.addNoteOn( ch, 0, (byte)35, vel); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_160), (byte)35, (byte)0x00); + this.addNoteOn( ch, 0, (byte)40, vel); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_160), (byte)35, (byte)0x00); + + this.addNoteOn( ch, 0, (byte)35, vel); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_160), (byte)35, (byte)0x00); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_160), (byte)35, (byte)0x00); + this.addNoteOn( ch, 0, (byte)35, vel); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_160), (byte)35, (byte)0x00); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_160), (byte)35, (byte)0x00); + this.addNoteOn( ch, 0, (byte)40, vel); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_160), (byte)35, (byte)0x00); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_160), (byte)35, (byte)0x00); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_160), (byte)35, (byte)0x00); + this.addNoteOn( ch, 0, (byte)40, vel); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_160), (byte)35, (byte)0x00); + this.addNoteOn( ch, 0, (byte)35, vel); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_160), (byte)35, (byte)0x00); + this.addNoteOn( ch, 0, (byte)40, vel); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_160), (byte)35, (byte)0x00); + this.addNoteOn( ch, 0, (byte)35, vel); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_160), (byte)35, (byte)0x00); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_160), (byte)35, (byte)0x00); + this.addNoteOn( ch, 0, (byte)40, vel); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_160), (byte)35, (byte)0x00); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_160), (byte)35, (byte)0x00); + this.addNoteOn( ch, 0, (byte)35, vel); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_160), (byte)35, (byte)0x00); + this.addNoteOn( ch, 0, (byte)40, vel); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_160), (byte)35, (byte)0x00); + + this.addNoteOn( ch, 0, (byte)35, vel); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_160), (byte)35, (byte)0x00); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_160), (byte)35, (byte)0x00); + this.addNoteOn( ch, 0, (byte)35, vel); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_160), (byte)35, (byte)0x00); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_160), (byte)35, (byte)0x00); + this.addNoteOn( ch, 0, (byte)40, vel); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_160), (byte)35, (byte)0x00); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_160), (byte)35, (byte)0x00); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_160), (byte)35, (byte)0x00); + this.addNoteOn( ch, 0, (byte)40, vel); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_160), (byte)35, (byte)0x00); + this.addNoteOn( ch, 0, (byte)35, vel); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_160), (byte)35, (byte)0x00); + this.addNoteOn( ch, 0, (byte)40, vel); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_160), (byte)35, (byte)0x00); + this.addNoteOn( ch, 0, (byte)35, vel); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_160), (byte)35, (byte)0x00); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_160), (byte)35, (byte)0x00); + this.addNoteOn( ch, 0, (byte)40, vel); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_160), (byte)35, (byte)0x00); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_160), (byte)35, (byte)0x00); + this.addNoteOn( ch, 0, (byte)35, vel); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_160), (byte)35, (byte)0x00); + this.addNoteOn( ch, 0, (byte)40, vel); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_160), (byte)35, (byte)0x00); + + this.addNoteOn( ch, 0, (byte)35, vel); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_160), (byte)35, (byte)0x00); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_160), (byte)35, (byte)0x00); + this.addNoteOn( ch, 0, (byte)35, vel); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_160), (byte)35, (byte)0x00); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_160), (byte)35, (byte)0x00); + this.addNoteOn( ch, 0, (byte)40, vel); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_160), (byte)35, (byte)0x00); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_160), (byte)35, (byte)0x00); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_160), (byte)35, (byte)0x00); + this.addNoteOn( ch, 0, (byte)40, vel); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_160), (byte)35, (byte)0x00); + this.addNoteOn( ch, 0, (byte)35, vel); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_160), (byte)35, (byte)0x00); + this.addNoteOn( ch, 0, (byte)40, vel); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_160), (byte)35, (byte)0x00); + this.addNoteOn( ch, 0, (byte)35, vel); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_160), (byte)35, (byte)0x00); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_160), (byte)35, (byte)0x00); + this.addNoteOn( ch, 0, (byte)40, vel); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_160), (byte)35, (byte)0x00); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_160), (byte)35, (byte)0x00); + this.addNoteOn( ch, 0, (byte)35, vel); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_160), (byte)35, (byte)0x00); + this.addNoteOn( ch, 0, (byte)40, vel); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_160), (byte)35, (byte)0x00); + + this.addNoteOn( ch, 0, (byte)35, vel); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_160), (byte)35, (byte)0x00); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_160), (byte)35, (byte)0x00); + this.addNoteOn( ch, 0, (byte)35, vel); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_160), (byte)35, (byte)0x00); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_160), (byte)35, (byte)0x00); + this.addNoteOn( ch, 0, (byte)40, vel); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_160), (byte)35, (byte)0x00); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_160), (byte)35, (byte)0x00); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_160), (byte)35, (byte)0x00); + this.addNoteOn( ch, 0, (byte)40, vel); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_160), (byte)35, (byte)0x00); + this.addNoteOn( ch, 0, (byte)35, vel); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_160), (byte)35, (byte)0x00); + this.addNoteOn( ch, 0, (byte)40, vel); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_160), (byte)35, (byte)0x00); + this.addNoteOn( ch, 0, (byte)35, vel); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_160), (byte)35, (byte)0x00); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_160), (byte)35, (byte)0x00); + this.addNoteOn( ch, 0, (byte)40, vel); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_160), (byte)35, (byte)0x00); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_160), (byte)35, (byte)0x00); + this.addNoteOn( ch, 0, (byte)35, vel); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_160), (byte)35, (byte)0x00); + this.addNoteOn( ch, 0, (byte)40, vel); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_160), (byte)35, (byte)0x00); + + this.closeTrackData(); + } + catch( Exception e ) + { + e.printStackTrace(); + } + } + + // ドラム管理1 protected void Song1Percuss( int no, byte vel ) { switch( no ) { case 0: - this.Song1PercussionA( (byte) 0x09, vel); + this.SongPercussionC( (byte) 0x09, vel); break; case 1: + this.Song1PercussionA( (byte) 0x09, vel); + break; + + case 2: this.Song1PercussionB( (byte) 0x09, vel ); break; default: - this.Song1PercussionA( (byte) 0x09, vel); + this.SongPercussionC( (byte) 0x09, vel); break; } } - // 伴奏A + // 伴奏A1 protected void Song1ArrangeA( byte ch, byte vel ) { try @@ -562,160 +816,232 @@ protected void Song1ArrangeA( byte ch, byte vel ) this.addNoteOn( ch, 0, (byte)NoteTone.C3, vel); this.addNoteOn( ch, 0, (byte)NoteTone.E3, vel); this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_080), (byte)NoteTone.C3, (byte)0x00); + this.addNoteOn( ch, 0, (byte)NoteTone.E3, (byte)0x00); this.addNoteOn( ch, 0, (byte)NoteTone.C3, vel); this.addNoteOn( ch, 0, (byte)NoteTone.E3, vel); this.addNoteOn( ch, 0, (byte)NoteTone.G3, vel); this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_080), (byte)NoteTone.C3, (byte)0x00); + this.addNoteOn( ch, 0, (byte)NoteTone.E3, (byte)0x00); + this.addNoteOn( ch, 0, (byte)NoteTone.G3, (byte)0x00); this.addNoteOn( ch, 0, (byte)NoteTone.C3, vel); this.addNoteOn( ch, 0, (byte)NoteTone.E3, vel); this.addNoteOn( ch, 0, (byte)NoteTone.G3, vel); this.addNoteOn( ch, 0, (byte)NoteTone.B3, vel); this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_080), (byte)NoteTone.C3, (byte)0x00); + this.addNoteOn( ch, 0, (byte)NoteTone.E3, (byte)0x00); + this.addNoteOn( ch, 0, (byte)NoteTone.G3, (byte)0x00); + this.addNoteOn( ch, 0, (byte)NoteTone.B3, (byte)0x00); this.addNoteOn( ch, 0, (byte)NoteTone.C3, vel); this.addNoteOn( ch, 0, (byte)NoteTone.E3, vel); this.addNoteOn( ch, 0, (byte)NoteTone.G3, vel); this.addNoteOn( ch, 0, (byte)NoteTone.B3, vel); this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_020), (byte)NoteTone.C3, (byte)0x00); + this.addNoteOn( ch, 0, (byte)NoteTone.E3, (byte)0x00); + this.addNoteOn( ch, 0, (byte)NoteTone.G3, (byte)0x00); + this.addNoteOn( ch, 0, (byte)NoteTone.B3, (byte)0x00); this.addNoteOn( ch, 0, (byte)NoteTone.G2, vel); this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_080), (byte)NoteTone.G2, (byte)0x00); this.addNoteOn( ch, 0, (byte)NoteTone.G2, vel); this.addNoteOn( ch, 0, (byte)NoteTone.B3, vel); this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_080), (byte)NoteTone.G2, (byte)0x00); + this.addNoteOn( ch, 0, (byte)NoteTone.B3, (byte)0x00); this.addNoteOn( ch, 0, (byte)NoteTone.G2, vel); this.addNoteOn( ch, 0, (byte)NoteTone.B3, vel); this.addNoteOn( ch, 0, (byte)NoteTone.D3, vel); - this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_080), (byte)NoteTone.G3, (byte)0x00); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_080), (byte)NoteTone.G2, (byte)0x00); + this.addNoteOn( ch, 0, (byte)NoteTone.B3, (byte)0x00); + this.addNoteOn( ch, 0, (byte)NoteTone.D3, (byte)0x00); this.addNoteOn( ch, 0, (byte)NoteTone.G3, vel); this.addNoteOn( ch, 0, (byte)NoteTone.B3, vel); this.addNoteOn( ch, 0, (byte)NoteTone.D3, vel); this.addNoteOn( ch, 0, (byte)NoteTone.FF3, vel); this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_080), (byte)NoteTone.G3, (byte)0x00); + this.addNoteOn( ch, 0, (byte)NoteTone.B3, (byte)0x00); + this.addNoteOn( ch, 0, (byte)NoteTone.D3, (byte)0x00); + this.addNoteOn( ch, 0, (byte)NoteTone.FF3, (byte)0x00); this.addNoteOn( ch, 0, (byte)NoteTone.G3, vel); this.addNoteOn( ch, 0, (byte)NoteTone.B3, vel); this.addNoteOn( ch, 0, (byte)NoteTone.D3, vel); this.addNoteOn( ch, 0, (byte)NoteTone.FF3, vel); this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_020), (byte)NoteTone.G3, (byte)0x00); + this.addNoteOn( ch, 0, (byte)NoteTone.B3, (byte)0x00); + this.addNoteOn( ch, 0, (byte)NoteTone.D3, (byte)0x00); + this.addNoteOn( ch, 0, (byte)NoteTone.FF3, (byte)0x00); this.addNoteOn( ch, 0, (byte)NoteTone.C3, vel); this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_080), (byte)NoteTone.C3, (byte)0x00); this.addNoteOn( ch, 0, (byte)NoteTone.C3, vel); this.addNoteOn( ch, 0, (byte)NoteTone.E3, vel); this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_080), (byte)NoteTone.C3, (byte)0x00); + this.addNoteOn( ch, 0, (byte)NoteTone.E3, (byte)0x00); this.addNoteOn( ch, 0, (byte)NoteTone.C3, vel); this.addNoteOn( ch, 0, (byte)NoteTone.E3, vel); this.addNoteOn( ch, 0, (byte)NoteTone.G3, vel); this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_080), (byte)NoteTone.C3, (byte)0x00); + this.addNoteOn( ch, 0, (byte)NoteTone.E3, (byte)0x00); + this.addNoteOn( ch, 0, (byte)NoteTone.G3, (byte)0x00); this.addNoteOn( ch, 0, (byte)NoteTone.C3, vel); this.addNoteOn( ch, 0, (byte)NoteTone.E3, vel); this.addNoteOn( ch, 0, (byte)NoteTone.G3, vel); this.addNoteOn( ch, 0, (byte)NoteTone.B3, vel); this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_080), (byte)NoteTone.C3, (byte)0x00); + this.addNoteOn( ch, 0, (byte)NoteTone.E3, (byte)0x00); + this.addNoteOn( ch, 0, (byte)NoteTone.G3, (byte)0x00); + this.addNoteOn( ch, 0, (byte)NoteTone.B3, (byte)0x00); this.addNoteOn( ch, 0, (byte)NoteTone.C3, vel); this.addNoteOn( ch, 0, (byte)NoteTone.E3, vel); this.addNoteOn( ch, 0, (byte)NoteTone.G3, vel); this.addNoteOn( ch, 0, (byte)NoteTone.B3, vel); this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_020), (byte)NoteTone.C3, (byte)0x00); + this.addNoteOn( ch, 0, (byte)NoteTone.E3, (byte)0x00); + this.addNoteOn( ch, 0, (byte)NoteTone.G3, (byte)0x00); + this.addNoteOn( ch, 0, (byte)NoteTone.B3, (byte)0x00); this.addNoteOn( ch, 0, (byte)NoteTone.G2, vel); this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_080), (byte)NoteTone.G2, (byte)0x00); this.addNoteOn( ch, 0, (byte)NoteTone.G2, vel); this.addNoteOn( ch, 0, (byte)NoteTone.B3, vel); this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_080), (byte)NoteTone.G2, (byte)0x00); + this.addNoteOn( ch, 0, (byte)NoteTone.B3, (byte)0x00); this.addNoteOn( ch, 0, (byte)NoteTone.G2, vel); this.addNoteOn( ch, 0, (byte)NoteTone.B3, vel); this.addNoteOn( ch, 0, (byte)NoteTone.D3, vel); - this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_080), (byte)NoteTone.G3, (byte)0x00); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_080), (byte)NoteTone.G2, (byte)0x00); + this.addNoteOn( ch, 0, (byte)NoteTone.B3, (byte)0x00); + this.addNoteOn( ch, 0, (byte)NoteTone.D3, (byte)0x00); this.addNoteOn( ch, 0, (byte)NoteTone.G3, vel); this.addNoteOn( ch, 0, (byte)NoteTone.B3, vel); this.addNoteOn( ch, 0, (byte)NoteTone.D3, vel); this.addNoteOn( ch, 0, (byte)NoteTone.FF3, vel); this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_080), (byte)NoteTone.G3, (byte)0x00); + this.addNoteOn( ch, 0, (byte)NoteTone.B3, (byte)0x00); + this.addNoteOn( ch, 0, (byte)NoteTone.D3, (byte)0x00); + this.addNoteOn( ch, 0, (byte)NoteTone.FF3, (byte)0x00); this.addNoteOn( ch, 0, (byte)NoteTone.G3, vel); this.addNoteOn( ch, 0, (byte)NoteTone.B3, vel); this.addNoteOn( ch, 0, (byte)NoteTone.D3, vel); this.addNoteOn( ch, 0, (byte)NoteTone.FF3, vel); this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_020), (byte)NoteTone.G3, (byte)0x00); + this.addNoteOn( ch, 0, (byte)NoteTone.B3, (byte)0x00); + this.addNoteOn( ch, 0, (byte)NoteTone.D3, (byte)0x00); + this.addNoteOn( ch, 0, (byte)NoteTone.FF3, (byte)0x00); this.addNoteOn( ch, 0, (byte)NoteTone.C3, vel); this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_080), (byte)NoteTone.C3, (byte)0x00); this.addNoteOn( ch, 0, (byte)NoteTone.C3, vel); this.addNoteOn( ch, 0, (byte)NoteTone.E3, vel); this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_080), (byte)NoteTone.C3, (byte)0x00); + this.addNoteOn( ch, 0, (byte)NoteTone.E3, (byte)0x00); this.addNoteOn( ch, 0, (byte)NoteTone.C3, vel); this.addNoteOn( ch, 0, (byte)NoteTone.E3, vel); this.addNoteOn( ch, 0, (byte)NoteTone.G3, vel); this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_080), (byte)NoteTone.C3, (byte)0x00); + this.addNoteOn( ch, 0, (byte)NoteTone.E3, (byte)0x00); + this.addNoteOn( ch, 0, (byte)NoteTone.G3, (byte)0x00); this.addNoteOn( ch, 0, (byte)NoteTone.C3, vel); this.addNoteOn( ch, 0, (byte)NoteTone.E3, vel); this.addNoteOn( ch, 0, (byte)NoteTone.G3, vel); this.addNoteOn( ch, 0, (byte)NoteTone.B3, vel); this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_080), (byte)NoteTone.C3, (byte)0x00); + this.addNoteOn( ch, 0, (byte)NoteTone.E3, (byte)0x00); + this.addNoteOn( ch, 0, (byte)NoteTone.G3, (byte)0x00); + this.addNoteOn( ch, 0, (byte)NoteTone.B3, (byte)0x00); this.addNoteOn( ch, 0, (byte)NoteTone.C3, vel); this.addNoteOn( ch, 0, (byte)NoteTone.E3, vel); this.addNoteOn( ch, 0, (byte)NoteTone.G3, vel); this.addNoteOn( ch, 0, (byte)NoteTone.B3, vel); this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_020), (byte)NoteTone.C3, (byte)0x00); + this.addNoteOn( ch, 0, (byte)NoteTone.E3, (byte)0x00); + this.addNoteOn( ch, 0, (byte)NoteTone.G3, (byte)0x00); + this.addNoteOn( ch, 0, (byte)NoteTone.B3, (byte)0x00); this.addNoteOn( ch, 0, (byte)NoteTone.G2, vel); this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_080), (byte)NoteTone.G2, (byte)0x00); this.addNoteOn( ch, 0, (byte)NoteTone.G2, vel); this.addNoteOn( ch, 0, (byte)NoteTone.B3, vel); this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_080), (byte)NoteTone.G2, (byte)0x00); + this.addNoteOn( ch, 0, (byte)NoteTone.B3, (byte)0x00); this.addNoteOn( ch, 0, (byte)NoteTone.G2, vel); this.addNoteOn( ch, 0, (byte)NoteTone.B3, vel); this.addNoteOn( ch, 0, (byte)NoteTone.D3, vel); - this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_080), (byte)NoteTone.G3, (byte)0x00); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_080), (byte)NoteTone.G2, (byte)0x00); + this.addNoteOn( ch, 0, (byte)NoteTone.B3, (byte)0x00); + this.addNoteOn( ch, 0, (byte)NoteTone.D3, (byte)0x00); this.addNoteOn( ch, 0, (byte)NoteTone.G3, vel); this.addNoteOn( ch, 0, (byte)NoteTone.B3, vel); this.addNoteOn( ch, 0, (byte)NoteTone.D3, vel); this.addNoteOn( ch, 0, (byte)NoteTone.FF3, vel); this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_080), (byte)NoteTone.G3, (byte)0x00); + this.addNoteOn( ch, 0, (byte)NoteTone.B3, (byte)0x00); + this.addNoteOn( ch, 0, (byte)NoteTone.D3, (byte)0x00); + this.addNoteOn( ch, 0, (byte)NoteTone.FF3, (byte)0x00); this.addNoteOn( ch, 0, (byte)NoteTone.G3, vel); this.addNoteOn( ch, 0, (byte)NoteTone.B3, vel); this.addNoteOn( ch, 0, (byte)NoteTone.D3, vel); this.addNoteOn( ch, 0, (byte)NoteTone.FF3, vel); this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_020), (byte)NoteTone.G3, (byte)0x00); + this.addNoteOn( ch, 0, (byte)NoteTone.B3, (byte)0x00); + this.addNoteOn( ch, 0, (byte)NoteTone.D3, (byte)0x00); + this.addNoteOn( ch, 0, (byte)NoteTone.FF3, (byte)0x00); this.addNoteOn( ch, 0, (byte)NoteTone.C3, vel); this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_080), (byte)NoteTone.C3, (byte)0x00); this.addNoteOn( ch, 0, (byte)NoteTone.C3, vel); this.addNoteOn( ch, 0, (byte)NoteTone.E3, vel); this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_080), (byte)NoteTone.C3, (byte)0x00); + this.addNoteOn( ch, 0, (byte)NoteTone.E3, (byte)0x00); this.addNoteOn( ch, 0, (byte)NoteTone.C3, vel); this.addNoteOn( ch, 0, (byte)NoteTone.E3, vel); this.addNoteOn( ch, 0, (byte)NoteTone.G3, vel); this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_080), (byte)NoteTone.C3, (byte)0x00); + this.addNoteOn( ch, 0, (byte)NoteTone.E3, (byte)0x00); + this.addNoteOn( ch, 0, (byte)NoteTone.G3, (byte)0x00); this.addNoteOn( ch, 0, (byte)NoteTone.C3, vel); this.addNoteOn( ch, 0, (byte)NoteTone.E3, vel); this.addNoteOn( ch, 0, (byte)NoteTone.G3, vel); this.addNoteOn( ch, 0, (byte)NoteTone.B3, vel); this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_080), (byte)NoteTone.C3, (byte)0x00); + this.addNoteOn( ch, 0, (byte)NoteTone.E3, (byte)0x00); + this.addNoteOn( ch, 0, (byte)NoteTone.G3, (byte)0x00); + this.addNoteOn( ch, 0, (byte)NoteTone.B3, (byte)0x00); this.addNoteOn( ch, 0, (byte)NoteTone.C3, vel); this.addNoteOn( ch, 0, (byte)NoteTone.E3, vel); this.addNoteOn( ch, 0, (byte)NoteTone.G3, vel); this.addNoteOn( ch, 0, (byte)NoteTone.B3, vel); this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_020), (byte)NoteTone.C3, (byte)0x00); + this.addNoteOn( ch, 0, (byte)NoteTone.E3, (byte)0x00); + this.addNoteOn( ch, 0, (byte)NoteTone.G3, (byte)0x00); + this.addNoteOn( ch, 0, (byte)NoteTone.B3, (byte)0x00); this.addNoteOn( ch, 0, (byte)NoteTone.G2, vel); this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_080), (byte)NoteTone.G2, (byte)0x00); this.addNoteOn( ch, 0, (byte)NoteTone.G2, vel); this.addNoteOn( ch, 0, (byte)NoteTone.B3, vel); this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_080), (byte)NoteTone.G2, (byte)0x00); + this.addNoteOn( ch, 0, (byte)NoteTone.B3, (byte)0x00); this.addNoteOn( ch, 0, (byte)NoteTone.G2, vel); this.addNoteOn( ch, 0, (byte)NoteTone.B3, vel); this.addNoteOn( ch, 0, (byte)NoteTone.D3, vel); - this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_080), (byte)NoteTone.G3, (byte)0x00); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_080), (byte)NoteTone.G2, (byte)0x00); + this.addNoteOn( ch, 0, (byte)NoteTone.B3, (byte)0x00); + this.addNoteOn( ch, 0, (byte)NoteTone.D3, (byte)0x00); this.addNoteOn( ch, 0, (byte)NoteTone.G3, vel); this.addNoteOn( ch, 0, (byte)NoteTone.B3, vel); this.addNoteOn( ch, 0, (byte)NoteTone.D3, vel); this.addNoteOn( ch, 0, (byte)NoteTone.FF3, vel); this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_080), (byte)NoteTone.G3, (byte)0x00); + this.addNoteOn( ch, 0, (byte)NoteTone.B3, (byte)0x00); + this.addNoteOn( ch, 0, (byte)NoteTone.D3, (byte)0x00); + this.addNoteOn( ch, 0, (byte)NoteTone.FF3, (byte)0x00); this.addNoteOn( ch, 0, (byte)NoteTone.G3, vel); this.addNoteOn( ch, 0, (byte)NoteTone.B3, vel); this.addNoteOn( ch, 0, (byte)NoteTone.D3, vel); this.addNoteOn( ch, 0, (byte)NoteTone.FF3, vel); this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_020), (byte)NoteTone.G3, (byte)0x00); + this.addNoteOn( ch, 0, (byte)NoteTone.B3, (byte)0x00); + this.addNoteOn( ch, 0, (byte)NoteTone.D3, (byte)0x00); + this.addNoteOn( ch, 0, (byte)NoteTone.FF3, (byte)0x00); this.closeTrackData(); } @@ -725,7 +1051,7 @@ protected void Song1ArrangeA( byte ch, byte vel ) } } - // 伴奏B + // 伴奏B1 protected void Song1ArrangeB( byte ch, byte vel ) { try @@ -875,7 +1201,7 @@ protected void Song1ArrangeB( byte ch, byte vel ) } /* オリジナル2 */ - //主旋律 + //主旋律2 protected void Song2Melody( byte ch, byte vel ) { try @@ -923,7 +1249,7 @@ protected void Song2Melody( byte ch, byte vel ) } } - // ドラムA + // ドラムA2 protected void Song2PercussionA( byte ch, byte vel ) { try @@ -1017,7 +1343,7 @@ protected void Song2PercussionA( byte ch, byte vel ) } } - // ドラムB + // ドラムB2 protected void Song2PercussionB( byte ch, byte vel ) { try @@ -1134,169 +1460,221 @@ protected void Song2PercussionB( byte ch, byte vel ) } } - // ドラム管理 + // ドラム管理2 protected void Song2Percuss( int no, byte vel ) { switch( no ) { case 0: - this.Song2PercussionA( (byte) 0x09, vel); + this.SongPercussionC( (byte) 0x09, vel); break; case 1: + this.Song2PercussionA( (byte) 0x09, vel); + break; + + case 2: this.Song2PercussionB( (byte) 0x09, vel ); break; default: - this.Song2PercussionA( (byte) 0x09, vel); + this.SongPercussionC( (byte) 0x09, vel); break; } } - // 伴奏A + // 伴奏A2 protected void Song2ArrangeA( byte ch, byte vel ) { try { this.addNoteOn( ch, 0, (byte)NoteTone.D3, vel); - this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_040), (byte)NoteTone.C3, (byte)0x00); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_040), (byte)NoteTone.D3, (byte)0x00); this.addNoteOn( ch, 0, (byte)NoteTone.FF3, vel); this.addNoteOn( ch, 0, (byte)NoteTone.A3, vel); - this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_080), (byte)NoteTone.C3, (byte)0x00); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_080), (byte)NoteTone.FF3, (byte)0x00); + this.addNoteOn( ch, 0, (byte)NoteTone.A3, (byte)0x00); this.addNoteOn( ch, 0, (byte)NoteTone.D3, vel); this.addNoteOn( ch, 0, (byte)NoteTone.FF3, vel); this.addNoteOn( ch, 0, (byte)NoteTone.A3, vel); - this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_080), (byte)NoteTone.C3, (byte)0x00); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_080), (byte)NoteTone.D3, (byte)0x00); + this.addNoteOn( ch, 0, (byte)NoteTone.FF3, (byte)0x00); + this.addNoteOn( ch, 0, (byte)NoteTone.A3, (byte)0x00); this.addNoteOn( ch, 0, (byte)NoteTone.D3, vel); this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_080), (byte)NoteTone.C3, (byte)0x00); this.addNoteOn( ch, 0, (byte)NoteTone.D3, vel); this.addNoteOn( ch, 0, (byte)NoteTone.FF3, vel); this.addNoteOn( ch, 0, (byte)NoteTone.A3, vel); - this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_080), (byte)NoteTone.C3, (byte)0x00); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_080), (byte)NoteTone.D3, (byte)0x00); + this.addNoteOn( ch, 0, (byte)NoteTone.FF3, (byte)0x00); + this.addNoteOn( ch, 0, (byte)NoteTone.A3, (byte)0x00); this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_080), (byte)NoteTone.C3, (byte)0x00); // 小節またぐ 080 this.addNoteOn( ch, 0, (byte)NoteTone.D3, vel); this.addNoteOn( ch, 0, (byte)NoteTone.FF3, vel); this.addNoteOn( ch, 0, (byte)NoteTone.A3, vel); - this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_040), (byte)NoteTone.C3, (byte)0x00); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_040), (byte)NoteTone.D3, (byte)0x00); + this.addNoteOn( ch, 0, (byte)NoteTone.FF3, (byte)0x00); + this.addNoteOn( ch, 0, (byte)NoteTone.A3, (byte)0x00); // 080 this.addNoteOn( ch, 0, (byte)NoteTone.D3, vel); - this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_080), (byte)NoteTone.C3, (byte)0x00); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_080), (byte)NoteTone.D3, (byte)0x00); this.addNoteOn( ch, 0, (byte)NoteTone.FF3, vel); this.addNoteOn( ch, 0, (byte)NoteTone.A3, vel); - this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_040), (byte)NoteTone.C3, (byte)0x00);this.addNoteOn( ch, 0, (byte)NoteTone.FF3, vel); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_040), (byte)NoteTone.FF3, (byte)0x00); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_080), (byte)NoteTone.A3, (byte)0x00); this.addNoteOn( ch, 0, (byte)NoteTone.D3, vel); - this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_040), (byte)NoteTone.C3, (byte)0x00); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_040), (byte)NoteTone.D3, (byte)0x00); this.addNoteOn( ch, 0, (byte)NoteTone.FF3, vel); this.addNoteOn( ch, 0, (byte)NoteTone.A3, vel); - this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_080), (byte)NoteTone.C3, (byte)0x00);this.addNoteOn( ch, 0, (byte)NoteTone.FF3, vel); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_080), (byte)NoteTone.FF3, (byte)0x00); + this.addNoteOn( ch, 0, (byte)NoteTone.A3, (byte)0x00); this.addNoteOn( ch, 0, (byte)NoteTone.D3, vel); this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_080), (byte)NoteTone.C3, (byte)0x00); + this.addNoteOn( ch, 0, (byte)NoteTone.G2, vel); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_040), (byte)NoteTone.G2, (byte)0x00); this.addNoteOn( ch, 0, (byte)NoteTone.D3, vel); - this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_040), (byte)NoteTone.C3, (byte)0x00); - this.addNoteOn( ch, 0, (byte)NoteTone.FF3, vel); - this.addNoteOn( ch, 0, (byte)NoteTone.A3, vel); - this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_080), (byte)NoteTone.C3, (byte)0x00); - this.addNoteOn( ch, 0, (byte)NoteTone.D3, vel); - this.addNoteOn( ch, 0, (byte)NoteTone.FF3, vel); - this.addNoteOn( ch, 0, (byte)NoteTone.A3, vel); - this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_080), (byte)NoteTone.C3, (byte)0x00); + this.addNoteOn( ch, 0, (byte)NoteTone.B2, vel); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_080), (byte)NoteTone.D3, (byte)0x00); + this.addNoteOn( ch, 0, (byte)NoteTone.B2, (byte)0x00); this.addNoteOn( ch, 0, (byte)NoteTone.D3, vel); - this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_080), (byte)NoteTone.C3, (byte)0x00); + this.addNoteOn( ch, 0, (byte)NoteTone.B2, vel); + this.addNoteOn( ch, 0, (byte)NoteTone.G2, vel); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_080), (byte)NoteTone.D3, (byte)0x00); + this.addNoteOn( ch, 0, (byte)NoteTone.B2, (byte)0x00); + this.addNoteOn( ch, 0, (byte)NoteTone.G2, (byte)0x00); + this.addNoteOn( ch, 0, (byte)NoteTone.G2, vel); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_080), (byte)NoteTone.G2, (byte)0x00); this.addNoteOn( ch, 0, (byte)NoteTone.D3, vel); - this.addNoteOn( ch, 0, (byte)NoteTone.FF3, vel); - this.addNoteOn( ch, 0, (byte)NoteTone.A3, vel); - this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_080), (byte)NoteTone.C3, (byte)0x00); - this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_080), (byte)NoteTone.C3, (byte)0x00); + this.addNoteOn( ch, 0, (byte)NoteTone.B2, vel); + this.addNoteOn( ch, 0, (byte)NoteTone.G2, vel); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_080), (byte)NoteTone.D3, (byte)0x00); + this.addNoteOn( ch, 0, (byte)NoteTone.B2, (byte)0x00); + this.addNoteOn( ch, 0, (byte)NoteTone.G2, (byte)0x00); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_080), (byte)NoteTone.B3, (byte)0x00); // 小節またぐ 080 this.addNoteOn( ch, 0, (byte)NoteTone.D3, vel); - this.addNoteOn( ch, 0, (byte)NoteTone.FF3, vel); - this.addNoteOn( ch, 0, (byte)NoteTone.A3, vel); - this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_040), (byte)NoteTone.C3, (byte)0x00); + this.addNoteOn( ch, 0, (byte)NoteTone.B2, vel); + this.addNoteOn( ch, 0, (byte)NoteTone.G2, vel); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_040), (byte)NoteTone.D3, (byte)0x00); + this.addNoteOn( ch, 0, (byte)NoteTone.B2, (byte)0x00); + this.addNoteOn( ch, 0, (byte)NoteTone.G2, (byte)0x00); // 080 + this.addNoteOn( ch, 0, (byte)NoteTone.G3, vel); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_080), (byte)NoteTone.G3, (byte)0x00); this.addNoteOn( ch, 0, (byte)NoteTone.D3, vel); - this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_080), (byte)NoteTone.C3, (byte)0x00); - this.addNoteOn( ch, 0, (byte)NoteTone.FF3, vel); - this.addNoteOn( ch, 0, (byte)NoteTone.A3, vel); - this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_040), (byte)NoteTone.C3, (byte)0x00);this.addNoteOn( ch, 0, (byte)NoteTone.FF3, vel); - this.addNoteOn( ch, 0, (byte)NoteTone.D3, vel); - this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_040), (byte)NoteTone.C3, (byte)0x00); - this.addNoteOn( ch, 0, (byte)NoteTone.FF3, vel); - this.addNoteOn( ch, 0, (byte)NoteTone.A3, vel); - this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_080), (byte)NoteTone.C3, (byte)0x00);this.addNoteOn( ch, 0, (byte)NoteTone.FF3, vel); - this.addNoteOn( ch, 0, (byte)NoteTone.D3, vel); - this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_080), (byte)NoteTone.C3, (byte)0x00); + this.addNoteOn( ch, 0, (byte)NoteTone.B2, vel); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_040), (byte)NoteTone.D3, (byte)0x00); + this.addNoteOn( ch, 0, (byte)NoteTone.B2, (byte)0x00); + this.addNoteOn( ch, 0, (byte)NoteTone.G3, vel); + this.addNoteOn( ch, 0, (byte)NoteTone.CC3, vel); + this.addNoteOn( ch, 0, (byte)NoteTone.A2, vel); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_040), (byte)NoteTone.G3, (byte)0x00); + this.addNoteOn( ch, 0, (byte)NoteTone.CC3, (byte)0x00); + this.addNoteOn( ch, 0, (byte)NoteTone.A2, (byte)0x00); + this.addNoteOn( ch, 0, (byte)NoteTone.A2, vel); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_080), (byte)NoteTone.A2, (byte)0x00); + this.addNoteOn( ch, 0, (byte)NoteTone.G3, vel); + this.addNoteOn( ch, 0, (byte)NoteTone.CC3, vel); + this.addNoteOn( ch, 0, (byte)NoteTone.A2, vel); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_080), (byte)NoteTone.G3, (byte)0x00); + this.addNoteOn( ch, 0, (byte)NoteTone.CC2, (byte)0x00); + this.addNoteOn( ch, 0, (byte)NoteTone.A2, (byte)0x00); this.addNoteOn( ch, 0, (byte)NoteTone.D3, vel); - this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_040), (byte)NoteTone.C3, (byte)0x00); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_040), (byte)NoteTone.D3, (byte)0x00); this.addNoteOn( ch, 0, (byte)NoteTone.FF3, vel); this.addNoteOn( ch, 0, (byte)NoteTone.A3, vel); - this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_080), (byte)NoteTone.C3, (byte)0x00); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_080), (byte)NoteTone.FF3, (byte)0x00); + this.addNoteOn( ch, 0, (byte)NoteTone.A3, (byte)0x00); this.addNoteOn( ch, 0, (byte)NoteTone.D3, vel); this.addNoteOn( ch, 0, (byte)NoteTone.FF3, vel); this.addNoteOn( ch, 0, (byte)NoteTone.A3, vel); - this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_080), (byte)NoteTone.C3, (byte)0x00); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_080), (byte)NoteTone.D3, (byte)0x00); + this.addNoteOn( ch, 0, (byte)NoteTone.FF3, (byte)0x00); + this.addNoteOn( ch, 0, (byte)NoteTone.A3, (byte)0x00); this.addNoteOn( ch, 0, (byte)NoteTone.D3, vel); this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_080), (byte)NoteTone.C3, (byte)0x00); this.addNoteOn( ch, 0, (byte)NoteTone.D3, vel); this.addNoteOn( ch, 0, (byte)NoteTone.FF3, vel); this.addNoteOn( ch, 0, (byte)NoteTone.A3, vel); - this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_080), (byte)NoteTone.C3, (byte)0x00); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_080), (byte)NoteTone.D3, (byte)0x00); + this.addNoteOn( ch, 0, (byte)NoteTone.FF3, (byte)0x00); + this.addNoteOn( ch, 0, (byte)NoteTone.A3, (byte)0x00); this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_080), (byte)NoteTone.C3, (byte)0x00); // 小節またぐ 080 this.addNoteOn( ch, 0, (byte)NoteTone.D3, vel); this.addNoteOn( ch, 0, (byte)NoteTone.FF3, vel); this.addNoteOn( ch, 0, (byte)NoteTone.A3, vel); - this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_040), (byte)NoteTone.C3, (byte)0x00); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_040), (byte)NoteTone.D3, (byte)0x00); + this.addNoteOn( ch, 0, (byte)NoteTone.FF3, (byte)0x00); + this.addNoteOn( ch, 0, (byte)NoteTone.A3, (byte)0x00); // 080 this.addNoteOn( ch, 0, (byte)NoteTone.D3, vel); - this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_080), (byte)NoteTone.C3, (byte)0x00); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_080), (byte)NoteTone.D3, (byte)0x00); this.addNoteOn( ch, 0, (byte)NoteTone.FF3, vel); this.addNoteOn( ch, 0, (byte)NoteTone.A3, vel); - this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_040), (byte)NoteTone.C3, (byte)0x00);this.addNoteOn( ch, 0, (byte)NoteTone.FF3, vel); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_040), (byte)NoteTone.FF3, (byte)0x00); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_080), (byte)NoteTone.A3, (byte)0x00); this.addNoteOn( ch, 0, (byte)NoteTone.D3, vel); - this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_040), (byte)NoteTone.C3, (byte)0x00); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_040), (byte)NoteTone.D3, (byte)0x00); this.addNoteOn( ch, 0, (byte)NoteTone.FF3, vel); this.addNoteOn( ch, 0, (byte)NoteTone.A3, vel); - this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_080), (byte)NoteTone.C3, (byte)0x00);this.addNoteOn( ch, 0, (byte)NoteTone.FF3, vel); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_080), (byte)NoteTone.FF3, (byte)0x00); + this.addNoteOn( ch, 0, (byte)NoteTone.A3, (byte)0x00); this.addNoteOn( ch, 0, (byte)NoteTone.D3, vel); this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_080), (byte)NoteTone.C3, (byte)0x00); + this.addNoteOn( ch, 0, (byte)NoteTone.G2, vel); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_040), (byte)NoteTone.G2, (byte)0x00); this.addNoteOn( ch, 0, (byte)NoteTone.D3, vel); - this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_040), (byte)NoteTone.C3, (byte)0x00); - this.addNoteOn( ch, 0, (byte)NoteTone.FF3, vel); - this.addNoteOn( ch, 0, (byte)NoteTone.A3, vel); - this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_080), (byte)NoteTone.C3, (byte)0x00); - this.addNoteOn( ch, 0, (byte)NoteTone.D3, vel); - this.addNoteOn( ch, 0, (byte)NoteTone.FF3, vel); - this.addNoteOn( ch, 0, (byte)NoteTone.A3, vel); - this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_080), (byte)NoteTone.C3, (byte)0x00); + this.addNoteOn( ch, 0, (byte)NoteTone.B2, vel); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_080), (byte)NoteTone.D3, (byte)0x00); + this.addNoteOn( ch, 0, (byte)NoteTone.B2, (byte)0x00); this.addNoteOn( ch, 0, (byte)NoteTone.D3, vel); - this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_080), (byte)NoteTone.C3, (byte)0x00); + this.addNoteOn( ch, 0, (byte)NoteTone.B2, vel); + this.addNoteOn( ch, 0, (byte)NoteTone.G2, vel); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_080), (byte)NoteTone.D3, (byte)0x00); + this.addNoteOn( ch, 0, (byte)NoteTone.B2, (byte)0x00); + this.addNoteOn( ch, 0, (byte)NoteTone.G2, (byte)0x00); + this.addNoteOn( ch, 0, (byte)NoteTone.G2, vel); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_080), (byte)NoteTone.G2, (byte)0x00); this.addNoteOn( ch, 0, (byte)NoteTone.D3, vel); - this.addNoteOn( ch, 0, (byte)NoteTone.FF3, vel); - this.addNoteOn( ch, 0, (byte)NoteTone.A3, vel); - this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_080), (byte)NoteTone.C3, (byte)0x00); - this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_080), (byte)NoteTone.C3, (byte)0x00); + this.addNoteOn( ch, 0, (byte)NoteTone.B2, vel); + this.addNoteOn( ch, 0, (byte)NoteTone.G2, vel); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_080), (byte)NoteTone.D3, (byte)0x00); + this.addNoteOn( ch, 0, (byte)NoteTone.B2, (byte)0x00); + this.addNoteOn( ch, 0, (byte)NoteTone.G2, (byte)0x00); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_080), (byte)NoteTone.B3, (byte)0x00); // 小節またぐ 080 this.addNoteOn( ch, 0, (byte)NoteTone.D3, vel); - this.addNoteOn( ch, 0, (byte)NoteTone.FF3, vel); - this.addNoteOn( ch, 0, (byte)NoteTone.A3, vel); - this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_040), (byte)NoteTone.C3, (byte)0x00); + this.addNoteOn( ch, 0, (byte)NoteTone.B2, vel); + this.addNoteOn( ch, 0, (byte)NoteTone.G2, vel); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_040), (byte)NoteTone.D3, (byte)0x00); + this.addNoteOn( ch, 0, (byte)NoteTone.B2, (byte)0x00); + this.addNoteOn( ch, 0, (byte)NoteTone.G2, (byte)0x00); // 080 + this.addNoteOn( ch, 0, (byte)NoteTone.G3, vel); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_080), (byte)NoteTone.G3, (byte)0x00); this.addNoteOn( ch, 0, (byte)NoteTone.D3, vel); - this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_080), (byte)NoteTone.C3, (byte)0x00); - this.addNoteOn( ch, 0, (byte)NoteTone.FF3, vel); - this.addNoteOn( ch, 0, (byte)NoteTone.A3, vel); - this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_040), (byte)NoteTone.C3, (byte)0x00);this.addNoteOn( ch, 0, (byte)NoteTone.FF3, vel); - this.addNoteOn( ch, 0, (byte)NoteTone.D3, vel); - this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_040), (byte)NoteTone.C3, (byte)0x00); - this.addNoteOn( ch, 0, (byte)NoteTone.FF3, vel); - this.addNoteOn( ch, 0, (byte)NoteTone.A3, vel); - this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_080), (byte)NoteTone.C3, (byte)0x00);this.addNoteOn( ch, 0, (byte)NoteTone.FF3, vel); - this.addNoteOn( ch, 0, (byte)NoteTone.D3, vel); - this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_080), (byte)NoteTone.C3, (byte)0x00); + this.addNoteOn( ch, 0, (byte)NoteTone.B2, vel); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_040), (byte)NoteTone.D3, (byte)0x00); + this.addNoteOn( ch, 0, (byte)NoteTone.B2, (byte)0x00); + this.addNoteOn( ch, 0, (byte)NoteTone.G3, vel); + this.addNoteOn( ch, 0, (byte)NoteTone.CC3, vel); + this.addNoteOn( ch, 0, (byte)NoteTone.A2, vel); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_040), (byte)NoteTone.G3, (byte)0x00); + this.addNoteOn( ch, 0, (byte)NoteTone.CC3, (byte)0x00); + this.addNoteOn( ch, 0, (byte)NoteTone.A2, (byte)0x00); + this.addNoteOn( ch, 0, (byte)NoteTone.A2, vel); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_080), (byte)NoteTone.A2, (byte)0x00); + this.addNoteOn( ch, 0, (byte)NoteTone.G3, vel); + this.addNoteOn( ch, 0, (byte)NoteTone.CC3, vel); + this.addNoteOn( ch, 0, (byte)NoteTone.A2, vel); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_080), (byte)NoteTone.G3, (byte)0x00); + this.addNoteOn( ch, 0, (byte)NoteTone.CC2, (byte)0x00); + this.addNoteOn( ch, 0, (byte)NoteTone.A2, (byte)0x00); this.closeTrackData(); } @@ -1306,7 +1684,7 @@ protected void Song2ArrangeA( byte ch, byte vel ) } } - // 伴奏B + // 伴奏B2 protected void Song2ArrangeB( byte ch, byte vel ) { try @@ -1364,4 +1742,2525 @@ protected void Song2ArrangeB( byte ch, byte vel ) e.printStackTrace(); } } + + /* オリジナル3 */ + //主旋律3 + protected void Song3Melody( byte ch, byte vel ) + { + try + { + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_080), (byte)NoteTone.C4, (byte)0x00); + this.addNoteOn( ch, 0, (byte)NoteTone.G3, vel); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_080), (byte)NoteTone.C4, (byte)0x00); + this.addNoteOn( ch, 0, (byte)NoteTone.A3, vel); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_080), (byte)NoteTone.C4, (byte)0x00); + this.addNoteOn( ch, 0, (byte)NoteTone.B3, vel); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_080), (byte)NoteTone.C4, (byte)0x00); + this.addNoteOn( ch, 0, (byte)NoteTone.C4, vel); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_080), (byte)NoteTone.C4, (byte)0x00); + this.addNoteOn( ch, 0, (byte)NoteTone.D4, vel); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_080), (byte)NoteTone.C4, (byte)0x00); + this.addNoteOn( ch, 0, (byte)NoteTone.E4, vel); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_080), (byte)NoteTone.C4, (byte)0x00); + this.addNoteOn( ch, 0, (byte)NoteTone.FF4, vel); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_080), (byte)NoteTone.C4, (byte)0x00); + + this.addNoteOn( ch, 0, (byte)NoteTone.D4, vel); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_020), (byte)NoteTone.C4, (byte)0x00); + this.addNoteOn( ch, 0, (byte)NoteTone.C4, vel); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_080), (byte)NoteTone.C4, (byte)0x00); + this.addNoteOn( ch, 0, (byte)NoteTone.B3, vel); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_080), (byte)NoteTone.C4, (byte)0x00); + + this.addNoteOn( ch, 0, (byte)NoteTone.C4, vel); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_045), (byte)NoteTone.C4, (byte)0x00); + this.addNoteOn( ch, 0, (byte)NoteTone.G3, vel); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_080), (byte)NoteTone.C4, (byte)0x00); + this.addNoteOn( ch, 0, (byte)NoteTone.A3, vel); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_080), (byte)NoteTone.C4, (byte)0x00); + this.addNoteOn( ch, 0, (byte)NoteTone.G3, vel); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_080), (byte)NoteTone.C4, (byte)0x00); + this.addNoteOn( ch, 0, (byte)NoteTone.FF3, vel); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_080), (byte)NoteTone.C4, (byte)0x00); + this.addNoteOn( ch, 0, (byte)NoteTone.E3, vel); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_080), (byte)NoteTone.C4, (byte)0x00); + + this.addNoteOn( ch, 0, (byte)NoteTone.D3, vel); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_020), (byte)NoteTone.C4, (byte)0x00); + this.addNoteOn( ch, 0, (byte)NoteTone.FF3, vel); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_020), (byte)NoteTone.C4, (byte)0x00); + + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_080), (byte)NoteTone.C4, (byte)0x00); + this.addNoteOn( ch, 0, (byte)NoteTone.G3, vel); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_080), (byte)NoteTone.C4, (byte)0x00); + this.addNoteOn( ch, 0, (byte)NoteTone.A3, vel); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_080), (byte)NoteTone.C4, (byte)0x00); + this.addNoteOn( ch, 0, (byte)NoteTone.B3, vel); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_080), (byte)NoteTone.C4, (byte)0x00); + this.addNoteOn( ch, 0, (byte)NoteTone.C4, vel); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_080), (byte)NoteTone.C4, (byte)0x00); + this.addNoteOn( ch, 0, (byte)NoteTone.D4, vel); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_080), (byte)NoteTone.C4, (byte)0x00); + this.addNoteOn( ch, 0, (byte)NoteTone.E4, vel); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_080), (byte)NoteTone.C4, (byte)0x00); + this.addNoteOn( ch, 0, (byte)NoteTone.FF4, vel); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_080), (byte)NoteTone.C4, (byte)0x00); + + this.addNoteOn( ch, 0, (byte)NoteTone.D4, vel); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_020), (byte)NoteTone.C4, (byte)0x00); + this.addNoteOn( ch, 0, (byte)NoteTone.FF4, vel); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_080), (byte)NoteTone.C4, (byte)0x00); + this.addNoteOn( ch, 0, (byte)NoteTone.G3, vel); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_080), (byte)NoteTone.C4, (byte)0x00); + + this.addNoteOn( ch, 0, (byte)NoteTone.A4, vel); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_045), (byte)NoteTone.C4, (byte)0x00); + this.addNoteOn( ch, 0, (byte)NoteTone.C4, vel); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_080), (byte)NoteTone.C4, (byte)0x00); + this.addNoteOn( ch, 0, (byte)NoteTone.D4, vel); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_080), (byte)NoteTone.C4, (byte)0x00); + this.addNoteOn( ch, 0, (byte)NoteTone.E4, vel); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_080), (byte)NoteTone.C4, (byte)0x00); + this.addNoteOn( ch, 0, (byte)NoteTone.FF4, vel); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_080), (byte)NoteTone.C4, (byte)0x00); + this.addNoteOn( ch, 0, (byte)NoteTone.G4, vel); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_080), (byte)NoteTone.C4, (byte)0x00); + + this.addNoteOn( ch, 0, (byte)NoteTone.A4, vel); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_045), (byte)NoteTone.C4, (byte)0x00); + + this.closeTrackData(); + } + catch( Exception e ) + { + e.printStackTrace(); + } + } + + //ドラムA3 + protected void Song3PercussionA( byte ch, byte vel ) + { + try + { + this.addNoteOn( ch, 0, (byte)35, vel); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_040), (byte)35, (byte)0x00); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_080), (byte)35, (byte)0x00); + this.addNoteOn( ch, 0, (byte)35, vel); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_040), (byte)35, (byte)0x00); + this.addNoteOn( ch, 0, (byte)35, vel); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_080), (byte)54, (byte)0x00); + this.addNoteOn( ch, 0, (byte)40, vel); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_040), (byte)54, (byte)0x00); + + this.addNoteOn( ch, 0, (byte)35, vel); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_040), (byte)35, (byte)0x00); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_080), (byte)35, (byte)0x00); + this.addNoteOn( ch, 0, (byte)35, vel); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_040), (byte)35, (byte)0x00); + this.addNoteOn( ch, 0, (byte)35, vel); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_080), (byte)54, (byte)0x00); + this.addNoteOn( ch, 0, (byte)40, vel); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_040), (byte)54, (byte)0x00); + + this.addNoteOn( ch, 0, (byte)35, vel); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_040), (byte)35, (byte)0x00); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_080), (byte)35, (byte)0x00); + this.addNoteOn( ch, 0, (byte)35, vel); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_040), (byte)35, (byte)0x00); + this.addNoteOn( ch, 0, (byte)35, vel); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_080), (byte)54, (byte)0x00); + this.addNoteOn( ch, 0, (byte)40, vel); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_040), (byte)54, (byte)0x00); + + this.addNoteOn( ch, 0, (byte)35, vel); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_040), (byte)35, (byte)0x00); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_080), (byte)35, (byte)0x00); + this.addNoteOn( ch, 0, (byte)35, vel); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_040), (byte)35, (byte)0x00); + this.addNoteOn( ch, 0, (byte)35, vel); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_080), (byte)54, (byte)0x00); + this.addNoteOn( ch, 0, (byte)40, vel); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_040), (byte)54, (byte)0x00); + + this.addNoteOn( ch, 0, (byte)35, vel); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_040), (byte)35, (byte)0x00); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_080), (byte)35, (byte)0x00); + this.addNoteOn( ch, 0, (byte)35, vel); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_040), (byte)35, (byte)0x00); + this.addNoteOn( ch, 0, (byte)35, vel); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_080), (byte)54, (byte)0x00); + this.addNoteOn( ch, 0, (byte)40, vel); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_040), (byte)54, (byte)0x00); + + this.addNoteOn( ch, 0, (byte)35, vel); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_040), (byte)35, (byte)0x00); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_080), (byte)35, (byte)0x00); + this.addNoteOn( ch, 0, (byte)35, vel); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_040), (byte)35, (byte)0x00); + this.addNoteOn( ch, 0, (byte)35, vel); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_080), (byte)54, (byte)0x00); + this.addNoteOn( ch, 0, (byte)40, vel); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_040), (byte)54, (byte)0x00); + + this.addNoteOn( ch, 0, (byte)35, vel); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_040), (byte)35, (byte)0x00); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_080), (byte)35, (byte)0x00); + this.addNoteOn( ch, 0, (byte)35, vel); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_040), (byte)35, (byte)0x00); + this.addNoteOn( ch, 0, (byte)35, vel); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_080), (byte)54, (byte)0x00); + this.addNoteOn( ch, 0, (byte)40, vel); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_040), (byte)54, (byte)0x00); + + this.addNoteOn( ch, 0, (byte)35, vel); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_040), (byte)35, (byte)0x00); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_080), (byte)35, (byte)0x00); + this.addNoteOn( ch, 0, (byte)35, vel); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_040), (byte)35, (byte)0x00); + this.addNoteOn( ch, 0, (byte)35, vel); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_080), (byte)54, (byte)0x00); + this.addNoteOn( ch, 0, (byte)40, vel); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_040), (byte)54, (byte)0x00); + + this.closeTrackData(); + } + catch( Exception e ) + { + e.printStackTrace(); + } + } + + //ドラムB3 + protected void Song3PercussionB( byte ch, byte vel ) + { + try + { + this.addNoteOn( ch, 0, (byte)35, vel); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_040), (byte)35, (byte)0x00); + this.addNoteOn( ch, 0, (byte)40, vel); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_040), (byte)35, (byte)0x00); + this.addNoteOn( ch, 0, (byte)35, vel); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_160), (byte)54, (byte)0x00); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_160), (byte)54, (byte)0x00); + this.addNoteOn( ch, 0, (byte)35, vel); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_160), (byte)54, (byte)0x00); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_160), (byte)54, (byte)0x00); + this.addNoteOn( ch, 0, (byte)40, vel); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_040), (byte)35, (byte)0x00); + + this.addNoteOn( ch, 0, (byte)35, vel); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_040), (byte)35, (byte)0x00); + this.addNoteOn( ch, 0, (byte)40, vel); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_040), (byte)35, (byte)0x00); + this.addNoteOn( ch, 0, (byte)35, vel); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_160), (byte)54, (byte)0x00); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_160), (byte)54, (byte)0x00); + this.addNoteOn( ch, 0, (byte)35, vel); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_160), (byte)54, (byte)0x00); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_160), (byte)54, (byte)0x00); + this.addNoteOn( ch, 0, (byte)40, vel); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_040), (byte)35, (byte)0x00); + + this.addNoteOn( ch, 0, (byte)35, vel); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_040), (byte)35, (byte)0x00); + this.addNoteOn( ch, 0, (byte)40, vel); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_040), (byte)35, (byte)0x00); + this.addNoteOn( ch, 0, (byte)35, vel); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_160), (byte)54, (byte)0x00); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_160), (byte)54, (byte)0x00); + this.addNoteOn( ch, 0, (byte)35, vel); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_160), (byte)54, (byte)0x00); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_160), (byte)54, (byte)0x00); + this.addNoteOn( ch, 0, (byte)40, vel); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_040), (byte)35, (byte)0x00); + + this.addNoteOn( ch, 0, (byte)35, vel); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_040), (byte)35, (byte)0x00); + this.addNoteOn( ch, 0, (byte)40, vel); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_040), (byte)35, (byte)0x00); + this.addNoteOn( ch, 0, (byte)35, vel); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_160), (byte)54, (byte)0x00); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_160), (byte)54, (byte)0x00); + this.addNoteOn( ch, 0, (byte)35, vel); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_160), (byte)54, (byte)0x00); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_160), (byte)54, (byte)0x00); + this.addNoteOn( ch, 0, (byte)40, vel); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_040), (byte)35, (byte)0x00); + + this.addNoteOn( ch, 0, (byte)35, vel); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_040), (byte)35, (byte)0x00); + this.addNoteOn( ch, 0, (byte)40, vel); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_040), (byte)35, (byte)0x00); + this.addNoteOn( ch, 0, (byte)35, vel); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_160), (byte)54, (byte)0x00); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_160), (byte)54, (byte)0x00); + this.addNoteOn( ch, 0, (byte)35, vel); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_160), (byte)54, (byte)0x00); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_160), (byte)54, (byte)0x00); + this.addNoteOn( ch, 0, (byte)40, vel); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_040), (byte)35, (byte)0x00); + + this.addNoteOn( ch, 0, (byte)35, vel); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_040), (byte)35, (byte)0x00); + this.addNoteOn( ch, 0, (byte)40, vel); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_040), (byte)35, (byte)0x00); + this.addNoteOn( ch, 0, (byte)35, vel); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_160), (byte)54, (byte)0x00); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_160), (byte)54, (byte)0x00); + this.addNoteOn( ch, 0, (byte)35, vel); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_160), (byte)54, (byte)0x00); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_160), (byte)54, (byte)0x00); + this.addNoteOn( ch, 0, (byte)40, vel); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_040), (byte)35, (byte)0x00); + + this.addNoteOn( ch, 0, (byte)35, vel); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_040), (byte)35, (byte)0x00); + this.addNoteOn( ch, 0, (byte)40, vel); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_040), (byte)35, (byte)0x00); + this.addNoteOn( ch, 0, (byte)35, vel); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_160), (byte)54, (byte)0x00); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_160), (byte)54, (byte)0x00); + this.addNoteOn( ch, 0, (byte)35, vel); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_160), (byte)54, (byte)0x00); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_160), (byte)54, (byte)0x00); + this.addNoteOn( ch, 0, (byte)40, vel); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_040), (byte)35, (byte)0x00); + + this.addNoteOn( ch, 0, (byte)35, vel); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_040), (byte)35, (byte)0x00); + this.addNoteOn( ch, 0, (byte)40, vel); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_040), (byte)35, (byte)0x00); + this.addNoteOn( ch, 0, (byte)35, vel); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_160), (byte)54, (byte)0x00); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_160), (byte)54, (byte)0x00); + this.addNoteOn( ch, 0, (byte)35, vel); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_160), (byte)54, (byte)0x00); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_160), (byte)54, (byte)0x00); + this.addNoteOn( ch, 0, (byte)40, vel); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_040), (byte)35, (byte)0x00); + + + this.closeTrackData(); + } + catch( Exception e ) + { + e.printStackTrace(); + } + } + + //ドラム管理3 + protected void Song3Percuss( int no, byte vel ) + { + switch( no ) + { + case 0: + this.SongPercussionC( (byte) 0x09, vel); + break; + + case 1: + this.Song3PercussionA( (byte) 0x09, vel); + break; + + case 2: + this.Song3PercussionB( (byte) 0x09, vel ); + break; + + default: + this.SongPercussionC( (byte) 0x09, vel); + break; + } + } + + // 伴奏A3 + protected void Song3ArrangeA( byte ch, byte vel ) + { + try + { + this.addNoteOn( ch, 0, (byte)NoteTone.G2, vel); + this.addNoteOn( ch, 0, (byte)NoteTone.B2, vel); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_040), (byte)NoteTone.G2, (byte)0x00); + this.addNoteOn( ch, 0, (byte)NoteTone.B2, (byte)0x00); + this.addNoteOn( ch, 0, (byte)NoteTone.G2, vel); + this.addNoteOn( ch, 0, (byte)NoteTone.B2, vel); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_045), (byte)NoteTone.G2, (byte)0x00); + this.addNoteOn( ch, 0, (byte)NoteTone.B2, (byte)0x00); + this.addNoteOn( ch, 0, (byte)NoteTone.G2, vel); + this.addNoteOn( ch, 0, (byte)NoteTone.B2, vel); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_045), (byte)NoteTone.G2, (byte)0x00); + this.addNoteOn( ch, 0, (byte)NoteTone.B2, (byte)0x00); + + this.addNoteOn( ch, 0, (byte)NoteTone.D3, vel); + this.addNoteOn( ch, 0, (byte)NoteTone.B2, vel); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_045), (byte)NoteTone.D3, (byte)0x00); + this.addNoteOn( ch, 0, (byte)NoteTone.B2, (byte)0x00); + this.addNoteOn( ch, 0, (byte)NoteTone.D3, vel); + this.addNoteOn( ch, 0, (byte)NoteTone.B2, vel); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_045), (byte)NoteTone.D3, (byte)0x00); + this.addNoteOn( ch, 0, (byte)NoteTone.B2, (byte)0x00); + this.addNoteOn( ch, 0, (byte)NoteTone.D3, vel); + this.addNoteOn( ch, 0, (byte)NoteTone.B2, vel); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_040), (byte)NoteTone.D3, (byte)0x00); + this.addNoteOn( ch, 0, (byte)NoteTone.B2, (byte)0x00); + + this.addNoteOn( ch, 0, (byte)NoteTone.E3, vel); + this.addNoteOn( ch, 0, (byte)NoteTone.C3, vel); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_045), (byte)NoteTone.E3, (byte)0x00); + this.addNoteOn( ch, 0, (byte)NoteTone.C3, (byte)0x00); + this.addNoteOn( ch, 0, (byte)NoteTone.E3, vel); + this.addNoteOn( ch, 0, (byte)NoteTone.C3, vel); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_045), (byte)NoteTone.E3, (byte)0x00); + this.addNoteOn( ch, 0, (byte)NoteTone.C3, (byte)0x00); + this.addNoteOn( ch, 0, (byte)NoteTone.E3, vel); + this.addNoteOn( ch, 0, (byte)NoteTone.C3, vel); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_040), (byte)NoteTone.E3, (byte)0x00); + this.addNoteOn( ch, 0, (byte)NoteTone.C3, (byte)0x00); + + this.addNoteOn( ch, 0, (byte)NoteTone.FF3, vel); + this.addNoteOn( ch, 0, (byte)NoteTone.D2, vel); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_045), (byte)NoteTone.FF3, (byte)0x00); + this.addNoteOn( ch, 0, (byte)NoteTone.D3, (byte)0x00); + this.addNoteOn( ch, 0, (byte)NoteTone.FF3, vel); + this.addNoteOn( ch, 0, (byte)NoteTone.D2, vel); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_045), (byte)NoteTone.FF3, (byte)0x00); + this.addNoteOn( ch, 0, (byte)NoteTone.D2, (byte)0x00); + this.addNoteOn( ch, 0, (byte)NoteTone.FF3, vel); + this.addNoteOn( ch, 0, (byte)NoteTone.D2, vel); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_040), (byte)NoteTone.FF3, (byte)0x00); + this.addNoteOn( ch, 0, (byte)NoteTone.D2, (byte)0x00); + + this.addNoteOn( ch, 0, (byte)NoteTone.G2, vel); + this.addNoteOn( ch, 0, (byte)NoteTone.B2, vel); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_040), (byte)NoteTone.G2, (byte)0x00); + this.addNoteOn( ch, 0, (byte)NoteTone.B2, (byte)0x00); + this.addNoteOn( ch, 0, (byte)NoteTone.G2, vel); + this.addNoteOn( ch, 0, (byte)NoteTone.B2, vel); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_045), (byte)NoteTone.G2, (byte)0x00); + this.addNoteOn( ch, 0, (byte)NoteTone.B2, (byte)0x00); + this.addNoteOn( ch, 0, (byte)NoteTone.G2, vel); + this.addNoteOn( ch, 0, (byte)NoteTone.B2, vel); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_045), (byte)NoteTone.G2, (byte)0x00); + this.addNoteOn( ch, 0, (byte)NoteTone.B2, (byte)0x00); + + this.addNoteOn( ch, 0, (byte)NoteTone.D3, vel); + this.addNoteOn( ch, 0, (byte)NoteTone.B2, vel); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_045), (byte)NoteTone.D3, (byte)0x00); + this.addNoteOn( ch, 0, (byte)NoteTone.B2, (byte)0x00); + this.addNoteOn( ch, 0, (byte)NoteTone.D3, vel); + this.addNoteOn( ch, 0, (byte)NoteTone.B2, vel); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_045), (byte)NoteTone.D3, (byte)0x00); + this.addNoteOn( ch, 0, (byte)NoteTone.B2, (byte)0x00); + this.addNoteOn( ch, 0, (byte)NoteTone.D3, vel); + this.addNoteOn( ch, 0, (byte)NoteTone.B2, vel); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_040), (byte)NoteTone.D3, (byte)0x00); + this.addNoteOn( ch, 0, (byte)NoteTone.B2, (byte)0x00); + + this.addNoteOn( ch, 0, (byte)NoteTone.E3, vel); + this.addNoteOn( ch, 0, (byte)NoteTone.C3, vel); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_045), (byte)NoteTone.E3, (byte)0x00); + this.addNoteOn( ch, 0, (byte)NoteTone.C3, (byte)0x00); + this.addNoteOn( ch, 0, (byte)NoteTone.E3, vel); + this.addNoteOn( ch, 0, (byte)NoteTone.C3, vel); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_045), (byte)NoteTone.E3, (byte)0x00); + this.addNoteOn( ch, 0, (byte)NoteTone.C3, (byte)0x00); + this.addNoteOn( ch, 0, (byte)NoteTone.E3, vel); + this.addNoteOn( ch, 0, (byte)NoteTone.C3, vel); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_040), (byte)NoteTone.E3, (byte)0x00); + this.addNoteOn( ch, 0, (byte)NoteTone.C3, (byte)0x00); + + this.addNoteOn( ch, 0, (byte)NoteTone.FF3, vel); + this.addNoteOn( ch, 0, (byte)NoteTone.D2, vel); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_045), (byte)NoteTone.FF3, (byte)0x00); + this.addNoteOn( ch, 0, (byte)NoteTone.D3, (byte)0x00); + this.addNoteOn( ch, 0, (byte)NoteTone.FF3, vel); + this.addNoteOn( ch, 0, (byte)NoteTone.D2, vel); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_045), (byte)NoteTone.FF3, (byte)0x00); + this.addNoteOn( ch, 0, (byte)NoteTone.D2, (byte)0x00); + this.addNoteOn( ch, 0, (byte)NoteTone.FF3, vel); + this.addNoteOn( ch, 0, (byte)NoteTone.D2, vel); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_040), (byte)NoteTone.FF3, (byte)0x00); + this.addNoteOn( ch, 0, (byte)NoteTone.D2, (byte)0x00); + + this.closeTrackData(); + } + catch( Exception e ) + { + e.printStackTrace(); + } + } + + //伴奏B3 + protected void Song3ArrangeB( byte ch, byte vel ) + { + try + { + this.addNoteOn( ch, 0, (byte)NoteTone.G5, vel); + this.addNoteOn( ch, 0, (byte)NoteTone.B5, vel); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_160), (byte)NoteTone.G5, (byte)0x00); + this.addNoteOn( ch, 0, (byte)NoteTone.B5, (byte)0x00); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_160), (byte)NoteTone.C3, (byte)0x00); + this.addNoteOn( ch, 0, (byte)NoteTone.G5, vel); + this.addNoteOn( ch, 0, (byte)NoteTone.B5, vel); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_160), (byte)NoteTone.G5, (byte)0x00); + this.addNoteOn( ch, 0, (byte)NoteTone.B5, (byte)0x00); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_160), (byte)NoteTone.C3, (byte)0x00); + this.addNoteOn( ch, 0, (byte)NoteTone.G5, vel); + this.addNoteOn( ch, 0, (byte)NoteTone.B5, vel); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_160), (byte)NoteTone.G5, (byte)0x00); + this.addNoteOn( ch, 0, (byte)NoteTone.B5, (byte)0x00); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_160), (byte)NoteTone.C3, (byte)0x00); + this.addNoteOn( ch, 0, (byte)NoteTone.G5, vel); + this.addNoteOn( ch, 0, (byte)NoteTone.B5, vel); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_160), (byte)NoteTone.G5, (byte)0x00); + this.addNoteOn( ch, 0, (byte)NoteTone.B5, (byte)0x00); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_160), (byte)NoteTone.C3, (byte)0x00); + this.addNoteOn( ch, 0, (byte)NoteTone.G5, vel); + this.addNoteOn( ch, 0, (byte)NoteTone.B5, vel); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_160), (byte)NoteTone.G5, (byte)0x00); + this.addNoteOn( ch, 0, (byte)NoteTone.B5, (byte)0x00); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_160), (byte)NoteTone.C3, (byte)0x00); + this.addNoteOn( ch, 0, (byte)NoteTone.G5, vel); + this.addNoteOn( ch, 0, (byte)NoteTone.B5, vel); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_160), (byte)NoteTone.G5, (byte)0x00); + this.addNoteOn( ch, 0, (byte)NoteTone.B5, (byte)0x00); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_160), (byte)NoteTone.C3, (byte)0x00); + this.addNoteOn( ch, 0, (byte)NoteTone.G5, vel); + this.addNoteOn( ch, 0, (byte)NoteTone.B5, vel); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_160), (byte)NoteTone.G5, (byte)0x00); + this.addNoteOn( ch, 0, (byte)NoteTone.B5, (byte)0x00); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_160), (byte)NoteTone.C3, (byte)0x00); + this.addNoteOn( ch, 0, (byte)NoteTone.G5, vel); + this.addNoteOn( ch, 0, (byte)NoteTone.B5, vel); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_160), (byte)NoteTone.G5, (byte)0x00); + this.addNoteOn( ch, 0, (byte)NoteTone.B5, (byte)0x00); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_160), (byte)NoteTone.C3, (byte)0x00); + + this.addNoteOn( ch, 0, (byte)NoteTone.G5, vel); + this.addNoteOn( ch, 0, (byte)NoteTone.B5, vel); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_160), (byte)NoteTone.G5, (byte)0x00); + this.addNoteOn( ch, 0, (byte)NoteTone.B5, (byte)0x00); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_160), (byte)NoteTone.C3, (byte)0x00); + this.addNoteOn( ch, 0, (byte)NoteTone.G5, vel); + this.addNoteOn( ch, 0, (byte)NoteTone.B5, vel); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_160), (byte)NoteTone.G5, (byte)0x00); + this.addNoteOn( ch, 0, (byte)NoteTone.B5, (byte)0x00); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_160), (byte)NoteTone.C3, (byte)0x00); + this.addNoteOn( ch, 0, (byte)NoteTone.G5, vel); + this.addNoteOn( ch, 0, (byte)NoteTone.B5, vel); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_160), (byte)NoteTone.G5, (byte)0x00); + this.addNoteOn( ch, 0, (byte)NoteTone.B5, (byte)0x00); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_160), (byte)NoteTone.C3, (byte)0x00); + this.addNoteOn( ch, 0, (byte)NoteTone.G5, vel); + this.addNoteOn( ch, 0, (byte)NoteTone.B5, vel); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_160), (byte)NoteTone.G5, (byte)0x00); + this.addNoteOn( ch, 0, (byte)NoteTone.B5, (byte)0x00); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_160), (byte)NoteTone.C3, (byte)0x00); + this.addNoteOn( ch, 0, (byte)NoteTone.G5, vel); + this.addNoteOn( ch, 0, (byte)NoteTone.B5, vel); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_160), (byte)NoteTone.G5, (byte)0x00); + this.addNoteOn( ch, 0, (byte)NoteTone.B5, (byte)0x00); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_160), (byte)NoteTone.C3, (byte)0x00); + this.addNoteOn( ch, 0, (byte)NoteTone.G5, vel); + this.addNoteOn( ch, 0, (byte)NoteTone.B5, vel); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_160), (byte)NoteTone.G5, (byte)0x00); + this.addNoteOn( ch, 0, (byte)NoteTone.B5, (byte)0x00); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_160), (byte)NoteTone.C3, (byte)0x00); + this.addNoteOn( ch, 0, (byte)NoteTone.G5, vel); + this.addNoteOn( ch, 0, (byte)NoteTone.B5, vel); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_160), (byte)NoteTone.G5, (byte)0x00); + this.addNoteOn( ch, 0, (byte)NoteTone.B5, (byte)0x00); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_160), (byte)NoteTone.C3, (byte)0x00); + this.addNoteOn( ch, 0, (byte)NoteTone.G5, vel); + this.addNoteOn( ch, 0, (byte)NoteTone.B5, vel); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_160), (byte)NoteTone.G5, (byte)0x00); + this.addNoteOn( ch, 0, (byte)NoteTone.B5, (byte)0x00); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_160), (byte)NoteTone.C3, (byte)0x00); + + this.addNoteOn( ch, 0, (byte)NoteTone.C5, vel); + this.addNoteOn( ch, 0, (byte)NoteTone.E5, vel); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_160), (byte)NoteTone.C5, (byte)0x00); + this.addNoteOn( ch, 0, (byte)NoteTone.E5, (byte)0x00); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_160), (byte)NoteTone.C3, (byte)0x00); + this.addNoteOn( ch, 0, (byte)NoteTone.C5, vel); + this.addNoteOn( ch, 0, (byte)NoteTone.E5, vel); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_160), (byte)NoteTone.C5, (byte)0x00); + this.addNoteOn( ch, 0, (byte)NoteTone.E5, (byte)0x00); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_160), (byte)NoteTone.C3, (byte)0x00); + this.addNoteOn( ch, 0, (byte)NoteTone.C5, vel); + this.addNoteOn( ch, 0, (byte)NoteTone.E5, vel); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_160), (byte)NoteTone.C5, (byte)0x00); + this.addNoteOn( ch, 0, (byte)NoteTone.E5, (byte)0x00); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_160), (byte)NoteTone.C3, (byte)0x00); + this.addNoteOn( ch, 0, (byte)NoteTone.C5, vel); + this.addNoteOn( ch, 0, (byte)NoteTone.E5, vel); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_160), (byte)NoteTone.C5, (byte)0x00); + this.addNoteOn( ch, 0, (byte)NoteTone.E5, (byte)0x00); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_160), (byte)NoteTone.C3, (byte)0x00); + this.addNoteOn( ch, 0, (byte)NoteTone.C5, vel); + this.addNoteOn( ch, 0, (byte)NoteTone.E5, vel); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_160), (byte)NoteTone.C5, (byte)0x00); + this.addNoteOn( ch, 0, (byte)NoteTone.E5, (byte)0x00); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_160), (byte)NoteTone.C3, (byte)0x00); + this.addNoteOn( ch, 0, (byte)NoteTone.C5, vel); + this.addNoteOn( ch, 0, (byte)NoteTone.E5, vel); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_160), (byte)NoteTone.C5, (byte)0x00); + this.addNoteOn( ch, 0, (byte)NoteTone.E5, (byte)0x00); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_160), (byte)NoteTone.C3, (byte)0x00); + this.addNoteOn( ch, 0, (byte)NoteTone.C5, vel); + this.addNoteOn( ch, 0, (byte)NoteTone.E5, vel); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_160), (byte)NoteTone.C5, (byte)0x00); + this.addNoteOn( ch, 0, (byte)NoteTone.E5, (byte)0x00); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_160), (byte)NoteTone.C3, (byte)0x00); + this.addNoteOn( ch, 0, (byte)NoteTone.C5, vel); + this.addNoteOn( ch, 0, (byte)NoteTone.E5, vel); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_160), (byte)NoteTone.C5, (byte)0x00); + this.addNoteOn( ch, 0, (byte)NoteTone.E5, (byte)0x00); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_160), (byte)NoteTone.C3, (byte)0x00); + + + this.addNoteOn( ch, 0, (byte)NoteTone.D5, vel); + this.addNoteOn( ch, 0, (byte)NoteTone.FF5, vel); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_160), (byte)NoteTone.D5, (byte)0x00); + this.addNoteOn( ch, 0, (byte)NoteTone.FF5, (byte)0x00); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_160), (byte)NoteTone.C3, (byte)0x00); + this.addNoteOn( ch, 0, (byte)NoteTone.D5, vel); + this.addNoteOn( ch, 0, (byte)NoteTone.FF5, vel); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_160), (byte)NoteTone.D5, (byte)0x00); + this.addNoteOn( ch, 0, (byte)NoteTone.FF5, (byte)0x00); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_160), (byte)NoteTone.C3, (byte)0x00); + this.addNoteOn( ch, 0, (byte)NoteTone.D5, vel); + this.addNoteOn( ch, 0, (byte)NoteTone.FF5, vel); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_160), (byte)NoteTone.D5, (byte)0x00); + this.addNoteOn( ch, 0, (byte)NoteTone.FF5, (byte)0x00); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_160), (byte)NoteTone.C3, (byte)0x00); + this.addNoteOn( ch, 0, (byte)NoteTone.D5, vel); + this.addNoteOn( ch, 0, (byte)NoteTone.FF5, vel); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_160), (byte)NoteTone.D5, (byte)0x00); + this.addNoteOn( ch, 0, (byte)NoteTone.FF5, (byte)0x00); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_160), (byte)NoteTone.C3, (byte)0x00); + this.addNoteOn( ch, 0, (byte)NoteTone.D5, vel); + this.addNoteOn( ch, 0, (byte)NoteTone.FF5, vel); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_160), (byte)NoteTone.D5, (byte)0x00); + this.addNoteOn( ch, 0, (byte)NoteTone.FF5, (byte)0x00); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_160), (byte)NoteTone.C3, (byte)0x00); + this.addNoteOn( ch, 0, (byte)NoteTone.D5, vel); + this.addNoteOn( ch, 0, (byte)NoteTone.FF5, vel); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_160), (byte)NoteTone.D5, (byte)0x00); + this.addNoteOn( ch, 0, (byte)NoteTone.FF5, (byte)0x00); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_160), (byte)NoteTone.C3, (byte)0x00); + this.addNoteOn( ch, 0, (byte)NoteTone.D5, vel); + this.addNoteOn( ch, 0, (byte)NoteTone.FF5, vel); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_160), (byte)NoteTone.D5, (byte)0x00); + this.addNoteOn( ch, 0, (byte)NoteTone.FF5, (byte)0x00); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_160), (byte)NoteTone.C3, (byte)0x00); + this.addNoteOn( ch, 0, (byte)NoteTone.D5, vel); + this.addNoteOn( ch, 0, (byte)NoteTone.FF5, vel); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_160), (byte)NoteTone.D5, (byte)0x00); + this.addNoteOn( ch, 0, (byte)NoteTone.FF5, (byte)0x00); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_160), (byte)NoteTone.C3, (byte)0x00); + + this.addNoteOn( ch, 0, (byte)NoteTone.C5, vel); + this.addNoteOn( ch, 0, (byte)NoteTone.E5, vel); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_160), (byte)NoteTone.C5, (byte)0x00); + this.addNoteOn( ch, 0, (byte)NoteTone.E5, (byte)0x00); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_160), (byte)NoteTone.C3, (byte)0x00); + this.addNoteOn( ch, 0, (byte)NoteTone.C5, vel); + this.addNoteOn( ch, 0, (byte)NoteTone.E5, vel); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_160), (byte)NoteTone.C5, (byte)0x00); + this.addNoteOn( ch, 0, (byte)NoteTone.E5, (byte)0x00); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_160), (byte)NoteTone.C3, (byte)0x00); + this.addNoteOn( ch, 0, (byte)NoteTone.C5, vel); + this.addNoteOn( ch, 0, (byte)NoteTone.E5, vel); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_160), (byte)NoteTone.C5, (byte)0x00); + this.addNoteOn( ch, 0, (byte)NoteTone.E5, (byte)0x00); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_160), (byte)NoteTone.C3, (byte)0x00); + this.addNoteOn( ch, 0, (byte)NoteTone.C5, vel); + this.addNoteOn( ch, 0, (byte)NoteTone.E5, vel); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_160), (byte)NoteTone.C5, (byte)0x00); + this.addNoteOn( ch, 0, (byte)NoteTone.E5, (byte)0x00); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_160), (byte)NoteTone.C3, (byte)0x00); + this.addNoteOn( ch, 0, (byte)NoteTone.C5, vel); + this.addNoteOn( ch, 0, (byte)NoteTone.E5, vel); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_160), (byte)NoteTone.C5, (byte)0x00); + this.addNoteOn( ch, 0, (byte)NoteTone.E5, (byte)0x00); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_160), (byte)NoteTone.C3, (byte)0x00); + this.addNoteOn( ch, 0, (byte)NoteTone.C5, vel); + this.addNoteOn( ch, 0, (byte)NoteTone.E5, vel); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_160), (byte)NoteTone.C5, (byte)0x00); + this.addNoteOn( ch, 0, (byte)NoteTone.E5, (byte)0x00); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_160), (byte)NoteTone.C3, (byte)0x00); + this.addNoteOn( ch, 0, (byte)NoteTone.C5, vel); + this.addNoteOn( ch, 0, (byte)NoteTone.E5, vel); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_160), (byte)NoteTone.C5, (byte)0x00); + this.addNoteOn( ch, 0, (byte)NoteTone.E5, (byte)0x00); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_160), (byte)NoteTone.C3, (byte)0x00); + this.addNoteOn( ch, 0, (byte)NoteTone.C5, vel); + this.addNoteOn( ch, 0, (byte)NoteTone.E5, vel); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_160), (byte)NoteTone.C5, (byte)0x00); + this.addNoteOn( ch, 0, (byte)NoteTone.E5, (byte)0x00); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_160), (byte)NoteTone.C3, (byte)0x00); + + this.addNoteOn( ch, 0, (byte)NoteTone.D5, vel); + this.addNoteOn( ch, 0, (byte)NoteTone.FF5, vel); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_160), (byte)NoteTone.D5, (byte)0x00); + this.addNoteOn( ch, 0, (byte)NoteTone.FF5, (byte)0x00); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_160), (byte)NoteTone.C3, (byte)0x00); + this.addNoteOn( ch, 0, (byte)NoteTone.D5, vel); + this.addNoteOn( ch, 0, (byte)NoteTone.FF5, vel); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_160), (byte)NoteTone.D5, (byte)0x00); + this.addNoteOn( ch, 0, (byte)NoteTone.FF5, (byte)0x00); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_160), (byte)NoteTone.C3, (byte)0x00); + this.addNoteOn( ch, 0, (byte)NoteTone.D5, vel); + this.addNoteOn( ch, 0, (byte)NoteTone.FF5, vel); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_160), (byte)NoteTone.D5, (byte)0x00); + this.addNoteOn( ch, 0, (byte)NoteTone.FF5, (byte)0x00); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_160), (byte)NoteTone.C3, (byte)0x00); + this.addNoteOn( ch, 0, (byte)NoteTone.D5, vel); + this.addNoteOn( ch, 0, (byte)NoteTone.FF5, vel); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_160), (byte)NoteTone.D5, (byte)0x00); + this.addNoteOn( ch, 0, (byte)NoteTone.FF5, (byte)0x00); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_160), (byte)NoteTone.C3, (byte)0x00); + this.addNoteOn( ch, 0, (byte)NoteTone.D5, vel); + this.addNoteOn( ch, 0, (byte)NoteTone.FF5, vel); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_160), (byte)NoteTone.D5, (byte)0x00); + this.addNoteOn( ch, 0, (byte)NoteTone.FF5, (byte)0x00); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_160), (byte)NoteTone.C3, (byte)0x00); + this.addNoteOn( ch, 0, (byte)NoteTone.D5, vel); + this.addNoteOn( ch, 0, (byte)NoteTone.FF5, vel); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_160), (byte)NoteTone.D5, (byte)0x00); + this.addNoteOn( ch, 0, (byte)NoteTone.FF5, (byte)0x00); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_160), (byte)NoteTone.C3, (byte)0x00); + this.addNoteOn( ch, 0, (byte)NoteTone.D5, vel); + this.addNoteOn( ch, 0, (byte)NoteTone.FF5, vel); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_160), (byte)NoteTone.D5, (byte)0x00); + this.addNoteOn( ch, 0, (byte)NoteTone.FF5, (byte)0x00); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_160), (byte)NoteTone.C3, (byte)0x00); + this.addNoteOn( ch, 0, (byte)NoteTone.D5, vel); + this.addNoteOn( ch, 0, (byte)NoteTone.FF5, vel); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_160), (byte)NoteTone.D5, (byte)0x00); + this.addNoteOn( ch, 0, (byte)NoteTone.FF5, (byte)0x00); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_160), (byte)NoteTone.C3, (byte)0x00); + + this.addNoteOn( ch, 0, (byte)NoteTone.G5, vel); + this.addNoteOn( ch, 0, (byte)NoteTone.B5, vel); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_160), (byte)NoteTone.G5, (byte)0x00); + this.addNoteOn( ch, 0, (byte)NoteTone.B5, (byte)0x00); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_160), (byte)NoteTone.C3, (byte)0x00); + this.addNoteOn( ch, 0, (byte)NoteTone.G5, vel); + this.addNoteOn( ch, 0, (byte)NoteTone.B5, vel); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_160), (byte)NoteTone.G5, (byte)0x00); + this.addNoteOn( ch, 0, (byte)NoteTone.B5, (byte)0x00); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_160), (byte)NoteTone.C3, (byte)0x00); + this.addNoteOn( ch, 0, (byte)NoteTone.G5, vel); + this.addNoteOn( ch, 0, (byte)NoteTone.B5, vel); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_160), (byte)NoteTone.G5, (byte)0x00); + this.addNoteOn( ch, 0, (byte)NoteTone.B5, (byte)0x00); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_160), (byte)NoteTone.C3, (byte)0x00); + this.addNoteOn( ch, 0, (byte)NoteTone.G5, vel); + this.addNoteOn( ch, 0, (byte)NoteTone.B5, vel); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_160), (byte)NoteTone.G5, (byte)0x00); + this.addNoteOn( ch, 0, (byte)NoteTone.B5, (byte)0x00); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_160), (byte)NoteTone.C3, (byte)0x00); + this.addNoteOn( ch, 0, (byte)NoteTone.G5, vel); + this.addNoteOn( ch, 0, (byte)NoteTone.B5, vel); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_160), (byte)NoteTone.G5, (byte)0x00); + this.addNoteOn( ch, 0, (byte)NoteTone.B5, (byte)0x00); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_160), (byte)NoteTone.C3, (byte)0x00); + this.addNoteOn( ch, 0, (byte)NoteTone.G5, vel); + this.addNoteOn( ch, 0, (byte)NoteTone.B5, vel); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_160), (byte)NoteTone.G5, (byte)0x00); + this.addNoteOn( ch, 0, (byte)NoteTone.B5, (byte)0x00); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_160), (byte)NoteTone.C3, (byte)0x00); + this.addNoteOn( ch, 0, (byte)NoteTone.G5, vel); + this.addNoteOn( ch, 0, (byte)NoteTone.B5, vel); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_160), (byte)NoteTone.G5, (byte)0x00); + this.addNoteOn( ch, 0, (byte)NoteTone.B5, (byte)0x00); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_160), (byte)NoteTone.C3, (byte)0x00); + this.addNoteOn( ch, 0, (byte)NoteTone.G5, vel); + this.addNoteOn( ch, 0, (byte)NoteTone.B5, vel); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_160), (byte)NoteTone.G5, (byte)0x00); + this.addNoteOn( ch, 0, (byte)NoteTone.B5, (byte)0x00); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_160), (byte)NoteTone.C3, (byte)0x00); + + this.addNoteOn( ch, 0, (byte)NoteTone.G5, vel); + this.addNoteOn( ch, 0, (byte)NoteTone.B5, vel); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_160), (byte)NoteTone.G5, (byte)0x00); + this.addNoteOn( ch, 0, (byte)NoteTone.B5, (byte)0x00); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_160), (byte)NoteTone.C3, (byte)0x00); + this.addNoteOn( ch, 0, (byte)NoteTone.G5, vel); + this.addNoteOn( ch, 0, (byte)NoteTone.B5, vel); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_160), (byte)NoteTone.G5, (byte)0x00); + this.addNoteOn( ch, 0, (byte)NoteTone.B5, (byte)0x00); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_160), (byte)NoteTone.C3, (byte)0x00); + this.addNoteOn( ch, 0, (byte)NoteTone.G5, vel); + this.addNoteOn( ch, 0, (byte)NoteTone.B5, vel); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_160), (byte)NoteTone.G5, (byte)0x00); + this.addNoteOn( ch, 0, (byte)NoteTone.B5, (byte)0x00); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_160), (byte)NoteTone.C3, (byte)0x00); + this.addNoteOn( ch, 0, (byte)NoteTone.G5, vel); + this.addNoteOn( ch, 0, (byte)NoteTone.B5, vel); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_160), (byte)NoteTone.G5, (byte)0x00); + this.addNoteOn( ch, 0, (byte)NoteTone.B5, (byte)0x00); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_160), (byte)NoteTone.C3, (byte)0x00); + this.addNoteOn( ch, 0, (byte)NoteTone.G5, vel); + this.addNoteOn( ch, 0, (byte)NoteTone.B5, vel); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_160), (byte)NoteTone.G5, (byte)0x00); + this.addNoteOn( ch, 0, (byte)NoteTone.B5, (byte)0x00); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_160), (byte)NoteTone.C3, (byte)0x00); + this.addNoteOn( ch, 0, (byte)NoteTone.G5, vel); + this.addNoteOn( ch, 0, (byte)NoteTone.B5, vel); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_160), (byte)NoteTone.G5, (byte)0x00); + this.addNoteOn( ch, 0, (byte)NoteTone.B5, (byte)0x00); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_160), (byte)NoteTone.C3, (byte)0x00); + this.addNoteOn( ch, 0, (byte)NoteTone.G5, vel); + this.addNoteOn( ch, 0, (byte)NoteTone.B5, vel); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_160), (byte)NoteTone.G5, (byte)0x00); + this.addNoteOn( ch, 0, (byte)NoteTone.B5, (byte)0x00); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_160), (byte)NoteTone.C3, (byte)0x00); + this.addNoteOn( ch, 0, (byte)NoteTone.G5, vel); + this.addNoteOn( ch, 0, (byte)NoteTone.B5, vel); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_160), (byte)NoteTone.G5, (byte)0x00); + this.addNoteOn( ch, 0, (byte)NoteTone.B5, (byte)0x00); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_160), (byte)NoteTone.C3, (byte)0x00); + + this.closeTrackData(); + } + catch( Exception e ) + { + e.printStackTrace(); + } + } + + /* オリジナル4 */ + //主旋律4 + protected void Song4Melody( byte ch, byte vel ) + { + try + { + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_080), (byte)NoteTone.C4, (byte)0x00); + this.addNoteOn( ch, 0, (byte)NoteTone.GG4, vel); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_080), (byte)NoteTone.C4, (byte)0x00); + this.addNoteOn( ch, 0, (byte)NoteTone.A4, vel); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_080), (byte)NoteTone.C4, (byte)0x00); + this.addNoteOn( ch, 0, (byte)NoteTone.E5, vel); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_080), (byte)NoteTone.C4, (byte)0x00); + this.addNoteOn( ch, 0, (byte)NoteTone.E5, vel); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_020), (byte)NoteTone.C4, (byte)0x00); + + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_080), (byte)NoteTone.C4, (byte)0x00); + this.addNoteOn( ch, 0, (byte)NoteTone.E4, vel); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_080), (byte)NoteTone.C4, (byte)0x00); + this.addNoteOn( ch, 0, (byte)NoteTone.GG4, vel); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_080), (byte)NoteTone.C4, (byte)0x00); + this.addNoteOn( ch, 0, (byte)NoteTone.E5, vel); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_080), (byte)NoteTone.C4, (byte)0x00); + this.addNoteOn( ch, 0, (byte)NoteTone.E5, vel); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_020), (byte)NoteTone.C4, (byte)0x00); + + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_080), (byte)NoteTone.C4, (byte)0x00); + this.addNoteOn( ch, 0, (byte)NoteTone.FF4, vel); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_080), (byte)NoteTone.C4, (byte)0x00); + this.addNoteOn( ch, 0, (byte)NoteTone.A4, vel); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_080), (byte)NoteTone.C4, (byte)0x00); + this.addNoteOn( ch, 0, (byte)NoteTone.D5, vel); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_080), (byte)NoteTone.C4, (byte)0x00); + this.addNoteOn( ch, 0, (byte)NoteTone.CC5, vel); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_080), (byte)NoteTone.C4, (byte)0x00); + this.addNoteOn( ch, 0, (byte)NoteTone.B4, vel); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_080), (byte)NoteTone.C4, (byte)0x00); + this.addNoteOn( ch, 0, (byte)NoteTone.A4, vel); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_080), (byte)NoteTone.C4, (byte)0x00); + + this.addNoteOn( ch, 0, (byte)NoteTone.GG4, vel); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_010), (byte)NoteTone.C4, (byte)0x00); + + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_080), (byte)NoteTone.C4, (byte)0x00); + this.addNoteOn( ch, 0, (byte)NoteTone.GG4, vel); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_080), (byte)NoteTone.C4, (byte)0x00); + this.addNoteOn( ch, 0, (byte)NoteTone.A4, vel); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_080), (byte)NoteTone.C4, (byte)0x00); + this.addNoteOn( ch, 0, (byte)NoteTone.E5, vel); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_080), (byte)NoteTone.C4, (byte)0x00); + this.addNoteOn( ch, 0, (byte)NoteTone.E5, vel); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_020), (byte)NoteTone.C4, (byte)0x00); + + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_080), (byte)NoteTone.C4, (byte)0x00); + this.addNoteOn( ch, 0, (byte)NoteTone.E4, vel); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_080), (byte)NoteTone.C4, (byte)0x00); + this.addNoteOn( ch, 0, (byte)NoteTone.GG4, vel); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_080), (byte)NoteTone.C4, (byte)0x00); + this.addNoteOn( ch, 0, (byte)NoteTone.E5, vel); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_080), (byte)NoteTone.C4, (byte)0x00); + this.addNoteOn( ch, 0, (byte)NoteTone.E5, vel); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_020), (byte)NoteTone.C4, (byte)0x00); + + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_080), (byte)NoteTone.C4, (byte)0x00); + this.addNoteOn( ch, 0, (byte)NoteTone.FF4, vel); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_080), (byte)NoteTone.C4, (byte)0x00); + this.addNoteOn( ch, 0, (byte)NoteTone.A4, vel); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_080), (byte)NoteTone.C4, (byte)0x00); + this.addNoteOn( ch, 0, (byte)NoteTone.D5, vel); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_080), (byte)NoteTone.C4, (byte)0x00); + this.addNoteOn( ch, 0, (byte)NoteTone.CC5, vel); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_080), (byte)NoteTone.C4, (byte)0x00); + this.addNoteOn( ch, 0, (byte)NoteTone.B4, vel); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_080), (byte)NoteTone.C4, (byte)0x00); + this.addNoteOn( ch, 0, (byte)NoteTone.A4, vel); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_080), (byte)NoteTone.C4, (byte)0x00); + + this.addNoteOn( ch, 0, (byte)NoteTone.B4, vel); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_020), (byte)NoteTone.C4, (byte)0x00); + this.addNoteOn( ch, 0, (byte)NoteTone.CC5, vel); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_040), (byte)NoteTone.C4, (byte)0x00); + this.addNoteOn( ch, 0, (byte)NoteTone.D5, vel); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_040), (byte)NoteTone.C4, (byte)0x00); + + this.closeTrackData(); + } + catch( Exception e ) + { + e.printStackTrace(); + } + } + + // ドラムA4 + protected void Song4PercussionA( byte ch, byte vel ) + { + try + { + this.addNoteOn( ch, 0, (byte)35, vel); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_040), (byte)35, (byte)0x00); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_080), (byte)35, (byte)0x00); + this.addNoteOn( ch, 0, (byte)35, vel); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_080), (byte)35, (byte)0x00); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_040), (byte)35, (byte)0x00); + this.addNoteOn( ch, 0, (byte)40, vel); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_040), (byte)54, (byte)0x00); + + this.addNoteOn( ch, 0, (byte)35, vel); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_040), (byte)35, (byte)0x00); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_080), (byte)35, (byte)0x00); + this.addNoteOn( ch, 0, (byte)35, vel); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_080), (byte)35, (byte)0x00); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_040), (byte)35, (byte)0x00); + this.addNoteOn( ch, 0, (byte)40, vel); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_040), (byte)54, (byte)0x00); + + this.addNoteOn( ch, 0, (byte)35, vel); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_080), (byte)35, (byte)0x00); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_040), (byte)35, (byte)0x00); + this.addNoteOn( ch, 0, (byte)35, vel); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_080), (byte)35, (byte)0x00); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_040), (byte)35, (byte)0x00); + this.addNoteOn( ch, 0, (byte)40, vel); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_040), (byte)54, (byte)0x00); + + this.addNoteOn( ch, 0, (byte)35, vel); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_040), (byte)35, (byte)0x00); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_080), (byte)35, (byte)0x00); + this.addNoteOn( ch, 0, (byte)35, vel); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_080), (byte)35, (byte)0x00); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_040), (byte)35, (byte)0x00); + this.addNoteOn( ch, 0, (byte)40, vel); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_040), (byte)54, (byte)0x00); + + this.addNoteOn( ch, 0, (byte)35, vel); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_080), (byte)35, (byte)0x00); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_040), (byte)35, (byte)0x00); + this.addNoteOn( ch, 0, (byte)35, vel); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_080), (byte)35, (byte)0x00); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_040), (byte)35, (byte)0x00); + this.addNoteOn( ch, 0, (byte)40, vel); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_040), (byte)54, (byte)0x00); + + this.addNoteOn( ch, 0, (byte)35, vel); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_080), (byte)35, (byte)0x00); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_040), (byte)35, (byte)0x00); + this.addNoteOn( ch, 0, (byte)35, vel); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_080), (byte)35, (byte)0x00); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_040), (byte)35, (byte)0x00); + this.addNoteOn( ch, 0, (byte)40, vel); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_040), (byte)54, (byte)0x00); + + this.addNoteOn( ch, 0, (byte)35, vel); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_080), (byte)35, (byte)0x00); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_040), (byte)35, (byte)0x00); + this.addNoteOn( ch, 0, (byte)35, vel); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_080), (byte)35, (byte)0x00); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_040), (byte)35, (byte)0x00); + this.addNoteOn( ch, 0, (byte)40, vel); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_040), (byte)54, (byte)0x00); + + this.addNoteOn( ch, 0, (byte)35, vel); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_080), (byte)35, (byte)0x00); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_040), (byte)35, (byte)0x00); + this.addNoteOn( ch, 0, (byte)35, vel); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_080), (byte)35, (byte)0x00); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_040), (byte)35, (byte)0x00); + this.addNoteOn( ch, 0, (byte)40, vel); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_040), (byte)54, (byte)0x00); + + this.closeTrackData(); + } + catch( Exception e ) + { + e.printStackTrace(); + } + } + + // ドラムB4 + protected void Song4PercussionB( byte ch, byte vel ) + { + try + { + this.addNoteOn( ch, 0, (byte)35, vel); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_040), (byte)35, (byte)0x00); + this.addNoteOn( ch, 0, (byte)40, vel); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_040), (byte)35, (byte)0x00); + this.addNoteOn( ch, 0, (byte)35, vel); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_160), (byte)54, (byte)0x00); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_160), (byte)54, (byte)0x00); + this.addNoteOn( ch, 0, (byte)35, vel); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_160), (byte)54, (byte)0x00); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_160), (byte)54, (byte)0x00); + this.addNoteOn( ch, 0, (byte)40, vel); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_040), (byte)35, (byte)0x00); + + this.addNoteOn( ch, 0, (byte)35, vel); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_040), (byte)35, (byte)0x00); + this.addNoteOn( ch, 0, (byte)40, vel); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_040), (byte)35, (byte)0x00); + this.addNoteOn( ch, 0, (byte)35, vel); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_160), (byte)54, (byte)0x00); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_160), (byte)54, (byte)0x00); + this.addNoteOn( ch, 0, (byte)35, vel); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_160), (byte)54, (byte)0x00); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_160), (byte)54, (byte)0x00); + this.addNoteOn( ch, 0, (byte)40, vel); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_040), (byte)35, (byte)0x00); + + this.addNoteOn( ch, 0, (byte)35, vel); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_040), (byte)35, (byte)0x00); + this.addNoteOn( ch, 0, (byte)40, vel); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_040), (byte)35, (byte)0x00); + this.addNoteOn( ch, 0, (byte)35, vel); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_160), (byte)54, (byte)0x00); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_160), (byte)54, (byte)0x00); + this.addNoteOn( ch, 0, (byte)35, vel); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_160), (byte)54, (byte)0x00); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_160), (byte)54, (byte)0x00); + this.addNoteOn( ch, 0, (byte)40, vel); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_040), (byte)35, (byte)0x00); + + this.addNoteOn( ch, 0, (byte)35, vel); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_040), (byte)35, (byte)0x00); + this.addNoteOn( ch, 0, (byte)40, vel); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_040), (byte)35, (byte)0x00); + this.addNoteOn( ch, 0, (byte)35, vel); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_160), (byte)54, (byte)0x00); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_160), (byte)54, (byte)0x00); + this.addNoteOn( ch, 0, (byte)35, vel); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_160), (byte)54, (byte)0x00); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_160), (byte)54, (byte)0x00); + this.addNoteOn( ch, 0, (byte)40, vel); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_040), (byte)35, (byte)0x00); + + this.addNoteOn( ch, 0, (byte)35, vel); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_040), (byte)35, (byte)0x00); + this.addNoteOn( ch, 0, (byte)40, vel); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_040), (byte)35, (byte)0x00); + this.addNoteOn( ch, 0, (byte)35, vel); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_160), (byte)54, (byte)0x00); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_160), (byte)54, (byte)0x00); + this.addNoteOn( ch, 0, (byte)35, vel); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_160), (byte)54, (byte)0x00); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_160), (byte)54, (byte)0x00); + this.addNoteOn( ch, 0, (byte)40, vel); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_040), (byte)35, (byte)0x00); + + this.addNoteOn( ch, 0, (byte)35, vel); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_040), (byte)35, (byte)0x00); + this.addNoteOn( ch, 0, (byte)40, vel); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_040), (byte)35, (byte)0x00); + this.addNoteOn( ch, 0, (byte)35, vel); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_160), (byte)54, (byte)0x00); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_160), (byte)54, (byte)0x00); + this.addNoteOn( ch, 0, (byte)35, vel); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_160), (byte)54, (byte)0x00); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_160), (byte)54, (byte)0x00); + this.addNoteOn( ch, 0, (byte)40, vel); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_040), (byte)35, (byte)0x00); + + this.addNoteOn( ch, 0, (byte)35, vel); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_040), (byte)35, (byte)0x00); + this.addNoteOn( ch, 0, (byte)40, vel); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_040), (byte)35, (byte)0x00); + this.addNoteOn( ch, 0, (byte)35, vel); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_160), (byte)54, (byte)0x00); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_160), (byte)54, (byte)0x00); + this.addNoteOn( ch, 0, (byte)35, vel); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_160), (byte)54, (byte)0x00); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_160), (byte)54, (byte)0x00); + this.addNoteOn( ch, 0, (byte)40, vel); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_040), (byte)35, (byte)0x00); + + this.addNoteOn( ch, 0, (byte)35, vel); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_040), (byte)35, (byte)0x00); + this.addNoteOn( ch, 0, (byte)40, vel); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_040), (byte)35, (byte)0x00); + this.addNoteOn( ch, 0, (byte)35, vel); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_160), (byte)54, (byte)0x00); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_160), (byte)54, (byte)0x00); + this.addNoteOn( ch, 0, (byte)35, vel); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_160), (byte)54, (byte)0x00); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_160), (byte)54, (byte)0x00); + this.addNoteOn( ch, 0, (byte)40, vel); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_040), (byte)35, (byte)0x00); + + + this.closeTrackData(); + } + catch( Exception e ) + { + e.printStackTrace(); + } + } + + // ドラム管理4 + protected void Song4Percuss( int no, byte vel ) + { + switch( no ) + { + case 0: + this.SongPercussionC( (byte) 0x09, vel); + break; + + case 1: + this.Song3PercussionA( (byte) 0x09, vel); + break; + + case 2: + this.Song3PercussionB( (byte) 0x09, vel ); + break; + + default: + this.SongPercussionC( (byte) 0x09, vel); + break; + } + } + + // 伴奏A4 + protected void Song4ArrangeA( byte ch, byte vel ) + { + try + { + this.addNoteOn( ch, 0, (byte)NoteTone.E3, vel); + this.addNoteOn( ch, 0, (byte)NoteTone.CC3, vel); + this.addNoteOn( ch, 0, (byte)NoteTone.A2, vel); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_010), (byte)NoteTone.E3, (byte)0x00); + this.addNoteOn( ch, 0, (byte)NoteTone.CC3, (byte)0x00); + this.addNoteOn( ch, 0, (byte)NoteTone.A2, (byte)0x00); + + this.addNoteOn( ch, 0, (byte)NoteTone.B2, vel); + this.addNoteOn( ch, 0, (byte)NoteTone.GG2, vel); + this.addNoteOn( ch, 0, (byte)NoteTone.E2, vel); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_010), (byte)NoteTone.B2, (byte)0x00); + this.addNoteOn( ch, 0, (byte)NoteTone.GG3, (byte)0x00); + this.addNoteOn( ch, 0, (byte)NoteTone.E2, (byte)0x00); + + this.addNoteOn( ch, 0, (byte)NoteTone.CC3, vel); + this.addNoteOn( ch, 0, (byte)NoteTone.A2, vel); + this.addNoteOn( ch, 0, (byte)NoteTone.FF2, vel); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_010), (byte)NoteTone.CC3, (byte)0x00); + this.addNoteOn( ch, 0, (byte)NoteTone.A2, (byte)0x00); + this.addNoteOn( ch, 0, (byte)NoteTone.FF2, (byte)0x00); + + this.addNoteOn( ch, 0, (byte)NoteTone.B2, vel); + this.addNoteOn( ch, 0, (byte)NoteTone.GG2, vel); + this.addNoteOn( ch, 0, (byte)NoteTone.E2, vel); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_010), (byte)NoteTone.B2, (byte)0x00); + this.addNoteOn( ch, 0, (byte)NoteTone.GG2, (byte)0x00); + this.addNoteOn( ch, 0, (byte)NoteTone.E2, (byte)0x00); + + this.addNoteOn( ch, 0, (byte)NoteTone.E3, vel); + this.addNoteOn( ch, 0, (byte)NoteTone.CC3, vel); + this.addNoteOn( ch, 0, (byte)NoteTone.A2, vel); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_010), (byte)NoteTone.E3, (byte)0x00); + this.addNoteOn( ch, 0, (byte)NoteTone.CC3, (byte)0x00); + this.addNoteOn( ch, 0, (byte)NoteTone.A2, (byte)0x00); + + this.addNoteOn( ch, 0, (byte)NoteTone.B2, vel); + this.addNoteOn( ch, 0, (byte)NoteTone.GG3, vel); + this.addNoteOn( ch, 0, (byte)NoteTone.E2, vel); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_010), (byte)NoteTone.B2, (byte)0x00); + this.addNoteOn( ch, 0, (byte)NoteTone.GG3, (byte)0x00); + this.addNoteOn( ch, 0, (byte)NoteTone.E2, (byte)0x00); + + this.addNoteOn( ch, 0, (byte)NoteTone.B2, vel); + this.addNoteOn( ch, 0, (byte)NoteTone.GG2, vel); + this.addNoteOn( ch, 0, (byte)NoteTone.E2, vel); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_010), (byte)NoteTone.B2, (byte)0x00); + this.addNoteOn( ch, 0, (byte)NoteTone.GG2, (byte)0x00); + this.addNoteOn( ch, 0, (byte)NoteTone.E2, (byte)0x00); + + this.addNoteOn( ch, 0, (byte)NoteTone.CC3, vel); + this.addNoteOn( ch, 0, (byte)NoteTone.A2, vel); + this.addNoteOn( ch, 0, (byte)NoteTone.FF2, vel); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_010), (byte)NoteTone.CC3, (byte)0x00); + this.addNoteOn( ch, 0, (byte)NoteTone.A2, (byte)0x00); + this.addNoteOn( ch, 0, (byte)NoteTone.FF2, (byte)0x00); + + this.closeTrackData(); + } + catch( Exception e ) + { + e.printStackTrace(); + } + } + + // 伴奏B4 + protected void Song4ArrangeB( byte ch, byte vel ) + { + try + { + this.addNoteOn( ch, 0, (byte)NoteTone.E7, vel); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_080), (byte)NoteTone.C3, (byte)0x00); + this.addNoteOn( ch, 0, (byte)NoteTone.E3, vel); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_080), (byte)NoteTone.C3, (byte)0x00); + this.addNoteOn( ch, 0, (byte)NoteTone.E7, vel); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_080), (byte)NoteTone.C3, (byte)0x00); + this.addNoteOn( ch, 0, (byte)NoteTone.E3, vel); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_080), (byte)NoteTone.C3, (byte)0x00); + this.addNoteOn( ch, 0, (byte)NoteTone.E7, vel); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_080), (byte)NoteTone.C3, (byte)0x00); + this.addNoteOn( ch, 0, (byte)NoteTone.E3, vel); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_080), (byte)NoteTone.C3, (byte)0x00); + this.addNoteOn( ch, 0, (byte)NoteTone.E7, vel); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_080), (byte)NoteTone.C3, (byte)0x00); + this.addNoteOn( ch, 0, (byte)NoteTone.E3, vel); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_080), (byte)NoteTone.C3, (byte)0x00); + + this.addNoteOn( ch, 0, (byte)NoteTone.E7, vel); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_080), (byte)NoteTone.C3, (byte)0x00); + this.addNoteOn( ch, 0, (byte)NoteTone.E3, vel); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_080), (byte)NoteTone.C3, (byte)0x00); + this.addNoteOn( ch, 0, (byte)NoteTone.E7, vel); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_080), (byte)NoteTone.C3, (byte)0x00); + this.addNoteOn( ch, 0, (byte)NoteTone.E3, vel); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_080), (byte)NoteTone.C3, (byte)0x00); + this.addNoteOn( ch, 0, (byte)NoteTone.E7, vel); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_080), (byte)NoteTone.C3, (byte)0x00); + this.addNoteOn( ch, 0, (byte)NoteTone.E3, vel); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_080), (byte)NoteTone.C3, (byte)0x00); + this.addNoteOn( ch, 0, (byte)NoteTone.E7, vel); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_080), (byte)NoteTone.C3, (byte)0x00); + this.addNoteOn( ch, 0, (byte)NoteTone.E3, vel); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_080), (byte)NoteTone.C3, (byte)0x00); + + this.addNoteOn( ch, 0, (byte)NoteTone.E7, vel); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_080), (byte)NoteTone.C3, (byte)0x00); + this.addNoteOn( ch, 0, (byte)NoteTone.E3, vel); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_080), (byte)NoteTone.C3, (byte)0x00); + this.addNoteOn( ch, 0, (byte)NoteTone.E7, vel); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_080), (byte)NoteTone.C3, (byte)0x00); + this.addNoteOn( ch, 0, (byte)NoteTone.E3, vel); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_080), (byte)NoteTone.C3, (byte)0x00); + this.addNoteOn( ch, 0, (byte)NoteTone.E7, vel); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_080), (byte)NoteTone.C3, (byte)0x00); + this.addNoteOn( ch, 0, (byte)NoteTone.E3, vel); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_080), (byte)NoteTone.C3, (byte)0x00); + this.addNoteOn( ch, 0, (byte)NoteTone.E7, vel); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_080), (byte)NoteTone.C3, (byte)0x00); + this.addNoteOn( ch, 0, (byte)NoteTone.E3, vel); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_080), (byte)NoteTone.C3, (byte)0x00); + + this.addNoteOn( ch, 0, (byte)NoteTone.E7, vel); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_080), (byte)NoteTone.C3, (byte)0x00); + this.addNoteOn( ch, 0, (byte)NoteTone.E3, vel); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_080), (byte)NoteTone.C3, (byte)0x00); + this.addNoteOn( ch, 0, (byte)NoteTone.E7, vel); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_080), (byte)NoteTone.C3, (byte)0x00); + this.addNoteOn( ch, 0, (byte)NoteTone.E3, vel); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_080), (byte)NoteTone.C3, (byte)0x00); + this.addNoteOn( ch, 0, (byte)NoteTone.E7, vel); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_080), (byte)NoteTone.C3, (byte)0x00); + this.addNoteOn( ch, 0, (byte)NoteTone.E3, vel); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_080), (byte)NoteTone.C3, (byte)0x00); + this.addNoteOn( ch, 0, (byte)NoteTone.E7, vel); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_080), (byte)NoteTone.C3, (byte)0x00); + this.addNoteOn( ch, 0, (byte)NoteTone.E3, vel); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_080), (byte)NoteTone.C3, (byte)0x00); + + this.addNoteOn( ch, 0, (byte)NoteTone.E7, vel); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_080), (byte)NoteTone.C3, (byte)0x00); + this.addNoteOn( ch, 0, (byte)NoteTone.E3, vel); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_080), (byte)NoteTone.C3, (byte)0x00); + this.addNoteOn( ch, 0, (byte)NoteTone.E7, vel); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_080), (byte)NoteTone.C3, (byte)0x00); + this.addNoteOn( ch, 0, (byte)NoteTone.E3, vel); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_080), (byte)NoteTone.C3, (byte)0x00); + this.addNoteOn( ch, 0, (byte)NoteTone.E7, vel); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_080), (byte)NoteTone.C3, (byte)0x00); + this.addNoteOn( ch, 0, (byte)NoteTone.E3, vel); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_080), (byte)NoteTone.C3, (byte)0x00); + this.addNoteOn( ch, 0, (byte)NoteTone.E7, vel); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_080), (byte)NoteTone.C3, (byte)0x00); + this.addNoteOn( ch, 0, (byte)NoteTone.E3, vel); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_080), (byte)NoteTone.C3, (byte)0x00); + + this.addNoteOn( ch, 0, (byte)NoteTone.E7, vel); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_080), (byte)NoteTone.C3, (byte)0x00); + this.addNoteOn( ch, 0, (byte)NoteTone.E3, vel); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_080), (byte)NoteTone.C3, (byte)0x00); + this.addNoteOn( ch, 0, (byte)NoteTone.E7, vel); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_080), (byte)NoteTone.C3, (byte)0x00); + this.addNoteOn( ch, 0, (byte)NoteTone.E3, vel); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_080), (byte)NoteTone.C3, (byte)0x00); + this.addNoteOn( ch, 0, (byte)NoteTone.E7, vel); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_080), (byte)NoteTone.C3, (byte)0x00); + this.addNoteOn( ch, 0, (byte)NoteTone.E3, vel); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_080), (byte)NoteTone.C3, (byte)0x00); + this.addNoteOn( ch, 0, (byte)NoteTone.E7, vel); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_080), (byte)NoteTone.C3, (byte)0x00); + this.addNoteOn( ch, 0, (byte)NoteTone.E3, vel); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_080), (byte)NoteTone.C3, (byte)0x00); + + this.addNoteOn( ch, 0, (byte)NoteTone.E7, vel); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_080), (byte)NoteTone.C3, (byte)0x00); + this.addNoteOn( ch, 0, (byte)NoteTone.E3, vel); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_080), (byte)NoteTone.C3, (byte)0x00); + this.addNoteOn( ch, 0, (byte)NoteTone.E7, vel); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_080), (byte)NoteTone.C3, (byte)0x00); + this.addNoteOn( ch, 0, (byte)NoteTone.E3, vel); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_080), (byte)NoteTone.C3, (byte)0x00); + this.addNoteOn( ch, 0, (byte)NoteTone.E7, vel); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_080), (byte)NoteTone.C3, (byte)0x00); + this.addNoteOn( ch, 0, (byte)NoteTone.E3, vel); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_080), (byte)NoteTone.C3, (byte)0x00); + this.addNoteOn( ch, 0, (byte)NoteTone.E7, vel); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_080), (byte)NoteTone.C3, (byte)0x00); + this.addNoteOn( ch, 0, (byte)NoteTone.E3, vel); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_080), (byte)NoteTone.C3, (byte)0x00); + + this.addNoteOn( ch, 0, (byte)NoteTone.E7, vel); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_080), (byte)NoteTone.C3, (byte)0x00); + this.addNoteOn( ch, 0, (byte)NoteTone.E3, vel); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_080), (byte)NoteTone.C3, (byte)0x00); + this.addNoteOn( ch, 0, (byte)NoteTone.E7, vel); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_080), (byte)NoteTone.C3, (byte)0x00); + this.addNoteOn( ch, 0, (byte)NoteTone.E3, vel); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_080), (byte)NoteTone.C3, (byte)0x00); + this.addNoteOn( ch, 0, (byte)NoteTone.E7, vel); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_080), (byte)NoteTone.C3, (byte)0x00); + this.addNoteOn( ch, 0, (byte)NoteTone.E3, vel); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_080), (byte)NoteTone.C3, (byte)0x00); + this.addNoteOn( ch, 0, (byte)NoteTone.E7, vel); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_080), (byte)NoteTone.C3, (byte)0x00); + this.addNoteOn( ch, 0, (byte)NoteTone.E3, vel); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_080), (byte)NoteTone.C3, (byte)0x00); + + this.closeTrackData(); + } + catch( Exception e ) + { + e.printStackTrace(); + } + } + + /* オリジナル5 */ + //主旋律5 + protected void Song5Melody( byte ch, byte vel ) + { + try + { + this.addNoteOn( ch, 0, (byte)NoteTone.FF4, vel); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_080), (byte)NoteTone.F4, (byte)0x00); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_080), (byte)NoteTone.F4, (byte)0x00); + this.addNoteOn( ch, 0, (byte)NoteTone.FF5, vel); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_080), (byte)NoteTone.F4, (byte)0x00); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_080), (byte)NoteTone.F4, (byte)0x00); + this.addNoteOn( ch, 0, (byte)NoteTone.E5, vel); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_085), (byte)NoteTone.F4, (byte)0x00); + this.addNoteOn( ch, 0, (byte)NoteTone.FF5, vel); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_160), (byte)NoteTone.F4, (byte)0x00); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_080), (byte)NoteTone.F4, (byte)0x00); + + //またぐ 080 + this.addNoteOn( ch, 0, (byte)NoteTone.B4, vel); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_040), (byte)NoteTone.F4, (byte)0x00); + //080 + + this.addNoteOn( ch, 0, (byte)NoteTone.A4, vel); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_080), (byte)NoteTone.F4, (byte)0x00); + this.addNoteOn( ch, 0, (byte)NoteTone.B4, vel); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_080), (byte)NoteTone.F4, (byte)0x00); + this.addNoteOn( ch, 0, (byte)NoteTone.A4, vel); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_080), (byte)NoteTone.F4, (byte)0x00); + this.addNoteOn( ch, 0, (byte)NoteTone.B4, vel); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_080), (byte)NoteTone.F4, (byte)0x00); + this.addNoteOn( ch, 0, (byte)NoteTone.C5, vel); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_080), (byte)NoteTone.F4, (byte)0x00); + this.addNoteOn( ch, 0, (byte)NoteTone.B4, vel); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_080), (byte)NoteTone.F4, (byte)0x00); + this.addNoteOn( ch, 0, (byte)NoteTone.A4, vel); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_080), (byte)NoteTone.F4, (byte)0x00); + + this.addNoteOn( ch, 0, (byte)NoteTone.FF4, vel); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_080), (byte)NoteTone.F4, (byte)0x00); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_080), (byte)NoteTone.F4, (byte)0x00); + this.addNoteOn( ch, 0, (byte)NoteTone.FF5, vel); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_080), (byte)NoteTone.F4, (byte)0x00); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_080), (byte)NoteTone.F4, (byte)0x00); + this.addNoteOn( ch, 0, (byte)NoteTone.E5, vel); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_085), (byte)NoteTone.F4, (byte)0x00); + this.addNoteOn( ch, 0, (byte)NoteTone.FF5, vel); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_160), (byte)NoteTone.F4, (byte)0x00); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_080), (byte)NoteTone.F4, (byte)0x00); + + //またぐ 080 + this.addNoteOn( ch, 0, (byte)NoteTone.B4, vel); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_040), (byte)NoteTone.F4, (byte)0x00); + //080 + + this.addNoteOn( ch, 0, (byte)NoteTone.A4, vel); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_080), (byte)NoteTone.F4, (byte)0x00); + this.addNoteOn( ch, 0, (byte)NoteTone.B4, vel); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_080), (byte)NoteTone.F4, (byte)0x00); + this.addNoteOn( ch, 0, (byte)NoteTone.A4, vel); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_080), (byte)NoteTone.F4, (byte)0x00); + this.addNoteOn( ch, 0, (byte)NoteTone.B4, vel); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_080), (byte)NoteTone.F4, (byte)0x00); + this.addNoteOn( ch, 0, (byte)NoteTone.C5, vel); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_080), (byte)NoteTone.F4, (byte)0x00); + this.addNoteOn( ch, 0, (byte)NoteTone.B4, vel); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_080), (byte)NoteTone.F4, (byte)0x00); + this.addNoteOn( ch, 0, (byte)NoteTone.A4, vel); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_080), (byte)NoteTone.F4, (byte)0x00); + + this.addNoteOn( ch, 0, (byte)NoteTone.FF4, vel); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_080), (byte)NoteTone.F4, (byte)0x00); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_080), (byte)NoteTone.F4, (byte)0x00); + this.addNoteOn( ch, 0, (byte)NoteTone.FF5, vel); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_080), (byte)NoteTone.F4, (byte)0x00); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_080), (byte)NoteTone.F4, (byte)0x00); + this.addNoteOn( ch, 0, (byte)NoteTone.E5, vel); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_085), (byte)NoteTone.F4, (byte)0x00); + this.addNoteOn( ch, 0, (byte)NoteTone.FF5, vel); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_160), (byte)NoteTone.F4, (byte)0x00); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_080), (byte)NoteTone.F4, (byte)0x00); + + //またぐ 080 + this.addNoteOn( ch, 0, (byte)NoteTone.B4, vel); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_040), (byte)NoteTone.F4, (byte)0x00); + //080 + + this.addNoteOn( ch, 0, (byte)NoteTone.A4, vel); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_080), (byte)NoteTone.F4, (byte)0x00); + this.addNoteOn( ch, 0, (byte)NoteTone.B4, vel); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_080), (byte)NoteTone.F4, (byte)0x00); + this.addNoteOn( ch, 0, (byte)NoteTone.A4, vel); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_080), (byte)NoteTone.F4, (byte)0x00); + this.addNoteOn( ch, 0, (byte)NoteTone.B4, vel); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_080), (byte)NoteTone.F4, (byte)0x00); + this.addNoteOn( ch, 0, (byte)NoteTone.C5, vel); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_080), (byte)NoteTone.F4, (byte)0x00); + this.addNoteOn( ch, 0, (byte)NoteTone.B4, vel); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_080), (byte)NoteTone.F4, (byte)0x00); + this.addNoteOn( ch, 0, (byte)NoteTone.A4, vel); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_080), (byte)NoteTone.F4, (byte)0x00); + + this.addNoteOn( ch, 0, (byte)NoteTone.FF4, vel); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_080), (byte)NoteTone.F4, (byte)0x00); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_080), (byte)NoteTone.F4, (byte)0x00); + this.addNoteOn( ch, 0, (byte)NoteTone.FF5, vel); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_080), (byte)NoteTone.F4, (byte)0x00); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_080), (byte)NoteTone.F4, (byte)0x00); + this.addNoteOn( ch, 0, (byte)NoteTone.E5, vel); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_085), (byte)NoteTone.F4, (byte)0x00); + this.addNoteOn( ch, 0, (byte)NoteTone.FF5, vel); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_160), (byte)NoteTone.F4, (byte)0x00); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_080), (byte)NoteTone.F4, (byte)0x00); + + //またぐ 080 + this.addNoteOn( ch, 0, (byte)NoteTone.B4, vel); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_040), (byte)NoteTone.F4, (byte)0x00); + //080 + + this.addNoteOn( ch, 0, (byte)NoteTone.A4, vel); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_080), (byte)NoteTone.F4, (byte)0x00); + this.addNoteOn( ch, 0, (byte)NoteTone.B4, vel); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_080), (byte)NoteTone.F4, (byte)0x00); + this.addNoteOn( ch, 0, (byte)NoteTone.A4, vel); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_080), (byte)NoteTone.F4, (byte)0x00); + this.addNoteOn( ch, 0, (byte)NoteTone.B4, vel); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_080), (byte)NoteTone.F4, (byte)0x00); + this.addNoteOn( ch, 0, (byte)NoteTone.C5, vel); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_080), (byte)NoteTone.F4, (byte)0x00); + this.addNoteOn( ch, 0, (byte)NoteTone.B4, vel); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_080), (byte)NoteTone.F4, (byte)0x00); + this.addNoteOn( ch, 0, (byte)NoteTone.A4, vel); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_080), (byte)NoteTone.F4, (byte)0x00); + + this.addNoteOn( ch, 0, (byte)NoteTone.FF4, vel); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_080), (byte)NoteTone.F4, (byte)0x00); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_080), (byte)NoteTone.F4, (byte)0x00); + this.addNoteOn( ch, 0, (byte)NoteTone.FF5, vel); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_080), (byte)NoteTone.F4, (byte)0x00); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_080), (byte)NoteTone.F4, (byte)0x00); + this.addNoteOn( ch, 0, (byte)NoteTone.E5, vel); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_085), (byte)NoteTone.F4, (byte)0x00); + this.addNoteOn( ch, 0, (byte)NoteTone.FF5, vel); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_160), (byte)NoteTone.F4, (byte)0x00); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_080), (byte)NoteTone.F4, (byte)0x00); + + //またぐ 080 + this.addNoteOn( ch, 0, (byte)NoteTone.B4, vel); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_040), (byte)NoteTone.F4, (byte)0x00); + //080 + + this.addNoteOn( ch, 0, (byte)NoteTone.A4, vel); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_080), (byte)NoteTone.F4, (byte)0x00); + this.addNoteOn( ch, 0, (byte)NoteTone.B4, vel); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_080), (byte)NoteTone.F4, (byte)0x00); + this.addNoteOn( ch, 0, (byte)NoteTone.A4, vel); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_080), (byte)NoteTone.F4, (byte)0x00); + this.addNoteOn( ch, 0, (byte)NoteTone.B4, vel); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_080), (byte)NoteTone.F4, (byte)0x00); + this.addNoteOn( ch, 0, (byte)NoteTone.C5, vel); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_080), (byte)NoteTone.F4, (byte)0x00); + this.addNoteOn( ch, 0, (byte)NoteTone.B4, vel); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_080), (byte)NoteTone.F4, (byte)0x00); + this.addNoteOn( ch, 0, (byte)NoteTone.A4, vel); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_080), (byte)NoteTone.F4, (byte)0x00); + + this.addNoteOn( ch, 0, (byte)NoteTone.FF4, vel); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_080), (byte)NoteTone.F4, (byte)0x00); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_080), (byte)NoteTone.F4, (byte)0x00); + this.addNoteOn( ch, 0, (byte)NoteTone.FF5, vel); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_080), (byte)NoteTone.F4, (byte)0x00); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_080), (byte)NoteTone.F4, (byte)0x00); + this.addNoteOn( ch, 0, (byte)NoteTone.E5, vel); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_085), (byte)NoteTone.F4, (byte)0x00); + this.addNoteOn( ch, 0, (byte)NoteTone.FF5, vel); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_160), (byte)NoteTone.F4, (byte)0x00); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_080), (byte)NoteTone.F4, (byte)0x00); + + //またぐ 080 + this.addNoteOn( ch, 0, (byte)NoteTone.B4, vel); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_040), (byte)NoteTone.F4, (byte)0x00); + //080 + + this.addNoteOn( ch, 0, (byte)NoteTone.A4, vel); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_080), (byte)NoteTone.F4, (byte)0x00); + this.addNoteOn( ch, 0, (byte)NoteTone.B4, vel); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_080), (byte)NoteTone.F4, (byte)0x00); + this.addNoteOn( ch, 0, (byte)NoteTone.A4, vel); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_080), (byte)NoteTone.F4, (byte)0x00); + this.addNoteOn( ch, 0, (byte)NoteTone.B4, vel); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_080), (byte)NoteTone.F4, (byte)0x00); + this.addNoteOn( ch, 0, (byte)NoteTone.C5, vel); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_080), (byte)NoteTone.F4, (byte)0x00); + this.addNoteOn( ch, 0, (byte)NoteTone.B4, vel); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_080), (byte)NoteTone.F4, (byte)0x00); + this.addNoteOn( ch, 0, (byte)NoteTone.A4, vel); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_080), (byte)NoteTone.F4, (byte)0x00); + + this.addNoteOn( ch, 0, (byte)NoteTone.FF4, vel); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_080), (byte)NoteTone.F4, (byte)0x00); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_080), (byte)NoteTone.F4, (byte)0x00); + this.addNoteOn( ch, 0, (byte)NoteTone.FF5, vel); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_080), (byte)NoteTone.F4, (byte)0x00); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_080), (byte)NoteTone.F4, (byte)0x00); + this.addNoteOn( ch, 0, (byte)NoteTone.E5, vel); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_085), (byte)NoteTone.F4, (byte)0x00); + this.addNoteOn( ch, 0, (byte)NoteTone.FF5, vel); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_160), (byte)NoteTone.F4, (byte)0x00); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_080), (byte)NoteTone.F4, (byte)0x00); + + //またぐ 080 + this.addNoteOn( ch, 0, (byte)NoteTone.B4, vel); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_040), (byte)NoteTone.F4, (byte)0x00); + //080 + + this.addNoteOn( ch, 0, (byte)NoteTone.A4, vel); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_080), (byte)NoteTone.F4, (byte)0x00); + this.addNoteOn( ch, 0, (byte)NoteTone.B4, vel); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_080), (byte)NoteTone.F4, (byte)0x00); + this.addNoteOn( ch, 0, (byte)NoteTone.A4, vel); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_080), (byte)NoteTone.F4, (byte)0x00); + this.addNoteOn( ch, 0, (byte)NoteTone.B4, vel); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_080), (byte)NoteTone.F4, (byte)0x00); + this.addNoteOn( ch, 0, (byte)NoteTone.C5, vel); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_080), (byte)NoteTone.F4, (byte)0x00); + this.addNoteOn( ch, 0, (byte)NoteTone.B4, vel); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_080), (byte)NoteTone.F4, (byte)0x00); + this.addNoteOn( ch, 0, (byte)NoteTone.A4, vel); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_080), (byte)NoteTone.F4, (byte)0x00); + + this.addNoteOn( ch, 0, (byte)NoteTone.FF4, vel); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_080), (byte)NoteTone.F4, (byte)0x00); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_080), (byte)NoteTone.F4, (byte)0x00); + this.addNoteOn( ch, 0, (byte)NoteTone.FF5, vel); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_080), (byte)NoteTone.F4, (byte)0x00); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_080), (byte)NoteTone.F4, (byte)0x00); + this.addNoteOn( ch, 0, (byte)NoteTone.E5, vel); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_085), (byte)NoteTone.F4, (byte)0x00); + this.addNoteOn( ch, 0, (byte)NoteTone.FF5, vel); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_160), (byte)NoteTone.F4, (byte)0x00); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_080), (byte)NoteTone.F4, (byte)0x00); + + //またぐ 080 + this.addNoteOn( ch, 0, (byte)NoteTone.B4, vel); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_040), (byte)NoteTone.F4, (byte)0x00); + //080 + + this.addNoteOn( ch, 0, (byte)NoteTone.A4, vel); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_080), (byte)NoteTone.F4, (byte)0x00); + this.addNoteOn( ch, 0, (byte)NoteTone.B4, vel); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_080), (byte)NoteTone.F4, (byte)0x00); + this.addNoteOn( ch, 0, (byte)NoteTone.A4, vel); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_080), (byte)NoteTone.F4, (byte)0x00); + this.addNoteOn( ch, 0, (byte)NoteTone.B4, vel); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_080), (byte)NoteTone.F4, (byte)0x00); + this.addNoteOn( ch, 0, (byte)NoteTone.C5, vel); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_080), (byte)NoteTone.F4, (byte)0x00); + this.addNoteOn( ch, 0, (byte)NoteTone.B4, vel); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_080), (byte)NoteTone.F4, (byte)0x00); + this.addNoteOn( ch, 0, (byte)NoteTone.A4, vel); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_080), (byte)NoteTone.F4, (byte)0x00); + + + this.closeTrackData(); + } + catch( Exception e ) + { + e.printStackTrace(); + } + } + + // ドラムA5 + protected void Song5PercussionA( byte ch, byte vel ) + { + try + { + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_010), (byte)NoteTone.F4, (byte)0x00); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_010), (byte)NoteTone.F4, (byte)0x00); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_010), (byte)NoteTone.F4, (byte)0x00); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_010), (byte)NoteTone.F4, (byte)0x00); + this.addNoteOn( ch, 0, (byte)50, vel); + this.addNoteOn( ch, 0, (byte)36, vel); + this.addNoteOn( ch, 0, (byte)64, vel); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_160), (byte)49, (byte)0x00); + this.addNoteOn( ch, 0, (byte)44, vel); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_160), (byte)44, (byte)0x00); + this.addNoteOn( ch, 0, (byte)44, vel); + this.addNoteOn( ch, 0, (byte)63, vel); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_160), (byte)44, (byte)0x00); + this.addNoteOn( ch, 0, (byte)44, vel); + this.addNoteOn( ch, 0, (byte)63, vel); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_160), (byte)44, (byte)0x00); + this.addNoteOn( ch, 0, (byte)44, vel); + this.addNoteOn( ch, 0, (byte)36, vel); + this.addNoteOn( ch, 0, (byte)63, vel); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_160), (byte)44, (byte)0x00); + this.addNoteOn( ch, 0, (byte)44, vel); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_160), (byte)44, (byte)0x00); + this.addNoteOn( ch, 0, (byte)44, vel); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_160), (byte)44, (byte)0x00); + this.addNoteOn( ch, 0, (byte)44, vel); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_160), (byte)44, (byte)0x00); + this.addNoteOn( ch, 0, (byte)44, vel); + this.addNoteOn( ch, 0, (byte)36, vel); + this.addNoteOn( ch, 0, (byte)63, vel); + this.addNoteOn( ch, 0, (byte)64, vel); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_160), (byte)44, (byte)0x00); + this.addNoteOn( ch, 0, (byte)44, vel); + this.addNoteOn( ch, 0, (byte)63, vel); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_160), (byte)44, (byte)0x00); + this.addNoteOn( ch, 0, (byte)44, vel); + this.addNoteOn( ch, 0, (byte)63, vel); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_160), (byte)44, (byte)0x00); + this.addNoteOn( ch, 0, (byte)44, vel); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_160), (byte)44, (byte)0x00); + this.addNoteOn( ch, 0, (byte)44, vel); + this.addNoteOn( ch, 0, (byte)36, vel); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_160), (byte)44, (byte)0x00); + this.addNoteOn( ch, 0, (byte)44, vel); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_160), (byte)44, (byte)0x00); + this.addNoteOn( ch, 0, (byte)44, vel); + this.addNoteOn( ch, 0, (byte)64, vel); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_160), (byte)44, (byte)0x00); + + this.addNoteOn( ch, 0, (byte)44, vel); + this.addNoteOn( ch, 0, (byte)36, vel); + this.addNoteOn( ch, 0, (byte)64, vel); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_160), (byte)44, (byte)0x00); + this.addNoteOn( ch, 0, (byte)44, vel); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_160), (byte)44, (byte)0x00); + this.addNoteOn( ch, 0, (byte)44, vel); + this.addNoteOn( ch, 0, (byte)63, vel); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_160), (byte)44, (byte)0x00); + this.addNoteOn( ch, 0, (byte)44, vel); + this.addNoteOn( ch, 0, (byte)63, vel); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_160), (byte)44, (byte)0x00); + this.addNoteOn( ch, 0, (byte)44, vel); + this.addNoteOn( ch, 0, (byte)36, vel); + this.addNoteOn( ch, 0, (byte)63, vel); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_160), (byte)44, (byte)0x00); + this.addNoteOn( ch, 0, (byte)44, vel); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_160), (byte)44, (byte)0x00); + this.addNoteOn( ch, 0, (byte)44, vel); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_160), (byte)44, (byte)0x00); + this.addNoteOn( ch, 0, (byte)44, vel); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_160), (byte)44, (byte)0x00); + this.addNoteOn( ch, 0, (byte)44, vel); + this.addNoteOn( ch, 0, (byte)36, vel); + this.addNoteOn( ch, 0, (byte)63, vel); + this.addNoteOn( ch, 0, (byte)64, vel); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_160), (byte)44, (byte)0x00); + this.addNoteOn( ch, 0, (byte)44, vel); + this.addNoteOn( ch, 0, (byte)63, vel); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_160), (byte)44, (byte)0x00); + this.addNoteOn( ch, 0, (byte)44, vel); + this.addNoteOn( ch, 0, (byte)63, vel); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_160), (byte)44, (byte)0x00); + this.addNoteOn( ch, 0, (byte)44, vel); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_160), (byte)44, (byte)0x00); + this.addNoteOn( ch, 0, (byte)44, vel); + this.addNoteOn( ch, 0, (byte)63, vel); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_160), (byte)44, (byte)0x00); + this.addNoteOn( ch, 0, (byte)44, vel); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_160), (byte)44, (byte)0x00); + this.addNoteOn( ch, 0, (byte)44, vel); + this.addNoteOn( ch, 0, (byte)63, vel); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_160), (byte)44, (byte)0x00); + this.addNoteOn( ch, 0, (byte)44, vel); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_160), (byte)44, (byte)0x00); + + this.addNoteOn( ch, 0, (byte)44, vel); + this.addNoteOn( ch, 0, (byte)36, vel); + this.addNoteOn( ch, 0, (byte)64, vel); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_160), (byte)44, (byte)0x00); + this.addNoteOn( ch, 0, (byte)44, vel); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_160), (byte)44, (byte)0x00); + this.addNoteOn( ch, 0, (byte)44, vel); + this.addNoteOn( ch, 0, (byte)63, vel); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_160), (byte)44, (byte)0x00); + this.addNoteOn( ch, 0, (byte)44, vel); + this.addNoteOn( ch, 0, (byte)63, vel); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_160), (byte)44, (byte)0x00); + this.addNoteOn( ch, 0, (byte)44, vel); + this.addNoteOn( ch, 0, (byte)36, vel); + this.addNoteOn( ch, 0, (byte)63, vel); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_160), (byte)44, (byte)0x00); + this.addNoteOn( ch, 0, (byte)44, vel); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_160), (byte)44, (byte)0x00); + this.addNoteOn( ch, 0, (byte)44, vel); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_160), (byte)44, (byte)0x00); + this.addNoteOn( ch, 0, (byte)44, vel); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_160), (byte)44, (byte)0x00); + this.addNoteOn( ch, 0, (byte)44, vel); + this.addNoteOn( ch, 0, (byte)36, vel); + this.addNoteOn( ch, 0, (byte)63, vel); + this.addNoteOn( ch, 0, (byte)64, vel); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_160), (byte)44, (byte)0x00); + this.addNoteOn( ch, 0, (byte)44, vel); + this.addNoteOn( ch, 0, (byte)63, vel); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_160), (byte)44, (byte)0x00); + this.addNoteOn( ch, 0, (byte)44, vel); + this.addNoteOn( ch, 0, (byte)63, vel); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_160), (byte)44, (byte)0x00); + this.addNoteOn( ch, 0, (byte)44, vel); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_160), (byte)44, (byte)0x00); + this.addNoteOn( ch, 0, (byte)44, vel); + this.addNoteOn( ch, 0, (byte)36, vel); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_160), (byte)44, (byte)0x00); + this.addNoteOn( ch, 0, (byte)44, vel); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_160), (byte)44, (byte)0x00); + this.addNoteOn( ch, 0, (byte)44, vel); + this.addNoteOn( ch, 0, (byte)36, vel); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_160), (byte)44, (byte)0x00); + this.addNoteOn( ch, 0, (byte)44, vel); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_160), (byte)44, (byte)0x00); + + this.addNoteOn( ch, 0, (byte)44, vel); + this.addNoteOn( ch, 0, (byte)36, vel); + this.addNoteOn( ch, 0, (byte)64, vel); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_160), (byte)44, (byte)0x00); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_160), (byte)44, (byte)0x00); + this.addNoteOn( ch, 0, (byte)38, vel); + this.addNoteOn( ch, 0, (byte)63, vel); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_160), (byte)38, (byte)0x00); + this.addNoteOn( ch, 0, (byte)63, vel); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_160), (byte)38, (byte)0x00); + this.addNoteOn( ch, 0, (byte)63, vel); + this.addNoteOn( ch, 0, (byte)36, vel); + this.addNoteOn( ch, 0, (byte)38, vel); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_160), (byte)38, (byte)0x00); + this.addNoteOn( ch, 0, (byte)38, vel); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_160), (byte)38, (byte)0x00); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_160), (byte)38, (byte)0x00); + this.addNoteOn( ch, 0, (byte)38, vel); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_160), (byte)38, (byte)0x00); + this.addNoteOn( ch, 0, (byte)36, vel); + this.addNoteOn( ch, 0, (byte)63, vel); + this.addNoteOn( ch, 0, (byte)64, vel); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_160), (byte)38, (byte)0x00); + this.addNoteOn( ch, 0, (byte)63, vel); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_160), (byte)38, (byte)0x00); + this.addNoteOn( ch, 0, (byte)38, vel); + this.addNoteOn( ch, 0, (byte)63, vel); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_160), (byte)38, (byte)0x00); + this.addNoteOn( ch, 0, (byte)38, vel); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_160), (byte)38, (byte)0x00); + this.addNoteOn( ch, 0, (byte)38, vel); + this.addNoteOn( ch, 0, (byte)36, vel); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_160), (byte)38, (byte)0x00); + this.addNoteOn( ch, 0, (byte)38, vel); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_160), (byte)38, (byte)0x00); + this.addNoteOn( ch, 0, (byte)38, vel); + this.addNoteOn( ch, 0, (byte)64, vel); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_160), (byte)38, (byte)0x00); + this.addNoteOn( ch, 0, (byte)38, vel); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_160), (byte)38, (byte)0x00); + + this.addNoteOn( ch, 0, (byte)64, vel); + this.addNoteOn( ch, 0, (byte)36, vel); + this.addNoteOn( ch, 0, (byte)50, vel); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_160), (byte)38, (byte)0x00); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_160), (byte)38, (byte)0x00); + this.addNoteOn( ch, 0, (byte)63, vel); + this.addNoteOn( ch, 0, (byte)44, vel); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_160), (byte)38, (byte)0x00); + this.addNoteOn( ch, 0, (byte)63, vel); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_160), (byte)38, (byte)0x00); + this.addNoteOn( ch, 0, (byte)63, vel); + this.addNoteOn( ch, 0, (byte)38, vel); + this.addNoteOn( ch, 0, (byte)36, vel); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_160), (byte)38, (byte)0x00); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_160), (byte)38, (byte)0x00); + this.addNoteOn( ch, 0, (byte)44, vel); + this.addNoteOn( ch, 0, (byte)64, vel); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_160), (byte)38, (byte)0x00); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_160), (byte)38, (byte)0x00); + this.addNoteOn( ch, 0, (byte)36, vel); + this.addNoteOn( ch, 0, (byte)63, vel); + this.addNoteOn( ch, 0, (byte)64, vel); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_160), (byte)38, (byte)0x00); + this.addNoteOn( ch, 0, (byte)63, vel); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_160), (byte)38, (byte)0x00); + this.addNoteOn( ch, 0, (byte)63, vel); + this.addNoteOn( ch, 0, (byte)44, vel); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_160), (byte)38, (byte)0x00); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_160), (byte)38, (byte)0x00); + this.addNoteOn( ch, 0, (byte)38, vel); + this.addNoteOn( ch, 0, (byte)36, vel); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_160), (byte)38, (byte)0x00); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_160), (byte)38, (byte)0x00); + this.addNoteOn( ch, 0, (byte)64, vel); + this.addNoteOn( ch, 0, (byte)44, vel); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_160), (byte)38, (byte)0x00); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_160), (byte)38, (byte)0x00); + + this.addNoteOn( ch, 0, (byte)36, vel); + this.addNoteOn( ch, 0, (byte)64, vel); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_160), (byte)38, (byte)0x00); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_160), (byte)38, (byte)0x00); + this.addNoteOn( ch, 0, (byte)44, vel); + this.addNoteOn( ch, 0, (byte)63, vel); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_160), (byte)38, (byte)0x00); + this.addNoteOn( ch, 0, (byte)63, vel); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_160), (byte)38, (byte)0x00); + this.addNoteOn( ch, 0, (byte)63, vel); + this.addNoteOn( ch, 0, (byte)38, vel); + this.addNoteOn( ch, 0, (byte)36, vel); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_160), (byte)38, (byte)0x00); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_160), (byte)38, (byte)0x00); + this.addNoteOn( ch, 0, (byte)64, vel); + this.addNoteOn( ch, 0, (byte)44, vel); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_160), (byte)38, (byte)0x00); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_160), (byte)38, (byte)0x00); + this.addNoteOn( ch, 0, (byte)63, vel); + this.addNoteOn( ch, 0, (byte)38, vel); + this.addNoteOn( ch, 0, (byte)64, vel); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_160), (byte)38, (byte)0x00); + this.addNoteOn( ch, 0, (byte)63, vel); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_160), (byte)38, (byte)0x00); + this.addNoteOn( ch, 0, (byte)44, vel); + this.addNoteOn( ch, 0, (byte)63, vel); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_160), (byte)38, (byte)0x00); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_160), (byte)38, (byte)0x00); + this.addNoteOn( ch, 0, (byte)38, vel); + this.addNoteOn( ch, 0, (byte)36, vel); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_160), (byte)38, (byte)0x00); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_160), (byte)38, (byte)0x00); + this.addNoteOn( ch, 0, (byte)64, vel); + this.addNoteOn( ch, 0, (byte)44, vel); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_160), (byte)38, (byte)0x00); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_160), (byte)38, (byte)0x00); + + this.addNoteOn( ch, 0, (byte)36, vel); + this.addNoteOn( ch, 0, (byte)64, vel); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_160), (byte)38, (byte)0x00); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_160), (byte)38, (byte)0x00); + this.addNoteOn( ch, 0, (byte)44, vel); + this.addNoteOn( ch, 0, (byte)63, vel); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_160), (byte)38, (byte)0x00); + this.addNoteOn( ch, 0, (byte)63, vel); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_160), (byte)38, (byte)0x00); + this.addNoteOn( ch, 0, (byte)63, vel); + this.addNoteOn( ch, 0, (byte)38, vel); + this.addNoteOn( ch, 0, (byte)36, vel); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_160), (byte)38, (byte)0x00); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_160), (byte)38, (byte)0x00); + this.addNoteOn( ch, 0, (byte)64, vel); + this.addNoteOn( ch, 0, (byte)44, vel); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_160), (byte)38, (byte)0x00); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_160), (byte)38, (byte)0x00); + this.addNoteOn( ch, 0, (byte)63, vel); + this.addNoteOn( ch, 0, (byte)38, vel); + this.addNoteOn( ch, 0, (byte)64, vel); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_160), (byte)38, (byte)0x00); + this.addNoteOn( ch, 0, (byte)63, vel); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_160), (byte)38, (byte)0x00); + this.addNoteOn( ch, 0, (byte)44, vel); + this.addNoteOn( ch, 0, (byte)63, vel); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_160), (byte)38, (byte)0x00); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_160), (byte)38, (byte)0x00); + this.addNoteOn( ch, 0, (byte)38, vel); + this.addNoteOn( ch, 0, (byte)36, vel); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_160), (byte)38, (byte)0x00); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_160), (byte)38, (byte)0x00); + this.addNoteOn( ch, 0, (byte)64, vel); + this.addNoteOn( ch, 0, (byte)44, vel); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_160), (byte)38, (byte)0x00); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_160), (byte)38, (byte)0x00); + + this.addNoteOn( ch, 0, (byte)36, vel); + this.addNoteOn( ch, 0, (byte)64, vel); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_160), (byte)38, (byte)0x00); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_160), (byte)38, (byte)0x00); + this.addNoteOn( ch, 0, (byte)44, vel); + this.addNoteOn( ch, 0, (byte)63, vel); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_160), (byte)38, (byte)0x00); + this.addNoteOn( ch, 0, (byte)63, vel); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_160), (byte)38, (byte)0x00); + this.addNoteOn( ch, 0, (byte)63, vel); + this.addNoteOn( ch, 0, (byte)38, vel); + this.addNoteOn( ch, 0, (byte)36, vel); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_160), (byte)38, (byte)0x00); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_160), (byte)38, (byte)0x00); + this.addNoteOn( ch, 0, (byte)64, vel); + this.addNoteOn( ch, 0, (byte)44, vel); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_160), (byte)38, (byte)0x00); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_160), (byte)38, (byte)0x00); + this.addNoteOn( ch, 0, (byte)63, vel); + this.addNoteOn( ch, 0, (byte)38, vel); + this.addNoteOn( ch, 0, (byte)64, vel); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_160), (byte)38, (byte)0x00); + this.addNoteOn( ch, 0, (byte)63, vel); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_160), (byte)38, (byte)0x00); + this.addNoteOn( ch, 0, (byte)44, vel); + this.addNoteOn( ch, 0, (byte)63, vel); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_160), (byte)38, (byte)0x00); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_160), (byte)38, (byte)0x00); + this.addNoteOn( ch, 0, (byte)38, vel); + this.addNoteOn( ch, 0, (byte)36, vel); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_160), (byte)38, (byte)0x00); + this.addNoteOn( ch, 0, (byte)36, vel); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_160), (byte)38, (byte)0x00); + this.addNoteOn( ch, 0, (byte)36, vel); + this.addNoteOn( ch, 0, (byte)64, vel); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_160), (byte)38, (byte)0x00); + this.addNoteOn( ch, 0, (byte)36, vel); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_160), (byte)38, (byte)0x00); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_160), (byte)38, (byte)0x00); + + this.addNoteOn( ch, 0, (byte)64, vel); + this.addNoteOn( ch, 0, (byte)36, vel); + this.addNoteOn( ch, 0, (byte)50, vel); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_160), (byte)38, (byte)0x00); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_160), (byte)38, (byte)0x00); + this.addNoteOn( ch, 0, (byte)63, vel); + this.addNoteOn( ch, 0, (byte)44, vel); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_160), (byte)38, (byte)0x00); + this.addNoteOn( ch, 0, (byte)63, vel); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_160), (byte)38, (byte)0x00); + this.addNoteOn( ch, 0, (byte)63, vel); + this.addNoteOn( ch, 0, (byte)38, vel); + this.addNoteOn( ch, 0, (byte)36, vel); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_160), (byte)38, (byte)0x00); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_160), (byte)38, (byte)0x00); + this.addNoteOn( ch, 0, (byte)44, vel); + this.addNoteOn( ch, 0, (byte)64, vel); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_160), (byte)38, (byte)0x00); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_160), (byte)38, (byte)0x00); + this.addNoteOn( ch, 0, (byte)36, vel); + this.addNoteOn( ch, 0, (byte)63, vel); + this.addNoteOn( ch, 0, (byte)64, vel); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_160), (byte)38, (byte)0x00); + this.addNoteOn( ch, 0, (byte)63, vel); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_160), (byte)38, (byte)0x00); + this.addNoteOn( ch, 0, (byte)63, vel); + this.addNoteOn( ch, 0, (byte)44, vel); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_160), (byte)38, (byte)0x00); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_160), (byte)38, (byte)0x00); + this.addNoteOn( ch, 0, (byte)38, vel); + this.addNoteOn( ch, 0, (byte)36, vel); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_160), (byte)38, (byte)0x00); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_160), (byte)38, (byte)0x00); + this.addNoteOn( ch, 0, (byte)64, vel); + this.addNoteOn( ch, 0, (byte)44, vel); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_160), (byte)38, (byte)0x00); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_160), (byte)38, (byte)0x00); + + this.addNoteOn( ch, 0, (byte)36, vel); + this.addNoteOn( ch, 0, (byte)64, vel); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_160), (byte)38, (byte)0x00); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_160), (byte)38, (byte)0x00); + this.addNoteOn( ch, 0, (byte)44, vel); + this.addNoteOn( ch, 0, (byte)63, vel); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_160), (byte)38, (byte)0x00); + this.addNoteOn( ch, 0, (byte)63, vel); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_160), (byte)38, (byte)0x00); + this.addNoteOn( ch, 0, (byte)63, vel); + this.addNoteOn( ch, 0, (byte)38, vel); + this.addNoteOn( ch, 0, (byte)36, vel); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_160), (byte)38, (byte)0x00); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_160), (byte)38, (byte)0x00); + this.addNoteOn( ch, 0, (byte)64, vel); + this.addNoteOn( ch, 0, (byte)44, vel); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_160), (byte)38, (byte)0x00); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_160), (byte)38, (byte)0x00); + this.addNoteOn( ch, 0, (byte)63, vel); + this.addNoteOn( ch, 0, (byte)38, vel); + this.addNoteOn( ch, 0, (byte)64, vel); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_160), (byte)38, (byte)0x00); + this.addNoteOn( ch, 0, (byte)63, vel); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_160), (byte)38, (byte)0x00); + this.addNoteOn( ch, 0, (byte)44, vel); + this.addNoteOn( ch, 0, (byte)63, vel); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_160), (byte)38, (byte)0x00); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_160), (byte)38, (byte)0x00); + this.addNoteOn( ch, 0, (byte)38, vel); + this.addNoteOn( ch, 0, (byte)36, vel); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_160), (byte)38, (byte)0x00); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_160), (byte)38, (byte)0x00); + this.addNoteOn( ch, 0, (byte)64, vel); + this.addNoteOn( ch, 0, (byte)44, vel); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_160), (byte)38, (byte)0x00); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_160), (byte)38, (byte)0x00); + + this.addNoteOn( ch, 0, (byte)36, vel); + this.addNoteOn( ch, 0, (byte)64, vel); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_160), (byte)38, (byte)0x00); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_160), (byte)38, (byte)0x00); + this.addNoteOn( ch, 0, (byte)44, vel); + this.addNoteOn( ch, 0, (byte)63, vel); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_160), (byte)38, (byte)0x00); + this.addNoteOn( ch, 0, (byte)63, vel); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_160), (byte)38, (byte)0x00); + this.addNoteOn( ch, 0, (byte)63, vel); + this.addNoteOn( ch, 0, (byte)38, vel); + this.addNoteOn( ch, 0, (byte)36, vel); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_160), (byte)38, (byte)0x00); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_160), (byte)38, (byte)0x00); + this.addNoteOn( ch, 0, (byte)64, vel); + this.addNoteOn( ch, 0, (byte)44, vel); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_160), (byte)38, (byte)0x00); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_160), (byte)38, (byte)0x00); + this.addNoteOn( ch, 0, (byte)63, vel); + this.addNoteOn( ch, 0, (byte)38, vel); + this.addNoteOn( ch, 0, (byte)64, vel); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_160), (byte)38, (byte)0x00); + this.addNoteOn( ch, 0, (byte)63, vel); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_160), (byte)38, (byte)0x00); + this.addNoteOn( ch, 0, (byte)44, vel); + this.addNoteOn( ch, 0, (byte)63, vel); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_160), (byte)38, (byte)0x00); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_160), (byte)38, (byte)0x00); + this.addNoteOn( ch, 0, (byte)38, vel); + this.addNoteOn( ch, 0, (byte)36, vel); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_160), (byte)38, (byte)0x00); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_160), (byte)38, (byte)0x00); + this.addNoteOn( ch, 0, (byte)64, vel); + this.addNoteOn( ch, 0, (byte)44, vel); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_160), (byte)38, (byte)0x00); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_160), (byte)38, (byte)0x00); + + this.addNoteOn( ch, 0, (byte)36, vel); + this.addNoteOn( ch, 0, (byte)64, vel); + this.addNoteOn( ch, 0, (byte)50, vel); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_160), (byte)38, (byte)0x00); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_160), (byte)38, (byte)0x00); + this.addNoteOn( ch, 0, (byte)38, vel); + this.addNoteOn( ch, 0, (byte)63, vel); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_160), (byte)38, (byte)0x00); + this.addNoteOn( ch, 0, (byte)38, vel); + this.addNoteOn( ch, 0, (byte)63, vel); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_160), (byte)38, (byte)0x00); + this.addNoteOn( ch, 0, (byte)38, vel); + this.addNoteOn( ch, 0, (byte)63, vel); + this.addNoteOn( ch, 0, (byte)36, vel); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_160), (byte)38, (byte)0x00); + this.addNoteOn( ch, 0, (byte)38, vel); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_160), (byte)38, (byte)0x00); + this.addNoteOn( ch, 0, (byte)38, vel); + this.addNoteOn( ch, 0, (byte)64, vel); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_160), (byte)38, (byte)0x00); + this.addNoteOn( ch, 0, (byte)38, vel); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_160), (byte)38, (byte)0x00); + this.addNoteOn( ch, 0, (byte)38, vel); + this.addNoteOn( ch, 0, (byte)36, vel); + this.addNoteOn( ch, 0, (byte)63, vel); + this.addNoteOn( ch, 0, (byte)64, vel); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_160), (byte)38, (byte)0x00); + this.addNoteOn( ch, 0, (byte)38, vel); + this.addNoteOn( ch, 0, (byte)63, vel); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_160), (byte)38, (byte)0x00); + this.addNoteOn( ch, 0, (byte)63, vel); + this.addNoteOn( ch, 0, (byte)48, vel); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_160), (byte)38, (byte)0x00); + this.addNoteOn( ch, 0, (byte)38, vel); + this.addNoteOn( ch, 0, (byte)48, vel); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_160), (byte)38, (byte)0x00); + this.addNoteOn( ch, 0, (byte)36, vel); + this.addNoteOn( ch, 0, (byte)41, vel); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_160), (byte)38, (byte)0x00); + this.addNoteOn( ch, 0, (byte)64, vel); + this.addNoteOn( ch, 0, (byte)41, vel); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_160), (byte)38, (byte)0x00); + this.addNoteOn( ch, 0, (byte)64, vel); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_160), (byte)38, (byte)0x00); + this.addNoteOn( ch, 0, (byte)38, vel); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_160), (byte)38, (byte)0x00); + + this.addNoteOn( ch, 0, (byte)36, vel); + this.addNoteOn( ch, 0, (byte)45, vel); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_160), (byte)38, (byte)0x00); + + this.closeTrackData(); + } + catch( Exception e ) + { + e.printStackTrace(); + } + } + + + // ドラムB5 + protected void Song5PercussionB( byte ch, byte vel ) + { + try + { + this.addNoteOn( ch, 0, (byte)35, vel); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_040), (byte)35, (byte)0x00); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_080), (byte)35, (byte)0x00); + this.addNoteOn( ch, 0, (byte)35, vel); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_040), (byte)35, (byte)0x00); + this.addNoteOn( ch, 0, (byte)35, vel); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_080), (byte)54, (byte)0x00); + this.addNoteOn( ch, 0, (byte)40, vel); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_040), (byte)54, (byte)0x00); + + this.addNoteOn( ch, 0, (byte)35, vel); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_040), (byte)35, (byte)0x00); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_080), (byte)35, (byte)0x00); + this.addNoteOn( ch, 0, (byte)35, vel); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_040), (byte)35, (byte)0x00); + this.addNoteOn( ch, 0, (byte)35, vel); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_080), (byte)54, (byte)0x00); + this.addNoteOn( ch, 0, (byte)40, vel); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_040), (byte)54, (byte)0x00); + + this.addNoteOn( ch, 0, (byte)35, vel); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_040), (byte)35, (byte)0x00); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_080), (byte)35, (byte)0x00); + this.addNoteOn( ch, 0, (byte)35, vel); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_040), (byte)35, (byte)0x00); + this.addNoteOn( ch, 0, (byte)35, vel); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_080), (byte)54, (byte)0x00); + this.addNoteOn( ch, 0, (byte)40, vel); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_040), (byte)54, (byte)0x00); + + this.addNoteOn( ch, 0, (byte)35, vel); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_040), (byte)35, (byte)0x00); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_080), (byte)35, (byte)0x00); + this.addNoteOn( ch, 0, (byte)35, vel); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_040), (byte)35, (byte)0x00); + this.addNoteOn( ch, 0, (byte)35, vel); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_080), (byte)54, (byte)0x00); + this.addNoteOn( ch, 0, (byte)40, vel); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_040), (byte)54, (byte)0x00); + + this.addNoteOn( ch, 0, (byte)35, vel); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_040), (byte)35, (byte)0x00); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_080), (byte)35, (byte)0x00); + this.addNoteOn( ch, 0, (byte)35, vel); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_040), (byte)35, (byte)0x00); + this.addNoteOn( ch, 0, (byte)35, vel); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_080), (byte)54, (byte)0x00); + this.addNoteOn( ch, 0, (byte)40, vel); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_040), (byte)54, (byte)0x00); + + this.addNoteOn( ch, 0, (byte)35, vel); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_040), (byte)35, (byte)0x00); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_080), (byte)35, (byte)0x00); + this.addNoteOn( ch, 0, (byte)35, vel); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_040), (byte)35, (byte)0x00); + this.addNoteOn( ch, 0, (byte)35, vel); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_080), (byte)54, (byte)0x00); + this.addNoteOn( ch, 0, (byte)40, vel); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_040), (byte)54, (byte)0x00); + + this.addNoteOn( ch, 0, (byte)35, vel); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_040), (byte)35, (byte)0x00); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_080), (byte)35, (byte)0x00); + this.addNoteOn( ch, 0, (byte)35, vel); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_040), (byte)35, (byte)0x00); + this.addNoteOn( ch, 0, (byte)35, vel); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_080), (byte)54, (byte)0x00); + this.addNoteOn( ch, 0, (byte)40, vel); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_040), (byte)54, (byte)0x00); + + this.addNoteOn( ch, 0, (byte)35, vel); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_040), (byte)35, (byte)0x00); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_080), (byte)35, (byte)0x00); + this.addNoteOn( ch, 0, (byte)35, vel); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_040), (byte)35, (byte)0x00); + this.addNoteOn( ch, 0, (byte)35, vel); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_080), (byte)54, (byte)0x00); + this.addNoteOn( ch, 0, (byte)40, vel); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_040), (byte)54, (byte)0x00); + + this.closeTrackData(); + } + catch( Exception e ) + { + e.printStackTrace(); + } + } + + // ドラム管理5 + protected void Song5Percuss( int no, byte vel ) + { + switch( no ) + { + case 0: + this.SongPercussionC( (byte) 0x09, vel); + break; + + case 1: + this.Song5PercussionA( (byte) 0x09, vel); + break; + + case 2: + this.Song5PercussionB( (byte) 0x09, vel ); + break; + + default: + this.SongPercussionC( (byte) 0x09, vel); + break; + } + } + + // 伴奏A5 + protected void Song5ArrangeA( byte ch, byte vel ) + { + try + { + + this.addNoteOn( ch, 0, (byte)NoteTone.FF4, vel); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_080), (byte)NoteTone.F4, (byte)0x00); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_080), (byte)NoteTone.F4, (byte)0x00); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_080), (byte)NoteTone.F4, (byte)0x00); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_080), (byte)NoteTone.F4, (byte)0x00); + this.addNoteOn( ch, 0, (byte)NoteTone.B4, vel); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_085), (byte)NoteTone.F4, (byte)0x00); + this.addNoteOn( ch, 0, (byte)NoteTone.A4, vel); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_160), (byte)NoteTone.F4, (byte)0x00); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_080), (byte)NoteTone.F4, (byte)0x00); + + //またぐ 080 + this.addNoteOn( ch, 0, (byte)NoteTone.FF4, vel); + this.addNoteOn( ch, this.getNoteDeltaTime(2.5), (byte)NoteTone.F4, (byte)0x00); + //020 + + this.addNoteOn( ch, 0, (byte)NoteTone.A4, vel); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_080), (byte)NoteTone.F4, (byte)0x00); + + this.addNoteOn( ch, 0, (byte)NoteTone.FF4, vel); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_080), (byte)NoteTone.F4, (byte)0x00); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_080), (byte)NoteTone.F4, (byte)0x00); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_080), (byte)NoteTone.F4, (byte)0x00); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_080), (byte)NoteTone.F4, (byte)0x00); + this.addNoteOn( ch, 0, (byte)NoteTone.B4, vel); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_085), (byte)NoteTone.F4, (byte)0x00); + this.addNoteOn( ch, 0, (byte)NoteTone.A4, vel); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_160), (byte)NoteTone.F4, (byte)0x00); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_080), (byte)NoteTone.F4, (byte)0x00); + + //またぐ 080 + this.addNoteOn( ch, 0, (byte)NoteTone.FF4, vel); + this.addNoteOn( ch, this.getNoteDeltaTime(2.5), (byte)NoteTone.F4, (byte)0x00); + //020 + + this.addNoteOn( ch, 0, (byte)NoteTone.F4, vel); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_080), (byte)NoteTone.F4, (byte)0x00); + + this.addNoteOn( ch, 0, (byte)NoteTone.FF4, vel); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_080), (byte)NoteTone.F4, (byte)0x00); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_080), (byte)NoteTone.F4, (byte)0x00); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_080), (byte)NoteTone.F4, (byte)0x00); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_080), (byte)NoteTone.F4, (byte)0x00); + this.addNoteOn( ch, 0, (byte)NoteTone.B4, vel); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_085), (byte)NoteTone.F4, (byte)0x00); + this.addNoteOn( ch, 0, (byte)NoteTone.A4, vel); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_160), (byte)NoteTone.F4, (byte)0x00); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_080), (byte)NoteTone.F4, (byte)0x00); + + //またぐ 080 + this.addNoteOn( ch, 0, (byte)NoteTone.FF4, vel); + this.addNoteOn( ch, this.getNoteDeltaTime(2.5), (byte)NoteTone.F4, (byte)0x00); + //020 + + this.addNoteOn( ch, 0, (byte)NoteTone.A4, vel); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_080), (byte)NoteTone.F4, (byte)0x00); + + this.addNoteOn( ch, 0, (byte)NoteTone.FF4, vel); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_080), (byte)NoteTone.F4, (byte)0x00); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_080), (byte)NoteTone.F4, (byte)0x00); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_080), (byte)NoteTone.F4, (byte)0x00); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_080), (byte)NoteTone.F4, (byte)0x00); + this.addNoteOn( ch, 0, (byte)NoteTone.B4, vel); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_085), (byte)NoteTone.F4, (byte)0x00); + this.addNoteOn( ch, 0, (byte)NoteTone.A4, vel); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_160), (byte)NoteTone.F4, (byte)0x00); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_080), (byte)NoteTone.F4, (byte)0x00); + + //またぐ 080 + this.addNoteOn( ch, 0, (byte)NoteTone.FF4, vel); + this.addNoteOn( ch, this.getNoteDeltaTime(2.5), (byte)NoteTone.F4, (byte)0x00); + //020 + + this.addNoteOn( ch, 0, (byte)NoteTone.F4, vel); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_080), (byte)NoteTone.F4, (byte)0x00); + //ここまでで8小説 + + this.addNoteOn( ch, 0, (byte)NoteTone.FF4, vel); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_080), (byte)NoteTone.F4, (byte)0x00); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_080), (byte)NoteTone.F4, (byte)0x00); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_080), (byte)NoteTone.F4, (byte)0x00); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_080), (byte)NoteTone.F4, (byte)0x00); + this.addNoteOn( ch, 0, (byte)NoteTone.B4, vel); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_085), (byte)NoteTone.F4, (byte)0x00); + this.addNoteOn( ch, 0, (byte)NoteTone.A4, vel); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_160), (byte)NoteTone.F4, (byte)0x00); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_080), (byte)NoteTone.F4, (byte)0x00); + + //またぐ 080 + this.addNoteOn( ch, 0, (byte)NoteTone.FF4, vel); + this.addNoteOn( ch, this.getNoteDeltaTime(2.5), (byte)NoteTone.F4, (byte)0x00); + //020 + + this.addNoteOn( ch, 0, (byte)NoteTone.A4, vel); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_080), (byte)NoteTone.F4, (byte)0x00); + + this.addNoteOn( ch, 0, (byte)NoteTone.CC4, vel); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_080), (byte)NoteTone.F4, (byte)0x00); + this.addNoteOn( ch, 0, (byte)NoteTone.B4, vel); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_085), (byte)NoteTone.F4, (byte)0x00); + this.addNoteOn( ch, 0, (byte)NoteTone.A4, vel); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_160), (byte)NoteTone.F4, (byte)0x00); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_080), (byte)NoteTone.F4, (byte)0x00); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_085), (byte)NoteTone.F4, (byte)0x00); + this.addNoteOn( ch, 0, (byte)NoteTone.A4, vel); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_160), (byte)NoteTone.F4, (byte)0x00); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_080), (byte)NoteTone.F4, (byte)0x00); + + //080 + this.addNoteOn( ch, 0, (byte)NoteTone.A5, vel); + this.addNoteOn( ch, this.getNoteDeltaTime(2.5), (byte)NoteTone.F4, (byte)0x00); + //080 + + this.addNoteOn( ch, 0, (byte)NoteTone.GG5, vel); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_080), (byte)NoteTone.F4, (byte)0x00); + this.addNoteOn( ch, 0, (byte)NoteTone.FF5, vel); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_160), (byte)NoteTone.F4, (byte)0x00); + this.addNoteOn( ch, 0, (byte)NoteTone.E5, vel); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_160), (byte)NoteTone.F4, (byte)0x00); + this.addNoteOn( ch, 0, (byte)NoteTone.FF5, vel); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_040), (byte)NoteTone.F4, (byte)0x00); + this.addNoteOn( ch, 0, (byte)NoteTone.FF5, vel); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_080), (byte)NoteTone.F4, (byte)0x00); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_040), (byte)NoteTone.F4, (byte)0x00); + //ここまで13小節 + + this.addNoteOn( ch, 0, (byte)NoteTone.CC4, vel); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_080), (byte)NoteTone.F4, (byte)0x00); + this.addNoteOn( ch, 0, (byte)NoteTone.B4, vel); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_085), (byte)NoteTone.F4, (byte)0x00); + this.addNoteOn( ch, 0, (byte)NoteTone.A4, vel); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_160), (byte)NoteTone.F4, (byte)0x00); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_080), (byte)NoteTone.F4, (byte)0x00); + this.addNoteOn( ch, 0, (byte)NoteTone.B4, vel); + this.addNoteOn( ch, 0, (byte)NoteTone.GG5, vel); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_085), (byte)NoteTone.B4, (byte)0x00); + this.addNoteOn( ch, 0, (byte)NoteTone.GG5, (byte)0x00); + this.addNoteOn( ch, 0, (byte)NoteTone.A4, vel); + this.addNoteOn( ch, 0, (byte)NoteTone.A5, vel); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_160), (byte)NoteTone.A4, (byte)0x00); + this.addNoteOn( ch, 0, (byte)NoteTone.A5, (byte)0x00); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_080), (byte)NoteTone.A4, (byte)0x00); + + //080 + this.addNoteOn( ch, 0, (byte)NoteTone.FF4, vel); + this.addNoteOn( ch, this.getNoteDeltaTime(2.5), (byte)NoteTone.F4, (byte)0x00); + //020 + + this.addNoteOn( ch, 0, (byte)NoteTone.A4, vel); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_020), (byte)NoteTone.F4, (byte)0x00); + + this.addNoteOn( ch, 0, (byte)NoteTone.CC4, vel); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_080), (byte)NoteTone.F4, (byte)0x00); + this.addNoteOn( ch, 0, (byte)NoteTone.B4, vel); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_085), (byte)NoteTone.F4, (byte)0x00); + this.addNoteOn( ch, 0, (byte)NoteTone.A4, vel); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_160), (byte)NoteTone.F4, (byte)0x00); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_080), (byte)NoteTone.F4, (byte)0x00); + this.addNoteOn( ch, 0, (byte)NoteTone.B4, vel); + this.addNoteOn( ch, 0, (byte)NoteTone.GG5, vel); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_085), (byte)NoteTone.B4, (byte)0x00); + this.addNoteOn( ch, 0, (byte)NoteTone.GG5, (byte)0x00); + this.addNoteOn( ch, 0, (byte)NoteTone.A4, vel); + this.addNoteOn( ch, 0, (byte)NoteTone.A5, vel); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_160), (byte)NoteTone.A4, (byte)0x00); + this.addNoteOn( ch, 0, (byte)NoteTone.A5, (byte)0x00); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_080), (byte)NoteTone.A4, (byte)0x00); + + //080 + this.addNoteOn( ch, 0, (byte)NoteTone.FF4, vel); + this.addNoteOn( ch, this.getNoteDeltaTime(2.5), (byte)NoteTone.F4, (byte)0x00); + //020 + + this.addNoteOn( ch, 0, (byte)NoteTone.A4, vel); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_020), (byte)NoteTone.F4, (byte)0x00); + + this.closeTrackData(); + } + catch( Exception e ) + { + e.printStackTrace(); + } + } + + // 伴奏B5 + protected void Song5ArrangeB( byte ch, byte vel ) + { + try + { + + this.addNoteOn( ch, 0, (byte)NoteTone.CC3, vel); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_010), (byte)NoteTone.F4, (byte)0x00); + + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_080), (byte)NoteTone.F4, (byte)0x00); + this.addNoteOn( ch, 0, (byte)NoteTone.CC3, vel); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_040), (byte)NoteTone.F4, (byte)0x00); + this.addNoteOn( ch, 0, (byte)NoteTone.E3, vel); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_080), (byte)NoteTone.F4, (byte)0x00); + this.addNoteOn( ch, 0, (byte)NoteTone.CC3, vel); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_080), (byte)NoteTone.F4, (byte)0x00); + this.addNoteOn( ch, 0, (byte)NoteTone.B2, vel); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_080), (byte)NoteTone.F4, (byte)0x00); + this.addNoteOn( ch, 0, (byte)NoteTone.A2, vel); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_080), (byte)NoteTone.F4, (byte)0x00); + this.addNoteOn( ch, 0, (byte)NoteTone.FF2, vel); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_080), (byte)NoteTone.F4, (byte)0x00); + + this.addNoteOn( ch, 0, (byte)NoteTone.A2, vel); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_160), (byte)NoteTone.F4, (byte)0x00); + this.addNoteOn( ch, 0, (byte)NoteTone.B2, vel); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_160), (byte)NoteTone.F4, (byte)0x00); + this.addNoteOn( ch, 0, (byte)NoteTone.A2, vel); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_025), (byte)NoteTone.F4, (byte)0x00); + + //080 + this.addNoteOn( ch, 0, (byte)NoteTone.FF2, vel); + this.addNoteOn( ch, this.getNoteDeltaTime(2.5), (byte)NoteTone.F4, (byte)0x00); + //020 + + this.addNoteOn( ch, 0, (byte)NoteTone.A2, vel); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_020), (byte)NoteTone.F4, (byte)0x00); + + this.addNoteOn( ch, 0, (byte)NoteTone.A2, vel); + this.addNoteOn( ch, this.getNoteDeltaTime(3.5), (byte)NoteTone.F4, (byte)0x00); + + //080 + this.addNoteOn( ch, 0, (byte)NoteTone.B3, vel); + this.addNoteOn( ch, this.getNoteDeltaTime(4.5), (byte)NoteTone.F4, (byte)0x00); + //010 + + this.addNoteOn( ch, 0, (byte)NoteTone.A2, vel); + this.addNoteOn( ch, this.getNoteDeltaTime(3.5), (byte)NoteTone.F4, (byte)0x00); + + //080 + this.addNoteOn( ch, 0, (byte)NoteTone.B3, vel); + this.addNoteOn( ch, this.getNoteDeltaTime(4.5), (byte)NoteTone.F4, (byte)0x00); + //010 + + this.addNoteOn( ch, 0, (byte)NoteTone.A2, vel); + this.addNoteOn( ch, this.getNoteDeltaTime(3.5), (byte)NoteTone.F4, (byte)0x00); + + //080 + this.addNoteOn( ch, 0, (byte)NoteTone.B3, vel); + this.addNoteOn( ch, this.getNoteDeltaTime(4.5), (byte)NoteTone.F4, (byte)0x00); + //010 + + this.addNoteOn( ch, 0, (byte)NoteTone.A2, vel); + this.addNoteOn( ch, this.getNoteDeltaTime(3.5), (byte)NoteTone.F4, (byte)0x00); + + //080 + this.addNoteOn( ch, 0, (byte)NoteTone.B3, vel); + this.addNoteOn( ch, this.getNoteDeltaTime(4.5), (byte)NoteTone.F4, (byte)0x00); + //010 + + this.addNoteOn( ch, 0, (byte)NoteTone.A2, vel); + this.addNoteOn( ch, this.getNoteDeltaTime(3.5), (byte)NoteTone.F4, (byte)0x00); + + //080 + this.addNoteOn( ch, 0, (byte)NoteTone.B3, vel); + this.addNoteOn( ch, this.getNoteDeltaTime(4.5), (byte)NoteTone.F4, (byte)0x00); + //010 + + this.addNoteOn( ch, 0, (byte)NoteTone.A2, vel); + this.addNoteOn( ch, this.getNoteDeltaTime(3.5), (byte)NoteTone.F4, (byte)0x00); + + //080 + this.addNoteOn( ch, 0, (byte)NoteTone.B3, vel); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_040), (byte)NoteTone.F4, (byte)0x00); + //080 + + this.addNoteOn( ch, 0, (byte)NoteTone.A3, vel); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_080), (byte)NoteTone.F4, (byte)0x00); + this.addNoteOn( ch, 0, (byte)NoteTone.B3, vel); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_080), (byte)NoteTone.F4, (byte)0x00); + this.addNoteOn( ch, 0, (byte)NoteTone.A3, vel); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_080), (byte)NoteTone.F4, (byte)0x00); + this.addNoteOn( ch, 0, (byte)NoteTone.B3, vel); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_080), (byte)NoteTone.F4, (byte)0x00); + this.addNoteOn( ch, 0, (byte)NoteTone.C3, vel); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_080), (byte)NoteTone.F4, (byte)0x00); + this.addNoteOn( ch, 0, (byte)NoteTone.B3, vel); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_080), (byte)NoteTone.F4, (byte)0x00); + this.addNoteOn( ch, 0, (byte)NoteTone.A3, vel); + this.addNoteOn( ch, this.getNoteDeltaTime(NoteTime.Note_080), (byte)NoteTone.F4, (byte)0x00); + + this.closeTrackData(); + } + catch( Exception e ) + { + e.printStackTrace(); + } + } + + } diff --git a/Muse_performance/app/src/main/java/muse/muse_performance/Option.java b/Muse_performance/app/src/main/java/muse/muse_performance/Option.java index 2deb610..4560d65 100644 --- a/Muse_performance/app/src/main/java/muse/muse_performance/Option.java +++ b/Muse_performance/app/src/main/java/muse/muse_performance/Option.java @@ -1,6 +1,7 @@ package muse.muse_performance; import android.os.Bundle; +import android.util.Log; import android.view.View; import android.app.Activity; import android.widget.AdapterView; @@ -79,19 +80,21 @@ private class Instrument // 本体 private Instrument[] InstList = { new Instrument( "ピアノ", 0 ), + new Instrument("パープシコード",7), new Instrument( "オルゴール", 11 ), new Instrument( "マリンバ", 13 ), new Instrument( "ドローパーオルガン", 17 ), new Instrument( "アコーディオン", 22 ), - new Instrument( "ハーモニカ", 23 ), new Instrument( "ナイロン弦アコギ", 25 ), new Instrument( "スラップベース", 37 ), new Instrument( "シンセベース2", 40 ), new Instrument( "ヴァイオリン", 41 ), + new Instrument("ティンパニ",48), new Instrument( "トランペット", 57 ), new Instrument( "ソプラノサックス", 65 ), + new Instrument("フルート",74), + new Instrument("クリスタル",99), new Instrument( "三味線", 107 ), - new Instrument( "太鼓", 117 ) }; public String[] nameList = new String[ InstList.length ]; public int[] instList = new int[ InstList.length ]; @@ -164,10 +167,12 @@ protected void onCreate(Bundle savedInstanceState) melodyInst[3] = intent.getIntExtra("MInst3", 0); beat = intent.getIntExtra("BEAT", 0); + Log.d("","opt "+melodyInst[1]); + //曲のドロップダウンメニュー selectSong=(Spinner)findViewById(R.id.songSpinner); ArrayAdapter adapterSong = new ArrayAdapter(this,android.R.layout.simple_spinner_item,songItems); - adapterSong.setDropDownViewResource(android.R.layout.simple_spinner_dropdown_item); + adapterSong.setDropDownViewResource( android.R.layout.simple_spinner_dropdown_item ); selectSong.setAdapter(adapterSong); selectSong.setSelection(songNo); selectSong.setOnItemSelectedListener(new OnItemSelectedListener(){ @@ -352,9 +357,9 @@ public void onStopTrackingTouch(SeekBar seekbar){} public void onClick(View v) { Intent intent=new Intent(); intent.putExtra("RES_SongNo", songNo); - intent.putExtra("RES_A1Inst0", arrange2Inst[0]); - intent.putExtra("RES_A1Inst1", arrange2Inst[1]); - intent.putExtra("RES_A1Inst2", arrange2Inst[2]); + intent.putExtra("RES_A1Inst0", arrange1Inst[0]); + intent.putExtra("RES_A1Inst1", arrange1Inst[1]); + intent.putExtra("RES_A1Inst2", arrange1Inst[2]); intent.putExtra("RES_A2Inst0", arrange2Inst[0]); intent.putExtra("RES_A2Inst1", arrange2Inst[1]); intent.putExtra("RES_A2Inst2", arrange2Inst[2]); @@ -364,6 +369,7 @@ public void onClick(View v) { intent.putExtra("RES_MInst3", melodyInst[3]); intent.putExtra("RES_BEAT", beat); setResult(RESULT_OK,intent); + Log.d("","opt "+melodyInst[1]); finish(); } }); diff --git a/Muse_performance/app/src/main/java/muse/muse_performance/Sound_Back.java b/Muse_performance/app/src/main/java/muse/muse_performance/Sound_Back.java deleted file mode 100644 index ee3cfbf..0000000 --- a/Muse_performance/app/src/main/java/muse/muse_performance/Sound_Back.java +++ /dev/null @@ -1,159 +0,0 @@ -package muse.muse_performance; - -import android.util.Log; -import android.app.Activity; -import android.content.Intent; -import android.os.Bundle; -import android.view.MotionEvent; - -public class Sound_Back extends Activity { - static final int RESULT = 1000; - - //データ保存用変数 - int sound[]={0,0,0,0}; - int beat=100; - int edit=0; - int songNo=0; - - // 楽器リスト - int Arrange1InstList[] = new int[3]; - int Arrange2InstList[] = new int[3]; - int melodyInstList[] = new int[4]; - - private GraphicView graphicView; - - @Override - protected void onCreate(Bundle savedInstanceState) { - super.onCreate(savedInstanceState); - setContentView(R.layout.activity_soundback); - - //データ受取 - Intent intent=getIntent(); - songNo = intent.getIntExtra("SongNo", 0); - Arrange1InstList[0] = intent.getIntExtra("A1Inst0", 0); - Arrange1InstList[1] = intent.getIntExtra("A1Inst1", 0); - Arrange1InstList[2] = intent.getIntExtra("A1Inst2", 0); - Arrange2InstList[0] = intent.getIntExtra("A2Inst0", 0); - Arrange2InstList[1] = intent.getIntExtra("A2Inst1", 0); - Arrange2InstList[2] = intent.getIntExtra("A2Inst2", 0); - melodyInstList[0] = intent.getIntExtra("MInst0", 0); - melodyInstList[1] = intent.getIntExtra("MInst1", 0); - melodyInstList[2] = intent.getIntExtra("MInst2", 0); - melodyInstList[3] = intent.getIntExtra("MInst3", 0); - beat = intent.getIntExtra("BEAT", 0); - - //GraphicViewのオブジェクト生成 - graphicView = new GraphicView(this); - setContentView(graphicView); - graphicView.setBpm(beat/2); - graphicView.setScene(false); - graphicView.onResume(); - } - - protected void onActivityResult(int requestCode,int resultCode,Intent intent){ - super.onActivityResult(requestCode,resultCode,intent); - if(resultCode==RESULT_OK && requestCode==RESULT && null!=intent){ - //データの受取と反映 - Arrange1InstList[0] = intent.getIntExtra("RES_A1Inst0", 0); - Arrange1InstList[1] = intent.getIntExtra("RES_A1Inst1", 0); - Arrange1InstList[2] = intent.getIntExtra("RES_A1Inst2", 0); - Arrange2InstList[0] = intent.getIntExtra("RES_A2Inst0", 0); - Arrange2InstList[1] = intent.getIntExtra("RES_A2Inst1", 0); - Arrange2InstList[2] = intent.getIntExtra("RES_A2Inst2", 0); - melodyInstList[0] = intent.getIntExtra("RES_MInst0", 0); - melodyInstList[1] = intent.getIntExtra("RES_MInst1", 0); - melodyInstList[2] = intent.getIntExtra("RES_MInst2", 0); - melodyInstList[3] = intent.getIntExtra("RES_MInst3", 0); - - // テンポ処理 - beat = intent.getIntExtra("RES_BEAT", 0); - if( beat < 20 ) beat = 20; - else if( beat > 240 ) beat = 240; - } - } - - @Override - public void onStart() { - super.onStart(); - } - - @Override - public void onStop() { super.onStop(); } - - @Override - //タッチイベントを拾う - public boolean onTouchEvent(MotionEvent motionEvent) - { - float getx=motionEvent.getX();//タッチ座標取得 - float gety=motionEvent.getY(); - float nowx[]=graphicView.getBxpoint();//画像がおいてある場所取得 - float nowy[]=graphicView.getBypoint(); - - switch (motionEvent.getAction()) { - case MotionEvent.ACTION_DOWN://押した時 - Log.d("", "ACTION_DOWN"); - break; - - case MotionEvent.ACTION_UP://離した時 - Log.d("", "ACTION_UP"); - if(getx>1070 && gety<140){ - Intent intent2 = new Intent(); - intent2.putExtra("RES_S1",sound[0]);//データを返す - intent2.putExtra("RES_S2",sound[1]); - intent2.putExtra("RES_S3",sound[2]); - intent2.putExtra("RES_S4",sound[3]); - intent2.putExtra("RES_BEAT",beat); - intent2.putExtra("RES_SONGNO",songNo); - setResult(RESULT_OK,intent2); - finish();//表に戻る - } - - else if(getx>nowx[0]+20 && getxnowy[0]+60 && getynowx[1]+20 && getxnowy[1]+60 && getynowx[2]+20 && getxnowy[2]+60 && getynowx[3]+20 && getxnowy[3]+60 && getynowx[4]+20 && getxnowy[4]+60 && gety330 && gety<1079){ - edit=((int)gety-330)/150;//編集する画像の選択 - } - - else if(getx<60 && gety>1100 && gety<1200){ - for(int i=0;i<5;i++) {//全画像消去 - graphicView.setBxpoint(i, -1); - graphicView.setBypoint(i, -1); - } - } - - else{ - graphicView.setBxpoint(edit,getx-20);//タッチ位置に画像配置 - graphicView.setBypoint(edit,gety-60); - } - break; - - case MotionEvent.ACTION_MOVE: - Log.d("", "ACTION_MOVE"); - break; - case MotionEvent.ACTION_CANCEL: - Log.d("", "ACTION_CANCEL"); - break; - } - - return false; - } -} diff --git a/Muse_performance/app/src/main/java/muse/muse_performance/Sound_Front.java b/Muse_performance/app/src/main/java/muse/muse_performance/Sound_Front.java index 26465ae..7508a99 100644 --- a/Muse_performance/app/src/main/java/muse/muse_performance/Sound_Front.java +++ b/Muse_performance/app/src/main/java/muse/muse_performance/Sound_Front.java @@ -23,6 +23,11 @@ public class Sound_Front extends Activity int record = 0; double dist[]={0,0,0,0}; // 4エリアの楽器と中心の距離 float pushx,pushy; + boolean scene=FRONT; + int edit=0; + + static final boolean FRONT=true; + static final boolean BACK=false; // midi用変数 int bpm = 100; // beat per min @@ -39,8 +44,8 @@ int record = 0; int nowPos = 0; // 再生位置 // 画面サイズうんぬん - static final int maxX = 1200; - static final int maxY = 1900; + static final int maxX = 1000; + static final int maxY = 1824; static final int maxLen = (int)Math.sqrt( maxX*maxX/4 + maxY*maxY/4 ); static final int buttonSize = 60; @@ -103,7 +108,7 @@ protected void onCreate(Bundle savedInstanceState) graphicView = new GraphicView(this); setContentView(graphicView); graphicView.setBpm(beat/2); - graphicView.setScene(true); + graphicView.setScene(FRONT); graphicView.onResume(); } @@ -295,6 +300,8 @@ public boolean onTouchEvent(MotionEvent motionEvent) //タッチ座標取得 float getx = motionEvent.getX(); float gety = motionEvent.getY(); + float nowx[]=graphicView.getBxpoint();//画像がおいてある場所取得 + float nowy[]=graphicView.getBypoint(); // 各イベント処理 switch( motionEvent.getAction() ) @@ -302,243 +309,267 @@ public boolean onTouchEvent(MotionEvent motionEvent) //押した時 case MotionEvent.ACTION_DOWN: Log.d("", "ACTION_DOWN"); - //前回のタッチ記録を消去 - for( int i = 0 ; i < 4; i++ ) - { - beforex[i]=-1; - beforey[i]=-1; - } + if (scene) { + //前回のタッチ記録を消去 + for (int i = 0; i < 4; i++) { + beforex[i] = -1; + beforey[i] = -1; + } - //タッチ開始位置を保存 - pushx=getx; - pushy=gety; + //タッチ開始位置を保存 + pushx = getx; + pushy = gety; - //フラグリセット - record = 0; - beattemp = 0; + //フラグリセット + record = 0; + beattemp = 0; + } break; //離した時 case MotionEvent.ACTION_UP: Log.d("", "ACTION_UP"); - // テンポ処理 - if( beattemp != 0 ) - { - beat += beattemp; + if(scene) { + // テンポ処理 + if (beattemp != 0) { + beat += beattemp; - if( beat < 20 ) beat = 20; - else if( beat > 240 ) beat = 240; + if (beat < 20) beat = 20; + else if (beat > 240) beat = 240; - // テンポセット - graphicView.setBpm(beat / 2); - } + // テンポセット + graphicView.setBpm(beat / 2); + } - // テンポが変わった時 - if( beat != bpm ) this.changeMidiFile(); // midi更新 - - if(Math.abs(pushx-getx)>40 || Math.abs(pushy-gety)>40){//移動距離が長いとき - // フリック方向で各エリアごとの操作 - //左上 - if( pushx < maxX/2 && pushy < maxY/2 ) - { - // 下フリックで消す - if( this.frickVec( getx, gety ) == Vec.DOWN ) - { - graphicView.setFxpoint( 0, 0 ); - graphicView.setFypoint( 0, 0 ); - dist[ 0 ] = 0; + // テンポが変わった時 + if (beat != bpm) this.changeMidiFile(); // midi更新 + + if (Math.abs(pushx - getx) > 40 || Math.abs(pushy - gety) > 40) {//移動距離が長いとき + // フリック方向で各エリアごとの操作 + //左上 + if (pushx < maxX / 2 && pushy < maxY / 2) { + // 下フリックで消す + if (this.frickVec(getx, gety) == Vec.DOWN) { + graphicView.setFxpoint(0, -1); + graphicView.setFypoint(0, -1); + graphicView.setFlagPoint(0, 0); + dist[0] = 0; + } else this.inst[0] = Arrange1InstList[this.frickVec(getx, gety)]; + + graphicView.setFlick(0, this.frickVec(getx, gety), this.inst[0]); } - else this.inst[0] = Arrange1InstList[ this.frickVec( getx, gety ) ]; - - graphicView.setflick( 0, this.inst[0]); - } - // 右上 - else if( pushx > maxX/2 && pushy < maxY/2 ) - { - // 下フリックで消す - if( this.frickVec( getx, gety ) == Vec.DOWN ) - { - graphicView.setFxpoint( 1, 0 ); - graphicView.setFypoint( 1, 0 ); - dist[ 1 ] = 0; + // 右上 + else if (pushx > maxX / 2 && pushy < maxY / 2) { + // 下フリックで消す + if (this.frickVec(getx, gety) == Vec.DOWN) { + graphicView.setFxpoint(1, -1); + graphicView.setFypoint(1, -1); + graphicView.setFlagPoint(1, 0); + dist[1] = 0; + } else this.inst[1] = Arrange2InstList[this.frickVec(getx, gety)]; + + graphicView.setFlick(1, this.frickVec(getx, gety), this.inst[1]); } - else this.inst[1] = Arrange2InstList[ this.frickVec( getx, gety ) ]; - - graphicView.setflick( 1, this.inst[1]); - } - // 左下 - else if( pushx < maxX/2 && pushy > maxY/2 ) - { - this.inst[2] = melodyInstList[ this.frickVec( getx, gety ) ]; - graphicView.setflick( 2, this.inst[2]); - } - // 右下 - else if( pushx > maxX/2 && pushy > maxY/2 ) - { - // 下フリックで消す - if( this.frickVec( getx, gety ) == Vec.DOWN ) - { - graphicView.setFxpoint(3, 0); - graphicView.setFypoint(3, 0); - dist[ 3 ] = 0; + // 左下 + else if (pushx < maxX / 2 && pushy > maxY / 2) { + this.inst[2] = melodyInstList[this.frickVec(getx, gety)]; + graphicView.setFlick(2, this.frickVec(getx, gety), this.inst[2]); } - else - { - DrumNo = this.frickVec( getx, gety ); - this.inst[3] = this.frickVec( getx, gety ); + // 右下 + else if (pushx > maxX / 2 && pushy > maxY / 2) { + // 下フリックで消す + if (this.frickVec(getx, gety) == Vec.DOWN) { + graphicView.setFxpoint(3, -1); + graphicView.setFypoint(3, -1); + graphicView.setFlagPoint(3, 0); + dist[3] = 0; + } else { + DrumNo = this.frickVec(getx, gety); + this.inst[3] = this.frickVec(getx, gety); + } + + graphicView.setFlick(3, this.frickVec(getx, gety), this.inst[3]); } - graphicView.setflick( 3, this.inst[3]); - } - - // midi更新 - this.changeMidiFile(); + // midi更新 + this.changeMidiFile(); - // フラグ - this.record = 1; + // フラグ + this.record = 1; + } else {//移動距離が短いとき + //座標判定 + // オプションへの遷移 + if (getx < buttonSize && gety < buttonSize * 2) { + //各データの転送 + Intent intent1 = new Intent(getApplication(), Option.class); + intent1.putExtra("SongNo", songNo); + intent1.putExtra("A1Inst0", Arrange1InstList[0]); + intent1.putExtra("A1Inst1", Arrange1InstList[1]); + intent1.putExtra("A1Inst2", Arrange1InstList[2]); + intent1.putExtra("A2Inst0", Arrange2InstList[0]); + intent1.putExtra("A2Inst1", Arrange2InstList[1]); + intent1.putExtra("A2Inst2", Arrange2InstList[2]); + intent1.putExtra("MInst0", melodyInstList[0]); + intent1.putExtra("MInst1", melodyInstList[1]); + intent1.putExtra("MInst2", melodyInstList[2]); + intent1.putExtra("MInst3", melodyInstList[3]); + intent1.putExtra("BEAT", beat); + int requestCode = RESULT; + + //停止 + mediaPlayer.pause(); + + // 飛ぶ + startActivityForResult(intent1, requestCode); + } + // 裏画面への遷移 + else if (getx > (maxX - buttonSize) && gety < buttonSize * 2) { + graphicView.setScene(BACK); + scene=BACK; + } + // エリア1( 左上 ) + else if (getx < maxX / 2 && gety < maxY / 2) { + // エフェクト + graphicView.setFxpoint(0, getx - 10); + graphicView.setFypoint(0, gety - 40); + graphicView.setFlagPoint(0, 1); + + //距離 + dist[0] = Math.sqrt((getx - maxX / 2) * (getx - maxX / 2) + (gety - maxY / 2) * (gety - maxY / 2)); + + // MediaPlayer処理 + this.changeMidiFile(); + } + // エリア2( 右上 ) + else if (getx > maxX / 2 && gety < maxY / 2) { + // 画像配置 + graphicView.setFxpoint(1, getx - 10); + graphicView.setFypoint(1, gety - 40); + graphicView.setFlagPoint(1, 1); + + //距離 + dist[1] = Math.sqrt((getx - maxX / 2) * (getx - maxX / 2) + (gety - maxY / 2) * (gety - maxY / 2)); + + // MediaPlayer処理 + this.changeMidiFile(); + } + // エリア3( 左下 ) + else if (getx < maxX / 2 && gety > maxY / 2) { + // 画像配置 + // エフェクト + graphicView.setFxpoint(2, getx - 10); + graphicView.setFypoint(2, gety - 40); + graphicView.setFlagPoint(2, 1); + + // 距離 + dist[2] = Math.sqrt((getx - maxX / 2) * (getx - maxX / 2) + (gety - maxY / 2) * (gety - maxY / 2)); + + // MediaPlayer処理 + this.changeMidiFile(); + } + // エリア4( 右下 ) + else if (getx > maxX / 2 && gety > maxY / 2) { + // 画像配置 + // エフェクト + graphicView.setFxpoint(3, getx - 10); + graphicView.setFypoint(3, gety - 40); + graphicView.setFlagPoint(3, 1); + + // 距離 + dist[3] = Math.sqrt((getx - maxX / 2) * (getx - maxX / 2) + (gety - maxY / 2) * (gety - maxY / 2)); + + // MediaPlayer処理 + this.changeMidiFile(); + } + } } - - else {//移動距離が短いとき - //座標判定 - // オプションへの遷移 - if (getx < buttonSize && gety < buttonSize * 2) { - //各データの転送 - Intent intent1 = new Intent(getApplication(), Option.class); - intent1.putExtra("SongNo", songNo); - intent1.putExtra("A1Inst0", Arrange1InstList[0]); - intent1.putExtra("A1Inst1", Arrange1InstList[1]); - intent1.putExtra("A1Inst2", Arrange1InstList[2]); - intent1.putExtra("A2Inst0", Arrange2InstList[0]); - intent1.putExtra("A2Inst1", Arrange2InstList[1]); - intent1.putExtra("A2Inst2", Arrange2InstList[2]); - intent1.putExtra("MInst0", melodyInstList[0]); - intent1.putExtra("MInst1", melodyInstList[1]); - intent1.putExtra("MInst2", melodyInstList[2]); - intent1.putExtra("MInst3", melodyInstList[3]); - intent1.putExtra("BEAT", beat); - int requestCode = RESULT; - - //停止 - mediaPlayer.pause(); - - // 飛ぶ - startActivityForResult(intent1, requestCode); + else{ + if(getx>1000 && gety<140) { + graphicView.setScene(FRONT); + scene=FRONT; } - // 裏画面への遷移 - else if (getx > (maxX - buttonSize) && gety < buttonSize * 2) { - //各データの転送 - Intent intent2 = new Intent(getApplication(), Sound_Back.class); - intent2.putExtra("SongNo", songNo); - intent2.putExtra("A1Inst0", Arrange1InstList[0]); - intent2.putExtra("A1Inst1", Arrange1InstList[1]); - intent2.putExtra("A1Inst2", Arrange1InstList[2]); - intent2.putExtra("A2Inst0", Arrange2InstList[0]); - intent2.putExtra("A2Inst1", Arrange2InstList[1]); - intent2.putExtra("A2Inst2", Arrange2InstList[2]); - intent2.putExtra("MInst0", melodyInstList[0]); - intent2.putExtra("MInst1", melodyInstList[1]); - intent2.putExtra("MInst2", melodyInstList[2]); - intent2.putExtra("MInst3", melodyInstList[3]); - intent2.putExtra("BEAT", beat); - int requestCode = RESULT; - - //裏に飛ぶ - startActivityForResult(intent2, requestCode); + //置いてあるものをタップしたら消す + else if(getx>nowx[0]-50 && getxnowy[0]+60 && getynowx[1]-50 && getxnowy[1]+60 && gety maxX / 2 && gety < maxY / 2) { - // 画像配置 - graphicView.setFxpoint(1, getx - 10); - graphicView.setFypoint(1, gety - 40); - graphicView.setFlagPoint(1, 1); - - //距離 - dist[1] = Math.sqrt((getx - maxX / 2) * (getx - maxX / 2) + (gety - maxY / 2) * (gety - maxY / 2)); - - // MediaPlayer処理 - this.changeMidiFile(); + else if(getx>nowx[2]+20 && getxnowy[2]+60 && gety maxY / 2) { - // 画像配置 - // エフェクト - graphicView.setFxpoint(2, getx - 10); - graphicView.setFypoint(2, gety - 40); - graphicView.setFlagPoint(2, 1); - - // 距離 - dist[2] = Math.sqrt((getx - maxX / 2) * (getx - maxX / 2) + (gety - maxY / 2) * (gety - maxY / 2)); - - // MediaPlayer処理 - this.changeMidiFile(); + else if(getx>nowx[3]+20 && getxnowy[3]+60 && gety maxX / 2 && gety > maxY / 2) { - // 画像配置 - // エフェクト - graphicView.setFxpoint(3, getx - 10); - graphicView.setFypoint(3, gety - 40); - graphicView.setFlagPoint(3, 1); - - // 距離 - dist[3] = Math.sqrt((getx - maxX / 2) * (getx - maxX / 2) + (gety - maxY / 2) * (gety - maxY / 2)); - - // MediaPlayer処理 - this.changeMidiFile(); + else if(getx>nowx[4]+20 && getxnowy[4]+60 && gety340 && gety<1450 && graphicView.getTabFlag()){ + if(getx>230){graphicView.TabFlagON();} + else if(gety < 400){ graphicView.setScrollTop((graphicView.getScrollTop() + 5) % 6); } + else if(gety > 1400){ graphicView.setScrollTop((graphicView.getScrollTop() + 1) % 6); } + else{ + edit = ( ((int)gety-400)/255 + graphicView.getScrollTop() ) % 6 ;//編集する画像の選択 + } + } + //オブジェクト設置タブの開閉処理 + else if(getx<60 && gety>340 && gety<1450 && !graphicView.getTabFlag()){ + graphicView.TabFlagON(); + } + //配置 + else { + if (edit == 5) { + for(int i=0;i<5;i++) {//全画像消去 + graphicView.setBxpoint(i, -1); + graphicView.setBypoint(i, -1); + } + } else { + graphicView.setBxpoint(edit, getx - 20);//タッチ位置に画像配置 + graphicView.setBypoint(edit, gety - 60); + } } } break; case MotionEvent.ACTION_MOVE: - //スライド座標を保存 - beforex[3]=beforex[2]; - beforex[2]=beforex[1]; - beforex[1]=beforex[0]; - beforex[0]=getx; - beforey[3]=beforey[2]; - beforey[2]=beforey[1]; - beforey[1]=beforey[0]; - beforey[0]=gety; - - // テンポ操作 - if(getx>400 && getx<800 && gety>750 && getx<1150) - { - //座標が記録されてない時 - if (record == 0 && beforex[3] != -1) - { - //右移動時 - if (getx > beforex[1] && beforex[1] > beforex[3]) - { - record = 1;//フラグ管理 + if(scene) { + //スライド座標を保存 + beforex[3] = beforex[2]; + beforex[2] = beforex[1]; + beforex[1] = beforex[0]; + beforex[0] = getx; + beforey[3] = beforey[2]; + beforey[2] = beforey[1]; + beforey[1] = beforey[0]; + beforey[0] = gety; + + // テンポ操作 + if (getx > 400 && getx < 800 && gety > 750 && getx < 1150) { + //座標が記録されてない時 + if (record == 0 && beforex[3] != -1) { + //右移動時 + if (getx > beforex[1] && beforex[1] > beforex[3]) { + record = 1;//フラグ管理 + } + //左移動時 + else { + record = 2;//フラグ管理 + } } - //左移動時 - else - { - record = 2;//フラグ管理 + //右移動から始めた時 + else if (record == 1) { + beattemp += 1;//bpm加算 + } + //左移動から始めた時 + else { + beattemp -= 1;//bpm減算 } - } - //右移動から始めた時 - else if (record == 1) - { - beattemp += 1;//bpm加算 - } - //左移動から始めた時 - else - { - beattemp -= 1;//bpm減算 } } break; diff --git a/Muse_performance/app/src/main/res/drawable/arrange1.bmp b/Muse_performance/app/src/main/res/drawable/arrange1.bmp new file mode 100644 index 0000000..b08e2c9 Binary files /dev/null and b/Muse_performance/app/src/main/res/drawable/arrange1.bmp differ diff --git a/Muse_performance/app/src/main/res/drawable/arrange2.bmp b/Muse_performance/app/src/main/res/drawable/arrange2.bmp new file mode 100644 index 0000000..8c9b5e2 Binary files /dev/null and b/Muse_performance/app/src/main/res/drawable/arrange2.bmp differ diff --git a/Muse_performance/app/src/main/res/drawable/bigtab.bmp b/Muse_performance/app/src/main/res/drawable/bigtap.bmp similarity index 50% rename from Muse_performance/app/src/main/res/drawable/bigtab.bmp rename to Muse_performance/app/src/main/res/drawable/bigtap.bmp index fa41e41..a13ead3 100644 Binary files a/Muse_performance/app/src/main/res/drawable/bigtab.bmp and b/Muse_performance/app/src/main/res/drawable/bigtap.bmp differ diff --git a/Muse_performance/app/src/main/res/drawable/button.xml b/Muse_performance/app/src/main/res/drawable/button.xml new file mode 100644 index 0000000..00e4026 --- /dev/null +++ b/Muse_performance/app/src/main/res/drawable/button.xml @@ -0,0 +1,14 @@ + + + + + + + + \ No newline at end of file diff --git a/Muse_performance/app/src/main/res/drawable/button_normal.xml b/Muse_performance/app/src/main/res/drawable/button_normal.xml new file mode 100644 index 0000000..9cfc2c9 --- /dev/null +++ b/Muse_performance/app/src/main/res/drawable/button_normal.xml @@ -0,0 +1,17 @@ + + + + + + + \ No newline at end of file diff --git a/Muse_performance/app/src/main/res/drawable/button_pressed.xml b/Muse_performance/app/src/main/res/drawable/button_pressed.xml new file mode 100644 index 0000000..d25b0cb --- /dev/null +++ b/Muse_performance/app/src/main/res/drawable/button_pressed.xml @@ -0,0 +1,17 @@ + + + + + + + \ No newline at end of file diff --git a/Muse_performance/app/src/main/res/drawable/chick.bmp b/Muse_performance/app/src/main/res/drawable/chick.bmp index f23e211..78418de 100644 Binary files a/Muse_performance/app/src/main/res/drawable/chick.bmp and b/Muse_performance/app/src/main/res/drawable/chick.bmp differ diff --git a/Muse_performance/app/src/main/res/drawable/cicada.bmp b/Muse_performance/app/src/main/res/drawable/cicada.bmp new file mode 100644 index 0000000..eebabf9 Binary files /dev/null and b/Muse_performance/app/src/main/res/drawable/cicada.bmp differ diff --git a/Muse_performance/app/src/main/res/drawable/clap.bmp b/Muse_performance/app/src/main/res/drawable/clap.bmp index dfa9551..c3595e5 100644 Binary files a/Muse_performance/app/src/main/res/drawable/clap.bmp and b/Muse_performance/app/src/main/res/drawable/clap.bmp differ diff --git a/Muse_performance/app/src/main/res/drawable/deleteicon.bmp b/Muse_performance/app/src/main/res/drawable/deleteicon.bmp new file mode 100644 index 0000000..b1ead89 Binary files /dev/null and b/Muse_performance/app/src/main/res/drawable/deleteicon.bmp differ diff --git a/Muse_performance/app/src/main/res/drawable/drop.bmp b/Muse_performance/app/src/main/res/drawable/drop.bmp new file mode 100644 index 0000000..1dadfec Binary files /dev/null and b/Muse_performance/app/src/main/res/drawable/drop.bmp differ diff --git a/Muse_performance/app/src/main/res/drawable/drum.bmp b/Muse_performance/app/src/main/res/drawable/drum.bmp index d56e818..faa93a1 100644 Binary files a/Muse_performance/app/src/main/res/drawable/drum.bmp and b/Muse_performance/app/src/main/res/drawable/drum.bmp differ diff --git a/Muse_performance/app/src/main/res/drawable/frog.bmp b/Muse_performance/app/src/main/res/drawable/frog.bmp index b9f2568..8997b70 100644 Binary files a/Muse_performance/app/src/main/res/drawable/frog.bmp and b/Muse_performance/app/src/main/res/drawable/frog.bmp differ diff --git a/Muse_performance/app/src/main/res/drawable/fronticon.bmp b/Muse_performance/app/src/main/res/drawable/fronticon.bmp new file mode 100644 index 0000000..3a24618 Binary files /dev/null and b/Muse_performance/app/src/main/res/drawable/fronticon.bmp differ diff --git a/Muse_performance/app/src/main/res/drawable/fue.bmp b/Muse_performance/app/src/main/res/drawable/fue.bmp deleted file mode 100644 index b701f80..0000000 Binary files a/Muse_performance/app/src/main/res/drawable/fue.bmp and /dev/null differ diff --git a/Muse_performance/app/src/main/res/drawable/guitar.bmp b/Muse_performance/app/src/main/res/drawable/guitar.bmp deleted file mode 100644 index eda581f..0000000 Binary files a/Muse_performance/app/src/main/res/drawable/guitar.bmp and /dev/null differ diff --git a/Muse_performance/app/src/main/res/drawable/objicon.bmp b/Muse_performance/app/src/main/res/drawable/objicon.bmp new file mode 100644 index 0000000..be46997 Binary files /dev/null and b/Muse_performance/app/src/main/res/drawable/objicon.bmp differ diff --git a/Muse_performance/app/src/main/res/drawable/piano.bmp b/Muse_performance/app/src/main/res/drawable/piano.bmp index 6ad6684..cccf30f 100644 Binary files a/Muse_performance/app/src/main/res/drawable/piano.bmp and b/Muse_performance/app/src/main/res/drawable/piano.bmp differ diff --git a/Muse_performance/app/src/main/res/drawable/progress.xml b/Muse_performance/app/src/main/res/drawable/progress.xml new file mode 100644 index 0000000..63ef9ce --- /dev/null +++ b/Muse_performance/app/src/main/res/drawable/progress.xml @@ -0,0 +1,21 @@ + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/Muse_performance/app/src/main/res/drawable/setting.bmp b/Muse_performance/app/src/main/res/drawable/setting.bmp new file mode 100644 index 0000000..4526515 Binary files /dev/null and b/Muse_performance/app/src/main/res/drawable/setting.bmp differ diff --git a/Muse_performance/app/src/main/res/drawable/start.bmp b/Muse_performance/app/src/main/res/drawable/start.bmp deleted file mode 100644 index 83fd498..0000000 Binary files a/Muse_performance/app/src/main/res/drawable/start.bmp and /dev/null differ diff --git a/Muse_performance/app/src/main/res/drawable/starting.bmp b/Muse_performance/app/src/main/res/drawable/starting.bmp index 0143fae..bd8bb49 100644 Binary files a/Muse_performance/app/src/main/res/drawable/starting.bmp and b/Muse_performance/app/src/main/res/drawable/starting.bmp differ diff --git a/Muse_performance/app/src/main/res/drawable/tab.bmp b/Muse_performance/app/src/main/res/drawable/tab.bmp new file mode 100644 index 0000000..f385675 Binary files /dev/null and b/Muse_performance/app/src/main/res/drawable/tab.bmp differ diff --git a/Muse_performance/app/src/main/res/drawable/tab.png b/Muse_performance/app/src/main/res/drawable/tab.png deleted file mode 100644 index eed0dcd..0000000 Binary files a/Muse_performance/app/src/main/res/drawable/tab.png and /dev/null differ diff --git a/Muse_performance/app/src/main/res/drawable/thumb.xml b/Muse_performance/app/src/main/res/drawable/thumb.xml new file mode 100644 index 0000000..6e5550e --- /dev/null +++ b/Muse_performance/app/src/main/res/drawable/thumb.xml @@ -0,0 +1,28 @@ + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/Muse_performance/app/src/main/res/layout/activity_mainmenu.xml b/Muse_performance/app/src/main/res/layout/activity_mainmenu.xml index 86c883b..0c7e701 100644 --- a/Muse_performance/app/src/main/res/layout/activity_mainmenu.xml +++ b/Muse_performance/app/src/main/res/layout/activity_mainmenu.xml @@ -4,10 +4,6 @@ android:orientation="vertical" android:layout_width="match_parent" android:layout_height="match_parent" - android:paddingBottom="@dimen/activity_vertical_margin" - android:paddingLeft="@dimen/activity_horizontal_margin" - android:paddingRight="@dimen/activity_horizontal_margin" - android:paddingTop="@dimen/activity_vertical_margin" android:background="#ddffff" tools:context="muse.muse_performance.MainMenu"> @@ -17,6 +13,7 @@ android:id="@+id/send_button1" android:textSize="60sp" android:text="演奏開始!" + android:background="@drawable/button" android:layout_marginTop="180dp" android:layout_marginLeft="40dp" android:layout_marginRight="40dp"/> @@ -26,7 +23,8 @@ android:layout_height="wrap_content" android:id="@+id/send_button2" android:textSize="60sp" - android:text="せってい" + android:text="設定" + android:background="@drawable/button" android:layout_marginTop="240dp" android:layout_marginLeft="40dp" android:layout_marginRight="40dp" /> diff --git a/Muse_performance/app/src/main/res/layout/activity_option.xml b/Muse_performance/app/src/main/res/layout/activity_option.xml index 27775f4..505a284 100644 --- a/Muse_performance/app/src/main/res/layout/activity_option.xml +++ b/Muse_performance/app/src/main/res/layout/activity_option.xml @@ -13,6 +13,7 @@ @@ -23,12 +24,15 @@ android:id="@+id/songTextView" android:layout_margin="10dp" android:textSize="20sp" + android:paddingTop="40dp" android:textColor="#000000"/> + android:drawSelectorOnTop="true" + android:longClickable="false" + /> + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:max="255" + android:progressDrawable="@drawable/progress" + android:thumb="@drawable/thumb" + android:paddingRight="40dp" + android:paddingLeft="20dp"/>