Jorhlok

Me, my opinion, and things I do.

Category Archives: Project

I made a file format! No app to make them, though.

I made a music file format! It’s to go with my new “virtual sound chip” I made for use in video games what I am/plan to program. The chip has 8 channels which output a 4-bit signal each. Each pulse type has a table of 4-bit samples for each of the 15 possible volume settings (zero is mute and doesn’t need a table). There’s also a table that maps these samples to a 31-bit counter (java doesn’t have unsigned variables) based on the sample length (2-30ish) and pulse width (1/32 to 1/2 or 16/32).

Read more of this post

Advertisements

From *nix to Android with SDL2 and SDL_image. Using the Command Line of Course!

Let me paint a picture;

My development environment on linux consists of a text editor with code highlighting (GEdit in my case), GCC/G++, and make. Development goes like this for me: Tickatickatype, Ctrl-S, “make ; ./test” . Using a basic handwritten Makefile isn’t that hard for testing a small project. I make it automate things like adding flags and defines from the command line. In the case of Android, I have it copy my source into the android project, compile it, pack it in an apk, and then copy the apk to dropbox so I can test it on my device.

If you use cygwin on windows with GCC/G++ you can more or less follow along as long as you promise to use your best judgment.

I’ve got three links that I used to figure out how to hack a function android project together with the latest SDL2 source.

Read more of this post

An Integer Only Software Synthesizer Takes its First Steps

Right, so after being dead for a few months, someone used phoenix down on me and so I made a cute little software synthesizer in plain C. The runtime uses only integers, so I’m hoping to port it to a microcontroller like the AVR in my Arduino. So far it’s done a monophonic rendition of the intro of the Super Mario Bros. overworld theme. It used a variable pulse width square wave with amplitude modulation. I just had to hard code the notes in C, which was laborious.

Read more of this post

Replicated Results: Camera Phone Microscope with a Water Drop

Here’s the link to the article I found: http://www.tested.com/news/how-to/3731-tested-enhanced-macro-iphone-photography-with-a-water-drop/

This article shows how you can take closeup images with any cheapo camera phone. Except they use the overblown iPhone.

Read more of this post

Dissecting a $5 R/C Car

Here’s the first project I’m working on publicly. I’ve recently dissected an R/C car with my 9.1 megapixel point-and-shoot in hand. Also related, I’ve never used Flickr before. However, I decided that posting a bunch of pictures on this one page would be bulky and annoying, so I figured it out for you.

Read more of this post