Pulse sequencer code