CodingTrain / CodingTrain/Suggestion-Box
Whisteling a gravitational wave
- Dominant language
- No language data
- Stars
- 570
- Forks
- 85
- PR merge metrics
- No merged PRs in 30d
Description
Hi!
I wanted to share an idea of a simple project about the gravitational waves that are detected by LIGO ( https://en.wikipedia.org/wiki/LIGO ). Given the detectors are back online after an upgrade, we should expect more events reported in the news very soon.
Fun fact about the gravitational waves -- their frequencies are around the sound frequencies that we can hear and produce. If you have never heard before, here is how gravitational waves of merging two massive (>20 Solar masses) black holes sound like:
https://www.youtube.com/watch?v=TWqhUANNFXw
Here is the audio of merging neutron stars (sound is audible in the last few seconds):
https://www.youtube.com/watch?v=vTeAFAGpfso
Given that it is obvious that one has to learn how to whistle a neutron star merger! But to do it one needs a software to recognize and interpret the whistles!
The proposed challenge has two parts:
Part 1: Make a real time spectrogram as shown in the first video. It is quite straightforward with the FFT function built in p5js.
Part 2: Analyse it in real time to (a) find whistle sound (find the highest frequency above some threshold in spectrogram) and (b) calculate to what mass it corresponds. It can be done relatively simple since the mass of a merger depends on the current frequency and its first derivative (at any time). See Eq. 1 here: https://en.wikipedia.org/wiki/Chirp_mass (everything are constants except f and f_dot).
---
I wrote a proof of concept version myself here: https://kaurov.org/gw/
and the source code is available here: https://github.com/lue/lue.github.io/tree/master/gw
It is buggy, not properly commented and not optimized, but works!
---
Very similar project can be made with the sound of a coin spinning down on the table (Euler's disk), since frequency of the spin down is audible and depends on the mass of the coin.
Best,
Alex
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.