Debian Codegraph @

examples/deep/cage.ck

raw
1 //-----------------------------------------------------------------------------
2 // name: cage.ck
3 // desc: 4'33" by John Cage
4 //
5 // authors: Primrose Ohling
6 // Nick Shaheed
7 // date: Fall 2025
8 //
9 // note: alternative implementation:
10 //
11 // --------------------------------
12 // 4::minute + 33::second => now;
13 // --------------------------------
14 //
15 // At this point, a philosophical question arises as to which
16 // implementation more authentically embodies the spirit of 4'33".
17 // The one-line alternate version (above) could be considered the most
18 // minimal version possible -- perhaps the Platonic ideal of 4'33" as
19 // expressed in the strongly-timed syntax and semantics of the ChucK
20 // programming language, in sofar as the above program *is* the passage
21 // of a specific duration of time "in silence"; the absence of unit
22 // generators implies a zero-amplitude audio output. The computer musician
23 // writing/running this code draws parallels to the pianist sitting in
24 // front of a piano, which is not only capable of making sound but also
25 // carries strong cultural expectations to make sound, and yet the pianist
26 // chooses, in this case, to proactively NOT make sound. This implementation,
27 // therefore, could be an embodiment of 4'33" from the point of view of the
28 // performer(s) onstage.
29 //
30 // On the other hand, the implementation below, which contains not only
31 // the alternate version in its entirety, but also goes to lengths
32 // to connect the live audio input (adc) to the audio output (dac),
33 // foregrounding not the sound made by the software program, but rather
34 // the incidental sounds of the room. This is fitting of 4'33" in a
35 // different sense. In Cage's original work, the incidental sounds of
36 // the room that accompanies the absence of instrumental sounds onstage,
37 // are an essential part of the piece itself, inviting audiences to
38 // contemplate the nature of musical performances as well as what may
39 // constitute a performance in the first place. Under this interpretation,
40 // the implementation below nods to the acoustic, social, and cultural
41 // contexts in which the piece is performed.
42 //
43 // -- Nick Shaheed & Ge Wang, Fall 2025
44 //
45 //-----------------------------------------------------------------------------
46 // (note from Primrose) please reduce buffer size as much as possible
47 // terminal> chuck --bufsize:16 cage.ck
48 //-----------------------------------------------------------------------------
49
50 // connect audio input (through unity gain) to output
51 adc => Gain unity => dac;
52
53 // advance time by 4'33"
54 4::minute + 33::second => now;
55
56 // disconnect unit generators
57 adc =< unity =< dac;