electro-music.com   Dedicated to experimental electro-acoustic
and electronic music
 
    Front Page  |  Articles  |  Radio
 |  Media  |  Forum  |  Wiki  |  Links  |  Store
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 
Live streaming at radio.electro-music.com

  host / artist show at your time
  Faux Pas Quartet and friends Music From Last Thursday
Please visit the chat
 Forum index » DIY Hardware and Software » Supercollider
Saving patch settings
Post new topic   Reply to topic Moderators: v-un-v
Page 1 of 1 [3 Posts]
View unread posts
View new posts in the last week
Mark the topic unread :: View previous topic :: View next topic
Author Message
someone



Joined: Apr 11, 2009
Posts: 9
Location: somewhere

PostPosted: Sun Jul 11, 2010 2:23 pm    Post subject: Saving patch settings
Subject description: Saving patch settings
Reply with quote  Mark this post and the followings unread

Is there an easy way to store GUI object and other parameter settings like a patch in other software synthesizers so that they may be recalled in the future?

Thanks.
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: Mon Jul 12, 2010 5:55 am    Post subject: Reply with quote  Mark this post and the followings unread

The thing with supercollider compared to other software synthesizers is that it doesn't force you to use one particular patch structure or format. That means there is no single, uniform file format for saving "patch data."

Typically a "patch" (I really dislike that word for supercollider -- I'll explain in a minute) consists of the program code to load information into the audio server, create GUI windows, controls etc. You can save this code in a text file (by convention with the extension .scd) and then load it any time using:

Code:
"/path/to/my-code.scd".loadPath;


Often, it's necessary to take some care to allow the server to "catch up" to the incoming requests. For instance, if you're loading a buffer from a sound file on disk, it takes some time to do that. If you issue the "load" message and then immediately following with a message to play the buffer, you won't hear anything because the buffer isn't ready. I think it's the Server help file which explains how to use .sync to avoid this kind of problem.

Also look in the examples/ folder. There are some complete pieces in there that might make it clearer. There is a hack-up of an old Kraftwerk track in there. You might also check out analog-drum-tuner.scd, which rebuilds its GUI fresh every time it's run.

--

Why don't I like to call it a "patch"? Basically, because it's not a patch. It's a program. You write instructions to make the sounds and generate the sonic events (which may or may not be notes) that you want. "Patch" is kind of limiting, I think, tying you to the commercial, closed-architecture softsynth model. Supercollider is kind of the opposite of that!

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
dewdrop_world



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

PostPosted: Mon Jul 12, 2010 11:08 pm    Post subject: Reply with quote  Mark this post and the followings unread

dewdrop_world wrote:
Also look in the examples/ folder. There are some complete pieces in there that might make it clearer. There is a hack-up of an old Kraftwerk track in there.


http://supercollider.svn.sourceforge.net/viewvc/supercollider/trunk/common/build/examples/pieces/spacelab.scd

Quote:
You might also check out analog-drum-tuner.scd, which rebuilds its GUI fresh every time it's run.


http://supercollider.svn.sourceforge.net/viewvc/supercollider/trunk/common/build/examples/GUI%20examples/analog-drum-tuner.scd

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
Display posts from previous:   
Post new topic   Reply to topic Moderators: v-un-v
Page 1 of 1 [3 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
AmbiphonicDSP

Please support our site. If you click through and buy from
our affiliate partners, we earn a small commission.


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