A method for controlling a laser source, for cutting, engraving, marking, and/or labeling a workpiece, wherein at least one laser source is used within a housing of a laser device to process a workpiece and the processing of the workpiece is carried out line by line by moving a focusing unit wherein a control unit, based on the set parameters and/or a loaded job, generates a frequency signal to control the laser source with a constant pulse repetition rate, or a control signal for laser pulses with a constant pulse repetition rate, wherein at the beginning of processing, the control unit calculates a number of laser pulses for a pixel, from which a modulation signal is generated that enables the laser source to emit laser pulses at the constant pulse repetition rate, and this signal is applied to the laser source, whereby the calculated number of laser pulses is kept constant across further pixels.