void UpdatePattern() { int Algo = 0; int Scale = 0; int Beats = 0; int Ticks = 0; if (TestPatternButton.Checked) { Algo = (int)TestFrameLoader.ALGONAMES.ALGO_TESTS; } if (TritranceButton.Checked) { Algo = (int)TestFrameLoader.ALGONAMES.ALGO_TRITRANCE; } if (stomperButton.Checked) { Algo = (int)TestFrameLoader.ALGONAMES.ALGO_STOMPER; } if (markovButton.Checked) { Algo = (int)TestFrameLoader.ALGONAMES.ALGO_MARKOV; } ; if (wobbleButton.Checked) { Algo = (int)TestFrameLoader.ALGONAMES.ALGO_WOBBLE; } if (chiparp1button.Checked) { Algo = (int)TestFrameLoader.ALGONAMES.ALGO_CHIPARP1; } if (chipArp2Button.Checked) { Algo = (int)TestFrameLoader.ALGONAMES.ALGO_CHIPARP2; } if (snhButton.Checked) { Algo = (int)TestFrameLoader.ALGONAMES.ALGO_SNH; } if (saikoButton.Checked) { Algo = (int)TestFrameLoader.ALGONAMES.ALGO_SAIKO_LEAD; } if (SaikoClassicButton.Checked) { Algo = (int)TestFrameLoader.ALGONAMES.ALGO_SAIKO_CLASSIC; } if (scaleWalkerRadio.Checked) { Algo = (int)TestFrameLoader.ALGONAMES.ALGO_SCALEWALKER; } if (tooEasyRadio.Checked) { Algo = (int)TestFrameLoader.ALGONAMES.ALGO_TOOEASY; } if (randomRadio.Checked) { Algo = (int)TestFrameLoader.ALGONAMES.ALGO_RANDOM; } if (LongNotesCheck.Checked) { Algo += 32; } if (slidesCheck.Checked) { Algo += 16; } if (minorScaleRadio.Checked) { Scale = (int)TestFrameLoader.SCALENAMES.SCALE_MINOR; } if (dorianScaleRadio.Checked) { Scale = (int)TestFrameLoader.SCALENAMES.SCALE_DORIAN; } if (majorScaleRadio.Checked) { Scale = (int)TestFrameLoader.SCALENAMES.SCALE_MAJOR; } if (pentaTonicScaleRadio.Checked) { Scale = (int)TestFrameLoader.SCALENAMES.SCALE_PENTA; } if (BluesRadio.Checked) { Scale = (int)TestFrameLoader.SCALENAMES.SCALE_BLUES; } if (twelveToneRadio.Checked) { Scale = (int)TestFrameLoader.SCALENAMES.SCALE_12TONE; } if (minorTriadRadio.Checked) { Scale = (int)TestFrameLoader.SCALENAMES.SCALE_MINORTRIAD; } if (MajorTriadRadio.Checked) { Scale = (int)TestFrameLoader.SCALENAMES.SCALE_MAJORTRIAD; } if (trans0.Checked) { Scale += 0; } if (trans5.Checked) { Scale += 1 << 4; } if (trans7.Checked) { Scale += 2 << 4; } if (trans12.Checked) { Scale += 3 << 4; } if (tpb2.Checked) { Ticks = 2; } if (tpb3.Checked) { Ticks = 3; } if (tpb4.Checked) { Ticks = 4; } if (tpb5.Checked) { Ticks = 5; } if (beats4.Checked) { Beats = 4; } if (beats8.Checked) { Beats = 8; } if (beats16.Checked) { Beats = 16; } if (beats32.Checked) { Beats = 32; } TicksPerBeat = Ticks; Pattern.Clear(); TestFrameLoader.Tuesday_UpdatePattern(Algo, Scale, Ticks, Beats, 128, 255 - (int)XSlider.Value, 255 - (int)YSlider.Value, (int)ISlider.Value); int PTicks = TestFrameLoader.Tuesday_GetPatternLength(); for (int i = 0; i < PTicks; i++) { Tick T = new Tick(); T.note = TestFrameLoader.Tuesday_GetTickNote(i); T.vel = TestFrameLoader.Tuesday_GetTickVel(i); T.accent = TestFrameLoader.Tuesday_GetTickAccent(i) > 0; T.gate = TestFrameLoader.Tuesday_GetTickGate(i) > 0; T.slide = TestFrameLoader.Tuesday_GetTickSlide(i); T.length = TestFrameLoader.Tuesday_GetTickLength(i); Pattern.Add(T); } pictureBox1.Invalidate(); }