HackerTrans
TopNewTrendsCommentsPastAskShowJobs

cerol

no profile record

Submissions

Flooding death toll in south Brazil rises to 75 as over 100 people still missing

theguardian.com
6 points·by cerol·2 ปีที่แล้ว·2 comments

comments

cerol
·3 ปีที่แล้ว·discuss
A couple of years ago, I took a "Music and Computers" course at my undergraduate computer science program. I had known the professor for a while, and he had some incredible projects under his belt. He had built a full fledged Hammond-like MIDI synth using an Arduino Due, all the way from writing the code, and building the stainless steel casing. I took that as an inspiration for my final project, and tried to build a FM synth using ESP32.

I based my project on the Yamaha DX7, which is an amazing feat of musical engineering. I had to write the code, wire together a MIDI Input, and an audio output (using a DAC). It was one of the coolest projects I've ever made, although I did not get too far.

At the core, all you're doing is generating sine waves. Digital Synths in the 80s would not have the computation power to actually compute sine waves, so what you have to do is precompute the values of a sine wave, and store it in memory [0]. Also, you don't get floats, so it's all fixed point arithmetic [1]. FM Synthesis is essentially a carrier wave and a modulator wave [2]. The DX7 goes beyond that with the concept of Operators, which can be mixed and matched in an Algorithm [3].

I managed to make it produce notes, which were in tune. I started making the envelope (attack, decay, sustain and release), but that's where I got stuck and eventually abandoned it.

[0] https://github.com/fercgomes/churrosfm/blob/master/src/Table...

[1] https://github.com/fercgomes/churrosfm/blob/master/src/Oscil...

[2] https://github.com/fercgomes/churrosfm/blob/master/include/A...

[3] https://djjondent.blogspot.com/2019/10/yamaha-dx7-algorithms...
cerol
·3 ปีที่แล้ว·discuss
> The city my dad lives near Porto Alegre already suffered twice due to extra tropical cyclones. Something that I heard only few times in my childhood.

One thing I noticed is that local governments (and their respective climate departments) are being much more vigilant and proactive with climate events. And we are in a way paying much more attention to the frequency of climate events. Trying to correlate your own experience of "frequency of events" is a very tricky thing, since we can pretty much condition ourselves to rememeber pretty much anything we want.

Back in the day there were tropical storms and cyclones, and we just moved on. But now local governments will proactively cancel school days if there is a even a hint of a heavier storm. Which is great, but it does mess with our ability to actually estimate frequency of events.
cerol
·3 ปีที่แล้ว·discuss
It's a great service but honestly I think they just got lucky with how they named it. It's short, easy to pronounce and very memorable. Were it to be called anything else, I'm not sure it would've caught on.
cerol
·3 ปีที่แล้ว·discuss
Most people in this thread are either in North America or Europe, so options for managed services like Fly exist, and they are plenty. But for people in South America, what options are there for a Heroku-like service? I don't want users shooting off requests halfway across the globe and back when there are many datacenters a couple of miles from our users. I just don't have the time and resources to manage VMs and scaling issues. I need a zero friction "./serviceX deploy" experience.

Fly seems unreliable, but they offer a deploy region close to me. Does anyone have know of any alternatives?
cerol
·3 ปีที่แล้ว·discuss
I'll just come out and say it. I absolutely loved Toy Story 4.

I watched TS1 and 2 as a kid, and I remeber loving it and rewatching dozens of time. Then TS3 came out, with Andy going to college, around the same time I was going to college.

Toy Story 4 was an absolutely stunning movie, both in terms of photography, and underlying message. In my opinion, it is about growing up, finding out who you are, and letting go. They ended the franchise in the best way possible.