A method for controlling an electrical converter system that comprises an electrical converter, the method comprising: determining a nominal pulse pattern ( t p, i ∗, Δu p, i ∗) and a reference trajectory ( x ∗) of at least one electrical quantity of the electrical converter system over a horizon of future sampling instants, wherein the nominal pulse pattern ( t p, i ∗, Δu p, i ∗) and the reference trajectory ( x ∗) are determined from a table of optimized pulse patterns, the nominal pulse pattern ( t p, i ∗, Δu p, i ∗) comprises switching transitions ( Δu p, i ∗) between output voltages of an electrical converter of the electrical converter system and the reference trajectory ( x ∗) indicates a desired future development of an electrical quantity of the converter system; determining a small-signal pulse pattern ( ũ abc ( t,λ p,i)) by minimizing a cost function, which small-signal pulse pattern is provided as a vector of optimal impulse strengths, which cost function includes a small-signal error, which is based on a difference of a reference trajectory ( x ∗) and a predicted trajectory ( x), wherein impulse strengths ( λ p,i) of the small-signal pulse pattern ( ũ abc ( t,λ p,i)) encode a voltage-time value at each switching transition of the nominal pulse pattern ( t p, i ∗, Δu p, i ∗), and wherein the predicted trajectory ( x) is determined over the horizon from measurements ( i, v c, i g) in the converter system and from a model of the converter system, into which a sum of the nominal pulse pattern ( t p, i ∗, Δu p, i ∗) and small-signal pulse pattern ( ũ abc ( t,λ p,i)) are input; determining a modified pulse pattern ( t opt,p,i, Δ u p,i) by moving the switching transitions of the nominal pulse pattern ( t p, i ∗, Δu p, i ∗), wherein a switching transition is moved by a time interval, such that the time interval times a direction of the switching transition equals the voltage-time value that the impulse strength ( λ p,i) encodes at the nominal switching transition; applying at least the next switching transition of the modified pulse pattern ( t opt,p,i, Δ u p,i) to the electrical converter system. determining a nominal pulse pattern ( t p, i ∗, Δu p, i ∗) and a reference trajectory ( x ∗) of at least one electrical quantity of the electrical converter system over a horizon of future sampling instants, wherein the nominal pulse pattern ( t p, i ∗, Δu p, i ∗) and the reference trajectory ( x ∗) are determined from a table of optimized pulse patterns, the nominal pulse pattern ( t p, i ∗, Δu p, i ∗) comprises switching transitions ( Δu p, i ∗) between output voltages of an electrical converter of the electrical converter system and the reference trajectory ( x ∗) indicates a desired future development of an electrical quantity of the converter system; determining a small-signal pulse pattern ( ũ abc ( t,λ p,i)) by minimizing a cost function, which small-signal pulse pattern is provided as a vector of optimal impulse strengths, which cost function includes a small-signal error, which is based on a difference of a reference trajectory ( x ∗) and a predicted trajectory ( x), wherein impulse strengths ( λ p,i) of the small-signal pulse pattern ( ũ abc ( t,λ p,i)) encode a voltage-time value at each switching transition of the nominal pulse pattern ( t p, i ∗, Δu p, i ∗), and wherein the predicted trajectory ( x) is determined over the horizon from measurements ( i, v c, i g) in the converter system and from a model of the converter system, into which a sum of the nominal pulse pattern ( t p, i ∗, Δu p, i ∗) and small-signal pulse pattern ( ũ abc ( t,λ p,i)) are input; determining a modified pulse pattern ( t opt,p,i, Δ u p,i) by moving the switching transitions of the nominal pulse pattern ( t p, i ∗, Δu p, i ∗), wherein a switching transition is moved by a time interval, such that the time interval times a direction of the switching transition equals the voltage-time value that the impulse strength ( λ p,i) encodes at the nominal switching transition; applying at least the next switching transition of the modified pulse pattern ( t opt,p,i, Δ u p,i) to the electrical converter system.