Download example files
In the previous article, we established our goal of implementing a word sorting algorithm by writing a test.
This test fails, because we have not actually alphabetized our words. But the red and green test results give us a reward mechanism that lets us measure our success.
A string in C is an array of characters. These characters have integer values which, fortunately for this task, can be sorted using number sorting algorithms.
My favorite is quicksort. You can watch a very clear explanation of this algorithm on one of my favorite Youtube channels – Computerphile.
Let’s examine a classic computer science question –
how to alphabetically sort words.
In the first part, we’ll examine the problem and set up a test-driven-development template.
In part 2 we’ll examine the quicksort algorithm, and implement it to get our test to pass.
Heres our list of words (or ‘strings’ in C speak). They’re the names of some of my friend’s cats.
We’ll be using this list throughout the tutorial.
Check it out on Github
or download it directly
Check out this video I made for the Boston String Players.
The tune was written by Bjork, arranged by Chad Grey, and performed by the BSP conducted by Motoki Tanaka
In this post I’ll walk you through my VJ system in MaxMSP I built to do live performances.
Hi, in this tutorial, I’ll show you how to build a 3D Processing sketch that uses planetary motion. We’ll get most of the code from an unlikely place – the open-source audio software
Csound has a planet
opcode- a routine that does exactly what we need it to – output x,y,z values for the planetary motion equation!
We’ll investigate the source Csound code and extract the planetary motion equation.
A video clip made with Processing using the Quicktime template
In my last post, I showed you how to setup a template in Processing for making quicktime movies.
In this tutorial, I’ll show you how to make a movie with the template – 4 squares that grow in size, overlap in a cool way, and with ghosting.
In this tutorial, I’ll show you a template for making 2D quicktime movies with
A video made with Processing.
Processing is a very user friendly language. One of its strengths is how easily you can do procedural drawing. However, its surprisingly tricky to export sketches as quicktime movies, and its not very well documented (until now!)