Better HN
topnewbestaskshowjobs
Log inSign up

portasynthinca3

163 karma · joined Jun 4, 2022 (4y ago) · 6 submissions

Submissions

comment 1y ago · link · parent

> SysEx is to standard MIDI what inline assembler is to Python

I really like this comparison!

comment 1y ago · link · parent

My bad! I added *.bin to .gitignore last minute to exclude assembled code snippets, but looks like the dumps were excluded as well. I'm going to upload them in the next few hours

comment 1y ago · link · parent

Thanks!

The dot matrix is actually eight 5x8 characters, or 320 bits in total. I'm packing those 320 bits into the the 4 bits per byte that are available to us in this shell protocol. Plus, another 9 bytes for the packet header and footer. Looks like I wrote 92 in the article, I must have miscalculated that.

I'm not using the full 7 bits because figuring out a way to do so turned out to be way too hard for me, so I opted for a solution that is negligibly worse than the optimal one, in comparison to the original one.

If you're wondering about the exact algorithm, consider checking these files out, but please keep in mind that I haven't cleaned the code up yet: https://github.com/portasynthinca3/swl01u/blob/master/fun/bi..., https://github.com/portasynthinca3/swl01u/blob/master/fun/ba...

4.

Remote code execution via MIDI messages(psi3.ru ↗)

471 points · by portasynthinca3 · 1y ago · 75 comments

5.

Show HN: SpeedAPI – An API Toolkit(github.com ↗)

1 points · by portasynthinca3 · 4y ago · discuss