Comments

Log in with itch.io to leave a comment.

(+1)

Cool

(+1)

Also I got kicked out by this error:


pygame-ce 2.2.1 (SDL 2.26.4, Python 3.11.2)

/home/yolo/pygame-forks/2023-jam/Easter-Audio-Visualizer/main.py:10: Warning: PyGame seems to be running through X

/usr/lib/python3/dist-packages/numpy/core/fromnumeric.py:3464: RuntimeWarning: Mean of empty slice.  return _methods._mean(a, axis=axis, dtype=dtype,
/usr/lib/python3/dist-packages/numpy/core/_methods.py:192: RuntimeWarning: invalid value encountered in scalar div

ide  ret = ret.dtype.type(ret / rcount)
Traceback (most recent call last):  File "/home/yolo/pygame-forks/2023-jam/Easter-Audio-Visualizer/main.py", line 79, in <module>    main()  File "/home/yolo/pygame-forks/2023-jam/Easter-Audio-Visualizer/main.py", line 61, in main    visual.update(remapped_amp, dt)  File "/home/yolo/pygame-forks/2023-jam/Easter-Audio-Visualizer/visualizer.py", line 18, in update    self.scaled_surf = pg.transform.scale_by(self.surf, scalar * 0.3)                       ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
ValueError: Cannot scale to negative size

I'll check this out. Someone else had this error message pop up.

(+2)

at first I didn't know what it was at all, but then I did. I actually liked it.

how do you process the audios, the egg was accurately being synced with the audio.

Thanks! I grabbed the average of a windowed sample from a sound buffer array and used that value to increase the size of the image. You can check out the source code under "More information".