- Module Module1
-
- Sub Main()
- Dim a As ConsoleKeyInfo
- Do
- Console.Clear()
- Console.ForegroundColor = ConsoleColor.Yellow
- Console.WriteLine(" ô♫ PIANO ♫ô")
- a = Console.ReadKey
- If a.KeyChar = "w" Then
- Console.Beep(262, 200)
- ElseIf a.KeyChar = "s" Then
- Console.Beep(277, 200)
- ElseIf a.KeyChar = "x" Then
- Console.Beep(294, 200)
- ElseIf a.KeyChar = "d" Then
- Console.Beep(311, 200)
- ElseIf a.KeyChar = "c" Then
- Console.Beep(330, 200)
- ElseIf a.KeyChar = "v" Then
- Console.Beep(349, 200)
- ElseIf a.KeyChar = "g" Then
- Console.Beep(370, 200)
- ElseIf a.KeyChar = "b" Then
- Console.Beep(392, 200)
- ElseIf a.KeyChar = "h" Then
- Console.Beep(415, 200)
- ElseIf a.KeyChar = "n" Then
- Console.Beep(440, 200)
- ElseIf a.KeyChar = "j" Then
- Console.Beep(466, 200)
- ElseIf a.KeyChar = "," Then
- Console.Beep(494, 200)
- ElseIf a.KeyChar = "e" Then
- Console.Beep(524, 200)
- ElseIf a.KeyChar = "'" Then
- Console.Beep(554, 200)
- ElseIf a.KeyChar = "r" Then
- Console.Beep(588, 200)
- ElseIf a.KeyChar = "(" Then
- Console.Beep(622, 200)
- ElseIf a.KeyChar = "t" Then
- Console.Beep(660, 200)
- ElseIf a.KeyChar = "y" Then
- Console.Beep(698, 200)
- ElseIf a.KeyChar = "-" Then
- Console.Beep(740, 200)
- ElseIf a.KeyChar = "u" Then
- Console.Beep(784, 200)
- ElseIf a.KeyChar = "_" Then
- Console.Beep(830, 200)
- ElseIf a.KeyChar = "i" Then
- Console.Beep(880, 200)
- ElseIf a.KeyChar = ")" Then
- Console.Beep(932, 200)
- ElseIf a.KeyChar = "o" Then
- Console.Beep(988, 200)
- End If
- Loop While a.KeyChar <> "p"
- End Sub
-
- End Module
Module Module1
Sub Main()
Dim a As ConsoleKeyInfo
Do
Console.Clear()
Console.ForegroundColor = ConsoleColor.Yellow
Console.WriteLine(" ô♫ PIANO ♫ô")
a = Console.ReadKey
If a.KeyChar = "w" Then
Console.Beep(262, 200)
ElseIf a.KeyChar = "s" Then
Console.Beep(277, 200)
ElseIf a.KeyChar = "x" Then
Console.Beep(294, 200)
ElseIf a.KeyChar = "d" Then
Console.Beep(311, 200)
ElseIf a.KeyChar = "c" Then
Console.Beep(330, 200)
ElseIf a.KeyChar = "v" Then
Console.Beep(349, 200)
ElseIf a.KeyChar = "g" Then
Console.Beep(370, 200)
ElseIf a.KeyChar = "b" Then
Console.Beep(392, 200)
ElseIf a.KeyChar = "h" Then
Console.Beep(415, 200)
ElseIf a.KeyChar = "n" Then
Console.Beep(440, 200)
ElseIf a.KeyChar = "j" Then
Console.Beep(466, 200)
ElseIf a.KeyChar = "," Then
Console.Beep(494, 200)
ElseIf a.KeyChar = "e" Then
Console.Beep(524, 200)
ElseIf a.KeyChar = "'" Then
Console.Beep(554, 200)
ElseIf a.KeyChar = "r" Then
Console.Beep(588, 200)
ElseIf a.KeyChar = "(" Then
Console.Beep(622, 200)
ElseIf a.KeyChar = "t" Then
Console.Beep(660, 200)
ElseIf a.KeyChar = "y" Then
Console.Beep(698, 200)
ElseIf a.KeyChar = "-" Then
Console.Beep(740, 200)
ElseIf a.KeyChar = "u" Then
Console.Beep(784, 200)
ElseIf a.KeyChar = "_" Then
Console.Beep(830, 200)
ElseIf a.KeyChar = "i" Then
Console.Beep(880, 200)
ElseIf a.KeyChar = ")" Then
Console.Beep(932, 200)
ElseIf a.KeyChar = "o" Then
Console.Beep(988, 200)
End If
Loop While a.KeyChar <> "p"
End Sub
End Module