News for hackers. Stuff that matters.

thcopeland

Re:Paper Pipe Organ (2019) [video] on Tuesday January 16, 2024 @01:39AM (#39010148)
Very cool! Technically this is a reed organ (as noted in the original video), since the sound is produces by a vibrating tongue instead of air resonating along a pipe. The horns on top, which look a bit like pipes, are probably just there to improve the tone a bit.

This reed organ still sounds pretty buzzy, but a full-size one isn't so bad. Rodney Jantzi's website https://www.rodneyjantzi.com features some pretty great recordings, as well as pictures of reed organ restorations. Earlier this evening I finished re-covering the reservoir of a 120-140 year-old reed organ, so reed organs are pretty near to my heart right now.

Dr. Douglas Jones wrote a pretty great article on the subject, https://homepage.cs.uiowa.edu/~jones/bcd/divide.html. Depending on the divisor it can be a bit messy, since reciprocal multiplication sometimes needs extra precision. For example, on an 8-bit machine, x/6 == (x*42>>8), which is nice because 42 fits in 8 bits. But x/105 == (x*313>>15) needs 9 bits to hold 313. On some systems (thinking 8-bit AVR), it'd probably be faster to branch on the 3 cases rather than perform a full 16-bit multiplication.
Thanks very much! I had a Arduino for most of a decade before doing anything with it, must be a trend.

Show HN: AfterZhev – A Graphical RPG for Arduino in AVR Assembly

https://thcopeland.com/projects/afterzhev/play.html

For the last year I've been working on a small RPG, called "AfterZhev", that runs on a single ATmega2560 plus some passive components. The game runs at 60 FPS on a stock 16 MHz ATmega2560, so it's Arduino Mega2560 compatible, and generates a 60 Hz 640x480 VGA video output, with an effective resolution of 120x66 pixels. It also generates 8-bit sound. AfterZhev was written entirely in AVR...

( Read More... | 2 comments | on HN )