Current location - Music Encyclopedia - NetEase Cloud Music - Python Music Visualization: Interesting matplotlib Nightingale Rose Edition
Python Music Visualization: Interesting matplotlib Nightingale Rose Edition
Rendering:

Operation demonstration:

Technical points:

1 matplotlib's nightingale rose map is made in polar coordinates and animated.

The new pygame plays mp3, but the native operating system cannot play mp3. I use pydub to do some format conversion.

3. Use librosa to get relevant data and samples of music.

Refer to the code, modify, add, delete, typeset and annotate the source code. Thanks to the original author. If there is any infringement, please contact to delete it.

= = = = The following steps explain the code = = =

Step 1: module import

Step Windows Initialization Settings

Step 3: Parameter setting

Step 4: Core Code:

Step 5: Filter classes

Step 6: Function Definition

Step 7: Start the main function.

Organize yourself and share it. I hope you like it.