Example #1
0
        public TargetData()
        {
            ID   = TargetDataInternal.GetNextId();
            data = new TargetDataInternal();

            beatLength = Constants.SixteenthNoteDuration;
            velocity   = TargetVelocity.Standard;
            handType   = TargetHandType.Left;
            behavior   = TargetBehavior.Standard;
        }
Example #2
0
        public TargetData(TargetData other, QNT_Timestamp?timeOverride = null)
        {
            ID   = TargetDataInternal.GetNextId();
            data = other.data;

            if (!timeOverride.HasValue)
            {
                time = other.time;
            }
            else
            {
                time = timeOverride.Value;
            }
        }
Example #3
0
        public TargetData(Cue cue)
        {
            ID   = TargetDataInternal.GetNextId();
            data = new TargetDataInternal();

            Vector2 pos = NotePosCalc.PitchToPos(cue);

            x          = pos.x;
            y          = pos.y;
            time       = new QNT_Timestamp((UInt64)cue.tick);
            beatLength = new QNT_Duration((UInt64)cue.tickLength);
            velocity   = cue.velocity;
            handType   = cue.handType;
            behavior   = cue.behavior;
        }