by Ajit Kumar Gupta (1 Submission)
Category: Sound/MP3
Compatability: Visual Basic 5.0
Difficulty: Beginner
Date Added: Wed 3rd February 2021
Rating: (5 Votes)
This applicatiom makes use of API known as BeepAPI.It alows user to make differnt sound with the different keystrokes from('a' to 'z') and spacebar.
Assumes
The user must make sure that the Piano will function only during the keypress provided there is focus to this application(i.e. if its form is on top of any other application).
Code Returns
It makes sound depending upon the keystrokes and settings of the time and frequency through the scrollbars.
API DeclarationsPrivate Declare Function BeepAPI Lib "kernel32" Alias "Beep" (ByVal dwFrequency As Long, ByVal dwMilliseconds As Long) As Long