Trill on strings
Trill speed depends on interval, string, hand position and player control.
Alternate a stopped note and its neighbor
A string trill rapidly alternates between a principal pitch and an adjacent note, usually with a finger moving while another pitch stays anchored. Its speed depends on interval, string, hand position and the player's control. It can add motion to a held harmony or sharpen a cadence, but a long trill may occupy more attention than the melody needs. The upper note should be specified when the context is ambiguous.
Time the trill at the cadence
Take the final note of a short phrase and add a trill for only its last beat. Compare that with a trill across the whole bar. The short version may preserve the arrival before adding energy. At a fast tempo, consider whether the listener hears distinct alternation or just a shimmer. Put the trill where its harmonic neighbor makes sense; a decorative pitch can still clash with the chord beneath it.
Related entries
Further reading
These source links provide technical background; the exercises above are Eidolon's own editorial guidance.