Re: [dev] minimal sound effect/music generator
> Is there a license for this somewhere? I couldn't find one. I've been hesitating for a while between GPL and MIT. I've settled for MIT. The license has been uploaded to the public repo[1]. syg [1]: https://pedantic.software/git/sndc
[dev] minimal sound effect/music generator
Hi folks, After working on it on and off for about three years now, I figured it was time to shill my little program to you fine people. https://sndc.studio It's a small (<10k SLOC) program to compile JSON-like "source" files into sound effects. Its main feature is its simple-yet-powerful modularity: you can design synthesizers or other instruments using built-in low level DSP functions and import them as stand-alone modules into higher level files. Its main non-feature is that it's non-real time so it simplifies the code a *lot*, and it can generate the same sound on super fast war machines or old 2004 thinkpads. It does mean that you can't tweak or experiment live however. It fits very well the git/Makefile scheme, you can version your sound effects, only re-generate the parts that you modified and so on. It's completely audio-agnostic, in fact you can use it for anything vaguely DSP-related, there are only three internal types: - floats - buffers (of floats) - strings It takes in SNDC files and spits a raw stream of floats in stdout, leaving it to the user to play it with aplay or export it to more civilized formats with sox. It doesn't even have a notion of channels. Everything is mono until you decide to interlace multiple channels into one buffer. Finally, it has quite a bunch of built-in modules like basic oscillator, noise, reverb, echo, filters, fft and reverse fft and all that stuff. It only has one dependency to build it: FFTW3. I'm keen to get feedback if anyone is into DSP/audio synthesis as much as I am. Cheers, syg
Re: [dev] running a shortlink provider
Hi, Just my two cents, but why not just store the link destination, even better, the HTML with the correct re-direction, in a file named according to the hash. You can then just serve it as-is. No lock problem. No database required. O(1) complexity. Of course this is only valid for a personal, non-public use since that strongly limits the number of links you can have. Also, this is trivially extensible to a pastebin. - syg
Re: [dev] Simpler WiFi alternatives
Hi, > Yep. That is true. I didn't think of that at all! But then, why do > current WiFi, etc. work at 2.4GHz, if device speeds aren't at those > levels? I am not an expert but my understanding is that chips really don't bother with sampling radio signals at those speeds, it would be extremely costly and overkill (this is what digital oscilloscopes to, look at their price...). In fact, you'll have some analog pre-processing that consists in multiplying the signal by a fundamental frequency, the carrier, to extract a usable signal at a frequency that can actually be handled by a general-purpose chip (simplifying massively here). Look up IQ streams and OFDM (modulation used for wifi signals). In short you will need some specialised hardware no matter what, the average ADC can't handle those speeds. > I'll try wireless transmissions of files at 10MHz then in the lower > frequency regions. Then by replacing hardware, maybe I'll just have to > change a single number! Uhh... Not really, WiFi is very complex, at the GHz speed, if you don't factor in reverberations and work around it with very complex maths and error correction, you'll have a range of a few centimeters. That was solved in the 90s with a very lucrative patent from CSIRO: https://csiropedia.csiro.au/wireless-lans/ Hope that brings in some perspective. - syg
Re: [dev] sfeed: RSS/Atom parser and reader
Hi NRK, > I tried out `choice` several months ago. Really liked it's key-value > feature and patched my demnu to do something similar[0]. However not > having a case insensitive search killed it for me. I've added a case-insensitive and fuzzy search mode, both with a command-line switch and a runtime shortcut. It hasn't found its way onto master yet but is available on my branch[1] (with updated manual). Sylvain [1]: https://pedantic.software/git/choice/summary/refs/heads/syg signature.asc Description: PGP signature
Re: [dev] sfeed: RSS/Atom parser and reader
Hi Hiltjo, Thanks a lot for this neat project. I am using it daily now, it definitely replaced newsboat for me. I made a tiny script on top of a terminal-based menu selector a friend and I have been developing for the last few years[1] and it works great. I wrote a blog post on my feed setup[2]. Thanks again, Sylvain [1]: https://pedantic.software/projects/choice.html [2]: https://sgauthier.fr/blog/minimalism_3_sfeed.html signature.asc Description: PGP signature