Wednesday, January 2, 2013
Wheew
Hmmm
Coffee was good this morning.
My lab bench is a mess.
Will probably go climbing tonight.
Tuesday, January 1, 2013
Interesting problem
Camera Spectroscopy
Monday, December 31, 2012
Spectroscopy
Absorbance, transmittance and reflectance all different types of spectroscopy. What I want to try and do is be able to acquire a visible spectra of something using a camera. Decomposing RGB values into a spectra is going to be tough but I think if I base it on empirical values from a spectrophotometer. Wavelength might not be too crazy but intensity is going to be the tough part. Was working on using a webcam today. I think I need something with a little better resolution.
A 96 well plate reader
Wednesday, December 5, 2012
Build your own Synthesizer Part 3
Tuesday, December 4, 2012
Build your own Synthesizer Part 2
The next thing we need is to have fluidsynth running, which we can start up with "qsynth &". Qsynth is a software synthesizer frontend GUI for fluidsynth. It takes all the MIDI commands and will generate our music.
So now we have the minimum programs we need to run. We can test it out using rosegarden or another MIDI program. What you need to do after starting rosegarden is to open up the JACK connect button and setup the connections they should be as follows:
Under the ALSA tab rosegarden or your software should be connected to FLUID Synth. Most common problems when using my own synthesizer for me have always been having the correct connections.
Next we will work on setting up the arduino and buttons and ttymidi.
Monday, December 3, 2012
Build your own Synthesizer Part 1
This is not a guide for building a standalone synthesizer as all MIDI sound generation will be done through a computer. All the software and hardware that I used to build my own synthesizer is Open Source, WOOHOO! I did write some custom code though as any hardware/software hacker needs to be able to do for a custom system.
What one minimally needs to build a synthesizer such as the one I built:
A computer running Linux
An Arduino or your favorite microprocessor
Some Buttons, Wires and Resistors
Probably a sodering iron unless you are going for a ghetto fabulous project that is duck-taped together (I admit I have done this before).
On my Dell laptop I installed Ubuntu. Not necessarily a big fan of Ubuntu but Fedora was being difficult and I didn't want to spend all my time just trying to make my video drivers work. I'm too old for that. There are a number of cool and awesome MIDI programs for Linux, when I first started I was so excited and spent a bunch of time messing around with alot of them including Rosegarden and Hydrogen. These are not what we will use but are pretty cool for just playing around and learning about MIDI sound generation.
The software I use and what you probably need are:
JACK audio software
Qsynth
Sooperlooper
ttymidi
I think all of these programs can be installed with yum or apt-get except ttymidi, which can be acquired from Here I chose to use the arduino with this project because it already has a serial MIDI interface library so you don't have to code one up on your own. MIDI messages(See here) however are pretty straight forward and would not be that difficult to code up on your own say if you were using something such as the MSP430. Once you have all your hardware and software then we are ready to move onto the next part!
Monday, July 30, 2012
The Chromochord in Europe
Tuesday, July 10, 2012
Google Ngrams part 2
Friday, June 29, 2012
Google Ngrams Part 1
As you can tell there has been a drop in the usage of vi for editing books, as it probably moved on to be a programmer's tool around the 1830s. This is not even to mention the words with non alpha numeric characters. I guess I will parse my happy heart out. Just removing words that contain numbers or non-alpha characters besides (') has me at about 1/3 of the original size for 1grams. I also removed words with less than 5 occurrences in less than 2 books. I.e. each word has to occur at least 5 times in at least 2 books. I'll post the scripts when I am done.
Friday, June 1, 2012
LCD Clock MSP430 Nokia 5110
The connections I used are as follows:
Nokia : MSP430
1 VCC : P1 VCC
2 GND : P13 GND
3 SCE : P2
4 RST : P3
5 D/C : P4
6 DNK(MOSI) : P5
7 SCLK : P6
8 LCD : P7
One should just be able to import this code into Code Composer and if using the same pin connections It should work immediately. You can run it off the ez430 USB stick or 3V. I used two coin cells in parallel. Feel free to comment if you have any questions.

