pwn3rer
17-02-2010, 12:36 PM
Im still stuck on Console apps, and I started figuring out the console.beep function and have assigned beeps to sound etc etc, and finally composed my first song from looking at sheet music, copying the notes, then writing the herz values, and finally composing it into VB. You can download these here, the first is quiet, the second is loud but with a lot of background fan noises and some breakups(not sure what they are).
Quiet, no background noise version: http://www.box.net/shared/6o3t8fp2pv
Louder, background noise version: http://www.box.net/shared/f2l583khps
I have also written the first line of the tetris theme into it, but need to finish it. Its such a complex process though, it takes a long time.
But, onto my real point, is how can I write the console app to read a key press and then output a specific beep. I am assuming I should assign each beep value to a keypress, but I don't know how to do this and I don't know where to start as I will never properly learn about the keypress function. Also, dont link me to the M$ keypress and keydown files because I can't understand them - these are for forms, not console apps.
If this isn't possible, then just share your tunes. Im reluctant to give away the code as it does take a long time and you cant really encrypt it, but if anyone really wants happy birthday for the console then I will send it to you via PM.
Also, check out youtube, just search Console.Beep and you get lots of funny ones, this one is one of my favourite:
http://www.youtube.com/watch?v=I_EE37F7Jy8
I_EE37F7Jy8
Basically they are just all linked and each plays a part of the song, so you have a bassline, a tune, etc etc, and so in essence, it is an orchestra!
Let me know what you think
Quiet, no background noise version: http://www.box.net/shared/6o3t8fp2pv
Louder, background noise version: http://www.box.net/shared/f2l583khps
I have also written the first line of the tetris theme into it, but need to finish it. Its such a complex process though, it takes a long time.
But, onto my real point, is how can I write the console app to read a key press and then output a specific beep. I am assuming I should assign each beep value to a keypress, but I don't know how to do this and I don't know where to start as I will never properly learn about the keypress function. Also, dont link me to the M$ keypress and keydown files because I can't understand them - these are for forms, not console apps.
If this isn't possible, then just share your tunes. Im reluctant to give away the code as it does take a long time and you cant really encrypt it, but if anyone really wants happy birthday for the console then I will send it to you via PM.
Also, check out youtube, just search Console.Beep and you get lots of funny ones, this one is one of my favourite:
http://www.youtube.com/watch?v=I_EE37F7Jy8
I_EE37F7Jy8
Basically they are just all linked and each plays a part of the song, so you have a bassline, a tune, etc etc, and so in essence, it is an orchestra!
Let me know what you think