コード例 #1
0
        /// <summary>
        /// Check sample-range
        /// </summary>
        /// <param name="c">must have Division and PPQ set.</param>
        /// <param name="b">We currently check the end position of the loop.</param>
        /// <returns>True if delta-time is contained within sample ranges min and max</returns>
        public bool IsContained(SampleClockVST c, Loop b)
        {
            double samplePos = c.SolveSamples(Pulse).Samples32;

            return(samplePos >= b.Begin && samplePos < b.End);
        }
コード例 #2
0
        // #region Check Range

        /// <summary>
        /// Check sample-range
        /// </summary>
        /// <param name="c">must have Division and PPQ set.</param>
        /// <param name="b">We currently check the end position of the loop.</param>
        /// <param name="min">first sample in search block</param>
        /// <param name="max">last sample in search block</param>
        /// <returns>True if delta-time is contained within sample ranges min and max</returns>
        public bool IsContained(SampleClockVST c, Loop b, double min, double max)
        {
            double samplePos = c.SolveSamples(Pulse).Samples32;

            return(samplePos >= min && samplePos < max && samplePos < b.End);
        }