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
  mosc Chez mosc - tonight, Twyndyllyngs live
Please visit the chat
 Forum index » DIY Hardware and Software » Supercollider
Installing a UGen
Post new topic   Reply to topic Moderators: v-un-v
Page 1 of 1 [6 Posts]
View unread posts
View new posts in the last week
Mark the topic unread :: View previous topic :: View next topic
Author Message
terminalwaltz



Joined: Jan 01, 2011
Posts: 2
Location: USA

PostPosted: Sat Jan 01, 2011 11:34 am    Post subject: Installing a UGen
Subject description: Nes2 emulator
Reply with quote  Mark this post and the followings unread

Hello! This is my first post with you all, and I would very much appreciate a hand!

I am still somewhat of a noob when it comes to dealing with SuperCollider, and my current headache involves installing new UGens. I am working with Ubuntu 9.04.

Specifically, I have been trying to get the Nes2 chip emulator installed. I dropped the Nes2 folder into SuperCollider's "Extensions" folder. It seems as though this worked, because when I inspect the UGen "Nes2" in SuperCollider it is able to pull up the UGens definition.

However, anytime I try to execute a patch, for example:

{Nes2.ar(Impulse.kr(3), a0:2r00010111, a2:2r10000000, smask:2r00000001)}.play

my error reads:

Synth("temp__0" : 1000)
exception in GraphDef_Recv: UGen 'Nes2' not installed.
*** ERROR: SynthDef temp__0 not found
FAILURE /s_new SynthDef not found


I suppose, then, my question is: How do I go about "installing" the Nes2 UGen? There are many of these chip emulators that I am interested in experimenting with, but I continue to run into this error.

I feel like there is a fundamental piece of information I am missing, or I simply am not asking the right question, but my Google searches on this topic have been fruit-less. Any help at all would be greatly appreciated.

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: Sat Jan 01, 2011 11:26 pm    Post subject: Reply with quote  Mark this post and the followings unread

Welcome! Hope you have lots of fun with SuperCollider.

A unit generator consists of two parts:

- The UGen class, which is installed into the language and used to build SynthDefs (which is what implicitly happens with { ... }.play);

- And the UGen binary, which is loaded into the server and performs the DSP operation.

You've installed the class but not the binary. So here's what happens (useful to understand the architecture!):

- The language executes the line and builds a network of UGens including Nes2. Since the class was installed, there's no issue here.

- The language sends a binary representation of the UGen network over to the server.

- The server sees the reference to Nes2, but it doesn't have that UGen. Hence the error "not installed."

Fredrik compiled it for OSX and Windows. In Linux, looks like you'll have to compile the binary yourself. Unfortunately there's no README or INSTALL document in the zip. I'm not sure what's required for building. Best idea would be to contact Fredrik directly using the _info page at http://www.fredrikolofsson.com/.

Or, join the mailing list (or use Nabble.com). I'm basically the only SC user answering questions here. Fredrik reads the list.

Come to think of it, why don't I pose the question on the list myself? Smile

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: Sat Jan 01, 2011 11:33 pm    Post subject: Reply with quote  Mark this post and the followings unread

dewdrop_world wrote:
Come to think of it, why don't I pose the question on the list myself? Smile


http://permalink.gmane.org/gmane.comp.audio.supercollider.user/67860

_________________
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
terminalwaltz



Joined: Jan 01, 2011
Posts: 2
Location: USA

PostPosted: Sun Jan 02, 2011 4:24 pm    Post subject: Reply with quote  Mark this post and the followings unread

James! Thank you so much for your willingness to lend a hand!

I have followed what was posted by Fredrik, but I regret to say it's a little over my head.

He posted terminal input, yes? g++ is installed, but I am still getting acclimated to the command line. For instance, is the folder "Lintian" simply Fredrik's user folder, or am I completely missing something?

Again, your help is greatly appreciated!
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 Jan 03, 2011 2:27 am    Post subject: Reply with quote  Mark this post and the followings unread

Yeah, I understand.

I have to admit, I'm under a fair amount of time pressure at the moment and I don't think I can take all the responsibility of walking you through the process. The actual building should be fairly easy as Fredrik posted on the list, but it may take a bit more time to get all of the things that will be necessary to build (SuperCollider source tree, developer package dependencies listed in the Linux README). None of it's especially difficult but it would be a bit more back-and-forth than I can safely commit to at this point.

I'd suggest, if you don't want to get all the SC mailing list messages, sign up for Nabble and (as the instructions say on the Nabble page) subscribe to sc-users-acl for the posting privilege. Lots of people there are highly knowledgeable about building and can help you through it.

Make sure you ask about checking out the 3.4 branch. By default (following the instructions on the SC developer page) you'll get the bleeding-edge developer sources, which raises some risk of build problems, features not working etc. as with any software's development head. Go for the stable 3.4 sources.

If you're learning SC, the users mailing list is extremely helpful so I think it's a good idea to sign up. Whether you use it by way of your inbox, Nabble or newsgroup mirror doesn't matter... but you'll probably need to use it sometime Smile

Good luck!
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: Sat Jan 08, 2011 7:23 am    Post subject: Reply with quote  Mark this post and the followings unread

BTW Fredrik posted some notes for linux compilation, one of the comments on the same thread linked above.
_________________
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 [6 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
mps board

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