From: owner-sc-users-digest@lists.io.com (sc-users-digest) To: sc-users-digest@lists.io.com Subject: sc-users-digest V1 #151 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 Monday, July 31 2000 Volume 01 : Number 151 ---------------------------------------------------------------------- Date: Fri, 28 Jul 2000 21:48:32 -0500 From: Gary Morrison <---@---.---> Subject: Cool Stuff Coming Up in 3.0 One of the nice things about living in Austin is that so does James McCartney. I had the pleasure of meeting James over lunch today. We had a nice chat, and he showed me some of the cool stuff coming up in SC 3.0, including the graphics he previewed for us on his website, and plugins. For the graphics stuff, I look forward to trying to come up with graphics classes that interpret music generated by sound classes - interpret them in a audiovisually meaningful way, I mean. The plug-in interface he's devised sounds very straight-forward and simple, and I suspect it'll spur some innovative additions to SuperCollider. ------------------------------ Date: Sat, 29 Jul 2000 07:27:37 -0500 From: James McCartney <---@---.---> Subject: Re: Tree dump Same thing with class methods. ( // by Chad Kirby, 2000.07.28 (modified by JM) var dumpSubClasses, dumpMethod; dumpMethod = { arg method; method.name.post; (method.numArgs > 1).if({ "( ".post; method.argNames.do({ arg name, i; (name.notNil && (i != 0)).if({ (i>1).if({ ", ".post}); name.asString.post; method.prototypeFrame.at(i).notNil .if({("=" ++ method.prototypeFrame.at(i)).post}) }) }); " )".post }); "\n".post; }; dumpSubClasses = { arg class; class.isKindOf(Meta_Class).not.if({ ("\n" ++ class.asString + ":" + class.superclass.asString).postln; class.class.methods.do({arg method; method.notNil.if({ "\t* ".post; dumpMethod.value(method); }) }); class.methods.do({arg method; method.notNil.if({ "\t".post; dumpMethod.value(method); }) }); class.subclasses.do({ arg subclass; subclass.notNil.if({ dumpSubClasses.value(subclass) }); }); }) }; dumpSubClasses.value(Object); ) ------------------------------ Date: Sat, 29 Jul 2000 13:40:20 -0500 From: Gary Morrison <---@---.---> Subject: Indigestion... When I sent the "help" command to the list processor for this list, it didn't list how to change your subscription to digest mode instead of individual messages. Anybody know if that's an option, and if so what the command is? Thanks. ------------------------------ Date: Sat, 29 Jul 2000 23:35:13 +0200 From: Jesper El=?ISO-8859-1?B?6Q==?=n <---@---.---> Subject: FileType Can I set the Macintosh fileType and creator??? Working on midifiles! Jesper - -- Jesper Elén Österväg 24 621 45 Visby Sweden phones: privat: +46-498-271565 VITC: +46-498-249900 Tonis: +46-498-284836 or +46-498-284810 also fax. email: j.elen@telia.com ------------------------------ Date: Sat, 29 Jul 2000 16:55:01 -0500 From: Gary Morrison <---@---.---> Subject: Re: FileType Try FileTyper, a shareware program. It lets you create drag-and-drop "autotypers" that you can leave on your desktop and drag files you want to retype onto them. Unfortunately, I don't know a URL for it, but you pay for it through Kagi, so perhaps they have a website that'll list it. Jesper Elén wrote: > Can I set the Macintosh fileType and creator??? > Working on midifiles! ------------------------------ Date: Sat, 29 Jul 2000 16:31:28 -0600 From: David Cottle <---@---.---> Subject: Command keys Hi, Is there a way to assign command keys to Lib menu items? ------------------------------ Date: Sat, 29 Jul 2000 19:37:40 -0700 From: david <---@---.---> Subject: processor intensive Hi guys and gals, I've got a chunk of code that I'm trying to make more efficient. Thanks for taking a look, d ( var w, aOnOff, bOnOff, cOnOff, dOnOff, eOnOff, fOnOff, gOnOff, gVolume, hOnOff; w = GUIWindow.new("panel", Rect.newBy(1, 58, 1012, 704)).backColor_(rgb(0,1,99)); hOnOff = CheckBoxView.new( w, Rect.newBy(30, 200, 128, 20), "FX", 0, 0, 1, 0, 'linear').labelColor_(rgb(171,171,171)); Synth.record({ var x, i, j, k; i = 10; j = 2; k = 6; Pause.ar({ Spawn.ar({ var s, z, y, x; // sine percolation sound : s = Mix.ar(Array.fill(i, { Resonz.ar(Array.fill(j, {FSinOsc.ar(200.rand)} ), 100 + 400.rand, 0.0001)} )); // reverb predelay time : z = DelayN.ar(s, 10.0); // 7 length modulated comb delays in parallel : y = Mix.ar(CombL.ar(z, 5.0, LFNoise1.ar(Array.fill(k, 0.3.rand), 0.0038, 0.0002), 30)); // chain of 4 allpass delays on each of two channels (8 total) : x = AllpassN.ar(y, 0.00050, [0.001, 0.001]); // add original sound to reverb and play it : x = 2.5*y+3.0*x; }, 2, 3600)}, hOnOff.kr(50))}, 3600, "tesetes", 'AIFF'); w.close; ) ------------------------------ Date: Sun, 30 Jul 2000 23:46:55 +0200 From: Jesper El=?ISO-8859-1?B?6Q==?=n <---@---.---> Subject: Re: FileType Thanks for the tip Gary, but I can do it in several apps but need it from SC; Could easily be a method there somewhere. like File.creator_('ttxt') Maybe I am supposed to record midimessages into Logic or sim. and then let Logi take care of the midifile saving? Jesper > Try FileTyper, a shareware program. It lets you create drag-and-drop > "autotypers" that you can leave on your desktop and drag files you want to > retype onto them. > > Unfortunately, I don't know a URL for it, but you pay for it through Kagi, so > perhaps they have a website that'll list it. > > Jesper Elén wrote: > >> Can I set the Macintosh fileType and creator??? >> Working on midifiles! > > - -- Jesper Elén Österväg 24 621 45 Visby Sweden phones: privat: +46-498-271565 VITC: +46-498-249900 Tonis: +46-498-284836 or +46-498-284810 also fax. email: j.elen@telia.com ------------------------------ Date: Sun, 30 Jul 2000 22:26:04 -0500 From: Gary Morrison <---@---.---> Subject: Re: FileType Ah. From SC itself. Roger. Jesper Elén wrote: > Thanks for the tip Gary, > but I can do it in several apps but need it from SC; > Could easily be a method there somewhere. like File.creator_('ttxt') > Maybe I am supposed to record midimessages into Logic or sim. > and then let Logi take care of the midifile saving? > Jesper > > > Try FileTyper, a shareware program. It lets you create drag-and-drop > > "autotypers" that you can leave on your desktop and drag files you want to > > retype onto them. > > > > Unfortunately, I don't know a URL for it, but you pay for it through Kagi, so > > perhaps they have a website that'll list it. > > > > Jesper Elén wrote: > > > >> Can I set the Macintosh fileType and creator??? > >> Working on midifiles! > > > > > > -- > Jesper Elén > Österväg 24 > 621 45 Visby > Sweden > > phones: > > privat: +46-498-271565 > VITC: +46-498-249900 > Tonis: +46-498-284836 or > +46-498-284810 also fax. > > email: j.elen@telia.com ------------------------------ Date: Mon, 31 Jul 2000 12:36:55 -0500 From: James McCartney <---@---.---> Subject: Re: _EndSoundFileRecord on 7/27/00 5:49 PM, Klaus Kessner at kkessner@netcologne.de wrote: > any ideas why the following code results in: > > • ERROR: _EndSoundFileRecord timed out waiting for async io to end. > ERROR: Primitive '_EndSoundFileRecord' failed. > > (var f1, f2, f; > f1 = SoundFile.new; > f2 = SoundFile.new; > f1.readHeader("a:aiff:sine440"); > f2.readHeader("a:aiff:saw440"); > Synth.record({ > XFadeTexture.ar( > { > f = [f1, f2].choose; > f.path.postln; > DiskIn.ar(f) * 0.2; > }, 0.4, 0.2); }, 5, "a:aiff:x1"); > ) > > while the same code with write (instead of record) runs o.k. > You are starting a new DiskIn process every 0.6 seconds and never stopping any of them. At some point you will run out of CPU or disk bandwidth and eventually crash. Also, you should preload the sound if you want it to start on time. - --- james mccartney james@audiosynth.com SuperCollider - a real time synthesis programming language for the PowerMac. ------------------------------ End of sc-users-digest V1 #151 ******************************