How do you hold a note on guitar?

You hold your finger on the note you wish to play wile the other hand strums that string