Created
September 3, 2022 04:29
-
-
Save victormurcia/91c2e33a5c0768a5f8648c3cd4c229e7 to your computer and use it in GitHub Desktop.
pixel art song
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| pixel_scale = makeScale(3, 'a', 'HARMONIC_MINOR') | |
| pixel_song, pixel_df,pixel_df_harmony = img2music(pixel_art, | |
| pixel_scale, | |
| T = 0.2, | |
| randomPixels = True) | |
| wavfile.write('pixel_song2.wav' , rate = 22050, data = pixel_song.astype(np.float32)) | |
| ipd.Audio(pixel_song, rate = sr) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment