LoginSignup
0
0

More than 1 year has passed since last update.

ADX2のビート同期が変わったので

Last updated at Posted at 2021-06-28

ビート同期の機能の使い方が
CRIWARE Unity Plugin Ver.2.36.3

CriAtomExBeatSync.OnCallback
を使うように変わったので、
変更方法の備忘録

旧.cs
CriAtomExBeatSync.SetCallback (this.BeatOn);
新.cs
CriAtomExBeatSync.OnCallback += this.BeatOn;
void BeatOn (ref CriAtomExBeatSync.Info info)
{
   Debug.Log ("<b>[MyDSound]</b> Beat! BPM(" + info.bpm + ") Beat(" + info.beatCount + ") Bar(" + info.barCount + ")");
}

こんな感じで曲のビート情報がログに出力できます。

ビート同期のマニュアル

コールバックも変わっていたようなので

旧.cs
CriAtomExSequencer.SetEventCallback (SequencerEventCallback
新.cs
CriAtomExSequencer.OnCallback += SequencerEventCallback;
void SequencerEventCallback(ref CriAtomExSequencer.CriAtomExSequenceEventInfo info)
{
    Debug.Log ($"<b>[MyDSound]</b> {info.tag}");
}

シーケンスコールバックのマニュアル

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0