Phrontist.org

The Bjorklund Algorithm

The following problem is considered by Bjorklund, in connection with the operation of certain components (such as high voltage power supplies) of spallation neutron source (SNS) accelerators used in nuclear physics.
Construct a binary sequence of n bits with k one’s, such that the k one’s are distributed as evenly as possible among the zero’s. For [...]


Syncopation Exercise

After two or three years of halfheartedly playing with SuperCollider every now and then, I finally bothered to read the documentation for it’s language-side (as oppose to server-side) sequencing features. This is what most SC users are, for good reason, most enthusiastic about. It’s a very flexible and (as far as I know) unusual approach [...]


Decimator Wobble Bass

In the first of what I hope will be many Supercollider posts, I’m dissecting a fairly straightforward wobble bass snippet.
123456789101112131415161718{
var trig, numSmp, rate, freq, wobble,out,note,mod;
freq = (140/60)/3; // It’s not dubstep if it’s not at an integer multiple of 140bpm.
trig = Impulse.kr(freq); // Main tempo pulse
note = Demand.kr(trig, 0, Dseq([40, 43, 47, 47, 40, 49-12, [...]