electro-music.com   Dedicated to experimental electro-acoustic
and electronic music
 
    Front Page  |  Radio
 |  Media  |  Forum  |  Wiki  |  Links
Forum with support of Syndicator RSS
 FAQFAQ   CalendarCalendar   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   LinksLinks
 RegisterRegister   ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in  Chat RoomChat Room 
 Forum index » DIY Hardware and Software » Supercollider
SynthDefs in servers
Post new topic   Reply to topic Moderators: v-un-v
Page 1 of 1 [4 Posts]
View unread posts
View new posts in the last week
Mark the topic unread :: View previous topic :: View next topic
Author Message
ianscott111



Joined: Jul 01, 2006
Posts: 4
Location: Gorham, ME

PostPosted: Thu Apr 26, 2007 12:47 am    Post subject: SynthDefs in servers Reply with quote  Mark this post and the followings unread

Hi,

I'm really new to SuperCollider 3, and have been going over the help files and tutorials over the past couple of days. One thing I noticed however is that the number next to SynthDefs (in the servers) seems to start at 69. Is there a way to reset that number to 0, since I noticed that every 'synth' that I define (not really sure if I'm actually making any sense) adds on to the number in the server. Thanks in advance for any help!
Back to top
View user's profile Send private message
dewdrop_world



Joined: Aug 28, 2006
Posts: 858
Location: Guangzhou, China
Audio files: 4

PostPosted: Thu Apr 26, 2007 7:25 pm    Post subject: Reply with quote  Mark this post and the followings unread

Many of the classes in the main library create synthdefs for later use -- the classes won't work without those synthdefs being created.

In short, no, there isn't a way to force the server to start with 0. Nor would you want it to... if it did, at some point you would try do to something that requires one of those startup synthdefs and magically, you would get a "SynthDef not found" error.

By default you can load 1024 synthdefs at one time. 69 is less than 7% of that... how many synthdefs do you expect to create? Smile I've never run out of defs in about 4 years of basically daily use.

If you do need more, do this before booting the server:

// you can also substitute Server.internal or Server.default
Server.local.options.maxSynthDefs = 2048; // double the number

hjh

_________________
ddw online: http://www.dewdrop-world.net
sc3 online: http://supercollider.sourceforge.net
Back to top
View user's profile Send private message Visit poster's website AIM Address
dewdrop_world



Joined: Aug 28, 2006
Posts: 858
Location: Guangzhou, China
Audio files: 4

PostPosted: Fri Apr 27, 2007 7:31 pm    Post subject: One more thing... Reply with quote  Mark this post and the followings unread

Something else I forgot to mention... if you're making noise by using Function:play -- { }.play -- then yes, it will make a new synthdef every time you do that. Generally that isn't a problem because that usage is meant for testing when you're developing a new sound (during testing, if you run out of synthdef space, you can always reboot the server).

The recommended way for production use is to name your synthdefs explicitly using SynthDef(\name, { }) and then, whenever you want it to sound, use Synth(\name, [args]) -- that is, send or load the synthdef to the server once but use it many times.

Also be aware that { }.play necessarily introduces timing jitter, so this is not a good way to do things in an actual composition.

Instr and Patch, used together, are another way to make reusable synthdefs -- they have more power, but also do more than SynthDef by itself.

Just ask if you have more questions.
James

_________________
ddw online: http://www.dewdrop-world.net
sc3 online: http://supercollider.sourceforge.net
Back to top
View user's profile Send private message Visit poster's website AIM Address
ianscott111



Joined: Jul 01, 2006
Posts: 4
Location: Gorham, ME

PostPosted: Tue May 01, 2007 4:43 pm    Post subject: Reply with quote  Mark this post and the followings unread

Thanks for the answers! I feel that SuperCollider could be very useful for me in the future once I learn it.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic Moderators: v-un-v
Page 1 of 1 [4 Posts]
View unread posts
View new posts in the last week
Mark the topic unread :: View previous topic :: View next topic
 Forum index » DIY Hardware and Software » Supercollider
Jump to:  

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Forum with support of Syndicator RSS
Powered by phpBB © 2001, 2005 phpBB Group
Copyright © 2003 through 2009 by electro-music.com - Conditions Of Use