}         // end Beats

        public int xTimingsToLORtimings(xTimings timings, Sequence4 sequence)
        {
            // Ignore the timings passed in, and use the ones already cached for Bars and Beats
            // (Other transforms will use the one passed in)

            seqFunct.Sequence = sequence;
            int errs = 0;

            if (xOnsets != null)
            {
                if (xOnsets.effects.Count > 0)
                {
                    TimingGrid barGrid = seqFunct.GetGrid("Note Onsets", true);
                    seqFunct.ImportTimingGrid(barGrid, xOnsets);
                }
            }

            return(errs);
        }
Esempio n. 2
0
        }         // end Beats

        public int xTimingsToLORtimings(xTimings timings, Sequence4 sequence)
        {
            // Ignore the timings passed in, and use the ones already cached for Bars and Beats
            // (Other transforms will use the one passed in)

            seqFunct.Sequence = sequence;
            int errs = 0;

            if (xBars != null)
            {
                if (xBars.effects.Count > 0)
                {
                    TimingGrid barGrid = seqFunct.GetGrid("Bars", true);
                    seqFunct.ImportTimingGrid(barGrid, xBars);
                }
            }
            //if (chkBeatsFull.Checked)
            if (true)
            {
                if (xBeatsFull != null)
                {
                    if (xBeatsFull.effects.Count > 0)
                    {
                        TimingGrid barGrid = seqFunct.GetGrid("Beats-Full", true);
                        seqFunct.ImportTimingGrid(barGrid, xBeatsFull);
                    }
                }
            }
            //if (chkBeatsHalf.Checked)
            if (true)
            {
                if (xBeatsHalf != null)
                {
                    if (xBeatsHalf.effects.Count > 0)
                    {
                        TimingGrid barGrid = seqFunct.GetGrid("Beats-Half", true);
                        seqFunct.ImportTimingGrid(barGrid, xBeatsHalf);
                    }
                }
            }
            //if (chkBeatsThird.Checked)
            if (true)
            {
                if (xBeatsThird != null)
                {
                    if (xBeatsThird.effects.Count > 0)
                    {
                        TimingGrid barGrid = seqFunct.GetGrid("Beats-Third", true);
                        seqFunct.ImportTimingGrid(barGrid, xBeatsThird);
                    }
                }
            }
            //if (chkBeatsQuarter.Checked)
            if (true)
            {
                if (xBeatsQuarter != null)
                {
                    if (xBeatsQuarter.effects.Count > 0)
                    {
                        TimingGrid barGrid = seqFunct.GetGrid("Beats-Quarter", true);
                        seqFunct.ImportTimingGrid(barGrid, xBeatsQuarter);
                    }
                }
            }
            if (xFrames != null)
            {
                if (xFrames.effects.Count > 0)
                {
                    TimingGrid barFrame = seqFunct.GetGrid(xFrames.timingName, true);
                    seqFunct.ImportTimingGrid(barFrame, xFrames);
                }
            }

            return(errs);
        }