From the course: Code Clinic: C

Unlock the full course today

Join today to access over 22,400 courses taught by industry experts or purchase this course individually.

Solution overview

Solution overview - C Tutorial

From the course: Code Clinic: C

Start my 1-month free trial

Solution overview

- [Dan] The C language is old. It's about input, and output, and fairly basic, even low-level programming concepts. Libraries can extend the C language's capabilities, but for some tasks, it just falls short. To put it another way, if I were given an assignment to create a theremin-like program, I'd probably write it in Java, not C. I wasn't provided that latitude for this assignment. Many operating systems have routines or interfaces for accessing the mouse and speaker. Back in the 1980's, I programmed DAWs in C and easily used the mouse! I could also access the speaker hardware directly. In the spirit of this course, however, I felt it was best to attempt a universal solution. One that would run in a variety of environments. My solution is theremin. A program that uses the PortAudio library to render sound, and the Ncurses library to read the mouse, and access the screen for interactive, full-display output. The resulting program can run in a Cygwin window on a PC, or in iTerm on a…

Contents