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"/>
diff --git a/Muse_performance/app/src/main/res/layout/activity_soundback.xml b/Muse_performance/app/src/main/res/layout/activity_soundback.xml
deleted file mode 100644
index d742922..0000000
--- a/Muse_performance/app/src/main/res/layout/activity_soundback.xml
+++ /dev/null
@@ -1,12 +0,0 @@
-
-
-
\ No newline at end of file
diff --git a/Muse_performance/app/src/main/res/layout/activity_starting.xml b/Muse_performance/app/src/main/res/layout/activity_starting.xml
index c5216ce..aae8d80 100644
--- a/Muse_performance/app/src/main/res/layout/activity_starting.xml
+++ b/Muse_performance/app/src/main/res/layout/activity_starting.xml
@@ -29,9 +29,11 @@
diff --git a/Muse_performance/app/src/main/res/mipmap-hdpi/ic_launcher.png b/Muse_performance/app/src/main/res/mipmap-hdpi/ic_launcher.png
index cde69bc..383f1fc 100644
Binary files a/Muse_performance/app/src/main/res/mipmap-hdpi/ic_launcher.png and b/Muse_performance/app/src/main/res/mipmap-hdpi/ic_launcher.png differ
diff --git a/Muse_performance/app/src/main/res/mipmap-mdpi/ic_launcher.png b/Muse_performance/app/src/main/res/mipmap-mdpi/ic_launcher.png
index c133a0c..c1d65ee 100644
Binary files a/Muse_performance/app/src/main/res/mipmap-mdpi/ic_launcher.png and b/Muse_performance/app/src/main/res/mipmap-mdpi/ic_launcher.png differ
diff --git a/Muse_performance/app/src/main/res/mipmap-xhdpi/ic_launcher.png b/Muse_performance/app/src/main/res/mipmap-xhdpi/ic_launcher.png
index bfa42f0..bc7b7b7 100644
Binary files a/Muse_performance/app/src/main/res/mipmap-xhdpi/ic_launcher.png and b/Muse_performance/app/src/main/res/mipmap-xhdpi/ic_launcher.png differ
diff --git a/Muse_performance/app/src/main/res/mipmap-xxhdpi/ic_launcher.png b/Muse_performance/app/src/main/res/mipmap-xxhdpi/ic_launcher.png
index 324e72c..e634ddb 100644
Binary files a/Muse_performance/app/src/main/res/mipmap-xxhdpi/ic_launcher.png and b/Muse_performance/app/src/main/res/mipmap-xxhdpi/ic_launcher.png differ
diff --git a/Muse_performance/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png b/Muse_performance/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png
index aee44e1..635f059 100644
Binary files a/Muse_performance/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png and b/Muse_performance/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png differ
diff --git a/Muse_performance/app/src/main/res/raw/drop.mp3 b/Muse_performance/app/src/main/res/raw/drop.mp3
new file mode 100644
index 0000000..67b7284
Binary files /dev/null and b/Muse_performance/app/src/main/res/raw/drop.mp3 differ
diff --git a/Muse_performance/app/src/main/res/raw/flog1.mp3 b/Muse_performance/app/src/main/res/raw/flog1.mp3
deleted file mode 100644
index d2e0f33..0000000
Binary files a/Muse_performance/app/src/main/res/raw/flog1.mp3 and /dev/null differ
diff --git a/Muse_performance/app/src/main/res/raw/flog2.mp3 b/Muse_performance/app/src/main/res/raw/flog2.mp3
deleted file mode 100644
index d2e0f33..0000000
Binary files a/Muse_performance/app/src/main/res/raw/flog2.mp3 and /dev/null differ
diff --git a/Muse_performance/app/src/main/res/raw/flog3.mp3 b/Muse_performance/app/src/main/res/raw/flog3.mp3
deleted file mode 100644
index d2e0f33..0000000
Binary files a/Muse_performance/app/src/main/res/raw/flog3.mp3 and /dev/null differ
diff --git a/Muse_performance/app/src/main/res/raw/flog4.mp3 b/Muse_performance/app/src/main/res/raw/flog4.mp3
deleted file mode 100644
index d2e0f33..0000000
Binary files a/Muse_performance/app/src/main/res/raw/flog4.mp3 and /dev/null differ
diff --git a/Muse_performance/app/src/main/res/raw/hand.mp3 b/Muse_performance/app/src/main/res/raw/hand.mp3
index 4039ec2..dff0231 100644
Binary files a/Muse_performance/app/src/main/res/raw/hand.mp3 and b/Muse_performance/app/src/main/res/raw/hand.mp3 differ
diff --git a/Muse_performance/app/src/main/res/raw/semi.mp3 b/Muse_performance/app/src/main/res/raw/semi.mp3
index d0c3c61..fc5efa8 100644
Binary files a/Muse_performance/app/src/main/res/raw/semi.mp3 and b/Muse_performance/app/src/main/res/raw/semi.mp3 differ
diff --git a/Muse_prot/.gitignore b/Muse_prot/.gitignore
deleted file mode 100644
index c6cbe56..0000000
--- a/Muse_prot/.gitignore
+++ /dev/null
@@ -1,8 +0,0 @@
-*.iml
-.gradle
-/local.properties
-/.idea/workspace.xml
-/.idea/libraries
-.DS_Store
-/build
-/captures
diff --git a/Muse_prot/.idea/.name b/Muse_prot/.idea/.name
deleted file mode 100644
index 65c519f..0000000
--- a/Muse_prot/.idea/.name
+++ /dev/null
@@ -1 +0,0 @@
-Muse_prot
\ No newline at end of file
diff --git a/Muse_prot/.idea/codeStyleSettings.xml b/Muse_prot/.idea/codeStyleSettings.xml
deleted file mode 100644
index b6c1cd7..0000000
--- a/Muse_prot/.idea/codeStyleSettings.xml
+++ /dev/null
@@ -1,229 +0,0 @@
-
-
-
-
-
-
-
\ No newline at end of file
diff --git a/Muse_prot/.idea/compiler.xml b/Muse_prot/.idea/compiler.xml
deleted file mode 100644
index 96cc43e..0000000
--- a/Muse_prot/.idea/compiler.xml
+++ /dev/null
@@ -1,22 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
\ No newline at end of file
diff --git a/Muse_prot/.idea/copyright/profiles_settings.xml b/Muse_prot/.idea/copyright/profiles_settings.xml
deleted file mode 100644
index e7bedf3..0000000
--- a/Muse_prot/.idea/copyright/profiles_settings.xml
+++ /dev/null
@@ -1,3 +0,0 @@
-
-
-
\ No newline at end of file
diff --git a/Muse_prot/.idea/encodings.xml b/Muse_prot/.idea/encodings.xml
deleted file mode 100644
index 97626ba..0000000
--- a/Muse_prot/.idea/encodings.xml
+++ /dev/null
@@ -1,6 +0,0 @@
-
-
-
-
-
-
\ No newline at end of file
diff --git a/Muse_prot/.idea/gradle.xml b/Muse_prot/.idea/gradle.xml
deleted file mode 100644
index b5aa81a..0000000
--- a/Muse_prot/.idea/gradle.xml
+++ /dev/null
@@ -1,24 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
\ No newline at end of file
diff --git a/Muse_prot/.idea/misc.xml b/Muse_prot/.idea/misc.xml
deleted file mode 100644
index 5d19981..0000000
--- a/Muse_prot/.idea/misc.xml
+++ /dev/null
@@ -1,46 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
\ No newline at end of file
diff --git a/Muse_prot/.idea/modules.xml b/Muse_prot/.idea/modules.xml
deleted file mode 100644
index 891ac2f..0000000
--- a/Muse_prot/.idea/modules.xml
+++ /dev/null
@@ -1,9 +0,0 @@
-
-
-
-
-
-
-
-
-
\ No newline at end of file
diff --git a/Muse_prot/.idea/runConfigurations.xml b/Muse_prot/.idea/runConfigurations.xml
deleted file mode 100644
index 7f68460..0000000
--- a/Muse_prot/.idea/runConfigurations.xml
+++ /dev/null
@@ -1,12 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
\ No newline at end of file
diff --git a/Muse_prot/app/.gitignore b/Muse_prot/app/.gitignore
deleted file mode 100644
index 796b96d..0000000
--- a/Muse_prot/app/.gitignore
+++ /dev/null
@@ -1 +0,0 @@
-/build
diff --git a/Muse_prot/app/build.gradle b/Muse_prot/app/build.gradle
deleted file mode 100644
index a9d11bc..0000000
--- a/Muse_prot/app/build.gradle
+++ /dev/null
@@ -1,26 +0,0 @@
-apply plugin: 'com.android.application'
-
-android {
- compileSdkVersion 24
- buildToolsVersion "24.0.1"
-
- defaultConfig {
- applicationId "com.shun.prototype"
- minSdkVersion 17
- targetSdkVersion 17
- versionCode 1
- versionName "1.0"
- }
- buildTypes {
- release {
- minifyEnabled false
- proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
- }
- }
-}
-
-dependencies {
- compile fileTree(dir: 'libs', include: ['*.jar'])
- testCompile 'junit:junit:4.12'
- compile 'com.android.support:appcompat-v7:24.1.1'
-}
diff --git a/Muse_prot/app/proguard-rules.pro b/Muse_prot/app/proguard-rules.pro
deleted file mode 100644
index 1500b6d..0000000
--- a/Muse_prot/app/proguard-rules.pro
+++ /dev/null
@@ -1,17 +0,0 @@
-# Add project specific ProGuard rules here.
-# By default, the flags in this file are appended to flags specified
-# in C:\Users\Shun\AppData\Local\Android\Sdk/tools/proguard/proguard-android.txt
-# You can edit the include path and order by changing the proguardFiles
-# directive in build.gradle.
-#
-# For more details, see
-# http://developer.android.com/guide/developing/tools/proguard.html
-
-# Add any project specific keep options here:
-
-# If your project uses WebView with JS, uncomment the following
-# and specify the fully qualified class name to the JavaScript interface
-# class:
-#-keepclassmembers class fqcn.of.javascript.interface.for.webview {
-# public *;
-#}
diff --git a/Muse_prot/app/src/androidTest/java/com/shun/prototype/ApplicationTest.java b/Muse_prot/app/src/androidTest/java/com/shun/prototype/ApplicationTest.java
deleted file mode 100644
index f7109d8..0000000
--- a/Muse_prot/app/src/androidTest/java/com/shun/prototype/ApplicationTest.java
+++ /dev/null
@@ -1,13 +0,0 @@
-package com.shun.prototype;
-
-import android.app.Application;
-import android.test.ApplicationTestCase;
-
-/**
- * Testing Fundamentals
- */
-public class ApplicationTest extends ApplicationTestCase {
- public ApplicationTest() {
- super(Application.class);
- }
-}
\ No newline at end of file
diff --git a/Muse_prot/app/src/main/AndroidManifest.xml b/Muse_prot/app/src/main/AndroidManifest.xml
deleted file mode 100644
index bb8a1bf..0000000
--- a/Muse_prot/app/src/main/AndroidManifest.xml
+++ /dev/null
@@ -1,36 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
\ No newline at end of file
diff --git a/Muse_prot/app/src/main/java/com/shun/prototype/GraphicView.java b/Muse_prot/app/src/main/java/com/shun/prototype/GraphicView.java
deleted file mode 100644
index 7c86820..0000000
--- a/Muse_prot/app/src/main/java/com/shun/prototype/GraphicView.java
+++ /dev/null
@@ -1,569 +0,0 @@
-package com.shun.prototype;
-
-/* ------------------------------------ SoundPool を用いたバージョンです -------------------------------- */
-
-
-import java.util.concurrent.Executors;
-import java.util.concurrent.ScheduledExecutorService;
-import java.util.concurrent.TimeUnit;
-import java.util.Timer;
-import java.util.TimerTask;
-
-import android.app.Activity;
-import android.content.res.Resources;
-import android.graphics.Bitmap;
-import android.graphics.BitmapFactory;
-import android.media.AudioAttributes;
-import android.media.AudioManager;
-import android.os.Handler;
-import android.content.Context;
-import android.graphics.Canvas;
-import android.graphics.Color;
-import android.graphics.Paint;
-import android.graphics.Rect;
-import android.util.Log;
-import android.view.View;
-import android.view.Display;
-import android.view.WindowManager;
-import android.media.SoundPool;
-
-
-public class GraphicView extends View{
-
- //Getting monitor size
-
- //// Getting instance of WindowManager
- WindowManager wm = (WindowManager)getContext().getSystemService(Context.WINDOW_SERVICE);
-
- //// Getting instance of Display
- Display disp = wm.getDefaultDisplay(); // instance Display
- int terminal_width = disp.getWidth(); // monitor width
- int terminal_height = disp.getHeight(); // monitor height
-
- //画面の位置情報変数
- private int r = 0; //半径
- private int x = terminal_width/2; //音生成中心の座標 TODO : 画面大きさから取得
- private int y = terminal_height/2;
- private int d = (waveSpeed * 120) / bpm; //音の間隔 TODO : bpmから取得
-
- //画面の座標計算メソッド (#define風)
- /* 作り方(画面をパーセンテージで見る)
- private int calcpoint(int point,int flag){
- if(flag == 0) return point/100 * terminal_width;
- else{ return point/100 * terminal_height;}
- }
- */
-
- private static float bxpoint[]={-1,-1,-1,-1,-1};
- private static float bypoint[]={-1,-1,-1,-1,-1};
-
- private float fxpoint[]={-1,-1,-1,-1};
- private float fypoint[]={-1,-1,-1,-1};
-
- private boolean scene;
-
-
- //時間系の変数
- ////タイマー変数
- private static long startTime = System.currentTimeMillis();
- ////関連設置系
- private static int waveSpeed = 300; //波の速さ(px/s)
- private static int bpm=50; // bpm(beat / miniutes)
-
-
- private ScheduledExecutorService ses = null;
-
- //波生成変数
- //黒
- /*
- static private int graLevel = 10; //グラデーションの段階
- static private int graWidth = 3; // グラデーション1段階の幅
- static private int colorDeference = 30; // 波の頂点と一番下の色の差
- */
- //白
- static private int graLevel = 13; //グラデーションの段階
- static private int graWidth = 2; // グラデーション1段階の幅
- static private int colorDeference = 25; // 波の頂点と一番下の色の差
-
-
- //画面の色
- ////グラデーションの頂点の色
- // 黒
- /*
- static private int graTopcolorR = 128,
- graTopcolorG = 183,
- graTopcolorB = 196;
- */
- //白
-
- 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;
-
- //半径の最大値
- private int overR = sqrt(x * x + y * y);
-
- //タップしてできた円の半径と当たり判定
- int[] hoger = {0,0,0,0};
- private int[] hogecollisionR = {-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 SoundPool soundPool;
- private int[] soundID = new int[5];
-
-
- public void setFlagPoint(int i,int r) { hoger[i] = r; }
- public int getFlagPoint(int i) { return hoger[i]; }
-
- public float[] getBxpoint(){
- return bxpoint;
- }
- public float[] getBypoint(){
- return bypoint;
- }
- public void setBxpoint(int i,float x){
- bxpoint[i]=x;
- }
- public void setBypoint(int i,float y){
- bypoint[i]=y;
- }
-
- public float[] getFxpoint(){
- return fxpoint;
- }
- public float[] getFypoint(){
- return fypoint;
- }
- public void setFxpoint(int i,float x){
- fxpoint[i]=x;
- }
- public void setFypoint(int i,float y){
- fypoint[i]=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];
- flickchange[i] = 10;
- }
- if (flickvec[i] == vec) {
- flickvec[i] = -1;//停止を選択
- }
- else flickvec[i] = vec;
- }
-
- public int getflick(int i){ return flickvec[i]; }
-
-
- //平方根計算メソッド(めのこ平方)
- private int sqrt(int num){
- int odd,rood,sum;
-
- odd = -1;
- sum = 0;
- while(sum <= num){
- odd += 2;
- sum += odd;
- }
-
- return odd/2;
- }
-
- //再描画のメソッド
- private final Runnable task = new Runnable(){
- @Override
- public void run() {
-
- //時間更新
- //if((System.currentTimeMillis() - startTime) % (1000/waveSpeed) <=3){
- r+=8;
- //}
-
- /* ------------------------------------ 衝突判定処理 -------------------------------------- */
- //タップで生成された波の処理
- for(int i=0;i<4;i++){
- if(hoger[i] == 1){
- //中心とタップした波の距離計算
- float num = ((fxpoint[i]-x) * (fxpoint[i]-x)) + ((fypoint[i]-y) * (fypoint[i]-y));
- int dr = sqrt( (int) num );
- //衝突位置計算
- hogecollisionR[i] = (dr/2) % d;
- }
- if(hoger[i] > 0) hoger[i] += 8;
- if(hoger[i] > overR * 2){
- hoger[i] = 0;
- hogecollisionR[i] = 0;
- }
- }
-
- //裏画面の衝突距離計算
- for(int i=0;i<5;i++){
- if(bxpoint[i] > 0 && bypoint[i] > 0){
- //中心とタップした波の距離計算
- float num = ((bxpoint[i] - x) * (bxpoint[i] - x)) + ((bypoint[i] - y) * (bypoint[i] - y));
- int dr = sqrt((int) num);
- //衝突位置計算
- backcollisionR[i] = dr % d;
- }
- }
-
- /* --------------------------------------------------------------------------------------- */
-
- d = (waveSpeed * 120) / bpm;
-
-
- // 画面を更新
- postInvalidate();
-
- // rがあふれない処理
- if (r > overR)
- {
- r -= d;
- }
- }
- };
-
- //コンストラクタ
- public GraphicView(Context context) {
- super(context);
- }
-
- public void onResume(){
- // タイマーの作成
- ses = Executors.newSingleThreadScheduledExecutor();
-
- //ファイルロード
- soundPool = new SoundPool(5, AudioManager.STREAM_MUSIC, 0);
- Log.d("","make soundpool");
- soundID[0] = soundPool.load(getContext(),R.raw.flog ,1);
- Log.d("","load1");
- soundID[1] = soundPool.load(getContext(),R.raw.hiyoko,1);
- Log.d("","load2");
- soundID[2] = soundPool.load(getContext(),R.raw.semi,1);
- Log.d("","load3");
- soundID[3] = soundPool.load(getContext(),R.raw.hand,1);
- Log.d("","load4");
- soundID[4] = soundPool.load(getContext(),R.raw.flog2,1);
- Log.d("","load5");
-
- // 一定時間ごとにRunnableの処理を実行
- // => scheduleAtFixedRate(Runnableオブジェクト , 最初の実行時間 , 実行の周期 , 値の単位(列挙型TimeUnitの値) )
- ses.scheduleAtFixedRate(task, 0L, 24L, TimeUnit.MILLISECONDS);
- }
-
- public void onPause(){
- if (ses != null) {
- // タイマーを停止する
- ses.shutdown();
- ses = null;
- }
- }
-
- 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));
- }
- }
-
- private int boundcheck[] = {0,0,0,0,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){
- soundPool.play(soundID[i],0.2f,0.2f,0,0,1);
- //チャタリング除去フラグ_インデント
- 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)
- {
-
- //背景色の設定
- ////黒
- //canvas.drawColor( Color.rgb( colorR , colorG, colorB ) );
- ////白
- canvas.drawColor( Color.rgb( graTopcolorR , graTopcolorG, graTopcolorB ) );
- Resources res=getResources();//画像読み込み
- Bitmap bmp1= BitmapFactory.decodeResource(res,R.drawable.test1);
- Bitmap bmp2= BitmapFactory.decodeResource(res,R.drawable.test2);
- Bitmap bmp3= BitmapFactory.decodeResource(res,R.drawable.test3);
- Bitmap bmp4= BitmapFactory.decodeResource(res,R.drawable.test4);
- Bitmap bmp5= BitmapFactory.decodeResource(res,R.drawable.test5);
- Bitmap bmpa= BitmapFactory.decodeResource(res,R.drawable.testa);
- Bitmap bmpo= BitmapFactory.decodeResource(res,R.drawable.testo);
- Bitmap bmpb= BitmapFactory.decodeResource(res,R.drawable.testb);
- Bitmap bmpf= BitmapFactory.decodeResource(res,R.drawable.testf);
- Bitmap bmpAA= BitmapFactory.decodeResource(res,R.drawable.testaa);
- Bitmap bmpBB= BitmapFactory.decodeResource(res,R.drawable.testbb);
- Bitmap bmpCC= BitmapFactory.decodeResource(res,R.drawable.testcc);
- Bitmap bmpDD= BitmapFactory.decodeResource(res,R.drawable.testdd);
- Bitmap bmpEE= BitmapFactory.decodeResource(res,R.drawable.testee);
-
-
- //Paintオブジェクトの生成
- Paint paint = new Paint();
-
- //フリックによる背景の色変更
- 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);
- }
- else if(flicklog[0] == 22 ) {
- paint.setColor(Color.argb(0x90,graTopcolorR, graTopcolorG - 30, graTopcolorB));
- canvas.drawRect(0+(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, 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] --;
- }
-
- 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,0 + (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);
- }
-
- flickchange[1] --;
- }
-
- 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(0 + (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);
- }
-
- flickchange[2] --;
- }
-
- 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);
- }
-
- flickchange[3] --;
- }
-
-
- //描画色の指定
- paint.setStyle(Paint.Style.STROKE);
- paint.setStrokeWidth( graWidth );
-
- //bpm更新
- //d = beat;
-
-
- //円
- int colorGap; //グラデーションの色の差の値
-
- //グラデーション
- for (int j = -graLevel; j <= graLevel;j ++ )
- {
- //値計算
- colorGap = j * graWidth;
- if( colorGap < 0 ) colorGap *= -1;
- //色計算
- //黒
- ////paint.setColor( Color.rgb( graTopcolorR + colorGap , graTopcolorG + colorGap, graTopcolorB + colorGap));
- //白
- paint.setColor( Color.rgb( colorR - colorGap, colorG - colorGap, colorB - colorGap) );
- // 表示
- //// 円で表示させてる(ざまく
- //波の数ループ
- for( int i = 0; i <= r / d; i++ ) {
- canvas.drawCircle(x, y, d * i + r % d + j * graWidth, paint);
- }
- //canvas.drawBitmap(bmp1,0,400,paint);
- //canvas.drawBitmap(bmp2,0,480,paint);
- //canvas.drawBitmap(bmp3,0,560,paint);
- //canvas.drawBitmap(bmp4,0,640,paint);
- //canvas.drawBitmap(bmp5,0,720,paint);
- //canvas.drawBitmap(bmpa,0,800,paint);
- //if(xpoint[0]>0 && ypoint[0]>0)
- // canvas.drawBitmap(bmp1,xpoint[0],ypoint[0],paint);
- //if(xpoint[1]>0 && ypoint[1]>0)
- // canvas.drawBitmap(bmp2,xpoint[1],ypoint[1],paint);
- //if(xpoint[2]>0 && ypoint[2]>0)
- // canvas.drawBitmap(bmp3,xpoint[2],ypoint[2],paint);
- //if(xpoint[3]>0 && ypoint[3]>0)
- // canvas.drawBitmap(bmp4,xpoint[3],ypoint[3],paint);
- //if(xpoint[4]>0 && ypoint[4]>0)
- // canvas.drawBitmap(bmp5,xpoint[4],ypoint[4],paint);
- for(int i = 0; i < 4 ; i++){
- if(hoger[i] > 0){
- if(r % d >= hogecollisionR[i] && r % d < hogecollisionR[i] + 30){
- paint.setColor( Color.rgb( graTopcolorEfeR - colorGap, graTopcolorEfeG - colorGap, graTopcolorEfeB - colorGap) );
- }
- canvas.drawCircle(fxpoint[i],fypoint[i], hoger[i] + j * graWidth, paint);
- if(r % d >= hogecollisionR[i] && r % d < hogecollisionR[i] + 30){
- paint.setColor( Color.rgb( graTopcolorR - colorGap, graTopcolorG - colorGap, graTopcolorB - colorGap) );
- }
- }
- }
-
- if( this.scene ){ //レイヤー1(表)
- //for(int i=0;i<4;i++){
- // if(xpoint > 0 && ypoint > 0) canvas.drawBitmap(bmp ,instX[i],instY[i], paint);
- //}
- canvas.drawBitmap(bmpo,0,0,paint);
- canvas.drawBitmap(bmpb,1115,0,paint);
- canvas.drawBitmap(bmp1,460,770,paint);
- canvas.drawBitmap(bmp2,660,770,paint);
- canvas.drawBitmap(bmp3,460,970,paint);
- canvas.drawBitmap(bmp4,660,970,paint);
- if(fxpoint[0]>0 && fypoint[0]>0)//画像配置
- canvas.drawBitmap(bmp1,fxpoint[0],fypoint[0],paint);
- if(fxpoint[1]>0 && fypoint[1]>0)
- canvas.drawBitmap(bmp2,fxpoint[1],fypoint[1],paint);
- if(fxpoint[2]>0 && fypoint[2]>0)
- canvas.drawBitmap(bmp3,fxpoint[2],fypoint[2],paint);
- if(fxpoint[3]>0 && fypoint[3]>0)
- canvas.drawBitmap(bmp4,fxpoint[3],fypoint[3],paint);
- }
- else{
- //if (xpoint > 0 && ypoint > 0) canvas.drawBitmap(bmp, xpoint, ypoint, paint);
- canvas.drawBitmap(bmpf,1115,0,paint);
- canvas.drawBitmap(bmpAA,0,400,paint);
- canvas.drawBitmap(bmpBB,0,500,paint);
- canvas.drawBitmap(bmpCC,0,600,paint);
- canvas.drawBitmap(bmpDD,0,700,paint);
- canvas.drawBitmap(bmpEE,0,800,paint);
- canvas.drawBitmap(bmpa,0,900,paint);
-
- }
- if(bxpoint[0]>0 && bypoint[0]>0) {//画像配置
- canvas.drawBitmap(bmpAA, bxpoint[0], bypoint[0], paint);
- }
- if(bxpoint[1]>0 && bypoint[1]>0){
- canvas.drawBitmap(bmpBB, bxpoint[1], bypoint[1], paint);
- }
- if(bxpoint[2]>0 && bypoint[2]>0) {
- canvas.drawBitmap(bmpCC, bxpoint[2], bypoint[2], paint);
- }
- if(bxpoint[3]>0 && bypoint[3]>0) {
- canvas.drawBitmap(bmpDD, bxpoint[3], bypoint[3], paint);
- }
- if(bxpoint[4]>0 && bypoint[4]>0) {
- canvas.drawBitmap(bmpEE, bxpoint[4], bypoint[4], paint);
- }
- for(int i=0;i<5;i++){ ObjectMusic(i,canvas,paint); }
- }
- }
- }
\ No newline at end of file
diff --git a/Muse_prot/app/src/main/java/com/shun/prototype/MainMenu.java b/Muse_prot/app/src/main/java/com/shun/prototype/MainMenu.java
deleted file mode 100644
index d5aaffc..0000000
--- a/Muse_prot/app/src/main/java/com/shun/prototype/MainMenu.java
+++ /dev/null
@@ -1,95 +0,0 @@
-package com.shun.prototype;
-
-import android.app.Activity;
-import android.content.Intent;
-import android.os.Bundle;
-import android.view.View;
-import android.widget.Button;
-
-public class MainMenu extends Activity
-{
- static final int RESULT = 1000;
- int beat=100;
- int songNo=0;
-
- int Arrange1InstList[] = { 0, 22, 40 };
- int Arrange2InstList[] = { 0, 22, 40 };
- int melodyInstList[] = { 0, 53, 23, 25 };
-
- @Override
- protected void onCreate(Bundle savedInstanceState)
- {
- super.onCreate(savedInstanceState);
- setContentView(R.layout.activity_mainmenu);
-
- // SoundFrontへ遷移するボタン
- Button sendButton1 = (Button)findViewById(R.id.send_button1);
- sendButton1.setOnClickListener(new View.OnClickListener()
- {
- @Override
- public void onClick(View v)
- {
- Intent intent1 = new Intent(getApplication(),Sound_Front.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;
- startActivityForResult(intent1,requestCode);
- }
- });
-
- // Optionへ遷移するボタン
- Button sendButton2 = (Button)findViewById(R.id.send_button2);
- sendButton2.setOnClickListener(new View.OnClickListener()
- {
- @Override
- public void onClick(View v)
- {
- Intent intent2 = new Intent(getApplication(),Option.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);
- }
- });
- }
-
- protected void onActivityResult(int requestCode,int resultCode,Intent intent)
- {
- super.onActivityResult(requestCode,resultCode,intent);
- if( resultCode == RESULT_OK && requestCode == RESULT && null != intent )
- {
- songNo = intent.getIntExtra("RES_SongNo", 0);
- 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);
- }
- }
-}
\ No newline at end of file
diff --git a/Muse_prot/app/src/main/java/com/shun/prototype/MidiFileWriter.java b/Muse_prot/app/src/main/java/com/shun/prototype/MidiFileWriter.java
deleted file mode 100644
index 80280ad..0000000
--- a/Muse_prot/app/src/main/java/com/shun/prototype/MidiFileWriter.java
+++ /dev/null
@@ -1,952 +0,0 @@
-package com.shun.prototype;
-
-import java.io.*;
-import java.util.ArrayList;
-import android.content.Context;
-
-public class MidiFileWriter
-{
- private String FILE_ID = ".mid";
-
- // MThd データ
- private byte[] HEADER_TAG = {0x4d,0x54,0x68,0x64};
- private byte[] HEADER_DATA_LEN = {0x00,0x00,0x00,0x06};
- private byte[] MIDI_FORMAT = {0x00,0x01};
-
- // MTrk データ
- private byte[] TRACK_TAG = {0x4d,0x54,0x72,0x6b};
- private byte[] TRACK_END = {0x00,(byte)0xff,0x2f,0x00};
-
- private FileOutputStream fos = null;
- private Context context = null;
- private ArrayList TrackDataList = new ArrayList();
- private int quarterNoteDeltaTime;
-
- // コンストラクタ
- public MidiFileWriter(Context contxt)
- {
- this.context = contxt;
- }
-
- //オリジナル1曲目
- protected void Song1Melody( byte ch, byte vel )
- {
- try
- {
- this.addNoteOn( ch, 0, (byte)MidiFileWriter.NoteTone.G5, vel);
- this.addNoteOn( ch, this.getNoteDeltaTime(MidiFileWriter.NoteTime.Note_010), (byte)MidiFileWriter.NoteTone.G5, (byte)0x00);
-
- this.addNoteOn( ch, 0, (byte)MidiFileWriter.NoteTone.FF5, vel);
- this.addNoteOn( ch, this.getNoteDeltaTime(MidiFileWriter.NoteTime.Note_020), (byte)MidiFileWriter.NoteTone.FF5, (byte)0x00);
- this.addNoteOn( ch, 0, (byte)MidiFileWriter.NoteTone.G5, vel);
- this.addNoteOn( ch, this.getNoteDeltaTime(MidiFileWriter.NoteTime.Note_020), (byte)MidiFileWriter.NoteTone.G5, (byte)0x00);
-
- this.addNoteOn( ch, 0, (byte)MidiFileWriter.NoteTone.D5, vel);
- this.addNoteOn( ch, this.getNoteDeltaTime(MidiFileWriter.NoteTime.Note_025), (byte)MidiFileWriter.NoteTone.D5, (byte)0x00);
- this.addNoteOn( ch, 0, (byte)MidiFileWriter.NoteTone.B4, vel);
- this.addNoteOn( ch, this.getNoteDeltaTime(MidiFileWriter.NoteTime.Note_040), (byte)MidiFileWriter.NoteTone.B4, (byte)0x00);
-
- this.addNoteOn( ch, 0, (byte)MidiFileWriter.NoteTone.G4, vel);
- this.addNoteOn( ch, this.getNoteDeltaTime(MidiFileWriter.NoteTime.Note_010), (byte)MidiFileWriter.NoteTone.G4, (byte)0x00);
-
- this.addNoteOn( ch, 0, (byte)MidiFileWriter.NoteTone.G4, vel);
- this.addNoteOn( ch, this.getNoteDeltaTime(MidiFileWriter.NoteTime.Note_010), (byte)MidiFileWriter.NoteTone.G4, (byte)0x00);
-
- this.addNoteOn( ch, 0, (byte)MidiFileWriter.NoteTone.A4, vel);
- this.addNoteOn( ch, this.getNoteDeltaTime(MidiFileWriter.NoteTime.Note_025), (byte)MidiFileWriter.NoteTone.A4, (byte)0x00);
- this.addNoteOn( ch, 0, (byte)MidiFileWriter.NoteTone.B4, vel);
- this.addNoteOn( ch, this.getNoteDeltaTime(MidiFileWriter.NoteTime.Note_040), (byte)MidiFileWriter.NoteTone.B4, (byte)0x00);
-
- this.addNoteOn( ch, 0, (byte)MidiFileWriter.NoteTone.D5, vel);
- this.addNoteOn( ch, this.getNoteDeltaTime(MidiFileWriter.NoteTime.Note_010), (byte)MidiFileWriter.NoteTone.D5, (byte)0x00);
-
- this.addNoteOn( ch, 0, (byte)MidiFileWriter.NoteTone.E5, vel);
- this.addNoteOn( ch, this.getNoteDeltaTime(MidiFileWriter.NoteTime.Note_025), (byte)MidiFileWriter.NoteTone.E5, (byte)0x00);
- this.addNoteOn( ch, 0, (byte)MidiFileWriter.NoteTone.D5, vel);
- this.addNoteOn( ch, this.getNoteDeltaTime(MidiFileWriter.NoteTime.Note_040), (byte)MidiFileWriter.NoteTone.D5, (byte)0x00);
-
- this.closeTrackData();
- }
- catch( Exception e )
- {
- e.printStackTrace();
- }
- }
-
- // 打楽器
- protected void Song1PercussionA( byte ch, byte vel )
- {
- try
- {
- this.addNoteOn( ch, 0, (byte)35, vel);
- this.addNoteOn( ch, this.getNoteDeltaTime(MidiFileWriter.NoteTime.Note_040), (byte)35, (byte)0x00);
- this.addNoteOn( ch, this.getNoteDeltaTime(MidiFileWriter.NoteTime.Note_080), (byte)35, (byte)0x00);
- this.addNoteOn( ch, 0, (byte)35, vel);
- this.addNoteOn( ch, this.getNoteDeltaTime(MidiFileWriter.NoteTime.Note_080), (byte)35, (byte)0x00);
- this.addNoteOn( ch, this.getNoteDeltaTime(MidiFileWriter.NoteTime.Note_040), (byte)35, (byte)0x00);
- this.addNoteOn( ch, 0, (byte)35, vel);
- this.addNoteOn( ch, this.getNoteDeltaTime(MidiFileWriter.NoteTime.Note_040), (byte)54, (byte)0x00);
-
- this.addNoteOn( ch, 0, (byte)35, vel);
- this.addNoteOn( ch, this.getNoteDeltaTime(MidiFileWriter.NoteTime.Note_040), (byte)35, (byte)0x00);
- this.addNoteOn( ch, this.getNoteDeltaTime(MidiFileWriter.NoteTime.Note_080), (byte)35, (byte)0x00);
- this.addNoteOn( ch, 0, (byte)35, vel);
- this.addNoteOn( ch, this.getNoteDeltaTime(MidiFileWriter.NoteTime.Note_080), (byte)35, (byte)0x00);
- this.addNoteOn( ch, this.getNoteDeltaTime(MidiFileWriter.NoteTime.Note_040), (byte)35, (byte)0x00);
- this.addNoteOn( ch, 0, (byte)35, vel);
- this.addNoteOn( ch, this.getNoteDeltaTime(MidiFileWriter.NoteTime.Note_040), (byte)54, (byte)0x00);
-
- this.addNoteOn( ch, 0, (byte)35, vel);
- this.addNoteOn( ch, this.getNoteDeltaTime(MidiFileWriter.NoteTime.Note_080), (byte)35, (byte)0x00);
- this.addNoteOn( ch, this.getNoteDeltaTime(MidiFileWriter.NoteTime.Note_040), (byte)35, (byte)0x00);
- this.addNoteOn( ch, 0, (byte)35, vel);
- this.addNoteOn( ch, this.getNoteDeltaTime(MidiFileWriter.NoteTime.Note_080), (byte)35, (byte)0x00);
- this.addNoteOn( ch, this.getNoteDeltaTime(MidiFileWriter.NoteTime.Note_040), (byte)35, (byte)0x00);
- this.addNoteOn( ch, 0, (byte)35, vel);
- this.addNoteOn( ch, this.getNoteDeltaTime(MidiFileWriter.NoteTime.Note_040), (byte)54, (byte)0x00);
-
- this.addNoteOn( ch, 0, (byte)35, vel);
- this.addNoteOn( ch, this.getNoteDeltaTime(MidiFileWriter.NoteTime.Note_040), (byte)35, (byte)0x00);
- this.addNoteOn( ch, this.getNoteDeltaTime(MidiFileWriter.NoteTime.Note_080), (byte)35, (byte)0x00);
- this.addNoteOn( ch, 0, (byte)35, vel);
- this.addNoteOn( ch, this.getNoteDeltaTime(MidiFileWriter.NoteTime.Note_080), (byte)35, (byte)0x00);
- this.addNoteOn( ch, this.getNoteDeltaTime(MidiFileWriter.NoteTime.Note_040), (byte)35, (byte)0x00);
- this.addNoteOn( ch, 0, (byte)35, vel);
- this.addNoteOn( ch, this.getNoteDeltaTime(MidiFileWriter.NoteTime.Note_040), (byte)54, (byte)0x00);
-
- this.addNoteOn( ch, 0, (byte)35, vel);
- this.addNoteOn( ch, this.getNoteDeltaTime(MidiFileWriter.NoteTime.Note_080), (byte)35, (byte)0x00);
- this.addNoteOn( ch, this.getNoteDeltaTime(MidiFileWriter.NoteTime.Note_040), (byte)35, (byte)0x00);
- this.addNoteOn( ch, 0, (byte)35, vel);
- this.addNoteOn( ch, this.getNoteDeltaTime(MidiFileWriter.NoteTime.Note_080), (byte)35, (byte)0x00);
- this.addNoteOn( ch, this.getNoteDeltaTime(MidiFileWriter.NoteTime.Note_040), (byte)35, (byte)0x00);
- this.addNoteOn( ch, 0, (byte)35, vel);
- this.addNoteOn( ch, this.getNoteDeltaTime(MidiFileWriter.NoteTime.Note_040), (byte)54, (byte)0x00);
-
- this.addNoteOn( ch, 0, (byte)35, vel);
- this.addNoteOn( ch, this.getNoteDeltaTime(MidiFileWriter.NoteTime.Note_080), (byte)35, (byte)0x00);
- this.addNoteOn( ch, this.getNoteDeltaTime(MidiFileWriter.NoteTime.Note_040), (byte)35, (byte)0x00);
- this.addNoteOn( ch, 0, (byte)35, vel);
- this.addNoteOn( ch, this.getNoteDeltaTime(MidiFileWriter.NoteTime.Note_080), (byte)35, (byte)0x00);
- this.addNoteOn( ch, this.getNoteDeltaTime(MidiFileWriter.NoteTime.Note_040), (byte)35, (byte)0x00);
- this.addNoteOn( ch, 0, (byte)35, vel);
- this.addNoteOn( ch, this.getNoteDeltaTime(MidiFileWriter.NoteTime.Note_040), (byte)54, (byte)0x00);
-
- this.addNoteOn( ch, 0, (byte)35, vel);
- this.addNoteOn( ch, this.getNoteDeltaTime(MidiFileWriter.NoteTime.Note_080), (byte)35, (byte)0x00);
- this.addNoteOn( ch, this.getNoteDeltaTime(MidiFileWriter.NoteTime.Note_040), (byte)35, (byte)0x00);
- this.addNoteOn( ch, 0, (byte)35, vel);
- this.addNoteOn( ch, this.getNoteDeltaTime(MidiFileWriter.NoteTime.Note_080), (byte)35, (byte)0x00);
- this.addNoteOn( ch, this.getNoteDeltaTime(MidiFileWriter.NoteTime.Note_040), (byte)35, (byte)0x00);
- this.addNoteOn( ch, 0, (byte)35, vel);
- this.addNoteOn( ch, this.getNoteDeltaTime(MidiFileWriter.NoteTime.Note_040), (byte)54, (byte)0x00);
-
- this.addNoteOn( ch, 0, (byte)35, vel);
- this.addNoteOn( ch, this.getNoteDeltaTime(MidiFileWriter.NoteTime.Note_080), (byte)35, (byte)0x00);
- this.addNoteOn( ch, this.getNoteDeltaTime(MidiFileWriter.NoteTime.Note_040), (byte)35, (byte)0x00);
- this.addNoteOn( ch, 0, (byte)35, vel);
- this.addNoteOn( ch, this.getNoteDeltaTime(MidiFileWriter.NoteTime.Note_080), (byte)35, (byte)0x00);
- this.addNoteOn( ch, this.getNoteDeltaTime(MidiFileWriter.NoteTime.Note_040), (byte)35, (byte)0x00);
- this.addNoteOn( ch, 0, (byte)35, vel);
- this.addNoteOn( ch, this.getNoteDeltaTime(MidiFileWriter.NoteTime.Note_040), (byte)54, (byte)0x00);
-
- this.closeTrackData();
- }
- catch( Exception e )
- {
- e.printStackTrace();
- }
- }
-
- protected void Song1PercussionB( byte ch, byte vel )
- {
- try
- {
- this.addNoteOn( ch, 0, (byte)35, vel);
- this.addNoteOn( ch, this.getNoteDeltaTime(MidiFileWriter.NoteTime.Note_040), (byte)35, (byte)0x00);
- this.addNoteOn( ch, this.getNoteDeltaTime(MidiFileWriter.NoteTime.Note_080), (byte)35, (byte)0x00);
- this.addNoteOn( ch, 0, (byte)35, vel);
- this.addNoteOn( ch, this.getNoteDeltaTime(MidiFileWriter.NoteTime.Note_080), (byte)35, (byte)0x00);
- this.addNoteOn( ch, this.getNoteDeltaTime(MidiFileWriter.NoteTime.Note_040), (byte)35, (byte)0x00);
- this.addNoteOn( ch, 0, (byte)35, vel);
- this.addNoteOn( ch, this.getNoteDeltaTime(MidiFileWriter.NoteTime.Note_040), (byte)54, (byte)0x00);
-
- this.addNoteOn( ch, 0, (byte)35, vel);
- this.addNoteOn( ch, this.getNoteDeltaTime(MidiFileWriter.NoteTime.Note_040), (byte)35, (byte)0x00);
- this.addNoteOn( ch, this.getNoteDeltaTime(MidiFileWriter.NoteTime.Note_080), (byte)35, (byte)0x00);
- this.addNoteOn( ch, 0, (byte)35, vel);
- this.addNoteOn( ch, this.getNoteDeltaTime(MidiFileWriter.NoteTime.Note_080), (byte)35, (byte)0x00);
- this.addNoteOn( ch, this.getNoteDeltaTime(MidiFileWriter.NoteTime.Note_040), (byte)35, (byte)0x00);
- this.addNoteOn( ch, 0, (byte)35, vel);
- this.addNoteOn( ch, this.getNoteDeltaTime(MidiFileWriter.NoteTime.Note_040), (byte)54, (byte)0x00);
-
- this.addNoteOn( ch, 0, (byte)35, vel);
- this.addNoteOn( ch, this.getNoteDeltaTime(MidiFileWriter.NoteTime.Note_080), (byte)35, (byte)0x00);
- this.addNoteOn( ch, this.getNoteDeltaTime(MidiFileWriter.NoteTime.Note_040), (byte)35, (byte)0x00);
- this.addNoteOn( ch, 0, (byte)35, vel);
- this.addNoteOn( ch, this.getNoteDeltaTime(MidiFileWriter.NoteTime.Note_080), (byte)35, (byte)0x00);
- this.addNoteOn( ch, this.getNoteDeltaTime(MidiFileWriter.NoteTime.Note_040), (byte)35, (byte)0x00);
- this.addNoteOn( ch, 0, (byte)35, vel);
- this.addNoteOn( ch, this.getNoteDeltaTime(MidiFileWriter.NoteTime.Note_040), (byte)54, (byte)0x00);
-
- this.addNoteOn( ch, 0, (byte)35, vel);
- this.addNoteOn( ch, this.getNoteDeltaTime(MidiFileWriter.NoteTime.Note_040), (byte)35, (byte)0x00);
- this.addNoteOn( ch, this.getNoteDeltaTime(MidiFileWriter.NoteTime.Note_080), (byte)35, (byte)0x00);
- this.addNoteOn( ch, 0, (byte)35, vel);
- this.addNoteOn( ch, this.getNoteDeltaTime(MidiFileWriter.NoteTime.Note_080), (byte)35, (byte)0x00);
- this.addNoteOn( ch, this.getNoteDeltaTime(MidiFileWriter.NoteTime.Note_040), (byte)35, (byte)0x00);
- this.addNoteOn( ch, 0, (byte)35, vel);
- this.addNoteOn( ch, this.getNoteDeltaTime(MidiFileWriter.NoteTime.Note_040), (byte)54, (byte)0x00);
-
- this.addNoteOn( ch, 0, (byte)35, vel);
- this.addNoteOn( ch, this.getNoteDeltaTime(MidiFileWriter.NoteTime.Note_080), (byte)35, (byte)0x00);
- this.addNoteOn( ch, this.getNoteDeltaTime(MidiFileWriter.NoteTime.Note_040), (byte)35, (byte)0x00);
- this.addNoteOn( ch, 0, (byte)35, vel);
- this.addNoteOn( ch, this.getNoteDeltaTime(MidiFileWriter.NoteTime.Note_080), (byte)35, (byte)0x00);
- this.addNoteOn( ch, this.getNoteDeltaTime(MidiFileWriter.NoteTime.Note_040), (byte)35, (byte)0x00);
- this.addNoteOn( ch, 0, (byte)35, vel);
- this.addNoteOn( ch, this.getNoteDeltaTime(MidiFileWriter.NoteTime.Note_040), (byte)54, (byte)0x00);
-
- this.addNoteOn( ch, 0, (byte)35, vel);
- this.addNoteOn( ch, this.getNoteDeltaTime(MidiFileWriter.NoteTime.Note_080), (byte)35, (byte)0x00);
- this.addNoteOn( ch, this.getNoteDeltaTime(MidiFileWriter.NoteTime.Note_040), (byte)35, (byte)0x00);
- this.addNoteOn( ch, 0, (byte)35, vel);
- this.addNoteOn( ch, this.getNoteDeltaTime(MidiFileWriter.NoteTime.Note_080), (byte)35, (byte)0x00);
- this.addNoteOn( ch, this.getNoteDeltaTime(MidiFileWriter.NoteTime.Note_040), (byte)35, (byte)0x00);
- this.addNoteOn( ch, 0, (byte)35, vel);
- this.addNoteOn( ch, this.getNoteDeltaTime(MidiFileWriter.NoteTime.Note_040), (byte)54, (byte)0x00);
-
- this.addNoteOn( ch, 0, (byte)35, vel);
- this.addNoteOn( ch, this.getNoteDeltaTime(MidiFileWriter.NoteTime.Note_080), (byte)35, (byte)0x00);
- this.addNoteOn( ch, this.getNoteDeltaTime(MidiFileWriter.NoteTime.Note_040), (byte)35, (byte)0x00);
- this.addNoteOn( ch, 0, (byte)35, vel);
- this.addNoteOn( ch, this.getNoteDeltaTime(MidiFileWriter.NoteTime.Note_080), (byte)35, (byte)0x00);
- this.addNoteOn( ch, this.getNoteDeltaTime(MidiFileWriter.NoteTime.Note_040), (byte)35, (byte)0x00);
- this.addNoteOn( ch, 0, (byte)35, vel);
- this.addNoteOn( ch, this.getNoteDeltaTime(MidiFileWriter.NoteTime.Note_040), (byte)54, (byte)0x00);
-
- this.addNoteOn( ch, 0, (byte)35, vel);
- this.addNoteOn( ch, this.getNoteDeltaTime(MidiFileWriter.NoteTime.Note_080), (byte)35, (byte)0x00);
- this.addNoteOn( ch, this.getNoteDeltaTime(MidiFileWriter.NoteTime.Note_040), (byte)35, (byte)0x00);
- this.addNoteOn( ch, 0, (byte)35, vel);
- this.addNoteOn( ch, this.getNoteDeltaTime(MidiFileWriter.NoteTime.Note_080), (byte)35, (byte)0x00);
- this.addNoteOn( ch, this.getNoteDeltaTime(MidiFileWriter.NoteTime.Note_040), (byte)35, (byte)0x00);
- this.addNoteOn( ch, 0, (byte)35, vel);
- this.addNoteOn( ch, this.getNoteDeltaTime(MidiFileWriter.NoteTime.Note_040), (byte)54, (byte)0x00);
-
- this.closeTrackData();
- }
- catch( Exception e )
- {
- e.printStackTrace();
- }
- }
-
- protected void Song1Percuss( int no, byte ch, byte vel )
- {
- switch( no )
- {
- case 0:
- this.Song1PercussionA( ch, vel);
- break;
-
- case 1:
- this.Song1PercussionB( ch, vel );
- break;
-
- default:
- this.Song1PercussionA( ch, vel);
- break;
- }
- }
-
- protected void Song1ArrangeA( byte ch, byte vel )
- {
- try
- {
- this.addNoteOn( ch, 0, (byte)MidiFileWriter.NoteTone.C3, vel);
- this.addNoteOn( ch, this.getNoteDeltaTime(MidiFileWriter.NoteTime.Note_080), (byte)MidiFileWriter.NoteTone.C3, (byte)0x00);
- this.addNoteOn( ch, 0, (byte)MidiFileWriter.NoteTone.C3, vel);
- this.addNoteOn( ch, 0, (byte)MidiFileWriter.NoteTone.E3, vel);
- this.addNoteOn( ch, this.getNoteDeltaTime(MidiFileWriter.NoteTime.Note_080), (byte)MidiFileWriter.NoteTone.C3, (byte)0x00);
- this.addNoteOn( ch, 0, (byte)MidiFileWriter.NoteTone.C3, vel);
- this.addNoteOn( ch, 0, (byte)MidiFileWriter.NoteTone.E3, vel);
- this.addNoteOn( ch, 0, (byte)MidiFileWriter.NoteTone.G3, vel);
- this.addNoteOn( ch, this.getNoteDeltaTime(MidiFileWriter.NoteTime.Note_080), (byte)MidiFileWriter.NoteTone.C3, (byte)0x00);
- this.addNoteOn( ch, 0, (byte)MidiFileWriter.NoteTone.C3, vel);
- this.addNoteOn( ch, 0, (byte)MidiFileWriter.NoteTone.E3, vel);
- this.addNoteOn( ch, 0, (byte)MidiFileWriter.NoteTone.G3, vel);
- this.addNoteOn( ch, 0, (byte)MidiFileWriter.NoteTone.B3, vel);
- this.addNoteOn( ch, this.getNoteDeltaTime(MidiFileWriter.NoteTime.Note_080), (byte)MidiFileWriter.NoteTone.C3, (byte)0x00);
- this.addNoteOn( ch, 0, (byte)MidiFileWriter.NoteTone.C3, vel);
- this.addNoteOn( ch, 0, (byte)MidiFileWriter.NoteTone.E3, vel);
- this.addNoteOn( ch, 0, (byte)MidiFileWriter.NoteTone.G3, vel);
- this.addNoteOn( ch, 0, (byte)MidiFileWriter.NoteTone.B3, vel);
- this.addNoteOn( ch, this.getNoteDeltaTime(MidiFileWriter.NoteTime.Note_020), (byte)MidiFileWriter.NoteTone.C3, (byte)0x00);
-
- this.addNoteOn( ch, 0, (byte)MidiFileWriter.NoteTone.G2, vel);
- this.addNoteOn( ch, this.getNoteDeltaTime(MidiFileWriter.NoteTime.Note_080), (byte)MidiFileWriter.NoteTone.G2, (byte)0x00);
- this.addNoteOn( ch, 0, (byte)MidiFileWriter.NoteTone.G2, vel);
- this.addNoteOn( ch, 0, (byte)MidiFileWriter.NoteTone.B3, vel);
- this.addNoteOn( ch, this.getNoteDeltaTime(MidiFileWriter.NoteTime.Note_080), (byte)MidiFileWriter.NoteTone.G2, (byte)0x00);
- this.addNoteOn( ch, 0, (byte)MidiFileWriter.NoteTone.G2, vel);
- this.addNoteOn( ch, 0, (byte)MidiFileWriter.NoteTone.B3, vel);
- this.addNoteOn( ch, 0, (byte)MidiFileWriter.NoteTone.D3, vel);
- this.addNoteOn( ch, this.getNoteDeltaTime(MidiFileWriter.NoteTime.Note_080), (byte)MidiFileWriter.NoteTone.G3, (byte)0x00);
- this.addNoteOn( ch, 0, (byte)MidiFileWriter.NoteTone.G3, vel);
- this.addNoteOn( ch, 0, (byte)MidiFileWriter.NoteTone.B3, vel);
- this.addNoteOn( ch, 0, (byte)MidiFileWriter.NoteTone.D3, vel);
- this.addNoteOn( ch, 0, (byte)MidiFileWriter.NoteTone.FF3, vel);
- this.addNoteOn( ch, this.getNoteDeltaTime(MidiFileWriter.NoteTime.Note_080), (byte)MidiFileWriter.NoteTone.G3, (byte)0x00);
- this.addNoteOn( ch, 0, (byte)MidiFileWriter.NoteTone.G3, vel);
- this.addNoteOn( ch, 0, (byte)MidiFileWriter.NoteTone.B3, vel);
- this.addNoteOn( ch, 0, (byte)MidiFileWriter.NoteTone.D3, vel);
- this.addNoteOn( ch, 0, (byte)MidiFileWriter.NoteTone.FF3, vel);
- this.addNoteOn( ch, this.getNoteDeltaTime(MidiFileWriter.NoteTime.Note_020), (byte)MidiFileWriter.NoteTone.G3, (byte)0x00);
-
- this.addNoteOn( ch, 0, (byte)MidiFileWriter.NoteTone.C3, vel);
- this.addNoteOn( ch, this.getNoteDeltaTime(MidiFileWriter.NoteTime.Note_080), (byte)MidiFileWriter.NoteTone.C3, (byte)0x00);
- this.addNoteOn( ch, 0, (byte)MidiFileWriter.NoteTone.C3, vel);
- this.addNoteOn( ch, 0, (byte)MidiFileWriter.NoteTone.E3, vel);
- this.addNoteOn( ch, this.getNoteDeltaTime(MidiFileWriter.NoteTime.Note_080), (byte)MidiFileWriter.NoteTone.C3, (byte)0x00);
- this.addNoteOn( ch, 0, (byte)MidiFileWriter.NoteTone.C3, vel);
- this.addNoteOn( ch, 0, (byte)MidiFileWriter.NoteTone.E3, vel);
- this.addNoteOn( ch, 0, (byte)MidiFileWriter.NoteTone.G3, vel);
- this.addNoteOn( ch, this.getNoteDeltaTime(MidiFileWriter.NoteTime.Note_080), (byte)MidiFileWriter.NoteTone.C3, (byte)0x00);
- this.addNoteOn( ch, 0, (byte)MidiFileWriter.NoteTone.C3, vel);
- this.addNoteOn( ch, 0, (byte)MidiFileWriter.NoteTone.E3, vel);
- this.addNoteOn( ch, 0, (byte)MidiFileWriter.NoteTone.G3, vel);
- this.addNoteOn( ch, 0, (byte)MidiFileWriter.NoteTone.B3, vel);
- this.addNoteOn( ch, this.getNoteDeltaTime(MidiFileWriter.NoteTime.Note_080), (byte)MidiFileWriter.NoteTone.C3, (byte)0x00);
- this.addNoteOn( ch, 0, (byte)MidiFileWriter.NoteTone.C3, vel);
- this.addNoteOn( ch, 0, (byte)MidiFileWriter.NoteTone.E3, vel);
- this.addNoteOn( ch, 0, (byte)MidiFileWriter.NoteTone.G3, vel);
- this.addNoteOn( ch, 0, (byte)MidiFileWriter.NoteTone.B3, vel);
- this.addNoteOn( ch, this.getNoteDeltaTime(MidiFileWriter.NoteTime.Note_020), (byte)MidiFileWriter.NoteTone.C3, (byte)0x00);
-
- this.addNoteOn( ch, 0, (byte)MidiFileWriter.NoteTone.G2, vel);
- this.addNoteOn( ch, this.getNoteDeltaTime(MidiFileWriter.NoteTime.Note_080), (byte)MidiFileWriter.NoteTone.G2, (byte)0x00);
- this.addNoteOn( ch, 0, (byte)MidiFileWriter.NoteTone.G2, vel);
- this.addNoteOn( ch, 0, (byte)MidiFileWriter.NoteTone.B3, vel);
- this.addNoteOn( ch, this.getNoteDeltaTime(MidiFileWriter.NoteTime.Note_080), (byte)MidiFileWriter.NoteTone.G2, (byte)0x00);
- this.addNoteOn( ch, 0, (byte)MidiFileWriter.NoteTone.G2, vel);
- this.addNoteOn( ch, 0, (byte)MidiFileWriter.NoteTone.B3, vel);
- this.addNoteOn( ch, 0, (byte)MidiFileWriter.NoteTone.D3, vel);
- this.addNoteOn( ch, this.getNoteDeltaTime(MidiFileWriter.NoteTime.Note_080), (byte)MidiFileWriter.NoteTone.G3, (byte)0x00);
- this.addNoteOn( ch, 0, (byte)MidiFileWriter.NoteTone.G3, vel);
- this.addNoteOn( ch, 0, (byte)MidiFileWriter.NoteTone.B3, vel);
- this.addNoteOn( ch, 0, (byte)MidiFileWriter.NoteTone.D3, vel);
- this.addNoteOn( ch, 0, (byte)MidiFileWriter.NoteTone.FF3, vel);
- this.addNoteOn( ch, this.getNoteDeltaTime(MidiFileWriter.NoteTime.Note_080), (byte)MidiFileWriter.NoteTone.G3, (byte)0x00);
- this.addNoteOn( ch, 0, (byte)MidiFileWriter.NoteTone.G3, vel);
- this.addNoteOn( ch, 0, (byte)MidiFileWriter.NoteTone.B3, vel);
- this.addNoteOn( ch, 0, (byte)MidiFileWriter.NoteTone.D3, vel);
- this.addNoteOn( ch, 0, (byte)MidiFileWriter.NoteTone.FF3, vel);
- this.addNoteOn( ch, this.getNoteDeltaTime(MidiFileWriter.NoteTime.Note_020), (byte)MidiFileWriter.NoteTone.G3, (byte)0x00);
-
- this.addNoteOn( ch, 0, (byte)MidiFileWriter.NoteTone.C3, vel);
- this.addNoteOn( ch, this.getNoteDeltaTime(MidiFileWriter.NoteTime.Note_080), (byte)MidiFileWriter.NoteTone.C3, (byte)0x00);
- this.addNoteOn( ch, 0, (byte)MidiFileWriter.NoteTone.C3, vel);
- this.addNoteOn( ch, 0, (byte)MidiFileWriter.NoteTone.E3, vel);
- this.addNoteOn( ch, this.getNoteDeltaTime(MidiFileWriter.NoteTime.Note_080), (byte)MidiFileWriter.NoteTone.C3, (byte)0x00);
- this.addNoteOn( ch, 0, (byte)MidiFileWriter.NoteTone.C3, vel);
- this.addNoteOn( ch, 0, (byte)MidiFileWriter.NoteTone.E3, vel);
- this.addNoteOn( ch, 0, (byte)MidiFileWriter.NoteTone.G3, vel);
- this.addNoteOn( ch, this.getNoteDeltaTime(MidiFileWriter.NoteTime.Note_080), (byte)MidiFileWriter.NoteTone.C3, (byte)0x00);
- this.addNoteOn( ch, 0, (byte)MidiFileWriter.NoteTone.C3, vel);
- this.addNoteOn( ch, 0, (byte)MidiFileWriter.NoteTone.E3, vel);
- this.addNoteOn( ch, 0, (byte)MidiFileWriter.NoteTone.G3, vel);
- this.addNoteOn( ch, 0, (byte)MidiFileWriter.NoteTone.B3, vel);
- this.addNoteOn( ch, this.getNoteDeltaTime(MidiFileWriter.NoteTime.Note_080), (byte)MidiFileWriter.NoteTone.C3, (byte)0x00);
- this.addNoteOn( ch, 0, (byte)MidiFileWriter.NoteTone.C3, vel);
- this.addNoteOn( ch, 0, (byte)MidiFileWriter.NoteTone.E3, vel);
- this.addNoteOn( ch, 0, (byte)MidiFileWriter.NoteTone.G3, vel);
- this.addNoteOn( ch, 0, (byte)MidiFileWriter.NoteTone.B3, vel);
- this.addNoteOn( ch, this.getNoteDeltaTime(MidiFileWriter.NoteTime.Note_020), (byte)MidiFileWriter.NoteTone.C3, (byte)0x00);
-
- this.addNoteOn( ch, 0, (byte)MidiFileWriter.NoteTone.G2, vel);
- this.addNoteOn( ch, this.getNoteDeltaTime(MidiFileWriter.NoteTime.Note_080), (byte)MidiFileWriter.NoteTone.G2, (byte)0x00);
- this.addNoteOn( ch, 0, (byte)MidiFileWriter.NoteTone.G2, vel);
- this.addNoteOn( ch, 0, (byte)MidiFileWriter.NoteTone.B3, vel);
- this.addNoteOn( ch, this.getNoteDeltaTime(MidiFileWriter.NoteTime.Note_080), (byte)MidiFileWriter.NoteTone.G2, (byte)0x00);
- this.addNoteOn( ch, 0, (byte)MidiFileWriter.NoteTone.G2, vel);
- this.addNoteOn( ch, 0, (byte)MidiFileWriter.NoteTone.B3, vel);
- this.addNoteOn( ch, 0, (byte)MidiFileWriter.NoteTone.D3, vel);
- this.addNoteOn( ch, this.getNoteDeltaTime(MidiFileWriter.NoteTime.Note_080), (byte)MidiFileWriter.NoteTone.G3, (byte)0x00);
- this.addNoteOn( ch, 0, (byte)MidiFileWriter.NoteTone.G3, vel);
- this.addNoteOn( ch, 0, (byte)MidiFileWriter.NoteTone.B3, vel);
- this.addNoteOn( ch, 0, (byte)MidiFileWriter.NoteTone.D3, vel);
- this.addNoteOn( ch, 0, (byte)MidiFileWriter.NoteTone.FF3, vel);
- this.addNoteOn( ch, this.getNoteDeltaTime(MidiFileWriter.NoteTime.Note_080), (byte)MidiFileWriter.NoteTone.G3, (byte)0x00);
- this.addNoteOn( ch, 0, (byte)MidiFileWriter.NoteTone.G3, vel);
- this.addNoteOn( ch, 0, (byte)MidiFileWriter.NoteTone.B3, vel);
- this.addNoteOn( ch, 0, (byte)MidiFileWriter.NoteTone.D3, vel);
- this.addNoteOn( ch, 0, (byte)MidiFileWriter.NoteTone.FF3, vel);
- this.addNoteOn( ch, this.getNoteDeltaTime(MidiFileWriter.NoteTime.Note_020), (byte)MidiFileWriter.NoteTone.G3, (byte)0x00);
-
- this.addNoteOn( ch, 0, (byte)MidiFileWriter.NoteTone.C3, vel);
- this.addNoteOn( ch, this.getNoteDeltaTime(MidiFileWriter.NoteTime.Note_080), (byte)MidiFileWriter.NoteTone.C3, (byte)0x00);
- this.addNoteOn( ch, 0, (byte)MidiFileWriter.NoteTone.C3, vel);
- this.addNoteOn( ch, 0, (byte)MidiFileWriter.NoteTone.E3, vel);
- this.addNoteOn( ch, this.getNoteDeltaTime(MidiFileWriter.NoteTime.Note_080), (byte)MidiFileWriter.NoteTone.C3, (byte)0x00);
- this.addNoteOn( ch, 0, (byte)MidiFileWriter.NoteTone.C3, vel);
- this.addNoteOn( ch, 0, (byte)MidiFileWriter.NoteTone.E3, vel);
- this.addNoteOn( ch, 0, (byte)MidiFileWriter.NoteTone.G3, vel);
- this.addNoteOn( ch, this.getNoteDeltaTime(MidiFileWriter.NoteTime.Note_080), (byte)MidiFileWriter.NoteTone.C3, (byte)0x00);
- this.addNoteOn( ch, 0, (byte)MidiFileWriter.NoteTone.C3, vel);
- this.addNoteOn( ch, 0, (byte)MidiFileWriter.NoteTone.E3, vel);
- this.addNoteOn( ch, 0, (byte)MidiFileWriter.NoteTone.G3, vel);
- this.addNoteOn( ch, 0, (byte)MidiFileWriter.NoteTone.B3, vel);
- this.addNoteOn( ch, this.getNoteDeltaTime(MidiFileWriter.NoteTime.Note_080), (byte)MidiFileWriter.NoteTone.C3, (byte)0x00);
- this.addNoteOn( ch, 0, (byte)MidiFileWriter.NoteTone.C3, vel);
- this.addNoteOn( ch, 0, (byte)MidiFileWriter.NoteTone.E3, vel);
- this.addNoteOn( ch, 0, (byte)MidiFileWriter.NoteTone.G3, vel);
- this.addNoteOn( ch, 0, (byte)MidiFileWriter.NoteTone.B3, vel);
- this.addNoteOn( ch, this.getNoteDeltaTime(MidiFileWriter.NoteTime.Note_020), (byte)MidiFileWriter.NoteTone.C3, (byte)0x00);
-
- this.addNoteOn( ch, 0, (byte)MidiFileWriter.NoteTone.G2, vel);
- this.addNoteOn( ch, this.getNoteDeltaTime(MidiFileWriter.NoteTime.Note_080), (byte)MidiFileWriter.NoteTone.G2, (byte)0x00);
- this.addNoteOn( ch, 0, (byte)MidiFileWriter.NoteTone.G2, vel);
- this.addNoteOn( ch, 0, (byte)MidiFileWriter.NoteTone.B3, vel);
- this.addNoteOn( ch, this.getNoteDeltaTime(MidiFileWriter.NoteTime.Note_080), (byte)MidiFileWriter.NoteTone.G2, (byte)0x00);
- this.addNoteOn( ch, 0, (byte)MidiFileWriter.NoteTone.G2, vel);
- this.addNoteOn( ch, 0, (byte)MidiFileWriter.NoteTone.B3, vel);
- this.addNoteOn( ch, 0, (byte)MidiFileWriter.NoteTone.D3, vel);
- this.addNoteOn( ch, this.getNoteDeltaTime(MidiFileWriter.NoteTime.Note_080), (byte)MidiFileWriter.NoteTone.G3, (byte)0x00);
- this.addNoteOn( ch, 0, (byte)MidiFileWriter.NoteTone.G3, vel);
- this.addNoteOn( ch, 0, (byte)MidiFileWriter.NoteTone.B3, vel);
- this.addNoteOn( ch, 0, (byte)MidiFileWriter.NoteTone.D3, vel);
- this.addNoteOn( ch, 0, (byte)MidiFileWriter.NoteTone.FF3, vel);
- this.addNoteOn( ch, this.getNoteDeltaTime(MidiFileWriter.NoteTime.Note_080), (byte)MidiFileWriter.NoteTone.G3, (byte)0x00);
- this.addNoteOn( ch, 0, (byte)MidiFileWriter.NoteTone.G3, vel);
- this.addNoteOn( ch, 0, (byte)MidiFileWriter.NoteTone.B3, vel);
- this.addNoteOn( ch, 0, (byte)MidiFileWriter.NoteTone.D3, vel);
- this.addNoteOn( ch, 0, (byte)MidiFileWriter.NoteTone.FF3, vel);
- this.addNoteOn( ch, this.getNoteDeltaTime(MidiFileWriter.NoteTime.Note_020), (byte)MidiFileWriter.NoteTone.G3, (byte)0x00);
-
- this.closeTrackData();
- }
- catch( Exception e )
- {
- e.printStackTrace();
- }
- }
-
- protected void Song1ArrangeB( byte ch, byte vel )
- {
- try
- {
- this.addNoteOn( ch, 0, (byte)MidiFileWriter.NoteTone.D5, vel);
- this.addNoteOn( ch, this.getNoteDeltaTime(MidiFileWriter.NoteTime.Note_080), (byte)MidiFileWriter.NoteTone.C4, (byte)0x00);
- this.addNoteOn( ch, 0, (byte)MidiFileWriter.NoteTone.B4, vel);
- this.addNoteOn( ch, this.getNoteDeltaTime(MidiFileWriter.NoteTime.Note_080), (byte)MidiFileWriter.NoteTone.C4, (byte)0x00);
- this.addNoteOn( ch, 0, (byte)MidiFileWriter.NoteTone.D5, vel);
- this.addNoteOn( ch, this.getNoteDeltaTime(MidiFileWriter.NoteTime.Note_080), (byte)MidiFileWriter.NoteTone.C4, (byte)0x00);
- this.addNoteOn( ch, 0, (byte)MidiFileWriter.NoteTone.B4, vel);
- this.addNoteOn( ch, this.getNoteDeltaTime(MidiFileWriter.NoteTime.Note_080), (byte)MidiFileWriter.NoteTone.C4, (byte)0x00);
- this.addNoteOn( ch, 0, (byte)MidiFileWriter.NoteTone.D5, vel);
- this.addNoteOn( ch, this.getNoteDeltaTime(MidiFileWriter.NoteTime.Note_080), (byte)MidiFileWriter.NoteTone.C4, (byte)0x00);
- this.addNoteOn( ch, 0, (byte)MidiFileWriter.NoteTone.B4, vel);
- this.addNoteOn( ch, this.getNoteDeltaTime(MidiFileWriter.NoteTime.Note_080), (byte)MidiFileWriter.NoteTone.C4, (byte)0x00);
- this.addNoteOn( ch, 0, (byte)MidiFileWriter.NoteTone.D5, vel);
- this.addNoteOn( ch, this.getNoteDeltaTime(MidiFileWriter.NoteTime.Note_080), (byte)MidiFileWriter.NoteTone.C4, (byte)0x00);
- this.addNoteOn( ch, 0, (byte)MidiFileWriter.NoteTone.B4, vel);
- this.addNoteOn( ch, this.getNoteDeltaTime(MidiFileWriter.NoteTime.Note_080), (byte)MidiFileWriter.NoteTone.C4, (byte)0x00);
-
- this.addNoteOn( ch, 0, (byte)MidiFileWriter.NoteTone.D5, vel);
- this.addNoteOn( ch, this.getNoteDeltaTime(MidiFileWriter.NoteTime.Note_080), (byte)MidiFileWriter.NoteTone.C4, (byte)0x00);
- this.addNoteOn( ch, 0, (byte)MidiFileWriter.NoteTone.A4, vel);
- this.addNoteOn( ch, this.getNoteDeltaTime(MidiFileWriter.NoteTime.Note_080), (byte)MidiFileWriter.NoteTone.C4, (byte)0x00);
- this.addNoteOn( ch, 0, (byte)MidiFileWriter.NoteTone.D5, vel);
- this.addNoteOn( ch, this.getNoteDeltaTime(MidiFileWriter.NoteTime.Note_080), (byte)MidiFileWriter.NoteTone.C4, (byte)0x00);
- this.addNoteOn( ch, 0, (byte)MidiFileWriter.NoteTone.A4, vel);
- this.addNoteOn( ch, this.getNoteDeltaTime(MidiFileWriter.NoteTime.Note_080), (byte)MidiFileWriter.NoteTone.C4, (byte)0x00);
- this.addNoteOn( ch, 0, (byte)MidiFileWriter.NoteTone.D5, vel);
- this.addNoteOn( ch, this.getNoteDeltaTime(MidiFileWriter.NoteTime.Note_080), (byte)MidiFileWriter.NoteTone.C4, (byte)0x00);
- this.addNoteOn( ch, 0, (byte)MidiFileWriter.NoteTone.A4, vel);
- this.addNoteOn( ch, this.getNoteDeltaTime(MidiFileWriter.NoteTime.Note_080), (byte)MidiFileWriter.NoteTone.C4, (byte)0x00);
- this.addNoteOn( ch, 0, (byte)MidiFileWriter.NoteTone.D5, vel);
- this.addNoteOn( ch, this.getNoteDeltaTime(MidiFileWriter.NoteTime.Note_080), (byte)MidiFileWriter.NoteTone.C4, (byte)0x00);
- this.addNoteOn( ch, 0, (byte)MidiFileWriter.NoteTone.A4, vel);
- this.addNoteOn( ch, this.getNoteDeltaTime(MidiFileWriter.NoteTime.Note_080), (byte)MidiFileWriter.NoteTone.C4, (byte)0x00);
-
- this.addNoteOn( ch, 0, (byte)MidiFileWriter.NoteTone.D5, vel);
- this.addNoteOn( ch, this.getNoteDeltaTime(MidiFileWriter.NoteTime.Note_080), (byte)MidiFileWriter.NoteTone.C4, (byte)0x00);
- this.addNoteOn( ch, 0, (byte)MidiFileWriter.NoteTone.G4, vel);
- this.addNoteOn( ch, this.getNoteDeltaTime(MidiFileWriter.NoteTime.Note_080), (byte)MidiFileWriter.NoteTone.C4, (byte)0x00);
- this.addNoteOn( ch, 0, (byte)MidiFileWriter.NoteTone.D5, vel);
- this.addNoteOn( ch, this.getNoteDeltaTime(MidiFileWriter.NoteTime.Note_080), (byte)MidiFileWriter.NoteTone.C4, (byte)0x00);
- this.addNoteOn( ch, 0, (byte)MidiFileWriter.NoteTone.G4, vel);
- this.addNoteOn( ch, this.getNoteDeltaTime(MidiFileWriter.NoteTime.Note_080), (byte)MidiFileWriter.NoteTone.C4, (byte)0x00);
- this.addNoteOn( ch, 0, (byte)MidiFileWriter.NoteTone.D5, vel);
- this.addNoteOn( ch, this.getNoteDeltaTime(MidiFileWriter.NoteTime.Note_080), (byte)MidiFileWriter.NoteTone.C4, (byte)0x00);
- this.addNoteOn( ch, 0, (byte)MidiFileWriter.NoteTone.G4, vel);
- this.addNoteOn( ch, this.getNoteDeltaTime(MidiFileWriter.NoteTime.Note_080), (byte)MidiFileWriter.NoteTone.C4, (byte)0x00);
- this.addNoteOn( ch, 0, (byte)MidiFileWriter.NoteTone.D5, vel);
- this.addNoteOn( ch, this.getNoteDeltaTime(MidiFileWriter.NoteTime.Note_080), (byte)MidiFileWriter.NoteTone.C4, (byte)0x00);
- this.addNoteOn( ch, 0, (byte)MidiFileWriter.NoteTone.G4, vel);
- this.addNoteOn( ch, this.getNoteDeltaTime(MidiFileWriter.NoteTime.Note_080), (byte)MidiFileWriter.NoteTone.C4, (byte)0x00);
-
- this.addNoteOn( ch, 0, (byte)MidiFileWriter.NoteTone.D5, vel);
- this.addNoteOn( ch, this.getNoteDeltaTime(MidiFileWriter.NoteTime.Note_080), (byte)MidiFileWriter.NoteTone.C4, (byte)0x00);
- this.addNoteOn( ch, 0, (byte)MidiFileWriter.NoteTone.B4, vel);
- this.addNoteOn( ch, this.getNoteDeltaTime(MidiFileWriter.NoteTime.Note_080), (byte)MidiFileWriter.NoteTone.C4, (byte)0x00);
- this.addNoteOn( ch, 0, (byte)MidiFileWriter.NoteTone.D5, vel);
- this.addNoteOn( ch, this.getNoteDeltaTime(MidiFileWriter.NoteTime.Note_080), (byte)MidiFileWriter.NoteTone.C4, (byte)0x00);
- this.addNoteOn( ch, 0, (byte)MidiFileWriter.NoteTone.B4, vel);
- this.addNoteOn( ch, this.getNoteDeltaTime(MidiFileWriter.NoteTime.Note_080), (byte)MidiFileWriter.NoteTone.C4, (byte)0x00);
- this.addNoteOn( ch, 0, (byte)MidiFileWriter.NoteTone.D5, vel);
- this.addNoteOn( ch, this.getNoteDeltaTime(MidiFileWriter.NoteTime.Note_080), (byte)MidiFileWriter.NoteTone.C4, (byte)0x00);
- this.addNoteOn( ch, 0, (byte)MidiFileWriter.NoteTone.B4, vel);
- this.addNoteOn( ch, this.getNoteDeltaTime(MidiFileWriter.NoteTime.Note_080), (byte)MidiFileWriter.NoteTone.C4, (byte)0x00);
- this.addNoteOn( ch, 0, (byte)MidiFileWriter.NoteTone.D5, vel);
- this.addNoteOn( ch, this.getNoteDeltaTime(MidiFileWriter.NoteTime.Note_080), (byte)MidiFileWriter.NoteTone.C4, (byte)0x00);
- this.addNoteOn( ch, 0, (byte)MidiFileWriter.NoteTone.B4, vel);
- this.addNoteOn( ch, this.getNoteDeltaTime(MidiFileWriter.NoteTime.Note_080), (byte)MidiFileWriter.NoteTone.C4, (byte)0x00);
-
- this.addNoteOn( ch, 0, (byte)MidiFileWriter.NoteTone.D5, vel);
- this.addNoteOn( ch, this.getNoteDeltaTime(MidiFileWriter.NoteTime.Note_080), (byte)MidiFileWriter.NoteTone.C4, (byte)0x00);
- this.addNoteOn( ch, 0, (byte)MidiFileWriter.NoteTone.B4, vel);
- this.addNoteOn( ch, this.getNoteDeltaTime(MidiFileWriter.NoteTime.Note_080), (byte)MidiFileWriter.NoteTone.C4, (byte)0x00);
- this.addNoteOn( ch, 0, (byte)MidiFileWriter.NoteTone.D5, vel);
- this.addNoteOn( ch, this.getNoteDeltaTime(MidiFileWriter.NoteTime.Note_080), (byte)MidiFileWriter.NoteTone.C4, (byte)0x00);
- this.addNoteOn( ch, 0, (byte)MidiFileWriter.NoteTone.B4, vel);
- this.addNoteOn( ch, this.getNoteDeltaTime(MidiFileWriter.NoteTime.Note_080), (byte)MidiFileWriter.NoteTone.C4, (byte)0x00);
- this.addNoteOn( ch, 0, (byte)MidiFileWriter.NoteTone.D5, vel);
- this.addNoteOn( ch, this.getNoteDeltaTime(MidiFileWriter.NoteTime.Note_080), (byte)MidiFileWriter.NoteTone.C4, (byte)0x00);
- this.addNoteOn( ch, 0, (byte)MidiFileWriter.NoteTone.B4, vel);
- this.addNoteOn( ch, this.getNoteDeltaTime(MidiFileWriter.NoteTime.Note_080), (byte)MidiFileWriter.NoteTone.C4, (byte)0x00);
- this.addNoteOn( ch, 0, (byte)MidiFileWriter.NoteTone.D5, vel);
- this.addNoteOn( ch, this.getNoteDeltaTime(MidiFileWriter.NoteTime.Note_080), (byte)MidiFileWriter.NoteTone.C4, (byte)0x00);
- this.addNoteOn( ch, 0, (byte)MidiFileWriter.NoteTone.B4, vel);
- this.addNoteOn( ch, this.getNoteDeltaTime(MidiFileWriter.NoteTime.Note_080), (byte)MidiFileWriter.NoteTone.C4, (byte)0x00);
-
- this.addNoteOn( ch, 0, (byte)MidiFileWriter.NoteTone.D5, vel);
- this.addNoteOn( ch, this.getNoteDeltaTime(MidiFileWriter.NoteTime.Note_080), (byte)MidiFileWriter.NoteTone.C4, (byte)0x00);
- this.addNoteOn( ch, 0, (byte)MidiFileWriter.NoteTone.A4, vel);
- this.addNoteOn( ch, this.getNoteDeltaTime(MidiFileWriter.NoteTime.Note_080), (byte)MidiFileWriter.NoteTone.C4, (byte)0x00);
- this.addNoteOn( ch, 0, (byte)MidiFileWriter.NoteTone.D5, vel);
- this.addNoteOn( ch, this.getNoteDeltaTime(MidiFileWriter.NoteTime.Note_080), (byte)MidiFileWriter.NoteTone.C4, (byte)0x00);
- this.addNoteOn( ch, 0, (byte)MidiFileWriter.NoteTone.A4, vel);
- this.addNoteOn( ch, this.getNoteDeltaTime(MidiFileWriter.NoteTime.Note_080), (byte)MidiFileWriter.NoteTone.C4, (byte)0x00);
- this.addNoteOn( ch, 0, (byte)MidiFileWriter.NoteTone.D5, vel);
- this.addNoteOn( ch, this.getNoteDeltaTime(MidiFileWriter.NoteTime.Note_080), (byte)MidiFileWriter.NoteTone.C4, (byte)0x00);
- this.addNoteOn( ch, 0, (byte)MidiFileWriter.NoteTone.A4, vel);
- this.addNoteOn( ch, this.getNoteDeltaTime(MidiFileWriter.NoteTime.Note_080), (byte)MidiFileWriter.NoteTone.C4, (byte)0x00);
- this.addNoteOn( ch, 0, (byte)MidiFileWriter.NoteTone.D5, vel);
- this.addNoteOn( ch, this.getNoteDeltaTime(MidiFileWriter.NoteTime.Note_080), (byte)MidiFileWriter.NoteTone.C4, (byte)0x00);
- this.addNoteOn( ch, 0, (byte)MidiFileWriter.NoteTone.A4, vel);
- this.addNoteOn( ch, this.getNoteDeltaTime(MidiFileWriter.NoteTime.Note_080), (byte)MidiFileWriter.NoteTone.C4, (byte)0x00);
-
- this.addNoteOn( ch, 0, (byte)MidiFileWriter.NoteTone.D5, vel);
- this.addNoteOn( ch, this.getNoteDeltaTime(MidiFileWriter.NoteTime.Note_080), (byte)MidiFileWriter.NoteTone.C4, (byte)0x00);
- this.addNoteOn( ch, 0, (byte)MidiFileWriter.NoteTone.G4, vel);
- this.addNoteOn( ch, this.getNoteDeltaTime(MidiFileWriter.NoteTime.Note_080), (byte)MidiFileWriter.NoteTone.C4, (byte)0x00);
- this.addNoteOn( ch, 0, (byte)MidiFileWriter.NoteTone.D5, vel);
- this.addNoteOn( ch, this.getNoteDeltaTime(MidiFileWriter.NoteTime.Note_080), (byte)MidiFileWriter.NoteTone.C4, (byte)0x00);
- this.addNoteOn( ch, 0, (byte)MidiFileWriter.NoteTone.G4, vel);
- this.addNoteOn( ch, this.getNoteDeltaTime(MidiFileWriter.NoteTime.Note_080), (byte)MidiFileWriter.NoteTone.C4, (byte)0x00);
- this.addNoteOn( ch, 0, (byte)MidiFileWriter.NoteTone.D5, vel);
- this.addNoteOn( ch, this.getNoteDeltaTime(MidiFileWriter.NoteTime.Note_080), (byte)MidiFileWriter.NoteTone.C4, (byte)0x00);
- this.addNoteOn( ch, 0, (byte)MidiFileWriter.NoteTone.G4, vel);
- this.addNoteOn( ch, this.getNoteDeltaTime(MidiFileWriter.NoteTime.Note_080), (byte)MidiFileWriter.NoteTone.C4, (byte)0x00);
- this.addNoteOn( ch, 0, (byte)MidiFileWriter.NoteTone.D5, vel);
- this.addNoteOn( ch, this.getNoteDeltaTime(MidiFileWriter.NoteTime.Note_080), (byte)MidiFileWriter.NoteTone.C4, (byte)0x00);
- this.addNoteOn( ch, 0, (byte)MidiFileWriter.NoteTone.G4, vel);
- this.addNoteOn( ch, this.getNoteDeltaTime(MidiFileWriter.NoteTime.Note_080), (byte)MidiFileWriter.NoteTone.C4, (byte)0x00);
-
- this.addNoteOn( ch, 0, (byte)MidiFileWriter.NoteTone.D5, vel);
- this.addNoteOn( ch, this.getNoteDeltaTime(MidiFileWriter.NoteTime.Note_080), (byte)MidiFileWriter.NoteTone.C4, (byte)0x00);
- this.addNoteOn( ch, 0, (byte)MidiFileWriter.NoteTone.B4, vel);
- this.addNoteOn( ch, this.getNoteDeltaTime(MidiFileWriter.NoteTime.Note_080), (byte)MidiFileWriter.NoteTone.C4, (byte)0x00);
- this.addNoteOn( ch, 0, (byte)MidiFileWriter.NoteTone.D5, vel);
- this.addNoteOn( ch, this.getNoteDeltaTime(MidiFileWriter.NoteTime.Note_080), (byte)MidiFileWriter.NoteTone.C4, (byte)0x00);
- this.addNoteOn( ch, 0, (byte)MidiFileWriter.NoteTone.B4, vel);
- this.addNoteOn( ch, this.getNoteDeltaTime(MidiFileWriter.NoteTime.Note_080), (byte)MidiFileWriter.NoteTone.C4, (byte)0x00);
- this.addNoteOn( ch, 0, (byte)MidiFileWriter.NoteTone.D5, vel);
- this.addNoteOn( ch, this.getNoteDeltaTime(MidiFileWriter.NoteTime.Note_080), (byte)MidiFileWriter.NoteTone.C4, (byte)0x00);
- this.addNoteOn( ch, 0, (byte)MidiFileWriter.NoteTone.B4, vel);
- this.addNoteOn( ch, this.getNoteDeltaTime(MidiFileWriter.NoteTime.Note_080), (byte)MidiFileWriter.NoteTone.C4, (byte)0x00);
- this.addNoteOn( ch, 0, (byte)MidiFileWriter.NoteTone.D5, vel);
- this.addNoteOn( ch, this.getNoteDeltaTime(MidiFileWriter.NoteTime.Note_080), (byte)MidiFileWriter.NoteTone.C4, (byte)0x00);
- this.addNoteOn( ch, 0, (byte)MidiFileWriter.NoteTone.B4, vel);
- this.addNoteOn( ch, this.getNoteDeltaTime(MidiFileWriter.NoteTime.Note_080), (byte)MidiFileWriter.NoteTone.C4, (byte)0x00);
-
- this.closeTrackData();
- }
- catch( Exception e )
- {
- e.printStackTrace();
- }
- }
-
- // 2曲目
-
- // midiファイル作成
- public boolean CreateMidiFile( String fileName, int trackNo, int dTime )
- {
- // エラー処理
- if (fos != null) return false;
-
- String flname = fileName + FILE_ID;
- this.quarterNoteDeltaTime = dTime;
-
- try
- {
- // ファイル作成
- this.fos = context.openFileOutput(flname, Context.MODE_PRIVATE);
- // ヘッダ
- this.fos.write(HEADER_TAG);
- // データサイズ
- this.fos.write(HEADER_DATA_LEN);
- // データフォーマット
- this.fos.write(MIDI_FORMAT);
-
- // トラック数
- byte b = (byte)( ( trackNo & 0x0000ff00 ) >> 8 );
- this.fos.write(b);
- b = (byte)( trackNo & 0x000000ff );
- this.fos.write(b);
-
- // デルタタイム
- b = (byte)( ( dTime & 0x0000ff00 ) >> 8 );
- this.fos.write(b);
- b = (byte)( dTime & 0x000000ff );
- this.fos.write(b);
- }
- catch( Exception e )
- {
- e.printStackTrace();
-
- // 後処理
- this.Release();
- return false;
- }
-
- return true;
- }
-
- // テンポを設定
- public void setTempo( int bpm )
- {
- int tempoL = 60 * 1000000 / bpm; //[micro sec / beat]
- TrackData trackData = new TrackData();
- trackData.length = 7;
- trackData.data = new byte[7];
-
- // MetaMessage
- trackData.data[0] = (byte)0x00;
- trackData.data[1] = (byte)0xff;
- trackData.data[2] = (byte)0x51;
- trackData.data[3] = (byte)0x03;
- trackData.data[4] = (byte)( tempoL /256 /256 );
- trackData.data[5] = (byte)( tempoL /256 /256 );
- trackData.data[6] = (byte)( tempoL /256 /256 );
-
- // 追加
- TrackDataList.add(trackData);
- }
-
- // プログラムチェンジ
- public void setProgramChange( byte ch, byte no )
- {
- TrackData trackData = new TrackData();
- trackData.length = 3;
-
- // message
- trackData.data = new byte[4];
- trackData.data[0] = (byte)0x00;
- trackData.data[1] = (byte)(0xc0 | ch);
- trackData.data[2] = no;
-
- // 追加
- TrackDataList.add(trackData);
- }
-
- // Trackデータ追加
- public void addTrackData(byte[] data, int length)
- {
- // エラー処理
- if( length <= 0 ) return;
-
- TrackData trackData = new TrackData();
- trackData.length = length;
- trackData.data = new byte[length];
-
- // リストに追加
- for( int i = 0; i < length; i++ ) trackData.data[i] = data[i];
- TrackDataList.add(trackData);
- }
-
- // NOTE ON
- public void addNoteOn( byte chNo, int deltaTime, byte NoteTone, byte velocity )
- {
- byte[] dltime = this.deltaTime(deltaTime);
- int dataLen = dltime.length + 3;
- byte data[] = new byte[dataLen];
-
- for(int i = 0; i < dltime.length; i++)
- {
- data[i] = dltime[i];
- }
-
- // MidiMessage
- data[ dltime.length + 0 ] = (byte)(0x90 | chNo);
- data[ dltime.length + 1 ] = NoteTone;
- data[ dltime.length + 2 ] = velocity;
-
- // リストに追加
- addTrackData(data, dataLen);
- }
-
-
- // Trackデータクローズ
- public void closeTrackData()
- {
- // データ長 データ終端データサイズを初期値とする
- int dataLen = 4;
-
- for( int i = 0; i < TrackDataList.size(); i++ )
- {
- dataLen += TrackDataList.get(i).length;
- }
-
- try
- {
- // Trackヘッダ
- fos.write( TRACK_TAG );
-
- // データサイズ
- byte work = (byte)( (dataLen & 0xff000000) >> 24 );
- fos.write(work);
- work = (byte)( (dataLen & 0x00ff0000) >> 16 );
- fos.write(work);
- work = (byte)( (dataLen & 0x0000ff00) >> 8 );
- fos.write(work);
- work = (byte)( dataLen & 0x000000ff );
- fos.write(work);
-
- // Trackデータ展開
- for( int i = 0; i < TrackDataList.size(); i++ )
- {
- for( int c = 0; c < TrackDataList.get(i).length; c++ )
- {
- fos.write(TrackDataList.get(i).data[c]);
- }
- }
-
- // Track終端
- fos.write(TRACK_END);
- }
- catch( IOException e )
- {
- e.printStackTrace();
- }
-
- // トラックデータ消去
- this.clearTrackData();
- }
-
- // MIDIファイル作成完了
- public void Release()
- {
- // エラー処理
- if( this.fos != null ) return;
-
- // ファイルクローズ
- try
- {
- this.fos.close();
- }
- catch( IOException e )
- {
- e.printStackTrace();
- }
-
- // 初期化
- this.fos = null;
- }
-
- // 音符のデルタタイムを計算
- public int getNoteDeltaTime( double noteTime )
- {
- return (int)( this.quarterNoteDeltaTime * noteTime );
- }
-
- // Trackデータクリア
- private void clearTrackData()
- {
- this.TrackDataList.clear();
- }
-
- // deltaTimeの計算
- private byte[] deltaTime(int deltaTime)
- {
- // 配列の大きさ計算
- int size = 1;
- if( deltaTime >= 0x00200000 ) size = 4;
- else if( deltaTime >= 0x00004000 ) size = 3;
- else if( deltaTime >= 0x00000080 ) size = 2;
-
- byte[] dltTime = new byte[size];
- // エラー処理
- if( dltTime == null ) return null;
-
- // 生成
- int dt = deltaTime;
- for( int i = ( size - 1 ); i >= 0; i-- )
- {
- byte work = (byte)( dt & 0x0000007f );
- dltTime[i] = (byte)(work | 0x80);
- dt -= work;
- dt >>= 7;
- }
- dltTime[ size-1 ] = (byte)(dltTime[ size-1 ] & 0x7f);
-
- return dltTime;
- }
-
- /* 定数 */
- // Trackデータ
- protected class TrackData
- {
- protected int length = 0;
- protected byte[] data;
- }
-
- // NOTE LEN
- public class NoteTime
- {
- public final static double Note_010 = 4; // 全音符
- public final static double Note_025 = 3; // 付点2分音符
- public final static double Note_020 = 2; // 2分音符
- public final static double Note_045 = 1.5; // 付点4分音符
- public final static double Note_040 = 1; // 4分音符
- public final static double Note_085 = 0.75; // 付点8分音符
- public final static double Note_080 = 0.5; // 8分音符
- public final static double Note_160 = 0.25; // 16分音符
- }
-
- // NOTE TONE
- public class NoteTone
- {
- public final static int C0 = 12;
- public final static int CC0 = 13;
- public final static int D0 = 14;
- public final static int DD0 = 15;
- public final static int E0 = 16;
- public final static int F0 = 17;
- public final static int FF0 = 18;
- public final static int G0 = 19;
- public final static int GG0 = 20;
- public final static int A0 = 21;
- public final static int AA0 = 22;
- public final static int B0 = 23;
-
- public final static int C1 = 24;
- public final static int CC1 = 25;
- public final static int D1 = 26;
- public final static int DD1 = 27;
- public final static int E1 = 28;
- public final static int F1 = 29;
- public final static int FF1 = 30;
- public final static int G1 = 31;
- public final static int GG1 = 32;
- public final static int A1 = 33;
- public final static int AA1 = 34;
- public final static int B1 = 35;
- public final static int C2 = 36;
- public final static int CC2 = 37;
- public final static int D2 = 38;
- public final static int DD2 = 39;
- public final static int E2 = 40;
- public final static int F2 = 41;
- public final static int FF2 = 42;
- public final static int G2 = 43;
- public final static int GG2 = 44;
- public final static int A2 = 45;
- public final static int AA2 = 46;
- public final static int B2 = 47;
- public final static int C3 = 48;
- public final static int CC3 = 49;
- public final static int D3 = 50;
- public final static int DD3 = 51;
- public final static int E3 = 52;
- public final static int F3 = 53;
- public final static int FF3 = 54;
- public final static int G3 = 55;
- public final static int GG3 = 56;
- public final static int A3 = 57;
- public final static int AA3 = 58;
- public final static int B3 = 59;
- public final static int C4 = 60;
- public final static int CC4 = 61;
- public final static int D4 = 62;
- public final static int DD4 = 63;
- public final static int E4 = 64;
- public final static int F4 = 65;
- public final static int FF4 = 66;
- public final static int G4 = 67;
- public final static int GG4 = 68;
- public final static int A4 = 69;
- public final static int AA4 = 70;
- public final static int B4 = 71;
-
- public final static int C5 = 72;
- public final static int CC5 = 73;
- public final static int D5 = 74;
- public final static int DD5 = 75;
- public final static int E5 = 76;
- public final static int F5 = 77;
- public final static int FF5 = 78;
- public final static int G5 = 79;
- public final static int GG5 = 80;
- public final static int A5 = 81;
- public final static int AA5 = 82;
- public final static int B5 = 83;
- public final static int C6 = 84;
- public final static int CC6 = 85;
- public final static int D6 = 86;
- public final static int DD6 = 87;
- public final static int E6 = 88;
- public final static int F6 = 89;
- public final static int FF6 = 90;
- public final static int G6 = 91;
- public final static int GG6 = 92;
- public final static int A6 = 93;
- public final static int AA6 = 94;
- public final static int B6 = 95;
- public final static int C7 = 96;
- public final static int CC7 = 97;
- public final static int D7 = 98;
- public final static int DD7 = 99;
- public final static int E7 = 100;
- public final static int F7 = 101;
- public final static int FF7 = 102;
- public final static int G7 = 103;
- public final static int GG7 = 104;
- public final static int A7 = 105;
- public final static int AA7 = 106;
- public final static int B7 = 107;
- public final static int C8 = 108;
- public final static int CC8 = 109;
- public final static int D8 = 110;
- public final static int DD8 = 111;
- public final static int E8 = 112;
- public final static int F8 = 113;
- public final static int FF8 = 114;
- public final static int G8 = 115;
- public final static int GG8 = 116;
- public final static int A8 = 117;
- public final static int AA8 = 118;
- public final static int B8 = 119;
- public final static int C9 = 120;
- public final static int CC9 = 121;
- public final static int D9 = 122;
- public final static int DD9 = 123;
- public final static int E9 = 124;
- public final static int F9 = 125;
- public final static int FF9 = 126;
- public final static int G9 = 127;
-}
-}
diff --git a/Muse_prot/app/src/main/java/com/shun/prototype/Option.java b/Muse_prot/app/src/main/java/com/shun/prototype/Option.java
deleted file mode 100644
index 3d8e852..0000000
--- a/Muse_prot/app/src/main/java/com/shun/prototype/Option.java
+++ /dev/null
@@ -1,372 +0,0 @@
-package com.shun.prototype;
-
-import android.os.Bundle;
-import android.view.View;
-import android.app.Activity;
-import android.widget.AdapterView;
-import android.widget.AdapterView.OnItemSelectedListener;
-import android.widget.ArrayAdapter;
-import android.widget.Spinner;
-import android.widget.TextView;
-import android.widget.SeekBar;
-import android.widget.Button;
-import android.content.Intent;
-
-public class Option extends Activity
-{
- /* メニューのための変数共 */
- // 曲セレクト
- private TextView songTextView;
- private Spinner selectSong;
- String songItems[] = { "Song1", "Song2","Song3","Song4","Song5" };
- private int songNo = 0; // 曲番号(配列添え字)
-
- // 左上フリックに対応する楽器変更
- private TextView arrange1UpFlickTextView;
- private Spinner selectArrange1UpFlick;
- private TextView arrange1RightFlickTextView;
- private Spinner selectArrange1RightFlick;
- private TextView arrange1LeftFlickTextView;
- private Spinner selectArrange1LeftFlick;
-
- // 右上フリックに対応する楽器変更
- private TextView arrange2UpFlickTextView;
- private Spinner selectArrange2UpFlick;
- private TextView arrange2RightFlickTextView;
- private Spinner selectArrange2RightFlick;
- private TextView arrange2LeftFlickTextView;
- private Spinner selectArrange2LeftFlick;
-
- // 左下フリックに対応する楽器変更
- private TextView melodyUpFlickTextView;
- private Spinner selectMelodyUpFlick;
- private TextView melodyRightFlickTextView;
- private Spinner selectMelodyRightFlick;
- private TextView melodyLeftFlickTextView;
- private Spinner selectMelodyLeftFlick;
- private TextView melodyDownFlickTextView;
- private Spinner selectMelodyDownFlick;
-
- // Tempo変更のText
- private TextView tempoTextView;
- // Tempo変更シークバー
- private SeekBar seekbar;
-
- //データ保存用変数
- private int beat = 0;
- private int arrange1Inst[] = new int[3];
- private int arrange2Inst[] = new int[3];
- private int melodyInst[] = new int[4];
-
- /* 楽器リスト */
- // 楽器クラス
- private class Instrument
- {
- String name; // 名前
- int pm; // プログラムチェンジ番号
-
- // コンストラクタ
- Instrument( String name, int pm )
- {
- this.name = name;
- this.pm = pm;
- }
- }
- // リスト生成メソッド
- public void makeNameList(){ for( int i = 0; i < nameList.length; i++ ) nameList[i] = InstList[i].name; }
- public void makeInstList(){ for( int i = 0; i < instList.length; i++ ) instList[i] = InstList[i].pm; }
-
- // 本体
- private Instrument[] InstList = {
- new Instrument( "ピアノ", 0 ),
- 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( "トランペット", 57 ),
- new Instrument( "ソプラノサックス", 65 ),
- new Instrument( "三味線", 107 ),
- new Instrument( "太鼓", 117 )
- };
- public String[] nameList = new String[ InstList.length ];
- public int[] instList = new int[ InstList.length ];
-
- /* 選択肢の添字判断 */
- // プログラムチェンジリスト用
- public int indexOfInt( int array[], int num )
- {
- for( int i = 0; i < array.length; i++) if( num == array[i] ) return i;
-
- return -1;
- }
- // 楽器名用
- public int indexOfString( String array[], String s )
- {
- for( int i = 0; i < array.length; i++) if( array[i].equals( s ) ) return i;
-
- return -1;
- }
-
- @Override
- protected void onCreate(Bundle savedInstanceState)
- {
- super.onCreate(savedInstanceState);
- setContentView(R.layout.activity_option);
-
- //テキスト定義
- songTextView = (TextView)findViewById(R.id.songTextView);
- songTextView.setText("Select Song");
-
- arrange1UpFlickTextView = (TextView)findViewById(R.id.arrange1UpFlickTextView);
- arrange1UpFlickTextView.setText("Select Arrange1 Up Flick Instrument");
- arrange1RightFlickTextView = (TextView)findViewById(R.id.arrange1RightFlickTextView);
- arrange1RightFlickTextView.setText("Select Arrange1 Right Flick Instrument");
- arrange1LeftFlickTextView = (TextView)findViewById(R.id.arrange1LeftFlickTextView);
- arrange1LeftFlickTextView.setText("Select Arrange1 Left Flick Instrument");
-
- arrange2UpFlickTextView = (TextView)findViewById(R.id.arrange2UpFlickTextView);
- arrange2UpFlickTextView.setText("Select Arrange2 Up Flick Instrument");
- arrange2RightFlickTextView = (TextView)findViewById(R.id.arrange2RightFlickTextView);
- arrange2RightFlickTextView.setText("Select Arrange2 Right Flick Instrument");
- arrange2LeftFlickTextView = (TextView)findViewById(R.id.arrange2LeftFlickTextView);
- arrange2LeftFlickTextView.setText("Select Arrange2 Left Flick Instrument");
-
- melodyUpFlickTextView = (TextView)findViewById(R.id.melodyUpFlickTextView);
- melodyUpFlickTextView.setText("Select Melody Up Flick Instrument");
- melodyRightFlickTextView = (TextView)findViewById(R.id.melodyRightFlickTextView);
- melodyRightFlickTextView.setText("Select Melody Right Flick Instrument");
- melodyLeftFlickTextView = (TextView)findViewById(R.id.melodyLeftFlickTextView);
- melodyLeftFlickTextView.setText("Select Melody Left Flick Instrument");
- melodyDownFlickTextView = (TextView)findViewById(R.id.melodyDownFlickTextView);
- melodyDownFlickTextView.setText("Select Melody Down Flick Instrument");
-
- // リスト生成
- this.makeNameList();
- this.makeInstList();
-
- //データの受け取り
- Intent intent = getIntent();
- songNo = intent.getIntExtra("SongNo", 0);
- arrange1Inst[0] = intent.getIntExtra("A1Inst0", 0);
- arrange1Inst[1] = intent.getIntExtra("A1Inst1", 0);
- arrange1Inst[2] = intent.getIntExtra("A1Inst2", 0);
- arrange2Inst[0] = intent.getIntExtra("A2Inst0", 0);
- arrange2Inst[1] = intent.getIntExtra("A2Inst1", 0);
- arrange2Inst[2] = intent.getIntExtra("A2Inst2", 0);
- melodyInst[0] = intent.getIntExtra("MInst0", 0);
- melodyInst[1] = intent.getIntExtra("MInst1", 0);
- melodyInst[2] = intent.getIntExtra("MInst2", 0);
- melodyInst[3] = intent.getIntExtra("MInst3", 0);
- beat = intent.getIntExtra("BEAT", 0);
-
- //曲のドロップダウンメニュー
- 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);
- selectSong.setAdapter(adapterSong);
- selectSong.setSelection(songNo);
- selectSong.setOnItemSelectedListener(new OnItemSelectedListener(){
- public void onItemSelected(AdapterView> parent,View viw,int arg2,long arg3){
- Spinner spinner=(Spinner)parent;
- String item=(String)spinner.getSelectedItem();
- songNo = indexOfString( songItems, item );
- }
- public void onNothingSelected(AdapterView> parent){}
- });
-
- // 左上の上フリックのドロップダウンメニュー
- selectArrange1UpFlick = (Spinner)findViewById(R.id.selectArrange1UpFlickSpinner);
- ArrayAdapter adapterArrange1UpFlickItems = new ArrayAdapter(this,android.R.layout.simple_spinner_item, nameList);
- adapterArrange1UpFlickItems.setDropDownViewResource(android.R.layout.simple_spinner_dropdown_item);
- selectArrange1UpFlick.setAdapter(adapterArrange1UpFlickItems);
- selectArrange1UpFlick.setSelection( this.indexOfInt( instList, arrange1Inst[0] ) );
- selectArrange1UpFlick.setOnItemSelectedListener(new OnItemSelectedListener(){
- public void onItemSelected(AdapterView> parent,View viw,int arg2,long arg3){
- Spinner spinner=(Spinner)parent;
- String item=(String)spinner.getSelectedItem();
- arrange1Inst[ 0 ] = InstList[ indexOfString( nameList, item ) ].pm;
- }
- public void onNothingSelected(AdapterView> parent){}
- });
-
- // 左上の右フリックのドロップダウンメニュー
- selectArrange1RightFlick = (Spinner)findViewById(R.id.selectArrange1RightFlickSpinner);
- ArrayAdapter adapterArrange1RightFlickItems = new ArrayAdapter(this,android.R.layout.simple_spinner_item, nameList);
- adapterArrange1RightFlickItems.setDropDownViewResource(android.R.layout.simple_spinner_dropdown_item);
- selectArrange1RightFlick.setAdapter(adapterArrange1RightFlickItems);
- selectArrange1RightFlick.setSelection( this.indexOfInt( instList, arrange1Inst[1] ) );
- selectArrange1RightFlick.setOnItemSelectedListener(new OnItemSelectedListener(){
- public void onItemSelected(AdapterView> parent,View viw,int arg2,long arg3){
- Spinner spinner=(Spinner)parent;
- String item=(String)spinner.getSelectedItem();
- arrange1Inst[ 1 ] = InstList[ indexOfString( nameList, item ) ].pm;
- }
- public void onNothingSelected(AdapterView> parent){}
- });
-
- // 左上の左フリックのドロップダウンメニュー
- selectArrange1LeftFlick = (Spinner)findViewById(R.id.selectArrange1LeftFlickSpinner);
- ArrayAdapter adapterArrange1LeftFlickItems = new ArrayAdapter(this,android.R.layout.simple_spinner_item, nameList);
- adapterArrange1LeftFlickItems.setDropDownViewResource(android.R.layout.simple_spinner_dropdown_item);
- selectArrange1LeftFlick.setAdapter(adapterArrange1LeftFlickItems);
- selectArrange1LeftFlick.setSelection( this.indexOfInt( instList, arrange1Inst[2] ) );
- selectArrange1LeftFlick.setOnItemSelectedListener(new OnItemSelectedListener(){
- public void onItemSelected(AdapterView> parent,View viw,int arg2,long arg3){
- Spinner spinner=(Spinner)parent;
- String item=(String)spinner.getSelectedItem();
- arrange1Inst[ 2 ] = InstList[ indexOfString( nameList, item ) ].pm;
- }
- public void onNothingSelected(AdapterView> parent){}
- });
-
- // 右上の上フリックのドロップダウンメニュー
- selectArrange2UpFlick = (Spinner)findViewById(R.id.selectArrange2UpFlickSpinner);
- ArrayAdapter adapterArrange2UpFlickItems = new ArrayAdapter(this,android.R.layout.simple_spinner_item, nameList);
- adapterArrange2UpFlickItems.setDropDownViewResource(android.R.layout.simple_spinner_dropdown_item);
- selectArrange2UpFlick.setAdapter(adapterArrange2UpFlickItems);
- selectArrange2UpFlick.setSelection( this.indexOfInt( instList, arrange2Inst[0] ) );
- selectArrange2UpFlick.setOnItemSelectedListener(new OnItemSelectedListener(){
- public void onItemSelected(AdapterView> parent,View viw,int arg2,long arg3){
- Spinner spinner=(Spinner)parent;
- String item=(String)spinner.getSelectedItem();
- arrange2Inst[ 0 ] = InstList[ indexOfString( nameList, item ) ].pm;
- }
- public void onNothingSelected(AdapterView> parent){}
- });
-
- // 右上の右フリックのドロップダウンメニュー
- selectArrange2RightFlick = (Spinner)findViewById(R.id.selectArrange2RightFlickSpinner);
- ArrayAdapter adapterArrange2RightFlickItems = new ArrayAdapter(this,android.R.layout.simple_spinner_item, nameList);
- adapterArrange2RightFlickItems.setDropDownViewResource(android.R.layout.simple_spinner_dropdown_item);
- selectArrange2RightFlick.setAdapter(adapterArrange2RightFlickItems);
- selectArrange2RightFlick.setSelection( this.indexOfInt( instList, arrange2Inst[1] ) );
- selectArrange2RightFlick.setOnItemSelectedListener(new OnItemSelectedListener(){
- public void onItemSelected(AdapterView> parent,View viw,int arg2,long arg3){
- Spinner spinner=(Spinner)parent;
- String item=(String)spinner.getSelectedItem();
- arrange2Inst[ 1 ] = InstList[ indexOfString( nameList, item ) ].pm;
- }
- public void onNothingSelected(AdapterView> parent){}
- });
-
- // 右上の左フリックのドロップダウンメニュー
- selectArrange2LeftFlick = (Spinner)findViewById(R.id.selectArrange2LeftFlickSpinner);
- ArrayAdapter adapterArrange2LeftFlickItems = new ArrayAdapter(this,android.R.layout.simple_spinner_item, nameList);
- adapterArrange2LeftFlickItems.setDropDownViewResource(android.R.layout.simple_spinner_dropdown_item);
- selectArrange2LeftFlick.setAdapter(adapterArrange2LeftFlickItems);
- selectArrange2LeftFlick.setSelection( this.indexOfInt( instList, arrange2Inst[2] ) );
- selectArrange2LeftFlick.setOnItemSelectedListener(new OnItemSelectedListener(){
- public void onItemSelected(AdapterView> parent,View viw,int arg2,long arg3){
- Spinner spinner=(Spinner)parent;
- String item=(String)spinner.getSelectedItem();
- arrange2Inst[ 2 ] = InstList[ indexOfString( nameList, item ) ].pm;
- }
- public void onNothingSelected(AdapterView> parent){}
- });
-
- // 左下の上フリックのドロップダウンメニュー
- selectMelodyUpFlick = (Spinner)findViewById(R.id.selectMelodyUpFlickSpinner);
- ArrayAdapter adapterMelodyUpFlickItems = new ArrayAdapter(this,android.R.layout.simple_spinner_item, nameList);
- adapterMelodyUpFlickItems.setDropDownViewResource(android.R.layout.simple_spinner_dropdown_item);
- selectMelodyUpFlick.setAdapter(adapterMelodyUpFlickItems);
- selectMelodyUpFlick.setSelection( this.indexOfInt( instList, melodyInst[0] ) );
- selectMelodyUpFlick.setOnItemSelectedListener(new OnItemSelectedListener(){
- public void onItemSelected(AdapterView> parent,View viw,int arg2,long arg3){
- Spinner spinner=(Spinner)parent;
- String item=(String)spinner.getSelectedItem();
- melodyInst[ 0 ] = InstList[ indexOfString( nameList, item ) ].pm;
- }
- public void onNothingSelected(AdapterView> parent){}
- });
-
- // 左下の右フリックのドロップダウンメニュー
- selectMelodyRightFlick = (Spinner)findViewById(R.id.selectMelodyRightFlickSpinner);
- ArrayAdapter adapterMelodyRightFlickItems = new ArrayAdapter(this,android.R.layout.simple_spinner_item, nameList);
- adapterMelodyRightFlickItems.setDropDownViewResource(android.R.layout.simple_spinner_dropdown_item);
- selectMelodyRightFlick.setAdapter(adapterMelodyRightFlickItems);
- selectMelodyRightFlick.setSelection( this.indexOfInt( instList, melodyInst[1] ) );
- selectMelodyRightFlick.setOnItemSelectedListener(new OnItemSelectedListener(){
- public void onItemSelected(AdapterView> parent,View viw,int arg2,long arg3){
- Spinner spinner=(Spinner)parent;
- String item=(String)spinner.getSelectedItem();
- melodyInst[ 1 ] = InstList[ indexOfString( nameList, item ) ].pm;
- }
- public void onNothingSelected(AdapterView> parent){}
- });
-
- // 左下の左フリックのドロップダウンメニュー
- selectMelodyLeftFlick = (Spinner)findViewById(R.id.selectMelodyLeftFlickSpinner);
- ArrayAdapter adapterMelodyLeftFlickItems = new ArrayAdapter(this,android.R.layout.simple_spinner_item, nameList);
- adapterMelodyLeftFlickItems.setDropDownViewResource(android.R.layout.simple_spinner_dropdown_item);
- selectMelodyLeftFlick.setAdapter(adapterMelodyLeftFlickItems);
- selectMelodyLeftFlick.setSelection( this.indexOfInt( instList, melodyInst[2] ) );
- selectMelodyLeftFlick.setOnItemSelectedListener(new OnItemSelectedListener(){
- public void onItemSelected(AdapterView> parent,View viw,int arg2,long arg3){
- Spinner spinner=(Spinner)parent;
- String item=(String)spinner.getSelectedItem();
- melodyInst[ 2 ] = InstList[ indexOfString( nameList, item ) ].pm;
- }
- public void onNothingSelected(AdapterView> parent){}
- });
-
- // 左下の下フリックのドロップダウンメニュー
- selectMelodyDownFlick = (Spinner)findViewById(R.id.selectMelodyDownFlickSpinner);
- ArrayAdapter adapterMelodyDownFlickItems = new ArrayAdapter(this,android.R.layout.simple_spinner_item, nameList);
- adapterMelodyDownFlickItems.setDropDownViewResource(android.R.layout.simple_spinner_dropdown_item);
- selectMelodyDownFlick.setAdapter(adapterMelodyDownFlickItems);
- selectMelodyDownFlick.setSelection( this.indexOfInt( instList, melodyInst[3] ) );
- selectMelodyDownFlick.setOnItemSelectedListener(new OnItemSelectedListener(){
- public void onItemSelected(AdapterView> parent,View viw,int arg2,long arg3){
- Spinner spinner=(Spinner)parent;
- String item=(String)spinner.getSelectedItem();
- melodyInst[ 3 ] = InstList[ indexOfString( nameList, item ) ].pm;
- }
- public void onNothingSelected(AdapterView> parent){}
- });
-
- //テンポのシークバー
- tempoTextView=(TextView)findViewById(R.id.text_view5);
- tempoTextView.setText("bpm"+beat);
- seekbar=(SeekBar)findViewById(R.id.tempo);
- seekbar.setMax(255);
- seekbar.setProgress(beat);
- seekbar.setOnSeekBarChangeListener(
- new SeekBar.OnSeekBarChangeListener(){
- @Override
- public void onProgressChanged(SeekBar seekbar,int progress,boolean fromUser){
- beat=seekbar.getProgress();
- tempoTextView.setText("bpm"+beat);
- }
- public void onStartTrackingTouch(SeekBar seekbar){}
- public void onStopTrackingTouch(SeekBar seekbar){ }
- });
-
- Button sendButton = (Button) findViewById(R.id.return_button);
- sendButton.setOnClickListener(new View.OnClickListener() {
- @Override
- 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_A2Inst0", arrange2Inst[0]);
- intent.putExtra("RES_A2Inst1", arrange2Inst[1]);
- intent.putExtra("RES_A2Inst2", arrange2Inst[2]);
- intent.putExtra("RES_MInst0", melodyInst[0]);
- intent.putExtra("RES_MInst1", melodyInst[1]);
- intent.putExtra("RES_MInst2", melodyInst[2]);
- intent.putExtra("RES_MInst3", melodyInst[3]);
- intent.putExtra("RES_BEAT", beat);
- setResult(RESULT_OK,intent);
- finish();
- }
- });
-
- }
-}
diff --git a/Muse_prot/app/src/main/java/com/shun/prototype/Sound_Back.java b/Muse_prot/app/src/main/java/com/shun/prototype/Sound_Back.java
deleted file mode 100644
index eea1bf4..0000000
--- a/Muse_prot/app/src/main/java/com/shun/prototype/Sound_Back.java
+++ /dev/null
@@ -1,167 +0,0 @@
-package com.shun.prototype;
-
-import android.app.Activity;
-import android.content.Intent;
-import android.os.Bundle;
-import android.util.Log;
-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;
-
- // midi更新
- //Sound_Front.changeMidiFile();
- }
- }
-
- @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");
- Log.d("", "EventLocation X:" + getx + ",Y:" + gety);
- break;
- case MotionEvent.ACTION_UP://離した時
- Log.d("", "ACTION_UP");
- long eventDuration2 = motionEvent.getEventTime() - motionEvent.getDownTime();
- Log.d("", "eventDuration2: " +eventDuration2+" msec");//デバッグ用出力
- Log.d("", "Pressure: " + motionEvent.getPressure());
- Log.d("", "edit="+edit);
- Log.d("","getx ="+getx+",gety ="+gety);
- Log.d("","nowx[0]="+nowx[0]+",nowy[0]="+nowy[0]);
-
- if(getx>1090 && gety<120){
- 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 && gety430 && gety<929){
- edit=((int)gety-430)/100;//編集する画像の選択
- }
-
- else if(getx<60 && gety>930 && gety<1010){
- 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_prot/app/src/main/java/com/shun/prototype/Sound_Front.java b/Muse_prot/app/src/main/java/com/shun/prototype/Sound_Front.java
deleted file mode 100644
index dd57114..0000000
--- a/Muse_prot/app/src/main/java/com/shun/prototype/Sound_Front.java
+++ /dev/null
@@ -1,632 +0,0 @@
-package com.shun.prototype;
-
-import android.app.Activity;
-import android.content.Intent;
-import android.media.MediaPlayer;
-import android.os.Bundle;
-import android.util.Log;
-import android.view.MotionEvent;
-
-import java.io.*;
-
-public class Sound_Front extends Activity
-{
- static final int RESULT = 1000;
- int beat = 100;
- int beattemp;
-
- // Event判別用変数
- float beforex[] = {-1,-1,-1,-1};
- float beforey[] = {-1,-1,-1,-1};
- int record = 0;
- double dist[]={0,0,0,0}; // 4エリアの楽器と中心の距離
-
- // midi用変数
- int bpm = 120; // beat per min
- int inst[] = { 0, 0, 0, 0 };// 音色
- int vel[] = { 0, 0, 0, 0 }; // 大きさ
- int songNo = 0; //曲セレクト
- int DrumNo = 0; // ドラムトラック用変数
-
- // 楽器リスト
- int Arrange1InstList[] = new int[3];
- int Arrange2InstList[] = new int[3];
- int melodyInstList[] = new int[4];
-
- //
- int nowPos = 0; // 再生位置
-
- // 画面サイズうんぬん : TODO
- static final int maxX = 1200;
- static final int maxY = 1900;
- static final int maxLen = (int)Math.sqrt( maxX*maxX/4 + maxY*maxY/4 );
- static final int buttonSize = 60;
-
- private GraphicView graphicView;
- public MediaPlayer mediaPlayer = null;
- private FileInputStream fis = null;
-
- public class Vec
- {
- // 配列に楽器データ入れて、これで指定させようと思ったが挫折
- // 全エリアのフリック4方向に音色種類を全対応
- final static int UP = 0;
- final static int RIGHT = 1;
- final static int LEFT = 2;
- final static int DOWN = 3;
- }
-
- @Override
- protected void onCreate(Bundle savedInstanceState)
- {
- super.onCreate(savedInstanceState);
- setContentView(R.layout.activity_soundfront);
-
- //データ受け取り
- 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);
-
- // MediaPlayer処理
- mediaPlayer = new MediaPlayer();
- try
- {
- // 読み込み
- fis = new FileInputStream("/data/data/com.shun.prototype/files/temp.mid");
-
- // set
- if (fis != null) mediaPlayer.setDataSource(fis.getFD());
-
- // 再生待機
- mediaPlayer.prepare();
- }
- catch (Exception e)
- {
- e.printStackTrace();
- }
- // ループ再生の設定
- mediaPlayer.setLooping(true);
-
- // GraphicViewのオブジェクト生成
- graphicView = new GraphicView(this);
- setContentView(graphicView);
- graphicView.setBpm(beat/2);
- graphicView.setScene(true);
- graphicView.onResume();
- }
-
- // midiファイル作るメソッド
- private void createMidiFile()
- {
- //音の大きさ更新
- for( int i = 0; i < vel.length; i++ )
- {
- int fixDist = 300; // 音量微調整(中心付近は全部最大)
-
- // 音量計算
- if( dist[i] == 0 ) vel[i] = 0;
- else if( dist[ i ] < fixDist ) vel[i] = 127;
- else vel[i] = (int)( ( maxLen - dist[i] ) * 127 / ( maxLen - fixDist ) );
- }
-
- // テンポの更新 : TODO
- bpm = beat;
-
- // midi作成
- MidiFileWriter midFile = new MidiFileWriter(getBaseContext());
- try
- {
- // MIDIファイル作成
- midFile.CreateMidiFile("temp", 5, 480);
-
- // トラックデータ作成
- // テンポ設定
- midFile.setTempo(bpm);
-
- // 音色設定
- midFile.setProgramChange((byte) 0x00, (byte) inst[0] );
- midFile.setProgramChange((byte) 0x01, (byte) inst[1] );
- midFile.setProgramChange((byte) 0x02, (byte) inst[2] ); // 主旋律
- //midFile.setProgramChange((byte) 0x03, (byte) inst[3] ); // ドラム
- midFile.closeTrackData();
-
- // トラックデータ作成
- switch( songNo )
- {
- case 0:
- midFile.Song1ArrangeA((byte) 0x00, (byte) vel[0]);
- midFile.Song1ArrangeB((byte) 0x01, (byte) vel[1]);
- midFile.Song1Melody((byte) 0x02, (byte) vel[2]);
- midFile.Song1Percuss( DrumNo, (byte) 0x09, (byte) vel[3]);
- break;
-
- //case 1:
- // midFile.Song2ArrangeA((byte) 0x00, (byte) vel[0]);
- // midFile.Song2ArrangeB((byte) 0x01, (byte) vel[1]);
- // midFile.Song2Melody((byte) 0x02, (byte) vel[2]);
- // midFile.Song2Percuss( DrumNo, (byte) 0x09, (byte) vel[3]);
- // break;
-
- default:
- midFile.Song1ArrangeA((byte) 0x00, (byte) vel[0]);
- midFile.Song1ArrangeB((byte) 0x01, (byte) vel[1]);
- midFile.Song1Melody((byte) 0x02, (byte) vel[2]);
- midFile.Song1PercussionA((byte) 0x09, (byte) vel[3]);
- break;
- }
- }
- catch( Exception e )
- {
- e.printStackTrace();
- }
- }
-
- // midi書き換え
- public void changeMidiFile()
- {
- // MediaPlayer再生中
- if ( mediaPlayer.isPlaying() )
- {
- // 現在の再生位置
- nowPos = mediaPlayer.getCurrentPosition();
- //停止
- mediaPlayer.stop();
- // テンポ操作で動くときの処理
- if( beat != bpm ) nowPos = nowPos * beat / bpm;
-
- // midi作成
- this.createMidiFile();
-
- //再生
- try
- {
- // 消去
- mediaPlayer.reset();
- // 再取得
- mediaPlayer.setDataSource(fis.getFD());
- // 待機
- mediaPlayer.prepare();
- // ループ再生の設定
- mediaPlayer.setLooping(true);
- }
- catch( IOException e)
- {
- e.printStackTrace();
- }
- // シーク
- mediaPlayer.seekTo( nowPos );
- // 再生
- mediaPlayer.start();
- }
- // MediaPlayer停止中
- else
- {
- // midi作成
- this.createMidiFile();
-
- //再生
- mediaPlayer.seekTo( nowPos );
- mediaPlayer.start();
- }
- }
-
- // フリック方向識別
- private int frickVec( float nx, float ny )
- {
- // 右側の判定
- if( nx > beforex[1] && beforex[1] > beforex[3] )
- {
- // x軸移動が大きい時
- if( Math.abs( nx - beforex[3] ) > Math.abs( beforey[3] - ny ) )
- {
- Log.d("", "moveright");
- return Vec.RIGHT;
- }
- // y軸移動が大きい時
- else
- {
- // 上移動時
- if( beforey[3] > ny )
- {
- Log.d("", "moveup");
- return Vec.UP;
- }
- // 下移動時
- else
- {
- Log.d("", "movedown");
- return Vec.DOWN;
- }
- }
- }
- // 左側の判定
- else
- {
- // x軸移動が大きい時
- if( Math.abs( nx - beforex[3] ) > Math.abs( beforey[3] - ny ) )
- {
- Log.d("", "moveleft");
- return Vec.LEFT;
- }
- // y軸移動が大きい時
- else
- {
- //上移動時
- if( beforey[3] > ny )
- {
- Log.d("", "moveup");
- return Vec.UP;
- }
- //下移動時
- else
- {
- Log.d("", "movedown");
- return Vec.DOWN;
- }
- }
- }
- }
-
- protected void onActivityResult(int requestCode,int resultCode,Intent intent)
- {
- super.onActivityResult(requestCode,resultCode,intent);
- if( resultCode == RESULT_OK && requestCode == RESULT && intent != null )
- {
- //データの受取と反映
- 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;
-
- if( this.songNo != intent.getIntExtra("RES_SongNo",0) )
- {
- nowPos = 0;
- }
- songNo = intent.getIntExtra("RES_SongNo",0);
-
- // エフェクト
- graphicView.setBpm(beat/2);
-
- //再生
- mediaPlayer.start();
-
- // midi更新
- this.changeMidiFile();
- }
- }
-
- @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");
- Log.d("", "EventLocation X:" + getx + ",Y:" + gety);
-
- //前回のタッチ記録を消去
- for( int i = 0 ; i < 4; i++ )
- {
- beforex[i]=-1;
- beforey[i]=-1;
- }
-
- //フラグリセット
- record = 0;
- beattemp = 0;
- break;
-
- //離した時
- case MotionEvent.ACTION_UP:
- // デバッグ表示
- Log.d("", "ACTION_UP");
- long eventDuration2 = motionEvent.getEventTime() - motionEvent.getDownTime();
- Log.d("", "eventDuration2: " +eventDuration2+" msec");
- Log.d("", "Pressure: " + motionEvent.getPressure());
-
- // テンポ処理
- if( beattemp != 0 )
- {
- beat += beattemp;
-
- if( beat < 20 ) beat = 20;
- else if( beat > 240 ) beat = 240;
-
- // テンポセット
- graphicView.setBpm(beat / 2);
- }
-
- // テンポが変わった時
- if( beat != bpm ) this.changeMidiFile(); // midi更新
-
- //タッチ時間が長かった場合以降のイベントスキップ
- if( eventDuration2 > 300 ) break;
-
- //座標判定
- // オプションへの遷移
- 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 )
- {
- //各データの転送
- 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);
- }
- // エリア1( 左上 )
- else if( getx < maxX/2 && gety < maxY/2 )
- {
- if( graphicView.getFlagPoint(0) == 0 )
- {
- // エフェクト
- 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 ) );
- Log.d("", "dist[0]="+dist[0]);
-
- // MediaPlayer処理
- this.changeMidiFile();
- }
- }
- // エリア2( 右上 )
- else if( getx > maxX/2 && gety < maxY/2 )
- {
- if( graphicView.getFlagPoint(1) == 0 )
- {
- // 画像配置
- 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 ) );
- Log.d("", "dist[1]="+dist[1]);
-
- // MediaPlayer処理
- this.changeMidiFile();
- }
- }
- // エリア3( 左下 )
- else if( getx < maxX/2 && gety > maxY/2 )
- {
- // 画像配置
-
- if( graphicView.getFlagPoint(2) == 0 )
- {
- // エフェクト
- 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 ) );
- Log.d("", "dist[2]="+dist[2]);
-
- // MediaPlayer処理
- this.changeMidiFile();
- }
- }
- // エリア4( 右下 )
- else if( getx > maxX/2 && gety > maxY/2 )
- {
- // 画像配置
- if( graphicView.getFlagPoint(3) == 0 )
- {
- // エフェクト
- 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 ) );
- Log.d("", "dist[3]="+dist[3]);
-
- // MediaPlayer処理
- this.changeMidiFile();
- }
- }
- break;
-
- case MotionEvent.ACTION_MOVE:
- //デバッグ表示
- Log.d("", "ACTION_MOVE");
- Log.d("", " X:" + getx + ", Y:" + gety);
- Log.d("", "beat:" + beat);
-
- //スライド座標を保存
- 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)
- {
- //デバッグ用表示
- Log.d("", "bX:" + beforex[1] + ",bY:" + beforey[1]);
- Log.d("", "bX:" + beforex[3] + ",bY:" + beforey[3]);
-
- //座標が記録されてない時
- if (record == 0 && beforex[3] != -1)
- {
- //右移動時
- if (getx > beforex[1] && beforex[1] > beforex[3])
- {
- Log.d("", "spinright");
- record = 1;//フラグ管理
- }
- //左移動時
- else
- {
- Log.d("", "spinleft");
- record = 2;//フラグ管理
- }
- }
- //右移動から始めた時
- else if (record == 1)
- {
- Log.d("", "spinright");
- beattemp += 1;//bpm加算
- }
- //左移動から始めた時
- else
- {
- Log.d("", "spinleft");
- beattemp -= 1;//bpm減算
- }
-
- // デバッグ表示
- Log.d("", "beattemp:" + beattemp);
- }
- // フリック操作
- // 座標が記録されてない時
- else
- {
- // フリック方向で各エリアごとの操作
- //左上
- if( getx < maxX/2 && gety < maxY/2 )
- {
- // 下フリックで消す
- if( this.frickVec( getx, gety ) == Vec.DOWN )
- {
- graphicView.setFxpoint( 0, 0 );
- graphicView.setFypoint( 0, 0 );
- dist[ 0 ] = 0;
- }
- else this.inst[0] = Arrange1InstList[ this.frickVec( getx, gety ) ];
-
- graphicView.setflick( 0, this.inst[0]);
- }
- // 右上
- else if( getx > maxX/2 && gety < maxY/2 )
- {
- // 下フリックで消す
- if( this.frickVec( getx, gety ) == Vec.DOWN )
- {
- graphicView.setFxpoint( 1, 0 );
- graphicView.setFypoint( 1, 0 );
- dist[ 1 ] = 0;
- }
- else this.inst[1] = Arrange2InstList[ this.frickVec( getx, gety ) ];
-
- graphicView.setflick( 1, this.inst[1]);
- }
- // 左下
- else if( getx < maxX/2 && gety > maxY/2 )
- {
- this.inst[2] = melodyInstList[ this.frickVec( getx, gety ) ];
- graphicView.setflick( 2, this.inst[2]);
- }
- // 右下
- else if( getx > maxX/2 && gety > maxY/2 )
- {
- // 下フリックで消す
- if( this.frickVec( getx, gety ) == Vec.DOWN )
- {
- graphicView.setFxpoint(3, 0);
- graphicView.setFypoint(3, 0);
- dist[ 3 ] = 0;
- }
- else
- {
- DrumNo = this.frickVec( getx, gety );
- this.inst[3] = this.frickVec( getx, gety );
- }
-
- graphicView.setflick( 3, this.inst[3]);
- }
-
- // midi更新
- this.changeMidiFile();
-
- // フラグ
- this.record = 1;
- }
- break;
-
- case MotionEvent.ACTION_CANCEL:
- // デバッグ表示
- Log.d("", "ACTION_CANCEL");
- break;
- }
-
- return false;
- }
-}
diff --git a/Muse_prot/app/src/main/java/com/shun/prototype/Starting.java b/Muse_prot/app/src/main/java/com/shun/prototype/Starting.java
deleted file mode 100644
index a8d2d3e..0000000
--- a/Muse_prot/app/src/main/java/com/shun/prototype/Starting.java
+++ /dev/null
@@ -1,26 +0,0 @@
-package com.shun.prototype;
-
-import android.support.v7.app.AppCompatActivity;
-import android.app.Activity;
-import android.content.Intent;
-import android.os.Bundle;
-import android.view.View;
-import android.widget.Button;
-
-public class Starting extends AppCompatActivity {
-
- @Override
- protected void onCreate(Bundle savedInstanceState) {
- super.onCreate(savedInstanceState);
- setContentView(R.layout.activity_starting);
-
- Button sendbutton1=(Button)findViewById(R.id.send_button);//MainMenu遷移のボタン
- sendbutton1.setOnClickListener(new View.OnClickListener(){
- @Override
- public void onClick(View v){
- Intent intent1=new Intent(getApplication(),MainMenu.class);
- startActivity(intent1);
- }
- });
- }
-}
diff --git a/Muse_prot/app/src/main/res/drawable/start.bmp b/Muse_prot/app/src/main/res/drawable/start.bmp
deleted file mode 100644
index 83fd498..0000000
Binary files a/Muse_prot/app/src/main/res/drawable/start.bmp and /dev/null differ
diff --git a/Muse_prot/app/src/main/res/drawable/starting.bmp b/Muse_prot/app/src/main/res/drawable/starting.bmp
deleted file mode 100644
index 0143fae..0000000
Binary files a/Muse_prot/app/src/main/res/drawable/starting.bmp and /dev/null differ
diff --git a/Muse_prot/app/src/main/res/drawable/test1.bmp b/Muse_prot/app/src/main/res/drawable/test1.bmp
deleted file mode 100644
index 5266ce1..0000000
Binary files a/Muse_prot/app/src/main/res/drawable/test1.bmp and /dev/null differ
diff --git a/Muse_prot/app/src/main/res/drawable/test2.bmp b/Muse_prot/app/src/main/res/drawable/test2.bmp
deleted file mode 100644
index 2f2356f..0000000
Binary files a/Muse_prot/app/src/main/res/drawable/test2.bmp and /dev/null differ
diff --git a/Muse_prot/app/src/main/res/drawable/test3.bmp b/Muse_prot/app/src/main/res/drawable/test3.bmp
deleted file mode 100644
index bfd4fe4..0000000
Binary files a/Muse_prot/app/src/main/res/drawable/test3.bmp and /dev/null differ
diff --git a/Muse_prot/app/src/main/res/drawable/test4.bmp b/Muse_prot/app/src/main/res/drawable/test4.bmp
deleted file mode 100644
index 0cc5166..0000000
Binary files a/Muse_prot/app/src/main/res/drawable/test4.bmp and /dev/null differ
diff --git a/Muse_prot/app/src/main/res/drawable/test5.bmp b/Muse_prot/app/src/main/res/drawable/test5.bmp
deleted file mode 100644
index 37b6bc9..0000000
Binary files a/Muse_prot/app/src/main/res/drawable/test5.bmp and /dev/null differ
diff --git a/Muse_prot/app/src/main/res/drawable/testa.bmp b/Muse_prot/app/src/main/res/drawable/testa.bmp
deleted file mode 100644
index 080cdc5..0000000
Binary files a/Muse_prot/app/src/main/res/drawable/testa.bmp and /dev/null differ
diff --git a/Muse_prot/app/src/main/res/drawable/testaa.bmp b/Muse_prot/app/src/main/res/drawable/testaa.bmp
deleted file mode 100644
index 808473e..0000000
Binary files a/Muse_prot/app/src/main/res/drawable/testaa.bmp and /dev/null differ
diff --git a/Muse_prot/app/src/main/res/drawable/testb.bmp b/Muse_prot/app/src/main/res/drawable/testb.bmp
deleted file mode 100644
index 0c810da..0000000
Binary files a/Muse_prot/app/src/main/res/drawable/testb.bmp and /dev/null differ
diff --git a/Muse_prot/app/src/main/res/drawable/testbb.bmp b/Muse_prot/app/src/main/res/drawable/testbb.bmp
deleted file mode 100644
index 149eaa0..0000000
Binary files a/Muse_prot/app/src/main/res/drawable/testbb.bmp and /dev/null differ
diff --git a/Muse_prot/app/src/main/res/drawable/testcc.bmp b/Muse_prot/app/src/main/res/drawable/testcc.bmp
deleted file mode 100644
index 94bceb4..0000000
Binary files a/Muse_prot/app/src/main/res/drawable/testcc.bmp and /dev/null differ
diff --git a/Muse_prot/app/src/main/res/drawable/testdd.bmp b/Muse_prot/app/src/main/res/drawable/testdd.bmp
deleted file mode 100644
index 0940609..0000000
Binary files a/Muse_prot/app/src/main/res/drawable/testdd.bmp and /dev/null differ
diff --git a/Muse_prot/app/src/main/res/drawable/testee.bmp b/Muse_prot/app/src/main/res/drawable/testee.bmp
deleted file mode 100644
index 09e21e2..0000000
Binary files a/Muse_prot/app/src/main/res/drawable/testee.bmp and /dev/null differ
diff --git a/Muse_prot/app/src/main/res/drawable/testf.bmp b/Muse_prot/app/src/main/res/drawable/testf.bmp
deleted file mode 100644
index c3a0eec..0000000
Binary files a/Muse_prot/app/src/main/res/drawable/testf.bmp and /dev/null differ
diff --git a/Muse_prot/app/src/main/res/drawable/testo.bmp b/Muse_prot/app/src/main/res/drawable/testo.bmp
deleted file mode 100644
index f08187f..0000000
Binary files a/Muse_prot/app/src/main/res/drawable/testo.bmp and /dev/null differ
diff --git a/Muse_prot/app/src/main/res/layout/activity_mainmenu.xml b/Muse_prot/app/src/main/res/layout/activity_mainmenu.xml
deleted file mode 100644
index dc46623..0000000
--- a/Muse_prot/app/src/main/res/layout/activity_mainmenu.xml
+++ /dev/null
@@ -1,32 +0,0 @@
-
-
-
-
-
-
-
\ No newline at end of file
diff --git a/Muse_prot/app/src/main/res/layout/activity_option.xml b/Muse_prot/app/src/main/res/layout/activity_option.xml
deleted file mode 100644
index fa02f61..0000000
--- a/Muse_prot/app/src/main/res/layout/activity_option.xml
+++ /dev/null
@@ -1,196 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
\ No newline at end of file
diff --git a/Muse_prot/app/src/main/res/layout/activity_soundback.xml b/Muse_prot/app/src/main/res/layout/activity_soundback.xml
deleted file mode 100644
index 8a06728..0000000
--- a/Muse_prot/app/src/main/res/layout/activity_soundback.xml
+++ /dev/null
@@ -1,39 +0,0 @@
-
-
-
-
-
-
-
-
\ No newline at end of file
diff --git a/Muse_prot/app/src/main/res/layout/activity_soundfront.xml b/Muse_prot/app/src/main/res/layout/activity_soundfront.xml
deleted file mode 100644
index 1266915..0000000
--- a/Muse_prot/app/src/main/res/layout/activity_soundfront.xml
+++ /dev/null
@@ -1,39 +0,0 @@
-
-
-
-
-
-
-
-
\ No newline at end of file
diff --git a/Muse_prot/app/src/main/res/layout/activity_starting.xml b/Muse_prot/app/src/main/res/layout/activity_starting.xml
deleted file mode 100644
index 5375bac..0000000
--- a/Muse_prot/app/src/main/res/layout/activity_starting.xml
+++ /dev/null
@@ -1,44 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/Muse_prot/app/src/main/res/mipmap-hdpi/ic_launcher.png b/Muse_prot/app/src/main/res/mipmap-hdpi/ic_launcher.png
deleted file mode 100644
index cde69bc..0000000
Binary files a/Muse_prot/app/src/main/res/mipmap-hdpi/ic_launcher.png and /dev/null differ
diff --git a/Muse_prot/app/src/main/res/mipmap-mdpi/ic_launcher.png b/Muse_prot/app/src/main/res/mipmap-mdpi/ic_launcher.png
deleted file mode 100644
index c133a0c..0000000
Binary files a/Muse_prot/app/src/main/res/mipmap-mdpi/ic_launcher.png and /dev/null differ
diff --git a/Muse_prot/app/src/main/res/mipmap-xhdpi/ic_launcher.png b/Muse_prot/app/src/main/res/mipmap-xhdpi/ic_launcher.png
deleted file mode 100644
index bfa42f0..0000000
Binary files a/Muse_prot/app/src/main/res/mipmap-xhdpi/ic_launcher.png and /dev/null differ
diff --git a/Muse_prot/app/src/main/res/mipmap-xxhdpi/ic_launcher.png b/Muse_prot/app/src/main/res/mipmap-xxhdpi/ic_launcher.png
deleted file mode 100644
index 324e72c..0000000
Binary files a/Muse_prot/app/src/main/res/mipmap-xxhdpi/ic_launcher.png and /dev/null differ
diff --git a/Muse_prot/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png b/Muse_prot/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png
deleted file mode 100644
index aee44e1..0000000
Binary files a/Muse_prot/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png and /dev/null differ
diff --git a/Muse_prot/app/src/main/res/raw/flog.mp3 b/Muse_prot/app/src/main/res/raw/flog.mp3
deleted file mode 100644
index d2e0f33..0000000
Binary files a/Muse_prot/app/src/main/res/raw/flog.mp3 and /dev/null differ
diff --git a/Muse_prot/app/src/main/res/raw/flog1.mp3 b/Muse_prot/app/src/main/res/raw/flog1.mp3
deleted file mode 100644
index d2e0f33..0000000
Binary files a/Muse_prot/app/src/main/res/raw/flog1.mp3 and /dev/null differ
diff --git a/Muse_prot/app/src/main/res/raw/flog2.mp3 b/Muse_prot/app/src/main/res/raw/flog2.mp3
deleted file mode 100644
index d2e0f33..0000000
Binary files a/Muse_prot/app/src/main/res/raw/flog2.mp3 and /dev/null differ
diff --git a/Muse_prot/app/src/main/res/raw/flog3.mp3 b/Muse_prot/app/src/main/res/raw/flog3.mp3
deleted file mode 100644
index d2e0f33..0000000
Binary files a/Muse_prot/app/src/main/res/raw/flog3.mp3 and /dev/null differ
diff --git a/Muse_prot/app/src/main/res/raw/flog4.mp3 b/Muse_prot/app/src/main/res/raw/flog4.mp3
deleted file mode 100644
index d2e0f33..0000000
Binary files a/Muse_prot/app/src/main/res/raw/flog4.mp3 and /dev/null differ
diff --git a/Muse_prot/app/src/main/res/raw/hand.mp3 b/Muse_prot/app/src/main/res/raw/hand.mp3
deleted file mode 100644
index 4039ec2..0000000
Binary files a/Muse_prot/app/src/main/res/raw/hand.mp3 and /dev/null differ
diff --git a/Muse_prot/app/src/main/res/raw/hiyoko.mp3 b/Muse_prot/app/src/main/res/raw/hiyoko.mp3
deleted file mode 100644
index 22f1e1b..0000000
Binary files a/Muse_prot/app/src/main/res/raw/hiyoko.mp3 and /dev/null differ
diff --git a/Muse_prot/app/src/main/res/raw/semi.mp3 b/Muse_prot/app/src/main/res/raw/semi.mp3
deleted file mode 100644
index d0c3c61..0000000
Binary files a/Muse_prot/app/src/main/res/raw/semi.mp3 and /dev/null differ
diff --git a/Muse_prot/app/src/main/res/values-w820dp/dimens.xml b/Muse_prot/app/src/main/res/values-w820dp/dimens.xml
deleted file mode 100644
index 63fc816..0000000
--- a/Muse_prot/app/src/main/res/values-w820dp/dimens.xml
+++ /dev/null
@@ -1,6 +0,0 @@
-
-
- 64dp
-
diff --git a/Muse_prot/app/src/main/res/values/colors.xml b/Muse_prot/app/src/main/res/values/colors.xml
deleted file mode 100644
index 3ab3e9c..0000000
--- a/Muse_prot/app/src/main/res/values/colors.xml
+++ /dev/null
@@ -1,6 +0,0 @@
-
-
- #3F51B5
- #303F9F
- #FF4081
-
diff --git a/Muse_prot/app/src/main/res/values/dimens.xml b/Muse_prot/app/src/main/res/values/dimens.xml
deleted file mode 100644
index 47c8224..0000000
--- a/Muse_prot/app/src/main/res/values/dimens.xml
+++ /dev/null
@@ -1,5 +0,0 @@
-
-
- 16dp
- 16dp
-
diff --git a/Muse_prot/app/src/main/res/values/strings.xml b/Muse_prot/app/src/main/res/values/strings.xml
deleted file mode 100644
index 399b410..0000000
--- a/Muse_prot/app/src/main/res/values/strings.xml
+++ /dev/null
@@ -1,3 +0,0 @@
-
- Prototype
-
diff --git a/Muse_prot/app/src/main/res/values/styles.xml b/Muse_prot/app/src/main/res/values/styles.xml
deleted file mode 100644
index 5885930..0000000
--- a/Muse_prot/app/src/main/res/values/styles.xml
+++ /dev/null
@@ -1,11 +0,0 @@
-
-
-
-
-
-
diff --git a/Muse_prot/app/src/test/java/com/shun/prototype/ExampleUnitTest.java b/Muse_prot/app/src/test/java/com/shun/prototype/ExampleUnitTest.java
deleted file mode 100644
index 6712326..0000000
--- a/Muse_prot/app/src/test/java/com/shun/prototype/ExampleUnitTest.java
+++ /dev/null
@@ -1,15 +0,0 @@
-package com.shun.prototype;
-
-import org.junit.Test;
-
-import static org.junit.Assert.*;
-
-/**
- * To work on unit tests, switch the Test Artifact in the Build Variants view.
- */
-public class ExampleUnitTest {
- @Test
- public void addition_isCorrect() throws Exception {
- assertEquals(4, 2 + 2);
- }
-}
\ No newline at end of file
diff --git a/Muse_prot/build.gradle b/Muse_prot/build.gradle
deleted file mode 100644
index aff4f41..0000000
--- a/Muse_prot/build.gradle
+++ /dev/null
@@ -1,23 +0,0 @@
-// Top-level build file where you can add configuration options common to all sub-projects/modules.
-
-buildscript {
- repositories {
- jcenter()
- }
- dependencies {
- classpath 'com.android.tools.build:gradle:2.1.2'
-
- // NOTE: Do not place your application dependencies here; they belong
- // in the individual module build.gradle files
- }
-}
-
-allprojects {
- repositories {
- jcenter()
- }
-}
-
-task clean(type: Delete) {
- delete rootProject.buildDir
-}
diff --git a/Muse_prot/gradle.properties b/Muse_prot/gradle.properties
deleted file mode 100644
index 1d3591c..0000000
--- a/Muse_prot/gradle.properties
+++ /dev/null
@@ -1,18 +0,0 @@
-# Project-wide Gradle settings.
-
-# IDE (e.g. Android Studio) users:
-# Gradle settings configured through the IDE *will override*
-# any settings specified in this file.
-
-# For more details on how to configure your build environment visit
-# http://www.gradle.org/docs/current/userguide/build_environment.html
-
-# Specifies the JVM arguments used for the daemon process.
-# The setting is particularly useful for tweaking memory settings.
-# Default value: -Xmx10248m -XX:MaxPermSize=256m
-# org.gradle.jvmargs=-Xmx2048m -XX:MaxPermSize=512m -XX:+HeapDumpOnOutOfMemoryError -Dfile.encoding=UTF-8
-
-# When configured, Gradle will run in incubating parallel mode.
-# This option should only be used with decoupled projects. More details, visit
-# http://www.gradle.org/docs/current/userguide/multi_project_builds.html#sec:decoupled_projects
-# org.gradle.parallel=true
\ No newline at end of file
diff --git a/Muse_prot/gradle/wrapper/gradle-wrapper.jar b/Muse_prot/gradle/wrapper/gradle-wrapper.jar
deleted file mode 100644
index 13372ae..0000000
Binary files a/Muse_prot/gradle/wrapper/gradle-wrapper.jar and /dev/null differ
diff --git a/Muse_prot/gradle/wrapper/gradle-wrapper.properties b/Muse_prot/gradle/wrapper/gradle-wrapper.properties
deleted file mode 100644
index 122a0dc..0000000
--- a/Muse_prot/gradle/wrapper/gradle-wrapper.properties
+++ /dev/null
@@ -1,6 +0,0 @@
-#Mon Dec 28 10:00:20 PST 2015
-distributionBase=GRADLE_USER_HOME
-distributionPath=wrapper/dists
-zipStoreBase=GRADLE_USER_HOME
-zipStorePath=wrapper/dists
-distributionUrl=https\://services.gradle.org/distributions/gradle-2.10-all.zip
diff --git a/Muse_prot/gradlew b/Muse_prot/gradlew
deleted file mode 100644
index 9d82f78..0000000
--- a/Muse_prot/gradlew
+++ /dev/null
@@ -1,160 +0,0 @@
-#!/usr/bin/env bash
-
-##############################################################################
-##
-## Gradle start up script for UN*X
-##
-##############################################################################
-
-# Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.
-DEFAULT_JVM_OPTS=""
-
-APP_NAME="Gradle"
-APP_BASE_NAME=`basename "$0"`
-
-# Use the maximum available, or set MAX_FD != -1 to use that value.
-MAX_FD="maximum"
-
-warn ( ) {
- echo "$*"
-}
-
-die ( ) {
- echo
- echo "$*"
- echo
- exit 1
-}
-
-# OS specific support (must be 'true' or 'false').
-cygwin=false
-msys=false
-darwin=false
-case "`uname`" in
- CYGWIN* )
- cygwin=true
- ;;
- Darwin* )
- darwin=true
- ;;
- MINGW* )
- msys=true
- ;;
-esac
-
-# Attempt to set APP_HOME
-# Resolve links: $0 may be a link
-PRG="$0"
-# Need this for relative symlinks.
-while [ -h "$PRG" ] ; do
- ls=`ls -ld "$PRG"`
- link=`expr "$ls" : '.*-> \(.*\)$'`
- if expr "$link" : '/.*' > /dev/null; then
- PRG="$link"
- else
- PRG=`dirname "$PRG"`"/$link"
- fi
-done
-SAVED="`pwd`"
-cd "`dirname \"$PRG\"`/" >/dev/null
-APP_HOME="`pwd -P`"
-cd "$SAVED" >/dev/null
-
-CLASSPATH=$APP_HOME/gradle/wrapper/gradle-wrapper.jar
-
-# Determine the Java command to use to start the JVM.
-if [ -n "$JAVA_HOME" ] ; then
- if [ -x "$JAVA_HOME/jre/sh/java" ] ; then
- # IBM's JDK on AIX uses strange locations for the executables
- JAVACMD="$JAVA_HOME/jre/sh/java"
- else
- JAVACMD="$JAVA_HOME/bin/java"
- fi
- if [ ! -x "$JAVACMD" ] ; then
- die "ERROR: JAVA_HOME is set to an invalid directory: $JAVA_HOME
-
-Please set the JAVA_HOME variable in your environment to match the
-location of your Java installation."
- fi
-else
- JAVACMD="java"
- which java >/dev/null 2>&1 || die "ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.
-
-Please set the JAVA_HOME variable in your environment to match the
-location of your Java installation."
-fi
-
-# Increase the maximum file descriptors if we can.
-if [ "$cygwin" = "false" -a "$darwin" = "false" ] ; then
- MAX_FD_LIMIT=`ulimit -H -n`
- if [ $? -eq 0 ] ; then
- if [ "$MAX_FD" = "maximum" -o "$MAX_FD" = "max" ] ; then
- MAX_FD="$MAX_FD_LIMIT"
- fi
- ulimit -n $MAX_FD
- if [ $? -ne 0 ] ; then
- warn "Could not set maximum file descriptor limit: $MAX_FD"
- fi
- else
- warn "Could not query maximum file descriptor limit: $MAX_FD_LIMIT"
- fi
-fi
-
-# For Darwin, add options to specify how the application appears in the dock
-if $darwin; then
- GRADLE_OPTS="$GRADLE_OPTS \"-Xdock:name=$APP_NAME\" \"-Xdock:icon=$APP_HOME/media/gradle.icns\""
-fi
-
-# For Cygwin, switch paths to Windows format before running java
-if $cygwin ; then
- APP_HOME=`cygpath --path --mixed "$APP_HOME"`
- CLASSPATH=`cygpath --path --mixed "$CLASSPATH"`
- JAVACMD=`cygpath --unix "$JAVACMD"`
-
- # We build the pattern for arguments to be converted via cygpath
- ROOTDIRSRAW=`find -L / -maxdepth 1 -mindepth 1 -type d 2>/dev/null`
- SEP=""
- for dir in $ROOTDIRSRAW ; do
- ROOTDIRS="$ROOTDIRS$SEP$dir"
- SEP="|"
- done
- OURCYGPATTERN="(^($ROOTDIRS))"
- # Add a user-defined pattern to the cygpath arguments
- if [ "$GRADLE_CYGPATTERN" != "" ] ; then
- OURCYGPATTERN="$OURCYGPATTERN|($GRADLE_CYGPATTERN)"
- fi
- # Now convert the arguments - kludge to limit ourselves to /bin/sh
- i=0
- for arg in "$@" ; do
- CHECK=`echo "$arg"|egrep -c "$OURCYGPATTERN" -`
- CHECK2=`echo "$arg"|egrep -c "^-"` ### Determine if an option
-
- if [ $CHECK -ne 0 ] && [ $CHECK2 -eq 0 ] ; then ### Added a condition
- eval `echo args$i`=`cygpath --path --ignore --mixed "$arg"`
- else
- eval `echo args$i`="\"$arg\""
- fi
- i=$((i+1))
- done
- case $i in
- (0) set -- ;;
- (1) set -- "$args0" ;;
- (2) set -- "$args0" "$args1" ;;
- (3) set -- "$args0" "$args1" "$args2" ;;
- (4) set -- "$args0" "$args1" "$args2" "$args3" ;;
- (5) set -- "$args0" "$args1" "$args2" "$args3" "$args4" ;;
- (6) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" ;;
- (7) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" ;;
- (8) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" "$args7" ;;
- (9) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" "$args7" "$args8" ;;
- esac
-fi
-
-# Split up the JVM_OPTS And GRADLE_OPTS values into an array, following the shell quoting and substitution rules
-function splitJvmOpts() {
- JVM_OPTS=("$@")
-}
-eval splitJvmOpts $DEFAULT_JVM_OPTS $JAVA_OPTS $GRADLE_OPTS
-JVM_OPTS[${#JVM_OPTS[*]}]="-Dorg.gradle.appname=$APP_BASE_NAME"
-
-exec "$JAVACMD" "${JVM_OPTS[@]}" -classpath "$CLASSPATH" org.gradle.wrapper.GradleWrapperMain "$@"
diff --git a/Muse_prot/gradlew.bat b/Muse_prot/gradlew.bat
deleted file mode 100644
index 8a0b282..0000000
--- a/Muse_prot/gradlew.bat
+++ /dev/null
@@ -1,90 +0,0 @@
-@if "%DEBUG%" == "" @echo off
-@rem ##########################################################################
-@rem
-@rem Gradle startup script for Windows
-@rem
-@rem ##########################################################################
-
-@rem Set local scope for the variables with windows NT shell
-if "%OS%"=="Windows_NT" setlocal
-
-@rem Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.
-set DEFAULT_JVM_OPTS=
-
-set DIRNAME=%~dp0
-if "%DIRNAME%" == "" set DIRNAME=.
-set APP_BASE_NAME=%~n0
-set APP_HOME=%DIRNAME%
-
-@rem Find java.exe
-if defined JAVA_HOME goto findJavaFromJavaHome
-
-set JAVA_EXE=java.exe
-%JAVA_EXE% -version >NUL 2>&1
-if "%ERRORLEVEL%" == "0" goto init
-
-echo.
-echo ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.
-echo.
-echo Please set the JAVA_HOME variable in your environment to match the
-echo location of your Java installation.
-
-goto fail
-
-:findJavaFromJavaHome
-set JAVA_HOME=%JAVA_HOME:"=%
-set JAVA_EXE=%JAVA_HOME%/bin/java.exe
-
-if exist "%JAVA_EXE%" goto init
-
-echo.
-echo ERROR: JAVA_HOME is set to an invalid directory: %JAVA_HOME%
-echo.
-echo Please set the JAVA_HOME variable in your environment to match the
-echo location of your Java installation.
-
-goto fail
-
-:init
-@rem Get command-line arguments, handling Windowz variants
-
-if not "%OS%" == "Windows_NT" goto win9xME_args
-if "%@eval[2+2]" == "4" goto 4NT_args
-
-:win9xME_args
-@rem Slurp the command line arguments.
-set CMD_LINE_ARGS=
-set _SKIP=2
-
-:win9xME_args_slurp
-if "x%~1" == "x" goto execute
-
-set CMD_LINE_ARGS=%*
-goto execute
-
-:4NT_args
-@rem Get arguments from the 4NT Shell from JP Software
-set CMD_LINE_ARGS=%$
-
-:execute
-@rem Setup the command line
-
-set CLASSPATH=%APP_HOME%\gradle\wrapper\gradle-wrapper.jar
-
-@rem Execute Gradle
-"%JAVA_EXE%" %DEFAULT_JVM_OPTS% %JAVA_OPTS% %GRADLE_OPTS% "-Dorg.gradle.appname=%APP_BASE_NAME%" -classpath "%CLASSPATH%" org.gradle.wrapper.GradleWrapperMain %CMD_LINE_ARGS%
-
-:end
-@rem End local scope for the variables with windows NT shell
-if "%ERRORLEVEL%"=="0" goto mainEnd
-
-:fail
-rem Set variable GRADLE_EXIT_CONSOLE if you need the _script_ return code instead of
-rem the _cmd.exe /c_ return code!
-if not "" == "%GRADLE_EXIT_CONSOLE%" exit 1
-exit /b 1
-
-:mainEnd
-if "%OS%"=="Windows_NT" endlocal
-
-:omega
diff --git a/Muse_prot/settings.gradle b/Muse_prot/settings.gradle
deleted file mode 100644
index e7b4def..0000000
--- a/Muse_prot/settings.gradle
+++ /dev/null
@@ -1 +0,0 @@
-include ':app'
diff --git a/README.md b/README.md
index 4dd87a2..314cb29 100644
--- a/README.md
+++ b/README.md
@@ -4,7 +4,8 @@ Android v4.3
nexus 7
#状態
-本番プロジェクト更新中
+リリース済み
+やる気が出るまで停滞
#遷移
2016/08/11 大まかなプロトタイプ完成
@@ -14,20 +15,12 @@ nexus 7
2016/09/06 Backの画像配置実装 by Shun
2016/09/16 フリック操作での音色変更実装 by Ryo
2016/09/22 曲追加とOption整備 by Ryo
+2016/10/05 本番用Release by Shun
#予定
-メモリ食い具合調整
-使用性の向上
-曲サンプル増加
-↓
-完成
+特になし
-#やりたいこと
-・縦持ち→横持ちの遷移(水の画面を横持ちする場合)
-・UIの向上
-・動作の安定化
-・(外部からの譜面データ入力)
-
-#Help!
-コード整理
+#やりたいこと
+・さらなる改造
+・他端末対応