To play a different note, the guitarist changes the length of the string by pressing on the string in a different spot, which in turn changes the fundamental frequency.
Чтобы сыграть другую ноту, гитарист прижимает струну в другом месте, изменяя длину её звучащей части и тем самым основную частоту.