(Michael Chinen)

Author: mchinen

sizeof dynamically allocated arrays in c

The MAX(a,b) macro bug I posted last was something I had done before. Today and Yesterday I spent a good few hours running over my old mistakes. What’s a difference between: unsigned char *dynArray = malloc(500); unsigned char trueArray[500]; well, Today’s arrrrrrg is that sizeof (dynArray) is just the size of a pointer, not the […]

Tatsumi Ryusui and Starcraft II and emacs

Over the last year in Berlin I worked on five collaborative music/performance/art projects that I’ve been meaning to post. In the summer as a part of 48 Stunden Neukölln I did a collaboration with Tatsumi Ryusui (myspace). Normally Tatsumi does experimental electronics improvisation and I do computer music or sonification stuff, but we were asked […]

Macro blues and function reentry?

Knowing how to macro correctly is important in both the real world (starcraft) and when writing code. in c you can define useful macros like #define FFMAX(a,b) ((a) > (b) ? (a) : (b)) . The macros will be a little better than using even static inline functions because no extra memory is allocated for […]

Cocoa and pthreads

If you’re building a cocoa app, don’t use pthread mutexes and pthread threads. Use NSThread and NSLock. I’ve written a few cocoa apps that use pthreads, but maybe I’ve just been lucky till now.

move to sourceforge

Many of the fucking sound projects have been integrated with institute of algorhythmics and are now available through a sourceforge svn repository. This is great as users can now download current source and play with the apps. I’m aware that some users don’t know how to use svn.  So here’s a tutorial on how to […]

Back to top