Tucsky / aggr

Cryptocurrency trades aggregator
https://charts.aggr.trade/
GNU General Public License v3.0
830 stars 240 forks source link

what is sound effect on website? #272

Closed efeint01 closed 1 year ago

efeint01 commented 1 year ago

hello, maybe this question can be considered absurd. but where can I find the .mp3 file of the sound effects playing on the site?

efeint01 commented 1 year ago

I know the audio is generated dynamically, but is it taken from any .mp3 file?

Tucsky commented 1 year ago

That's a good question actually. Sound effects are 100% generated by default. It's just frequencies. But you can use your own mp3/wav/ogg audio file if you want

efeint01 commented 1 year ago

Thanks. Can you share the method you used to create the sound? what are frequency settings

Tucsky commented 1 year ago

Sure, it's all here

For the most part it's a combination of sine wave audio signals that goes through Tuna.js to make it easy on the ears / more sophisticated The gain used for each sound is relative to the trade volume / significant trade volume