From: owner-sc-users-digest@lists.io.com (sc-users-digest) To: sc-users-digest@lists.io.com Subject: sc-users-digest V1 #140 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, July 5 2000 Volume 01 : Number 140 ---------------------------------------------------------------------- Date: Tue, 04 Jul 2000 00:53:01 +0200 From: julian <---@---.---> Subject: Re: FloatArray Methods Hi Joel, > I often save stuff in Environments so everything is named, the order or contents > can > change from patch to patch and its easily editable / fixable with a text editor. thanks for the tip. hm, that sounds like a lot of possibilities. do you use IOStreams for that? I´d be happy if you could post some bits of code to make an easier start. ciao, julian ------------------------------ Date: Tue, 04 Jul 2000 01:03:15 +0200 From: julian <---@---.---> Subject: remote elevator music from this wednesday on, if all goes fine, we will have remote controlled elevator music in the *brand new elevator that the artschool swapped for that ugly old paternoster... the control will be probably simply for the scale in which the sound will be in . Tomorrow I´ll post the code in, and some info, so if you like to try out osc and supercollider, join in, be muzac. also if you like to stream some real audio, just contact us. Julian _______________ Institut für Telenautik http://telenautik.pop.de ------------------------------ Date: Tue, 04 Jul 2000 03:36:12 -0500 From: Gary Morrison <---@---.---> Subject: SC on 500MHz G4 Follow-Up Presumably I didn't get anybody particularly concerned, but just to make sure, I did get SC going on my new 500MHz G4. The most likely explanation is that it came a bad copy of the MacOS installed on its drive. A less-likely possibility is that the transfer of SuperCollider I made on Zip disk was corrupt without causing any disk errors. One smaller problem remains though: I have a USB microphone, which is good enough quality for some basic experimentation with vocoding. I find that I can successfully use it to record a sound with SimpleSound, after selecting it as the Sound Manager's audio input source, but when I turn around and try to use it as AudioIn.ar(1) or AudioIn.ar(2), neither produces any input to SuperCollider. Anybody encountered anything like that? Thanks for the ideas. ------------------------------ Date: Tue, 04 Jul 2000 19:01:12 +1000 From: Garth Paine <---@---.---> Subject: Re: Authorisation HI James - I just downloaded SC2.8.x and I can't boot it because it says the authorisation has run out - can you tell me why, or send a new code. Cheers Garth Paine see my new installation work Reeds, and hear some of the tracks off my CD at http://www.activatedspace.com.au ,.,.,.,.,.,.,.,.,.,.,.,.,.,.,.,.,.,.,. Activated Space . Composer, Sound Designer, Installation Artist .. Interactives Designer, Exhibition Consultant .... ph. 61 3 95720133 ...... garth@activatedspace.com.au .,.,.,.,.,.,.,.,.,.,.,.,.,.,.,.,.,.,.,.,.,.,.,. ------------------------------ Date: Tue, 04 Jul 2000 13:34:20 -0500 From: Gary Morrison <---@---.---> Subject: A Little Off-Topic: Sound I/O Devices Boot Up Random I've noticed, both on my G3 PowerBook ("Wallstreet" type), and in my new G4 desktop machine, that from boot-up to boot-up, the complement of sound-input devices, and sound-output devices a little less often, seems to be a somewhat random affair. My USB microphone on the G4 shows up in the list about half of the time, the built-in microphone on the PowerBook shows up about half the time. "Internal CD" shows up as a sound source on the G4 about 1/3 of the time. Also the option pop-up below the list of available devices shows some options and not others. Sometimes no sound input or output devices show up at all on the G4, and in the options pop-up shows what appears to be a short random character string (something like ";-"). Anybody seen anything like that before? MacOS 9.0.4, pretty much standard OS extensions on the G4, a few slightly exotic ones on the PowerBook. Thanks for the ideas! ------------------------------ Date: Tue, 04 Jul 2000 20:49:26 -0500 From: Gary Morrison <---@---.---> Subject: Re: Macintosh: Sound I/O Devices Boot Up Random I noticed one pattern to the apparent chaos that explains some, but not all, of the randomness I described below. I was operating under the apparently false impression that, kinda like a printer under the Chooser, the Sound Manager lets you pick a single current audio input and output, and the application that's currently in front gets those devices attention at the moment. It appears to work on a more sophisticated model, that of giving a particular audio I/O (or at least input) device to a give application. Once that device is given to one application, it disappears from the menus of devices available. Sometimes I would check the Sound control panel before I fire up SuperCollider, and sometimes I'd check it out after I fire up SuperCollider, not noticing that that affected which devices were available in the menu. So, I get much less, but not zero, apparent randomness if I make a point to check it right after booting up. Gary Morrison wrote: > I've noticed, both on my G3 PowerBook ("Wallstreet" type), and in my new G4 > desktop machine, that from boot-up to boot-up, the complement of sound-input > devices, and sound-output devices a little less often often, seems to be a > somewhat random affair. My USB microphone on the G4 shows up in the list about > half of the time, the built-in microphone on the PowerBook shows up about half > the time. "Internal CD" shows up as a sound source on the G4 about 1/3 of the > time. > > Also the option pop-up below the list of available devices shows some options > and not others. Sometimes no sound input or output devices show up at all on > the G4, and in the options pop-up shows what appears to be a short random > character string - something like ";-". > > Anybody seen anything like that before? MacOS 9.0.4, mostly pretty standard OS > extensions. > > Thanks for the ideas! ------------------------------ Date: Wed, 5 Jul 2000 07:25:49 +0200 From: <---@---.---> (joel ryan) Subject: Digigram VX Pocket Im considering the Digigram card for a (bronze) powerbook g3 Im using both SuperCollider sc1 and sc2. two questions re SC compatability: 1 does the VX pocket ASIO provide sound in and out simultaneously? ie analog-in and digital-out for live DSP work (all I ever do) 2 Does it also work with the sound manager (again both in and out)? ie so can I use it with SuperCollider 1 I have an older well developed instrument I havent converted. Joel Ryan /////////////////////// Joel Ryan STEIM :: Ballett Frankfurt :: Institute of Sonology Achtergracht 19, 1017WL Amsterdam +31 (20) 624-3886 +31 (20) 626-4262 fax http://www.frankfurt-ballett.de/joel.html http://www.steim.nl /////////////////////////////////////////// ------------------------------ Date: Wed, 05 Jul 2000 09:44:43 +0200 From: Christian =?iso-8859-1?Q?M=FChlethaler?= <---@---.---> Subject: classvar Hello! if I want to initialize my classvar "mitmachListe" I get an error. I tryed several variations, always the same error. How should I do this? SoundObjekt{ classvar anzObj = 0; classvar <>mitmachListe ; mitmachListe_(List.new); ... ... christian ------------------------------ Date: Wed, 05 Jul 2000 02:56:46 -0500 From: James McCartney <---@---.---> Subject: Re: classvar on 7/5/00 2:44 AM, Christian Mühlethaler at chmuehlethaler@freesurf.ch wrote: > Hello! > > if I want to initialize my classvar "mitmachListe" I get an error. > I tryed several variations, always the same error. > How should I do this? > > > SoundObjekt{ > classvar anzObj = 0; > classvar <>mitmachListe ; > mitmachListe_(List.new); This is not legal syntax. A class definition can only contain variable method definitions. Your statement is neither. You have to initialize any class variables in Main::startup. - --- james mccartney james@audiosynth.com SuperCollider - a real time synthesis programming language for the PowerMac. ------------------------------ Date: Mon, 5 Jun 2000 15:15:47 +0100 From: rkuivila@mail.wesleyan.edu (Ron Kuivila) Subject: Ppatmod (again) Hi James, about: Ppatmod( pattern, func, repeats); The function (func) is not evaluated with the Event being constructed as currentEnvironment, so it cannot access the ~ goodies. Is there any easy way to do this? RJK ------------------------------ Date: Wed, 05 Jul 2000 08:27:44 -0500 From: James McCartney <---@---.---> Subject: Re: Ppatmod (again) on 6/5/00 9:15 AM, Ron Kuivila at rkuivila@mail.wesleyan.edu wrote: > Hi James, > > about: Ppatmod( pattern, func, repeats); > > The function (func) is not evaluated with the Event being constructed as > currentEnvironment, so it cannot access the ~ goodies. > > Is there any easy way to do this? > > RJK > > inevent.at(\something) However you must be careful, because during construction of an event things like \freq may be functions not values because they are not evaluated until the \finish function is called. - --- james mccartney james@audiosynth.com SuperCollider - a real time synthesis programming language for the PowerMac. ------------------------------ Date: Wed, 05 Jul 2000 08:40:30 -0500 From: James McCartney <---@---.---> Subject: Re: Ppatmod (again) on 6/5/00 9:15 AM, Ron Kuivila at rkuivila@mail.wesleyan.edu wrote: > Hi James, > > about: Ppatmod( pattern, func, repeats); > > The function (func) is not evaluated with the Event being constructed as > currentEnvironment, so it cannot access the ~ goodies. > > Is there any easy way to do this? > > RJK > > Oh I see, yes the function is not called with the event as an argument either. What are you trying to do with the argument? Perhaps you want to write your own pattern class. Or you could change Ppatmod as follows to pass in the argument. Since most uses do not look at the event, it is inefficient to set it as the current environment every time. Interested parties can just do inevent.at(\name). Ppatmod : Pattern { var <>pattern, <>func, <>repeats=1; *new { arg pattern, func, repeats; ^super.new.pattern_(pattern).func_(func).repeats_(repeats) } asStream { ^Routine.new({ arg inval; var localPat; localPat = pattern.value.copy; repeats.do({ arg i; inval = localPat.embedInStream(inval); // added inval to args: localPat = func.value(localPat, i, inval); }); }) } } - --- james mccartney james@audiosynth.com SuperCollider - a real time synthesis programming language for the PowerMac. ------------------------------ Date: Mon, 5 Jun 2000 17:38:31 +0100 From: rkuivila@mail.wesleyan.edu (Ron Kuivila) Subject: Re: Ppatmod (again) Thanks! I have a version of my Preset class that binds controls to environment variables based on the name of the control. So, I was trying to get parameters to the function through that mechanism. Does this seem like a reasonable way to go? RJK >on 6/5/00 9:15 AM, Ron Kuivila at rkuivila@mail.wesleyan.edu wrote: > >> Hi James, >> >> about: Ppatmod( pattern, func, repeats); >> >> The function (func) is not evaluated with the Event being constructed as >> currentEnvironment, so it cannot access the ~ goodies. >> >> Is there any easy way to do this? >> >> RJK >> >> > >Oh I see, yes the function is not called with the event as an argument >either. What are you trying to do with the argument? >Perhaps you want to write your own pattern class. >Or you could change Ppatmod as follows to pass in the argument. >Since most uses do not look at the event, it is inefficient to set it as the >current environment every time. Interested parties can just do >inevent.at(\name). > >Ppatmod : Pattern { > var <>pattern, <>func, <>repeats=1; > *new { arg pattern, func, repeats; > ^super.new.pattern_(pattern).func_(func).repeats_(repeats) > } > asStream { > ^Routine.new({ arg inval; > var localPat; > localPat = pattern.value.copy; > repeats.do({ arg i; > inval = localPat.embedInStream(inval); > // added inval to args: > localPat = func.value(localPat, i, inval); > > }); > }) > } >} > > > > >--- james mccartney james@audiosynth.com >SuperCollider - a real time synthesis programming language for the PowerMac. > ------------------------------ Date: Wed, 05 Jul 2000 16:00:09 -0500 From: Gary Morrison <---@---.---> Subject: Mic for G4 Mac In a month or so, I'll pick up a real audio and MIDI interface for my new G4 beast. I need a little bit of time to research which such audio interface board is best for me. In the meantime, I'll continue learning SuperCollider, including experimenting with some vocoding-derived ideas. Previously, I'd used the microphone built into my G3 PowerBook, but the desktop machines don't have one built in, so I'm looking for a microphone that will work with SuperCollider. I've tried two: The first is the microphone that came with my copy of IBM's ViaVoice. That one works, but is unusably quiet. The other microphone I picked up hooks into USB, but it apparently isn't capable of 44KHz data rates. That appears to be why SuperCollider gets nothing from it even though SimpleSound does. I would of course just plug in plain ol' microphone, but the Mac uses a non-standard 1/8" pin jack for its microphone input, presumably for keying relative to the headphone jack, which is standard. Do any of you know of a low-cost microphone that can go into the microphone input of a Mac, and produce enough volume for use with SuperCollider, or a USB microphone that will for sure work with SuperCollider? ------------------------------ Date: Wed, 5 Jul 2000 22:48:18 +0000 From: citadel <---@---.---> Subject: Re: Mic for G4 Mac Hi Gary >microphone I picked up hooks into USB, but it apparently isn't capable of >44KHz data rates. That appears to be why SuperCollider gets nothing from >it even though SimpleSound does. The 'data rate' probably has nothing to do with it. Mics are analogue devices..and Macs work up to 44.1KHz. There has to be another reason why you've had no luck using it with SC. Can SC even see a signal originating in USB? >I would of course just plug in plain ol' microphone, but the Mac uses a >non-standard 1/8" pin jack for its microphone input, presumably for keying >relative to the headphone jack, which is standard. In actual fact, the tip on the extended 1/8 inch mic plug that come with Apple Plain Talk microphones carries 5 volts to the tiny amplifier circuit contained within. This is why the IBM's level is so low...no amp! In effect, you're at line level. There's no Mic input on a Mac..there never was. Don't believe what's printed on the case. :-) >Do any of you know of a low-cost microphone that can go into the microphone >input of a Mac, and produce enough volume for use with SuperCollider, or a >USB microphone that will for sure work with SuperCollider? You need a mini mixer/mic amp device. Radio Shack has a nice (and cheap) selection. Btw, any half way decent dynamic or condensor mic will do. Best, Michael Anthony ------------------------------ Date: Thu, 06 Jul 2000 00:45:31 +0100 From: Paul Modler <---@---.---> Subject: copy Buffer >> James, >> >> What do you recommend to copy a part of a buffer (recorded with >> RecordBuffer) into a new created buffer while playing ? >> >> I tried recordBuffer.copyRange, which works but breaks the audio out >> stream (cracks) >> >> Is TapN a good way of doing it, or is there an easier, better way ? >> (Might be some discussion I missed ) >> >> cheers, >> Paul > >Please post your questions to the mailing list. > >copyRange is not really a real time operation because the amount of CPU used >depends on the length of the buffer. > >You could try copying very short segments and using sched to sequence the >copies over time so that too much CPU is not used at one time. Ok, Meanwhile I tried something like DelayWr.ar(targetBuffer,TapN(sourceBuffer,0.0)) in a TSpawn, which gave even more Cpu load . Should something like this work ? - -- Paul Modler University of York Music Department Heslington, York, YO10 5DD, UK Tel: 0044-1904-43-2435 Fax: 0044-1904-43-2450 plpm1@york.ac.uk ------------------------------ End of sc-users-digest V1 #140 ******************************