Led Strobe Lights (Multi Patterns) Help

Anyone able to assist in the above please.

I'm trying to maintain the blinking LEDs, but also respond to a PWM input by activating an infrared LED for an IR remote.

I think i'm getting the "multitasking" bit round my neck!