Using Python Pycharm Project Set Correctly Use Following Methods Play Music 1 First Top Fi Q37131287

!!!!!! USING PYTHON AND PYCHARM !!!!!!

Once your project is set up correctly, you will use thefollowing methods to play music:

1. First, at the top of your file, create a music box that youcan use globally:

my_music = musicbox.MusicBox()

You can put a number from 0 to 127 in the parentheses to changethe instrument that is played.

2. At the bottom of the program, after main() is called,write

my_music.close()

or else you will get runtime errors.

3. To play a note: my_music.play_note(*MidiNumber* ,*Milliseconds* )

(a) Plays a note with the given MIDI number for the given numberof milliseconds.

(b) The rest of your program will pause until the notes

OR
OR

Leave a Comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.