Skip to content

Instantly share code, notes, and snippets.

View bwestergard's full-sized avatar

Björn Westergard bwestergard

  • Mt. Pleasant, Washington, D.C.
View GitHub Profile
@bwestergard
bwestergard / modal.sc
Last active October 12, 2018 20:00
Modal Transposition Study
TempoClock.default.tempo = 90/120;
(
SynthDef(\tinn, { |amp, freq = 440, sustain = 1, startf = 20000, endf = 80, q = 0.8 |
var detune = 0.01;
var sig = Splay.ar(
VarSaw.ar(LFNoise2.ar(8).exprange(freq * (1-detune), freq * (1+detune)) * [0.99,1/2,1/2.001,1,1.01], width: LFNoise2.ar(1/2).exprange(0.5, XLine.ar(0.5,0.03,sustain/8))) * XLine.ar(1e-10,1, 0.01) * XLine.ar(1,1e-10, sustain, doneAction: 2),
XLine.ar(0.2,1,sustain/3)
);
Out.ar(0, RLPF.ar(sig, XLine.ar(startf, endf, sustain / 16), q) * amp)
@bwestergard
bwestergard / dwelsh.sc
Last active October 11, 2018 23:11
Welsh Tune
(
(
Pbind(
\instrument, \bloop,
\mtranspose, Pstep([1,1,4,4, 0,0,0,0, 1,1,4,4, 5,3,2,1], 1/2, inf) + (Pstep(Pseq([0,0,1,3], inf), 8, inf) % 7)
) <> Ppar([
/* Pbind(
\octave, 5,
\degree, Pstep(Pn(Pseries(0,-1,8) % 7), 1/8, inf),
\dur, Pseq([2,1,1,3],inf)/4,
@bwestergard
bwestergard / schmidt.md
Last active September 11, 2018 17:01
Schmidt on "Computer Supported Cooperative Work"

Not only does computer technology offer the means of control mechanisms that are physically cleanly separated from the mechanisms of transforming, converting, and transmitting energy, and not only does computing technology offers the means of control mechanisms to interconnect machine systems; it also, by the same token, affords the logical and physical separation of mechanisms for the regulation of interdependent cooperative activities from the mechanisms of controlling the various productive processes, be they processes of fabrication, transportation, etc. or processes of accounting, financial transactions, etc. That is, it affords the emergence of coordination technologies as a distinct class of technologies, separate from those of machine systems, as it is becoming technically and economically feasible for ordinary workers to construct and modify the control systems that mediate and regulate their cooperative activities.

The concept of the distinct control mechanism is again crucial. In coordination

@bwestergard
bwestergard / jane_letter.md
Last active August 3, 2018 22:20
Lanetix Union Dispute: November Letter Responding to Firing of "Jane"

To Mr. Troy Goode,

We, the undersigned, are Lanetix employees who have helped build a product and a company. We look back on our years of taxing effort with pride, knowing that we have pushed forward both the state of the art and the cause of a diverse, inclusive, professional software industry.

Your decision to fire [Jane] - with no warning, breaking with all past practice - shocked us. She was a valued co-worker whose contributions to the company were obvious, and to our knowledge there has never been cause to question her capabilities or performance. Her manifest intelligence, skill, and professionalism under trying circumstances were an inspiration to us all. But [Jane]'s greatest contribution to the team was her willingness to hear the grievances we shared with one another and bring them to you.

[Jane] was an effective advocate for all of us, especially for those women who joined her here in an attempt to build careers in an industry in which the deck is stacked against them. She spoke up, most visib

@bwestergard
bwestergard / kraut.sc
Created April 20, 2018 21:02
Supercollider Krautrock
Server.default.boot;
(
SynthDef(\kick, { | sustain = 1, freq = 440 |
var snd = SinOsc.ar(XLine.ar(freq/2, freq/4, 0.05 * sustain)).dup * XLine.ar(1.1,1e-4,sustain, doneAction: 2);
Out.ar(\out.kr(0), snd * 1.9 * \amp.kr(0.1));
}).add;
)
(
@bwestergard
bwestergard / lajsl.md
Last active April 2, 2018 14:43
Language Agnostic JSON Schema Language Prior Art
@bwestergard
bwestergard / jan16.md
Created February 26, 2018 19:20
Lanetix Union: Email To Management (January 16, 2018)

To the management of Lanetix,

We, the software engineers of Lanetix in Washington and San Francisco, are proud to announce that we are unionizing with the News Guild (Communication Workers of America).

For many workers in our industry, hopping from firm to firm as challenges arise is a lamentable but unquestioned mode of life. Today, we demonstrate a new approach.

By organizing, we rise to the challenge of preserving and strengthening culture which has attracted an unusually diverse and distinguished team. With a collective voice on the job, we can successfully navigate the productive tensions that are part and parcel of growth in a turbulent industry.

We are united in our resolve to achieve consistency in titles and salaries, recruitment of talented staff engineers, regular raises, scheduled appraisals on an objective basis, 401k matching, just cause for termination, and rational work from home, paid time off, and overtime policies. But beyond these prosaic objectives, we aim to set a new standard for tr

@bwestergard
bwestergard / migrateup.txt
Created December 5, 2017 20:42
Migrate up issue in records
Bjorns-MacBook-Pro:records bjornwestergard$ npm run migrate up
> records@1.1.0 premigrate /Users/bjornwestergard/env/dev/records
> npm run assert-schema records
> records@1.1.0 assert-schema /Users/bjornwestergard/env/dev/records
> pg-assert-schema -d postgres://postgres@localhost/lanetix "records"
@bwestergard
bwestergard / useval.md
Created April 19, 2017 15:00
Murray on Use-Value (from "Mismeasure of Value" p9)

Paul Mattick Jr, puts the point this way, ‘Marx’s critique – his “scientific revolution” – therefore involved not merely a reworking of economic categories but the construction of another set of concepts, explicitly social and historical ones’.31 Marx is often misinterpreted or misused because his ideas are forced into conceptual moulds that he set out to break. Not all of Marx’s concepts are ‘explicitly social and historical’ in nature, however.32 Marx has a place for generally applicable concepts, such as use value or the labour process, but there is no actual production in general:

All epochs of production have certain common traits, common characteristics. Production in general is an abstraction, but a rational abstraction in so far as it really brings out and fixes the common element ... If there is no production in general, then there is also no general production.

We can make some generally applicable observations about production – for example, every labour process involves a place, objects of p