fourthline.mmlTools
クラス ComposeRank

java.lang.Object
  上位を拡張 fourthline.mmlTools.ComposeRank

public class ComposeRank
extends java.lang.Object

作曲ランク

作成者:
たんらる

フィールドの概要
static ComposeRank RANK_0
          作曲不可ランク
static ComposeRank RANK_1
           
static ComposeRank RANK_2
           
static ComposeRank RANK_3
           
static ComposeRank RANK_4
           
static ComposeRank RANK_5
           
static ComposeRank RANK_6
           
static ComposeRank RANK_7
           
static ComposeRank RANK_8
           
static ComposeRank RANK_9
           
static ComposeRank RANK_A
           
static ComposeRank RANK_B
           
static ComposeRank RANK_C
           
static ComposeRank RANK_D
           
static ComposeRank RANK_E
           
static ComposeRank RANK_F
           
static ComposeRank RANK_t
          練習ランク
 
コンストラクタの概要
ComposeRank(int melody, int chord1, int chord2)
           
ComposeRank(int melody, int chord1, int chord2, java.lang.String rank)
           
 
メソッドの概要
 boolean compare(java.lang.String melody, java.lang.String chord1, java.lang.String chord2)
           
 int getChord1()
           
 int getChord2()
           
 int getMelody()
           
 java.lang.String getRank()
           
static java.lang.String mmlRank(java.lang.String melody, java.lang.String chord1, java.lang.String chord2)
          MMLのランクを計算します。
 java.lang.String toString()
           
 
クラス java.lang.Object から継承されたメソッド
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

フィールドの詳細

RANK_t

public static final ComposeRank RANK_t
練習ランク


RANK_F

public static final ComposeRank RANK_F

RANK_E

public static final ComposeRank RANK_E

RANK_D

public static final ComposeRank RANK_D

RANK_C

public static final ComposeRank RANK_C

RANK_B

public static final ComposeRank RANK_B

RANK_A

public static final ComposeRank RANK_A

RANK_9

public static final ComposeRank RANK_9

RANK_8

public static final ComposeRank RANK_8

RANK_7

public static final ComposeRank RANK_7

RANK_6

public static final ComposeRank RANK_6

RANK_5

public static final ComposeRank RANK_5

RANK_4

public static final ComposeRank RANK_4

RANK_3

public static final ComposeRank RANK_3

RANK_2

public static final ComposeRank RANK_2

RANK_1

public static final ComposeRank RANK_1

RANK_0

public static final ComposeRank RANK_0
作曲不可ランク

コンストラクタの詳細

ComposeRank

public ComposeRank(int melody,
                   int chord1,
                   int chord2)

ComposeRank

public ComposeRank(int melody,
                   int chord1,
                   int chord2,
                   java.lang.String rank)
メソッドの詳細

mmlRank

public static java.lang.String mmlRank(java.lang.String melody,
                                       java.lang.String chord1,
                                       java.lang.String chord2)
MMLのランクを計算します。

パラメータ:
melody - MMLのメロディ
chord1 - MMLの和音1
chord2 - MMLの和音2
戻り値:
ランクの文字

compare

public boolean compare(java.lang.String melody,
                       java.lang.String chord1,
                       java.lang.String chord2)

getMelody

public int getMelody()

getChord1

public int getChord1()

getChord2

public int getChord2()

getRank

public java.lang.String getRank()

toString

public java.lang.String toString()
オーバーライド:
クラス java.lang.Object 内の toString