Beispiel #1
0
 public override void update()
 {
     //キー入力
     foreach (KeyCode tKey in KeyMonitor.getInputKey())
     {
         tryCreateNote(new KeyTime(MusicScoreData.musicTimeToQuarterBeat(parent.getCurrentTime())));
         //SoundPlayer.playSe("tambourine");
     }
 }
Beispiel #2
0
    //miss判定
    public void missHit(float aSecond)
    {
        KeyTime tTime   = new KeyTime(MusicScoreData.musicTimeToQuarterBeat(aSecond));
        int     tLength = mBars.Count;
        int     i;
        Bar     tBar;

        for (i = 1; i < tLength; i++)
        {
            tBar = mBars[i];
            if (tTime.mQuarterBeat < tBar.mTime.mTopQuarterBeatInBar)
            {
                break;
            }
        }
        tBar = mBars[i - 1];
        tBar.missHit(tTime);
    }
Beispiel #3
0
 //音声の再生位置に合わせてpozitionを変更
 public void adjustPozitionToMusicTime(float aMusicTime)
 {
     show(MusicScoreData.musicTimeToQuarterBeat(aMusicTime));
 }