From: owner-sc-users-digest@lists.io.com (sc-users-digest) To: sc-users-digest@lists.io.com Subject: sc-users-digest V1 #154 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 Wednesday, August 9 2000 Volume 01 : Number 154 ---------------------------------------------------------------------- Date: Sun, 06 Aug 2000 04:59:51 -0500 From: James McCartney <---@---.---> Subject: Re: simple plug problem ? You cannot create unit generators after a synth is running. A Synth is built once and runs from then on. YOu would need a TSpawn to create things in response to events. ------------------------------ Date: Sun, 06 Aug 2000 10:14:53 -0500 From: Gary Morrison <---@---.---> Subject: 2.2.9: Files Always Open as Modified I noticed something strange about 2.2.9: When I open any source file, it immediately shows up as modifed, even if I haven't modified it. Is it just me, or is it a (minor) bug? ------------------------------ Date: Sun, 6 Aug 2000 11:35:16 -0400 (EDT) From: Tecumseh Fitch <---@---.---> Subject: Sound record problem When I run this simple code, the file fails to write: Synth.record({ SinOsc.ar(900, 0, 0.1) }, 2, "sine900") I get this error: % ERROR: _EndSoundFileRecord timed out waiting for async io to end. ERROR: Primitive '_EndSoundFileRecord' failed. Why? * Wm. Tecumseh Fitch, Ph.D. ************************************************** * Lecturer, Dept. of Psychology, Harvard University, * Rm 982 Wm. James Hall, 33 Kirkland St. Cambridge MA 02138 * (617) 496-6575 (ofc), (617) 496-8355 (fax), tec@wjh.harvard.edu ************ ------------------------------ Date: Sun, 06 Aug 2000 10:51:37 -0500 From: James McCartney <---@---.---> Subject: Re: Sound record problem on 8/6/00 10:35 AM, Tecumseh Fitch at tec@wjh.harvard.edu wrote: > When I run this simple code, the file fails to write: > > Synth.record({ SinOsc.ar(900, 0, 0.1) }, 2, "sine900") > > I get this error: > > % ERROR: _EndSoundFileRecord timed out waiting for async io to end. > ERROR: > Primitive '_EndSoundFileRecord' failed. > > Why? This indicates that a call to a MacOS async file io toolbox function never called its completion function. I do not know what would cause this. Is your disk full? read only? - --- james mccartney james@audiosynth.com SuperCollider - a real time synthesis programming language for the PowerMac. ------------------------------ Date: Sun, 06 Aug 2000 10:54:03 -0500 From: James McCartney <---@---.---> Subject: Re: 2.2.9: Files Always Open as Modified on 8/6/00 10:14 AM, Gary Morrison at mr88cet@texas.net wrote: > I noticed something strange about 2.2.9: When I open any source file, it > immediately shows up as modifed, even if I haven't modified it. Is it just > me, > or is it a (minor) bug? This is explained in the release notes for version 2.2.8, second item : MacOS8 fixed all of the readability problems with the Monaco font, obviating the need for the "SuperCollider" font which caused problems of its own since it was a bitmap font. Therefore this version converts all text in SuperCollider font into Monaco upon opening a file. If this conversion occurs then the file will be marked dirty. The new file default font is now Monaco. All of the files distributed with SuperCollider have already been converted. - --- james mccartney james@audiosynth.com SuperCollider - a real time synthesis programming language for the PowerMac. ------------------------------ Date: Sun, 06 Aug 2000 11:03:34 -0500 From: James McCartney <---@---.---> Subject: Re: a naive (and niggling) OO question on 8/5/00 9:19 AM, Ron Kuivila at rkuivila@mail.wesleyan.edu wrote: > Hi James, > > When a piece of code is interpreted, are the variable declarations the > only constructs that are not examples of message passing? Variable declarations only figure in compiling, not execution. When executing, assigning values to and getting values from variables are not message sends. - --- james mccartney james@audiosynth.com SuperCollider - a real time synthesis programming language for the PowerMac. ------------------------------ Date: Sun, 6 Aug 2000 12:07:55 -0400 (EDT) From: Tecumseh Fitch <---@---.---> Subject: Re: Sound record problem On Sun, 6 Aug 2000, James McCartney wrote: > on 8/6/00 10:35 AM, Tecumseh Fitch at tec@wjh.harvard.edu wrote: > > > When I run this simple code, the file fails to write: > > I get this error: > > > > % ERROR: _EndSoundFileRecord timed out waiting for async io to end. > > This indicates that a call to a MacOS async file io toolbox function never > called its completion function. I do not know what would cause this. > Is your disk full? read only? No: 800 megs free on the only hard disk. Other programs write files without problems. No filename conflicts or antivirus software. Any suggestions for debugging? * Wm. Tecumseh Fitch, Ph.D. ************************************************** * Lecturer, Dept. of Psychology, Harvard University, * Rm 982 Wm. James Hall, 33 Kirkland St. Cambridge MA 02138 * (617) 496-6575 (ofc), (617) 496-8355 (fax), tec@wjh.harvard.edu ************ ------------------------------ Date: Sun, 6 Aug 2000 12:08:36 -0400 (EDT) From: Tecumseh Fitch <---@---.---> Subject: DiskIn clicks with AIFF When I use DiskIn to play AIFF files I get ugly clicks at the end of each file. This doesn't happen with SD2 files. It continues even if I preload the files, and add a trapezoidal envelope. To recreate problem just save floating_1 as an AIFF and use any DiskIn example file. Is there any way to avoid this (other than use SD2 files)? * Wm. Tecumseh Fitch, Ph.D. ************************************************** ------------------------------ Date: Sun, 06 Aug 2000 11:18:07 -0500 From: Gary Morrison <---@---.---> Subject: Re: 2.2.9: Files Always Open as Modified > > I noticed something strange about 2.2.9: When I open any source file, it > > immediately shows up as modifed, even if I haven't modified it. > This is explained in the release notes for version 2.2.8, second item : Ah, very good; I went straight from 2.2.7 to 2.2.9, so I didn't see that. Thanks. ------------------------------ Date: Sun, 06 Aug 2000 11:19:06 -0500 From: Gary Morrison <---@---.---> Subject: Re: 2.2.9: Files Always Open as Modified > > I noticed something strange about 2.2.9: When I open any source file, it > > immediately shows up as modifed, even if I haven't modified it. > This is explained in the release notes for version 2.2.8, second item : Ah, very good; I went straight from 2.2.7 to 2.2.9, so I didn't see that. So, in short if they open as modified, then save them and it won't happen again? ------------------------------ Date: Mon, 07 Aug 2000 21:00:45 -0700 From: M Stevens <---@---.---> Subject: play sample one time only? I've searched the documentation extensively, and I can't for the life of me figure out how to play back a sample in RAM without looping. The closest I can get is the following bit of code I based on an idea somebody sent me quite a while back that uses an envelope to get Playbuf to shut up after approximately the length of the sample; Synth.scope( { var e1, sample1, file1, dur1, pbk1; file1 = SoundFile.new; file1.read( ":Sounds:testfiles:percussive" ); pbk1 = 1; dur1 = file1.data.at(0).size-2 * file1.sampleRate.reciprocal * pbk1.reciprocal * 0.90; e1 = Env.linen( 0.01, 1, 0.05 ); sample1 = { EnvGen.ar( e1, PlayBuf.ar( file1.data, file1.sampleRate, pbk1, 0, 0, file1.data.at(0).size-2 ), 0, 1, 0, dur1 ) }; Spawn.ar( sample1, 1, 1 ); } ); The math isn't quite right, I get a click at the end without the "* 0.90." Is there any way to play through a sample in RAM just once without dealing with all the envelope/calculate duration stuff? - -- - ----------------------------- M_Stevens; M@solipsist.org; - ----------------------------- ------------------------------ Date: Tue, 08 Aug 2000 03:40:32 -0500 From: James McCartney <---@---.---> Subject: Re: play sample one time only? on 8/7/00 11:00 PM, M Stevens at m@solipsist.org wrote: > I've searched the documentation extensively, and I can't for the life > of me figure out how to play back a sample in RAM without looping. > The closest I can get is the following bit of code I based on an idea > somebody sent me quite a while back that uses an envelope to get > Playbuf to shut up after approximately the length of the sample; > > Synth.scope( { > var e1, sample1, file1, dur1, pbk1; > file1 = SoundFile.new; > file1.read( ":Sounds:testfiles:percussive" ); > pbk1 = 1; > dur1 = file1.data.at(0).size-2 * file1.sampleRate.reciprocal * > pbk1.reciprocal * 0.90; > e1 = Env.linen( 0.01, 1, 0.05 ); > sample1 = > { EnvGen.ar( e1, PlayBuf.ar( file1.data, file1.sampleRate, > pbk1, 0, 0, file1.data.at(0).size-2 ), 0, 1, 0, dur1 ) }; > Spawn.ar( sample1, 1, 1 ); > } ); > > The math isn't quite right, I get a click at the end without the "* > 0.90." Is there any way to play through a sample in RAM just once > without dealing with all the envelope/calculate duration stuff? Set the loop point to loop only the last sample. file1.data.at(0).size-1, file1.data.at(0).size-2 ) - --- james mccartney james@audiosynth.com SuperCollider - a real time synthesis programming language for the PowerMac. ------------------------------ Date: Wed, 09 Aug 2000 09:51:59 +0000 From: Jem Finer <---@---.---> Subject: synth question Hello, James thanks for your recent answers to questions I should already not need answering. Having regressed to semi moron here's another : In my search for a way of synchronising different events I thought I might be able to use synth.time and wrote the following as an experiment : ( var sync; sync = Instrument.new(\synco, {arg tempo = 120; Spawn.ar({ arg sp,i,synth; var t; sp.nextTime = t = (tempo.source/60).reciprocal; if((synth.time.round(0.001)%t) == 0, {PSinGrain.ar( 1000.0 + 1000.0.rand, 0.1,0.5 ); }) }, 1, t ) }); sync.play ) This runs but each time I start another of these the problem is that it syncs not to the sc main time running clock but the individual synth of each instrument. The question is - and I'm sure this is so elementary I'm a bit embarrassed to ask - how do I get synth.time from the top level as it were ? Thanks Jem ------------------------------ End of sc-users-digest V1 #154 ******************************