Major changes to ringbuffer code.

modified:   build.sh
modified:   main.c
new file:   main.h
modified:   ringbuffer.c
modified:   ringbuffer.h
modified:   softsynth.c
modified:   softsynth.h