From: owner-sc-users-digest@lists.io.com (sc-users-digest) To: sc-users-digest@lists.io.com Subject: sc-users-digest V1 #162 Reply-To: sc-users Sender: owner-sc-users-digest@lists.io.com Errors-To: owner-sc-users-digest@lists.io.com Precedence: bulk sc-users-digest Sunday, August 27 2000 Volume 01 : Number 162 ---------------------------------------------------------------------- Date: Fri, 25 Aug 2000 00:57:53 -0400 From: "christian.adam.hresko." <---@---.---> Subject: arrays another question. i'm trying to write a patch using Klank which allows the user to change the frequencies and ring times in realtime. (using a slider gui...) is there any way of doing this without writing a whole new class? (i saw this mentioned in the help files...) perhaps a way of using plug to access an array? (yes, this is limited, but i'm in a bit of a hurry. the class definition can come later) any ideas would be greatly appreciated. cheers, christian - -- http://www.george_w_bush_killspeople.com ------------------------------ Date: Thu, 24 Aug 2000 22:21:46 -0800 From: "anthony burr" <---@---.---> Subject: Re: arrays check out Ringz cheers anthony - ---------- >From: "christian.adam.hresko." <---@---.---> >To: supercollider >Subject: arrays >Date: Thu, Aug 24, 2000, 8:57 PM > > another question. > > i'm trying to write a patch using Klank which allows the user to change > the frequencies and ring times in realtime. (using a slider gui...) > > is there any way of doing this without writing a whole new class? (i saw > this mentioned in the help files...) > > perhaps a way of using plug to access an array? (yes, this is limited, > but i'm in a bit of a hurry. the class definition can come later) > > any ideas would be greatly appreciated. > > cheers, > > christian > > -- > http://www.george_w_bush_killspeople.com > > ------------------------------ Date: Fri, 25 Aug 2000 01:26:27 -0400 From: "christian.adam.hresko." <---@---.---> Subject: Re: arrays anthony burr wrote: > check out Ringz > cheers > anthony > awesome. thank you very much. you just saved me A LOT of time. cheers, christian - -- http://www.george_w_bush_killspeople.com ------------------------------ Date: Thu, 24 Aug 2000 22:58:10 -0700 From: cramakrishnan@acm.org Subject: Re: arrays "christian.adam.hresko." writes: > i'm trying to write a patch using Klank which allows the user to change > the frequencies and ring times in realtime. (using a slider gui...) > > is there any way of doing this without writing a whole new class? (i saw > this mentioned in the help files...) > > perhaps a way of using plug to access an array? (yes, this is limited, > but i'm in a bit of a hurry. the class definition can come later) Yeah, I tried doing this too, but for Klang, not Klank -- I used a function (since Klang wants a reference to an array, i figured i could substitue a function). However, if i did something to change the array after the Klang is created, unhappy noises start coming out of the synth. To get it to work I had to write a method that summed an FSinOsc for each value i put in the array intended for the Klang. It shouldn't take you long to write. If you want, I can dig mine up and email it. - - sekhar - -- C. Ramakrishnan cramakrishnan@acm.org ------------------------------ Date: Fri, 25 Aug 2000 04:31:25 -0400 From: "christian.adam.hresko." <---@---.---> Subject: Re: arrays cramakrishnan@acm.org wrote: > "christian.adam.hresko." writes: > > i'm trying to write a patch using Klank which allows the user to change > > the frequencies and ring times in realtime. (using a slider gui...) > > > > is there any way of doing this without writing a whole new class? (i saw > > this mentioned in the help files...) > > > > perhaps a way of using plug to access an array? (yes, this is limited, > > but i'm in a bit of a hurry. the class definition can come later) > > Yeah, I tried doing this too, but for Klang, not Klank -- I used a > function (since Klang wants a reference to an array, i figured i could > substitue a function). However, if i did something to change the > array after the Klang is created, unhappy noises start coming out of > the synth. > > To get it to work I had to write a method that summed an FSinOsc for > each value i put in the array intended for the Klang. > > It shouldn't take you long to write. If you want, I can dig mine up > and email it. > > - sekhar > that would be great if you could send it. i'd really appreciate it. here's what i have so far, using Ringz. (thanks again anthony...) any suggestions are welcomed. (i can send this as an sc file if anyone has use for it...) ( // Resonant Filter Banks var w; { var input, sigOut; var freq1, freq2, freq3, ring1, ring2, ring3; var f1, f2, f3, d1, d2, d3, a, b, c, d, e, g; w = GUIWindow.new("Resonant Filter Bank", Rect.newBy(457, 94, 340, 425)); f1 = SliderView.new( w, Rect.newBy(17, 67, 128, 20), "SliderView", 0, 0, 2000, 10, 'linear'); f2 = SliderView.new( w, Rect.newBy(17, 115, 128, 20), "SliderView", 0, 0, 2000, 10, 'linear'); f3 = SliderView.new( w, Rect.newBy(17, 167, 128, 20), "SliderView", 0, 0, 2000, 10, 'linear'); d1 = SliderView.new( w, Rect.newBy(69, 233, 21, 118), "SliderView", 0, 0, 5, 0.25, 'linear'); d2 = SliderView.new( w, Rect.newBy(158, 233, 21, 118), "SliderView", 0, 0, 5, 0.25, 'linear'); d3 = SliderView.new( w, Rect.newBy(251, 233, 21, 118), "SliderView", 0, 0, 5, 0.25, 'linear'); a = NumericalView.new( w, Rect.newBy(153, 67, 73, 19), "NumericalView", 0, 0, 2000 , 10, 'linear'); b = NumericalView.new( w, Rect.newBy(153, 116, 73, 19), "NumericalView", 0, 0, 2000, 10, 'linear'); c = NumericalView.new( w, Rect.newBy(153, 166, 73, 19), "NumericalView", 0, 0, 2000, 10, 'linear'); d = NumericalView.new( w, Rect.newBy(49, 354, 64, 20), "NumericalView", 0, 0, 5, 0.25, 'linear'); e = NumericalView.new( w, Rect.newBy(139, 354, 64, 20), "NumericalView", 0, 0, 5, 0.25, 'linear'); g = NumericalView.new( w, Rect.newBy(234, 354, 64, 20), "NumericalView", 0, 0, 5, 0.25, 'linear'); StringView.new( w, Rect.newBy(17, 42, 128, 20), "Bank 1"); StringView.new( w, Rect.newBy(17, 90, 128, 20), "Bank 2"); StringView.new( w, Rect.newBy(17, 142, 128, 20), "Bank 3"); StringView.new( w, Rect.newBy(234, 67, 103, 19), "res 1 frequency"); StringView.new( w, Rect.newBy(234, 116, 103, 19), "res 2 frequency"); StringView.new( w, Rect.newBy(234, 166, 103, 19), "res 3 frequency"); StringView.new( w, Rect.newBy(111, 203, 128, 20), "Decay Times (sec)"); StringView.new( w, Rect.newBy(111, 15, 128, 20), "Filter Banks"); StringView.new( w, Rect.newBy(48, 381, 69, 20), "Bank 1"); StringView.new( w, Rect.newBy(137, 381, 69, 20), "Bank 2"); StringView.new( w, Rect.newBy(234, 381, 69, 20), "Bank 3"); f1.action = {a.value = f1.value}; a.action = {f1.value = a.value}; f2.action = {b.value = f2.value}; b.action = {f2.value = b.value}; f3.action = {c.value = f3.value}; c.action = {f3.value = c.value}; d1.action = {d.value = d1.value}; d.action = {d1.value = d.value}; d2.action = {e.value = d2.value}; e.action = {d2.value = e.value}; d3.action = {g.value = d3.value}; g.action = {d3.value = g.value}; input = AudioIn.ar([1,2]); freq1 = Ringz.ar( in: input, freq: f1.kr, decaytime: d1.kr); freq2 = Ringz.ar( in: input, freq: f2.kr, decaytime: d2.kr); freq3 = Ringz.ar( in: input, freq: f3.kr, decaytime: d3.kr); sigOut = Mix.ar([freq1, freq2, freq3]); sigOut }.play; w.close; ) cheers, christian - -- http://www.george_w_bush_killspeople.com ------------------------------ Date: Sat, 26 Aug 2000 06:17:01 -0500 (CDT) From: "AUDIOSYNTH.COM" <---@---.---> Subject: Re: arrays Klank is a bank of nonmodulateable Ringz. If you want to modulate you should use Ringz. Similarly Klang is a bank of SinOscs. ------------------------------ Date: Sat, 26 Aug 2000 15:44:03 +0200 From: Stephen Travis Pope <---@---.---> Subject: Re: preliminary SC3 version available James McCartney wrote: > > Ultra Meta Cyber Hyper Turbo Visual Open > SuperCollider Pro Plus > Special Unlimited Enhanced Millenium 2000 Edition - Lite, > Version 3 Pre-Alpha Demo > > (a most marvelous marketing moniker, I might mention) Wow -- and what an acronym: UMCHTVOSCPPSUEM2ELV3PAD (or: UMCHT VOSCPP SUEM 2ELV 3PAD -- isn't this a legal authorization code?) - -- stp Stephen Travis Pope Email: stp@create.ucsb.edu WWW: http://www.create.ucsb.edu/~stp ------------------------------ Date: Sun, 27 Aug 2000 01:01:22 -0400 From: "christian.adam.hresko." <---@---.---> Subject: Re: arrays / elements "AUDIOSYNTH.COM" wrote: > Klank is a bank of nonmodulateable Ringz. If you want to modulate > you should use Ringz. Similarly Klang is a bank of SinOscs. i was thinking of filling an array (or arrays) beforehand, and having a way to access the individual elements with a GUI. i'm guessing this is documented somewhere and i just haven't found it. and yes, ringz does exactly what i want. i'm still curious about the array idea though. cheers, christian : off topic - does anyone on this list program in assembly? is this something i should take while i'm in school, or could i just as easily learn this own my own? any recommendations regarding books on this subject would be helpful... - -- http://www.george_w_bush_killspeople.com ------------------------------ End of sc-users-digest V1 #162 ******************************