HNHacker News
TopNewBestAskShowJobs

MadDemon

92 karma · joined March 12, 2020

submissionscomments
MadDemon··on Show HN: Render audio waveforms to HTML canvas using WebGPU
If you're canvas has say 2000 pixels on the x-axis and you're trying to plot one second of 44.1kHz audio, you'll end up with more than 20 samples per pixel. You can then either reduce the number of samples or draw multiple lines within that pixel. Both approaches can result in aliasing. OP's approach seems to just draw lines between every sample, so using the second option. If you change the "Scale" in the example, you can clearly see how peaks appear/disappear due to aliasing (especially between 200 - 400 frames / px).
MadDemon··on Show HN: Render audio waveforms to HTML canvas using WebGPU
Since the number of pixels on the x-axis of the canvas is typically much smaller than the number of samples, you have to reduce the number of samples. This is very prone to aliasing if not done right, especially if you end up just drawing a line between the points. I found a good way to avoid aliasing by taking the min/max values for each chunk of samples and then filling the area in between rather than drawing lines between points. If you zoom in to a point where the window is only a few values, this will converge to the same result as just drawing lines between the samples. You can test it out by uploading audio files to our audio-to-midi web demo: https://samplab.com/audio-to-midi
MadDemon··on Launch HN: Soundry AI (YC W24) – Music sample generator for music creators
You can make it editable with https://samplab.com
MadDemon··on The Era of 1-bit LLMs: ternary parameters for cost-effective computing
Depends if this results in more efficient models or simply larger, more capable models.
MadDemon··on Satellites Are Becoming the New Cellphone Towers
Radio waves have been around for a very long time, but I have yet to hear of a study that links them to cancer.
MadDemon··on Satellites Are Becoming the New Cellphone Towers
Have you ever heard of this thing called sun? It sends down radiation many times stronger and at a frequency that actually damages human cells.
MadDemon··on Mistral 7B
I was thinking the same thing
MadDemon··on My frugal indie dev startup stack (2022)
I was just referring to your comment not the blog post.
MadDemon··on My frugal indie dev startup stack (2022)
How does Ubersuggest compare to Ahrefs?
MadDemon··on My frugal indie dev startup stack (2022)
I was referring to "There's also no consent banner, so this doesn't seem GDPR compliant". They explicitly state that they are GDPR compliant without the need for a consent banner.
MadDemon··on My frugal indie dev startup stack (2022)
The idea of plausible is that you don't need a consent banner because it is privacy friendly.
MadDemon··on Open-sourcing AudioCraft: Generative AI for audio
We built a Mac/Windows app around the original MusicGen so people can experiment with it on their own machine with a simple UI (https://samplab.com/text-to-sample).
MadDemon··on MusicLM: Generating music from text
https://samplab.com is doing something like that.
← PreviousPage 2 of 2