jp.crestmuse.cmx.misc
クラス Util

java.lang.Object
  上位を拡張 jp.crestmuse.cmx.misc.Util

public class Util
extends java.lang.Object


フィールドの概要
static int NULL_INTEGER
           
static java.lang.String SEPARATOR
           
static java.lang.String TAB
           
 
コンストラクタの概要
Util()
           
 
メソッドの概要
static double beatTimeToBPM(double beatTime)
           
static double bpmToBeatTime(double bpm)
           
static double castDouble(double val)
           
static java.lang.String combineFilePath(java.io.File path, java.lang.String filename)
           
static javax.swing.ImageIcon createImageIcon(java.lang.String path)
          Returns an ImageIcon, or null if the path was invalid.
static void err(java.lang.String strMessage)
           
static void errorAndExit(java.lang.String strMessage)
           
static java.lang.String fifthsToString(int fifths)
           
static java.lang.String getExtension(java.io.File f)
          Get the extension of a file.
static java.lang.String getExtension(java.lang.String s)
           
static java.lang.String getNameExceptExtension(java.lang.String str)
           
static java.lang.String getNoteName(int noteNumber)
           
static int getNoteNumber(java.lang.String noteName)
           
static int getNoteScale(char note)
           
static boolean isSmallerThan(double val, double ref)
           
static void main(java.lang.String[] args)
           
static double millisecondToBeatLength(double ms, double bpm)
           
static java.lang.String setExtension(java.lang.String fname, java.lang.String ext)
           
 
クラス java.lang.Object から継承されたメソッド
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

フィールドの詳細

SEPARATOR

public static final java.lang.String SEPARATOR
関連項目:
定数フィールド値

TAB

public static final java.lang.String TAB
関連項目:
定数フィールド値

NULL_INTEGER

public static final int NULL_INTEGER
関連項目:
定数フィールド値
コンストラクタの詳細

Util

public Util()
メソッドの詳細

millisecondToBeatLength

public static double millisecondToBeatLength(double ms,
                                             double bpm)

main

public static void main(java.lang.String[] args)

combineFilePath

public static java.lang.String combineFilePath(java.io.File path,
                                               java.lang.String filename)

beatTimeToBPM

public static double beatTimeToBPM(double beatTime)

bpmToBeatTime

public static double bpmToBeatTime(double bpm)

castDouble

public static double castDouble(double val)

createImageIcon

public static javax.swing.ImageIcon createImageIcon(java.lang.String path)
Returns an ImageIcon, or null if the path was invalid.


err

public static void err(java.lang.String strMessage)

errorAndExit

public static void errorAndExit(java.lang.String strMessage)

getNoteName

public static java.lang.String getNoteName(int noteNumber)

getExtension

public static java.lang.String getExtension(java.io.File f)
Get the extension of a file.


getExtension

public static java.lang.String getExtension(java.lang.String s)

getNameExceptExtension

public static java.lang.String getNameExceptExtension(java.lang.String str)

isSmallerThan

public static boolean isSmallerThan(double val,
                                    double ref)
戻り値:
gif

setExtension

public static java.lang.String setExtension(java.lang.String fname,
                                            java.lang.String ext)
戻り値:
rulemap

fifthsToString

public static final java.lang.String fifthsToString(int fifths)
戻り値:
str

getNoteNumber

public static int getNoteNumber(java.lang.String noteName)

getNoteScale

public static int getNoteScale(char note)