Click here to load reader
Upload
jghudson
View
215
Download
0
Embed Size (px)
Citation preview
7/24/2019 JHudson-GUIProject-How Much Did You Take!?
http://slidepdf.com/reader/full/jhudson-guiproject-how-much-did-you-take 1/3
(SynthDef (\wacky2, { arg out=0;
var a, freq, trig;a = Dwhite(0, Dseq([Dgeom(, !0, Diwhite("0, #00, inf $$%, inf $ & , inf $;freq = Duty!kr(Sam'eDur!ir, 0, a$ ) *+0;
ut!ar(out, -an2!ar(Sinsc!ar(freq$ . 0!$$;
/$!oa(s$$
(SynthDef (\wacky, { arg out=0;
ut!ar(out,-an2!ar(Dyn1ang!ar([
[#00, 000, 200% ) Sinsc!kr([2, *, +!2%, 0, [*, 2+, 2%$,[0!*, 0!*, 0!*%,['i,'i,'i%
%$ . 0!$$/$!oa(s$
$
(SynthDef (\s'acing, { arg out=0;
var mo = Sinsc!kr(3an(0!, 0!4$, 0, 3an(", 20$$;ut!ar(out, -an2!ar(Dyn1ang!ar([ 5rray!ran(2, 200!0, 2000!0$, , mo %$,
!0!ran$ . 0!0"$;/$!oa(s$$
(SynthDef (\s'acing2, { arg out=0;
ut!ar(out, Dyn1ang!ar([
[#00, 000, 200% ) Sinsc!kr([2, *, +!2%, 0, [*, 2+, 2%$,[0!*, 0!*, 0!*%,['i,'i,'i%
%$ . 0!$;/$!oa(s$$
(SynthDef(\woo, {arg out=0;
ut!ar(out, 678ri!ar(678ri!kr(0!0", i'hase9 (0!!*$$ . 200 ) +00, 0, 0!$!sum$;/$!oa(s$$
(SynthDef(\cra:ysaw, {arg out=0;
ut!ar(out, 7Sine6!ar(67<oise2!kr(, e+, e+$, 67<oise2!kr(,,>$, , !00", 0!>$ .0!2$;/$!oa(s$$
(SynthDef(\cra:ysaw2, {arg out=0;
ut!ar(out, 7Sine?!ar(67<oise2!kr(, e+, e+$, 67<oise2!kr(,,>$, , !00", 0!>$ .
7/24/2019 JHudson-GUIProject-How Much Did You Take!?
http://slidepdf.com/reader/full/jhudson-guiproject-how-much-did-you-take 2/3
0!2$;/$!oa(s$$
(var cra, wacky, wacky2, cra:ysaw, cra:ysaw2, s'acing, s'acing2, woo;
wacky = \wacky;
wacky2 = \wacky2;
cra:ysaw2 = \cra:ysaw2;
s'acing = \s'acing;
s'acing2 = \s'acing2;
woo =\woo;
cra:ysaw = \cra:ysaw;
w = @inow!new(ABow Cuch Di ou 8akeEFA$;
G = utton(w, 3ect(20,20,*+0,*0$$!statesH([
[AImm !!!A, ?oor!Gack, ?oor!re%,[A@hatever you gave me!A, ?oor!white, ?oor!Gack%,[A5 of it thenEA, ?oor!re, ?oor!white%,[Aeah, J guess a of it!A, ?oor!Gue, ?oor!cear%,[A8hatKs a ot!A, ?oor!Gack, ?oor!re%,[AJs itEA, ?oor!white, ?oor!Gue%,[A8hatKs 'roGaGy too much!A, ?oor!re, ?oor!Gack%,[Aoh! ! ! es! J Geieve it is ! ! !A, ?oor!re, ?oor!Gue%
%$!actionH({ arg Gutt;
if (G!vaue == , {s!senCsg(ALsHnewA, wacky, 4444, , 0$;/,{
s!senCsg(ALnHfreeA, 4444$;/$;if (G!vaue == 2, {
s!senCsg(ALsHnewA, wacky2, 444#, , 0$;/,{
s!senCsg(ALnHfreeA, 444#$;/$;if (G!vaue == *, {
s!senCsg(ALsHnewA, s'acing, 444>, , 0$;/,{
s!senCsg(ALnHfreeA, 444>$;/$;
if (G!vaue == +, {s!senCsg(ALsHnewA, s'acing2, 444, , 0$;
/,{s!senCsg(ALnHfreeA, 444$;
/$;if (G!vaue == ", {
s!senCsg(ALsHnewA, woo, 444", , 0$;/,{
s!senCsg(ALnHfreeA, 444"$;/$;
7/24/2019 JHudson-GUIProject-How Much Did You Take!?
http://slidepdf.com/reader/full/jhudson-guiproject-how-much-did-you-take 3/3
if (G!vaue == , {s!senCsg(ALsHnewA, cra:ysaw, 444+, , 0$;
/,{s!senCsg(ALnHfreeA, 444+$;
/$;if (G!vaue == >, {
s!senCsg(ALsHnewA, cra:ysaw2, 444*, , 0$;
/,{ s!senCsg(ALnHfreeA, 444*$;/$;Gutt!vaue!'ostn;
/$;w!front;$