Same words, different melody
Qué bien contains no negative word. Still, any Spanish speaker can tell at once whether you're pleased or your train has just been cancelled. The difference lies in the prosodia: pitch, length and tempo. English works much the same way with Oh, great.
Stretching is especially striking in Spanish. Stressed syllables are normally barely longer than unstressed ones, unlike English, where stress already lengthens the syllable. A clearly drawn-out vowel therefore stands out immediately and is often enough as a signal on its own.
Sincere and mocking
¡Qué bien!
[¡Qué BIEN! ↗↘ high, short, quick]
How lovely!
Genuine delight.
Qué bieeen.
[Qué bieeen. → low, flat, stretched]
Oh, great.
Mockery, for instance when the train is cancelled.
The same phrase, both ways
Practise the contour in pairs: identical words, once sincere, once sarcastic.
Claro
¡Claro!
[¡CLAro! ↘ short and bright]
Sure!
Agreeing to a request.
Claaaro.
[Claaaro. → flat and slow]
Yeah, right.
I don't believe a word.
Genial
¡Genial!
[¡GeNIAL! ↗↘ wide leap]
Brilliant!
Real enthusiasm.
Geniaaal.
[Geniaaal. → no leap, stretched]
Oh, brilliant.
For instance in reply to bad news.
Little words that join in the mockery
Often a small word comes along, also spoken flat. Pues before the praise, the doubled ya, ya or sí, sí and a tagged-on ¿eh? make the sarcasm clearer.
With an amplifier
Pues qué bieeen.
[Pues qué bieeen. → all on one level]
Well, isn't that great.
pues announces the mockery.
Yaaa, ya.
[Yaaa, ya. → stretched, then short and low]
Yeah, yeah, sure.
Disbelief; you're not buying the explanation.
Muchas graaacias, ¿eh?
[Muchas graaacias → flat, ¿eh? ↗]
Thanks a lot, really.
A reproach, not thanks.
The other kind, overdone
Sometimes sarcasm goes the opposite way: the voice jumps too high, the melody sings, the enthusiasm is a shade too big. That too signals that the words and the situation don't match. What both kinds share is the stretching.
Too much enthusiasm
¡Qué ilusiooón! Otra reunión el viernes.
[¡Qué ilusiooón! ↑↓ exaggeratedly high, stretched]
How exciting! Another meeting on Friday.
Fake anticipation.