Beep frequency and duration for shutdown and starting please

I have a script, $PIANO, that lets you play various tones using :beep. What you "play" using the onscreen keyboard will be output as a command that can be used in a script.