public int xTimingsToLORChannels(xTimings timings, Sequence4 sequence, int firstBeat, bool ramps) { int errs = 0; Track vampTrack = seqFunct.GetTrack("Vamp-O-Rama"); ChannelGroup beatGroup = seqFunct.GetGroup("Bars and Beats", vampTrack); if (xOnsets != null) { if (xOnsets.effects.Count > 0) { if (ramps) { Channel barCh = seqFunct.GetChannel("Bars", beatGroup.Members); seqFunct.ImportBeatChannel(barCh, xOnsets, 1, firstBeat, ramps); } } } return(errs); }
public int xTimingsToLORChannels(xTimings timings, Sequence4 sequence, int firstBeat, bool ramps) { int errs = 0; Track vampTrack = seqFunct.GetTrack("Vamp-O-Rama", true); ChannelGroup beatGroup = seqFunct.GetGroup("Bars and Beats", vampTrack); if (xBars != null) { if (xBars.effects.Count > 0) { //if (ramps) //{ Channel barCh = seqFunct.GetChannel("Bars", beatGroup.Members); //seqFunct.ImportBeatChannel(barCh, xBars, 1, firstBeat, ramps); //seqFunct.ImportBeatChannel(barCh, xBars, 1, firstBeat, true); seqFunct.ImportBeatChannel(barCh, xBars, 1, firstBeat, ramps); //////} //} } } //if (chkBeatsFull.Checked) if (true) { if (xBeatsFull != null) { if (xBeatsFull.effects.Count > 0) { Channel beatCh = seqFunct.GetChannel("Beats-Full", beatGroup.Members); seqFunct.ImportBeatChannel(beatCh, xBeatsFull, BeatsPerBar, firstBeat, ramps); } } } //if (chkBeatsHalf.Checked) if (true) { if (xBeatsHalf != null) { if (xBeatsHalf.effects.Count > 0) { Channel beatCh = seqFunct.GetChannel("Beats-Half", beatGroup.Members); seqFunct.ImportBeatChannel(beatCh, xBeatsHalf, BeatsPerBar * 2, firstBeat, ramps); } } } //if (chkBeatsThird.Checked) if (true) { if (xBeatsThird != null) { if (xBeatsThird.effects.Count > 0) { Channel beatCh = seqFunct.GetChannel("Beats-Third", beatGroup.Members); seqFunct.ImportBeatChannel(beatCh, xBeatsThird, BeatsPerBar * 3, firstBeat, ramps); } } } //if (chkBeatsQuarter.Checked) if (true) { if (xBeatsQuarter != null) { if (xBeatsQuarter.effects.Count > 0) { Channel beatCh = seqFunct.GetChannel("Beats-Quarter", beatGroup.Members); seqFunct.ImportBeatChannel(beatCh, xBeatsQuarter, BeatsPerBar * 4, firstBeat, ramps); } } } return(errs); }