// title: Midterm Question 3 // author: Mason McCormack // description: // code: // This note is made up of 5 freqs, all integer multiples of 100 Hz. { Mix.ar(SinOsc.ar(freq: 100 * [1, 2, 3, 4, 5], mul: 0.1)) }.play; // This note is made up of 5 freqs that are NOT integer multiples of 100 Hz. { Mix.ar(SinOsc.ar(freq: 100 * [1.01, 1.9, 3, 4.2, 7.4], mul: 0.1)) }.play; ( SynthDef("bell", {arg freq, amp; var env, snd, partials, relativeAmps; partials = [0.5, 1, 1.19, 1.56, 2, 2.51, 2.66, 3.01, 4.1]; relativeAmps = [0.25, 1, 0.8, 0.5, 0.9, 0.4, 0.3, 0.6, 0.1]; env = Env.perc(attackTime: 0.01, releaseTime: 5, amp: relativeAmps ).kr(2); snd = SinOsc.ar( freq: 440 , mul: 1 ); snd = Splay.ar(snd); Out.ar(0, snd * 0.1 ! 2); }).add; ) ( Pbind( \instrument, "bell", \degree, Pseq([1,4,7,9], inf), \dur, 0.132, ).play )