jp.crestmuse.cmx.gui.deveditor.model
クラス DeviatedPerformance

java.lang.Object
  上位を拡張 jp.crestmuse.cmx.gui.deveditor.model.DeviatedPerformance

public class DeviatedPerformance
extends java.lang.Object

このクラスは一つのSequenceと複数のDeviatedNoteを保持し、DeviationEditorで扱う曲の一曲を表します.

作成者:
ntotani

入れ子のクラスの概要
 class DeviatedPerformance.DeviatedNote
          このクラスは一つのノートを表します. noteフィールドが元のMusicXMLのNote一つを表し、 attack, release, dynamics, endDynamicsは それぞれDeviationInstanceの形式で演奏表情を表します.
 
フィールドの概要
static int TICKS_PER_BEAT
           
 
コンストラクタの概要
DeviatedPerformance(DeviationInstanceWrapper deviation)
           
 
メソッドの概要
 void addListener(DeviatedNoteUpdateListener listener)
           
 DeviationInstanceWrapper calcDeviation()
          DeviatedNoteへの変更を加えたDeviationInstanceWrapperを返す.
 java.util.ArrayList<DeviatedPerformance.DeviatedNote> getDeviatedNotes()
           
 MusicXMLWrapper getMusicXML()
           
 javax.sound.midi.Sequence getSequence()
           
 java.util.Map<java.lang.Integer,java.lang.Integer> getTicks2Tempo()
           
 void setTempo(int timeStamp, int tempo)
           
 CSVWrapper toSccBaseCSV(int division)
           
 CSVWrapper toTempoBaseCSV(int division)
           
 
クラス java.lang.Object から継承されたメソッド
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

フィールドの詳細

TICKS_PER_BEAT

public static int TICKS_PER_BEAT
コンストラクタの詳細

DeviatedPerformance

public DeviatedPerformance(DeviationInstanceWrapper deviation)
                    throws java.io.IOException,
                           javax.sound.midi.InvalidMidiDataException
例外:
java.io.IOException
javax.sound.midi.InvalidMidiDataException
メソッドの詳細

setTempo

public void setTempo(int timeStamp,
                     int tempo)

getSequence

public javax.sound.midi.Sequence getSequence()

getMusicXML

public MusicXMLWrapper getMusicXML()

getDeviatedNotes

public java.util.ArrayList<DeviatedPerformance.DeviatedNote> getDeviatedNotes()

getTicks2Tempo

public java.util.Map<java.lang.Integer,java.lang.Integer> getTicks2Tempo()

addListener

public void addListener(DeviatedNoteUpdateListener listener)

calcDeviation

public DeviationInstanceWrapper calcDeviation()
                                       throws InvalidFileTypeException
DeviatedNoteへの変更を加えたDeviationInstanceWrapperを返す.

戻り値:
例外:
InvalidFileTypeException

toTempoBaseCSV

public CSVWrapper toTempoBaseCSV(int division)

toSccBaseCSV

public CSVWrapper toSccBaseCSV(int division)