Giter Site home page Giter Site logo

satisfying-visualizations's Introduction

satisfying-visualizations

Satisfying designs and animations that are fun to watch :).

Requirements

To run the visualizations, you'll need the following Python packages:

  • numpy==1.25.2
  • pygame==2.5.1

Installation

To get started, follow these steps:

  1. Clone this repository to your local machine.
  2. Create a virtual environment (optional but recommended).
  3. Install the required packages using pip.

Acknowledgements

Contributor Name

Varun

Have fun watching the visualizations! :)

satisfying-visualizations's People

Contributors

bizbrainiac avatar slimshady1414 avatar vaarun-c avatar

Watchers

 avatar

satisfying-visualizations's Issues

Random starting positions for box.py

Currently, the box in box.py always starts at the bottom-left corner. It would be more interesting if the box started from random positions within the white box area :).

Add sounds for box.py

As in the Project jdm video, add sound effects for:

  • Collisions with the white box
  • Each time a new box is printed on the screen
  • Feel free to add any more sound effects that you think will be fun :)

Musical notes instead of random frequencies for polyrythms.py

Currently,

generate_note(frequency, duration): This function generates a sound waveform for a given frequency and duration.
lerp_sound(start_freq, end_freq, t): This function performs a linear interpolation between two frequencies.

But they don't directly generate musical notes. If you have seen the Hyperplexed Video the program plays piano notes for each collision. In the video sound files are downloaded for each arc and played accordingly.

But we have a variable number of arcs (See line 23 in polyrythms.py). So, we need to dynamically generate musical notes for each collision instead of relying on pre-existing sound files. Maybe you can use the formulas given here https://en.wikipedia.org/wiki/Piano_key_frequencies to find the notes and use a Python library to play it, or use MIDI note numbers or the piano numbers.

Fix collision issues in box.py

The box.py script does not handle collision properly.
image

Expected Behavior

The box remains completely inside the white square even during collisions

Actual Behavior

The box overshoots the white square

Add volume control for box.py

Currently, the only way to control audio for the application is to control the system's audio.

Windows and Linux have application-based volume control. But on mac its not possible without 3rd party tools...

So can you try to implement this feature in the python script? Have like a slider to control the audio output

Add Volume control for polyrythms.py

Currently, the only way to control audio for the application is to control the system's audio.

Windows and Linux have application-based volume control. But on mac its not possible without 3rd party tools...

So can you try to implement this feature in the python script? Have like a slider to control the audio output

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.