Ejemplo n.º 1
0
        //-----------------------------------------------
        //editor
#if UNITY_EDITOR
        public void GetMidiDataInEditor(float tilelength)
        {
            PTAudio.Midi.Data.MidiBaseData data;
            AudioSystem.LoadMidiData(path, out data);
            midibpm     = (int)data.bpm;
            musiclength = (float)data.musiclength;

            calcTracklength = (midibpm / 60.0f) * musiclength * tilelength;
        }