Determine the tempo and time signature of the piece for which you will create a click track. With sequencers built into DAW equipment, it is possible to create tempo maps with changes to time and tempo throughout the song.
Choose a MIDI drum note to serve as the sound of the click track. This is often claves or a rim shot. In your sequencer or sequencer software, enter an occurrence of this note in each bar, usually in quarter notes. Typically, the first beat of the bar is stressed or accented. A second instrument, like high-hat, may be added on subdivisions of the main beat if it is critical to the feel of the song.
Connect your drum machine to the sequencer by way of a MIDI cable from the "MIDI Out" port of the sequencer or computer to the "MIDI In" port of the drum machine. Choose a MIDI channel (usually channel 10) for the click track. Enable your drum machine to be controlled by the computer or sequencer. See your equipment documentation if necessary. Route the output of your drum machine to your monitor system.
Record your performance. If you are using a DAW with MIDI incorporated, there is no need to record the output of the drum machine, as it will use the MIDI data to perform the click track each pass. When using a separate recorder, routing the click track to a spare track may be advisable, particularly if the rest of the instruments are played live to the recorder.