Arduino Buzzer - how to make melodies/songs ?

active buzzer
have 3 pins SIG \ VCC \ GND
I can read. i am not a professional but i do understand it.
but i don't know how to translate it to code ?
Ok note for example
264 Hz - C, do
297 Hz - D, re
330 Hz - E, mi
352 Hz - F, fa
396 Hz - G, sol
440 Hz - A, la
495 Hz - B, si
528 Hz - C, do
but how do i read it from a complex sheet of song or melody?
any tool ?