public void SetupParticlePulse(int beatsPerPhrase, int startStep) { //The pulse phrase consists of ONE step (bit) that the particle effect is supposed to play on for the phrase //So just use the phrase mask from that step as the phrase for the class ushort phraseNumber = Phrase.GetPhraseMaskAtStep(startStep, beatsPerPhrase); this.phrase = new Phrase(phraseNumber, beatsPerPhrase); this.phrase.SyncToStep(startStep); ParticleSystem.MainModule mainSettings = this.particles.main; mainSettings.startColor = new ParticleSystem.MinMaxGradient(this.particleColor); Metronome.OnStep += this.PlayParticles; this.PlayParticles(); }