Fundamentals

What is the purpose of a tie between two notes of the same pitch?