Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[programs/modplay] Add .mod visualization #159

Merged
merged 1 commit into from
Jul 21, 2019

Conversation

perlun
Copy link
Contributor

@perlun perlun commented Jul 21, 2019

Here is what it looks like in action:

chaos_modplay_visualizations

This was a bit tricky, but once I figured out that just rendering the PCM value (shortening it to the appropriate number of bits) would look reasonable, it wasn't so hard. The tricky part this time was finding a good audio visualization algorithm.

Also added a listing of the modfiles available, and made it possible to pick a file by using the arrow keys. This is interestingly enough a bit laggy, I did some attempts to reduce the lag but... didn't really
succeed. I did suceed in getting the audio playback to stutter, though, and I really don't want that so... this will have to be good enough for now.

This was a bit tricky, but once I figured out that just rendering the
PCM value (shortening it to the appropriate number of bits) would look
reasonable, it wasn't so hard. The tricky part this time was finding a
good audio visualization algorithm.

Also added a listing of the modfiles available, and made it possible to
pick a file by using the arrow keys. This is interestingly enough a bit
laggy, I did some attempts to reduce the lag but... didn't really
succeed. I _did_ suceed in getting the audio playback to stutter,
though, and I really don't want that so... this will have to be good
enough for now.
@perlun perlun merged commit 34c15d4 into master Jul 21, 2019
@perlun perlun deleted the feature/modplay-visualizations branch July 21, 2019 20:20
@johannesl
Copy link
Contributor

Hi Per!
This is awesome news and that animated GIF is a neat way of showing how things turn out in practice. Well done! 👍🏻😎

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants