Custom IR signals?

I have a quick question. Would it be possible to create an app or add via firmware the ability to create a custom ir signal? For example if you need the ir to send out a strobe of 10 flashes .05 seconds apart at 11hz? I am working on a project that would be greatly improved if I can add the ability to control various functions via. IR.