want noisy clicks

hello evryone,

i want my arduino to make noise…or better short noisy clicks (under 500 ms).

at the time i just connected some piezo to a digital pin. the loudness is okay and the freqspectrum of the piezo goes from 1khz to 8 khz, which is enough for my purpose

i looked at the “play melodies” sketch and thought that maybe i could set the freqs down to get noisy glitches but this doesnt work.

does sombody have any tip ?

maybe some wrong handling that caused glitches ? that would be great.

greetz laser