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
how does this place tolerate absolute beginner questions?
Post new topic   Reply to topic Moderators: v-un-v
Page 1 of 1 [2 Posts]
View unread posts
View new posts in the last week
Mark the topic unread :: View previous topic :: View next topic
Author Message
thesmallisbeautiful



Joined: Jun 26, 2008
Posts: 22
Location: NYC/LA

PostPosted: Sat Oct 04, 2008 7:27 am    Post subject: how does this place tolerate absolute beginner questions? Reply with quote  Mark this post and the followings unread

hi everyone, I'm a longtime modular synth user. I recently got into using the nord G2 and then into Reaktor, and was really impressed by how much more I was able to do with emulations and software versus analog hardware.

I decided to take the leap and get supercollider, I can already see theoretically many things that I will be able to do with this software that will prove very useful to me (stipulating exact frequencies for oscillators is a big one) but I am having such a hard time getting it to do what I want. I have been going through the help file tutorials and trying my best but often the various functions are talked about as separate things, and when it comes to combining them there is no help. I am a 100% first timer when it comes to writing code, I have never even done simple html stuff. I am comfortable with math and logic, so I assume that it's not beyond me.

My first simple question is this: why can I not figure out how to apply an envelope to a sound? I tried putting an Xline on the multiplier of a SinOsc, no go (although it works to put the same thing on the frequency number?) I looked up envelopes in the help file and there are examples of envelopes, but no help as how to apply them to other sounds.

Any help, or even a bit of consolation would be appreciated, this stuff is hard!
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: Sun Oct 05, 2008 9:03 am    Post subject: Reply with quote  Mark this post and the followings unread

Beginner questions are absolutely welcome, but I should say I don't see a lot of supercollider users on this board so it might take longer to get an answer here than it would elsewhere.

One thing that helps to get an answer more quickly is if you post the code. Without looking at the code, readers can only guess what the problem might be. Also a precise description of the symptom is helpful - "tried this, no go" is hard to diagnose because it doesn't say what actually happened. "Tried this and my speaker fried with horrible distortion" or "tried this and it was totally silent" are more descriptive. (My day job is in tech support, and if I had a nickel for every time a customer said "I got an error" without saying what the error is, I could retire today.)

If I had to take a guess, I would suppose that one of your endpoints to the XLine might have been 0. Since it's an exponential curve, neither endpoint can be zero and both have to have the same sign. If not, seems that XLine fails silently and returns 0 throughout.

Code:
(
a = { SinOsc.ar(440) * XLine.kr(0.4, 0, 1.0, doneAction: 2) ! 2 }.play;
{ a.trace }.defer(0.1);
)


TRACE 1001 temp__1438391162 #units: 8
unit 0 SinOsc
in 440 0
out -0.388461
unit 1 XLine
in 0.4 0 0.5 2
out 0

unit 2 BinaryOpUGen
in -0.388461 0
out 0
unit 3 Control
in
out 0.02 1
unit 4 Linen
in 1 0.02 1 0.02 2
out 1
unit 5 BinaryOpUGen
in 1 0
out 0
unit 6 BinaryOpUGen
in 1 0
out 0
unit 7 Out
in 0 0 0
out


Code:
(
a = { SinOsc.ar(440) * XLine.kr(0.4, 0.001, 1.0, doneAction: 2) ! 2 }.play;
{ a.trace }.defer(0.1);
)


TRACE 1004 temp__69314669 #units: 8
unit 0 SinOsc
in 440 0
out -0.0910677
unit 1 XLine
in 0.4 0.001 1 2
out 0.212017

unit 2 BinaryOpUGen
in -0.0910677 0.212017
out -0.0194765
unit 3 Control
in
out 0.02 1
unit 4 Linen
in 1 0.02 1 0.02 2
out 1
unit 5 BinaryOpUGen
in 1 -0.0194765
out -0.0194765
unit 6 BinaryOpUGen
in 1 -0.0194765
out -0.0194765
unit 7 Out
in 0 -0.0194765 -0.0194765
out


0.001 = -60dB, commonly considered a practical zero-point.

Feel free to ask other questions -- however, it seems like not many people other than myself answer questions on this board, and I'm going to be out of the country for a month starting later this week, not sure of Internet accessibility. So you might consider looking at one of the other supercollider community resources.

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 [2 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