The most common way to shatter a glass with a high note is to use a musical instrument, such as a violin or an opera singer. The musician plays a note that has the same frequency as the glass, and the sound waves cause the glass to vibrate and shatter.
It is also possible to shatter a glass with a high note by using a recording. This can be done by playing a recording of a note that has the same frequency as the glass, or by using a sound editing program to create a sound wave that has the same frequency as the glass.
Shattering a glass with a high note is a dangerous stunt, and it should only be done by experienced professionals.