Example: a program that plays the musical note "la"

Our first program is going to be a single C# command, that plays the musical note "la" (432 Hz) with a duration of half a second (500 miliseconds):

Console.Beep(432, 500);

In a short time we will find out how we can execute this command and hear the sound of the note, but for now let's just look at what the commands in programming represent. Let's get to know a couple of more examples.

results matching ""

    No results matching ""