Computer Science, asked by amolsinghal3298, 1 year ago

To play a musical note with for loop in QB64

Answers

Answered by luckyjat9929191142
4

There are a few ways of making sounds and music in QBasic / QB64.

The first command is BEEP. BEEP just beeps and is used as an alert.

Next is the SOUND command. SOUND plays a frequency for a specified duration.

- Frequency 37 to 32767

- Duration 0 to 65535

Finally, there is PLAY. Here are some settings for PLAY.

O - Octave (0 - 6): O6

< or > - Moves Up or Down One Octave

P - Pauses (1 - 64): P1 Pause Whole Note

T - Tempo (32 - 255) in Quarter Notes Per Minute: T120

A, B, C, D, E, F, G - Plays The Note in the Current Octave

Playing Length(1 - 64): C2 Plays an C Half Note

+ or # Makes The Preceding Note Sharp

- (Minus) Makes the Preceding Note Flat

Answered by bhatibabita788
0

Explanation:

to command plays a musical notes in QB64

Similar questions