Vaarun-C / satisfying-visualizations

Satisfying designs, animations that are fun to watch :).
MIT License
0 stars 14 forks source link

Musical notes instead of random frequencies for polyrythms.py #1

Open Vaarun-C opened 11 months ago

Vaarun-C commented 11 months ago

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.

Anjana-Rose commented 11 months ago

can i be assigned this issue

Vaarun-C commented 11 months ago

Sure thing all the best :)

karun1763 commented 11 months ago

can i be assigned to this

Vaarun-C commented 11 months ago

can i be assigned this issue

are you still working on this? @Anjana-Rose

Anjana-Rose commented 11 months ago

can i be assigned this issue

are you still working on this? @Anjana-Rose

yes

Vaarun-C commented 11 months ago

can i be assigned this issue

are you still working on this? @Anjana-Rose

yes

Can you show me some progress? @Anjana-Rose

Anjana-Rose commented 11 months ago

i've applied the formula from wikipedia to get the note and now i'm trying to figure out how to play it

Anjana-Rose commented 11 months ago

please reassign this issue

SlimShady1414 commented 11 months ago

can i be assigned to this?

Vaarun-C commented 11 months ago

please reassign this issue

ok sure :)

Vaarun-C commented 11 months ago

can i be assigned to this?

@SlimShady1414 its all yours. All the best :)

ssether04 commented 11 months ago

can i get assigned if this is still open?

Shaatvika commented 11 months ago

can i get this issue assigned to me please??

Vaarun-C commented 11 months ago

@Anjana-Rose sure go ahead but after 30 minutes I might need to give the issue to others

Vaarun-C commented 11 months ago

@ssether04 go ahead

Vaarun-C commented 11 months ago

@Shaatvika go ahead final sprint :)