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
  Antimon Antimon's Half Year Report
Please visit the chat
 Forum index » DIY Hardware and Software » Supercollider
New in SC
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
pd-gui



Joined: Jun 29, 2009
Posts: 1
Location: Brazil

PostPosted: Mon Jun 29, 2009 2:45 pm    Post subject: New in SC
Subject description: Multichannel classes
Reply with quote  Mark this post and the followings unread

Hi,

i'm a Brazilian composer and new in SC, and also use PD.

I'm very excited with SC, for reasons more cleaner code Very Happy

My question is:

In the Multichannel session i found classes as Pan2 and Pan4:

Pan2 : Panner {

*ar { arg in, pos = 0.0, level = 1.0;
^this.multiNew('audio', in, pos, level )
}
*kr { arg in, pos = 0.0, level = 1.0;
^this.multiNew('control', in, pos, level )
}
init { arg ... theInputs;
inputs = theInputs;
channels = [
OutputProxy(rate, this, 0),
OutputProxy(rate, this, 1)
];
^channels
}
}


Pan4 : Panner {

*ar { arg in, xpos = 0.0, ypos = 0.0, level = 1.0;
^this.multiNew('audio', in, xpos, ypos, level )
}
*kr { arg in, xpos = 0.0, ypos = 0.0, level = 1.0;
^this.multiNew('control', in, xpos, ypos, level )
}
init { arg ... theInputs;
inputs = theInputs;
channels = [ OutputProxy(rate,this, 0), OutputProxy(rate,this, 1),
OutputProxy(rate,this, 2), OutputProxy(rate,this, 3) ];
^channels
}
}

I would do something like Pan6 or Pan8.
could I insert the new class of in Pan.sc, modifying the "channels" variable depending on what I want, without a problem?
Or have I to follow another procedure? Question

Thanks
[]s
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: Tue Jun 30, 2009 4:35 am    Post subject: Reply with quote  Mark this post and the followings unread

From the help:

Quote:
PanAz azimuth panner

PanAz.ar(numChans, in, pos, level, width, orientation)

Multichannel equal power panner.

numChans - number of output channels
in - input signal
pos - pan position. Channels are evenly spaced over a cyclic period of 2.0 with 0.0 equal to the position directly in front, 2.0/numChans a clockwise shift 1/numChans of the way around the ring, 4.0/numChans equal to a shift of 2/numChans, etc. Thus all channels will be cyclically panned through if a sawtooth wave from -1 to +1 is used to modulate the pos. N.B. Front may or may not correspond to a speaker depending on the setting of the orientation arg, see below.
level - a control rate level input.
width - The width of the panning envelope. Nominally this is 2.0 which pans between pairs of adjacent speakers. Width values greater than two will spread the pan over greater numbers of speakers. Width values less than one will leave silent gaps between speakers.
orientation - Should be zero if the front is a vertex of the polygon. The first speaker will be directly in front. Should be 0.5 if the front bisects a side of the polygon. Then the first speaker will be the one left of center. Default is 0.5.


You wouldn't be able to add Pan6 or Pan8 just by copying/pasting the class file code. All UGens require plugins for the server, written in c++.

_________________
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: Tue Jun 30, 2009 4:39 pm    Post subject: Reply with quote  Mark this post and the followings unread

Should also have mentioned there are other options for spatialization too... Ambisonic support is native in the main library, plus some variants in the useful sc3-plugins packages.

http://sc3-plugins.sourceforge.net/ - esp JoshUGens for panning.

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
e-m mkii

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