electro-music.com   Dedicated to experimental electro-acoustic
and electronic music
 
    Front Page  |  Articles  |  Radio
 |  Media  |  Forum  |  Links  |  Store
Forum with support of Syndicator RSS
 FAQFAQ   CalendarCalendar   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   LinksLinks GalleryGallery 
 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 » ChucK programming language
Understanding Delays
Post new topic   Reply to topic Moderators: Kassen
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
Inventor



Joined: Oct 13, 2007
Posts: 1153
Location: Florida, USA
Audio files: 50

PostPosted: Wed Mar 19, 2008 10:23 am    Post subject: Understanding Delays
Subject description: How do I set their slider ranges?
Reply with quote  Mark this post and the followings unread

I'm working on Synth Lab and have added delays. I just put in slider limits of 0 to 10 ms and set both the .delay() and the .max() to that value, multiplied by ms. I get errors as I move the slider:

Code:
[chuck](via STK): DelayA: setDelay(0) less than 0.5 not possible!
[chuck](via STK): Delay: setDelay(2) too big!
[chuck](via STK): DelayA: setDelay(2.37097) too big!
[chuck](via STK): DelayL: setDelay(2.37097) too big!
[chuck](via STK): Delay: setDelay(7) too big!
[chuck](via STK): DelayA: setDelay(7.1129) too big!
[chuck](via STK): DelayL: setDelay(7.1129) too big!


The ugen reference page is a little unclear to me, or is that just my foggy mind? Does anyone know how to set .delay() and .max() properly?
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Frostburn



Joined: Dec 12, 2007
Posts: 211
Location: Finland
Audio files: 7

PostPosted: Wed Mar 19, 2008 10:52 am    Post subject: Reply with quote  Mark this post and the followings unread

I've noticed that you're supposed to only set .max once.
I don't know how much delay you need but try
Code:
//Delay initialiser code
second => d.max;

//Stuff happens (probably magic)

//Sliding:
slide.last() => d.delay;


Remember that DelayA sounds best if you're doing lot's of feedback but it doesn't like quick changes in the delay.

_________________
To boldly go where no man has bothered to go before.
Back to top
View user's profile Send private message
Inventor



Joined: Oct 13, 2007
Posts: 1153
Location: Florida, USA
Audio files: 50

PostPosted: Wed Mar 19, 2008 11:26 am    Post subject: Reply with quote  Mark this post and the followings unread

Thanks for the quick reply, Frostburn. Now the delays seem to work right. I still get the minimum error though:

Code:
[chuck](via STK): DelayA: setDelay(0) less than 0.5 not possible!


But that's ok, it's working now.
Back to top
View user's profile Send private message Send e-mail Visit poster's website
kijjaz



Joined: Sep 20, 2004
Posts: 452
Location: bangkok, thailand
Audio files: 2

PostPosted: Wed Mar 19, 2008 3:31 pm    Post subject: Reply with quote  Mark this post and the followings unread

Oh.. that was delay time shorter than .5 sample? hmm..
i've seen that before..
Back to top
View user's profile Send private message Send e-mail Visit poster's website Yahoo Messenger MSN Messenger
Display posts from previous:   
Post new topic   Reply to topic Moderators: Kassen
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 » ChucK programming language
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
Once You Know, You Newegg

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, 2004, 2005, 2006 and 2007 by electro-music.com