An imperfect cadence is a type of musical ending that creates a sense of expectation or tension rather than a feeling of resolution. Its function is to set up the expectation for further development of a song. Synonyms for imperfect cadence include "half cadence", "interrupted cadence", and "deceptive cadence". A half cadence is a type of imperfect cadence that ends on the dominant chord, which creates a feeling of temporary rest. An interrupted cadence, on the other hand, ends on a chord that is not the expected one, creating a sense of surprise. Finally, a deceptive cadence gives the music a twist by ending on a chord that is unexpected, often leading to a new key.