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 » ChucK programming language
General Oscillators: testing the Sync option and more issues
Post new topic   Reply to topic Moderators: Kassen
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
kijjaz



Joined: Sep 20, 2004
Posts: 765
Location: bangkok, thailand
Audio files: 4

PostPosted: Mon Jul 07, 2008 10:35 pm    Post subject: General Oscillators: testing the Sync option and more issues Reply with quote  Mark this post and the followings unread

I use this code:
Code:
Step a => SawOsc b => blackhole;
1 => b.sync; // sync b's phase with a
for(-2.0 => float i; i < 3; .1 +=> i)
{
    i => a.next;
    samp => now;
    <<< a.last(), b.last() >>>;
}

to test how each Osc sync with input.
here's the results:
(change b's oscillator type for each kind of oscillator)

Phasor:
http://www.electro-music.com/forum/gallery2.php?g2_itemId=6512

as you can see, phasor's job is actually linear.

SinOsc:
http://www.electro-music.com/forum/gallery2.php?g2_itemId=6516

SinOsc is the only one that sync and wrap around the input value.

TriOsc:
http://www.electro-music.com/forum/gallery2.php?g2_itemId=6520

TriOsc wrap around naturally in range [-0.5, 1.5]
but below or above that, the value sinks.

SawOsc:
http://www.electro-music.com/forum/gallery2.php?g2_itemId=6514

SawOsc also wraps around in range [-0.5, 1.5]
suddenly, the output stays at 0 when input is higher than 1.5

SqrOsc and PulseOsc:
http://www.electro-music.com/forum/gallery2.php?g2_itemId=6518

as we can expect, input lower than .5, output = 1, after that, output = -1
- - -

So what do you think about this?
Is there gonna be some change to this in the next versions?
Do you want them to all wrap around?
Or should not it wrap around by any reason?
- - -

I usually want to use these with wrap-around.
But if we have a Modulo UGen (compute modulo from signals),
we can make it wrap around for current chuck's oscillators.
(current chuck: 1.2.1.1)

Let's share more on this ^_^

Last edited by kijjaz on Tue Jul 08, 2008 2:40 am; edited 1 time in total
Back to top
View user's profile Send private message Send e-mail Visit poster's website Yahoo Messenger MSN Messenger
Frostburn



Joined: Dec 12, 2007
Posts: 255
Location: Finland
Audio files: 9

PostPosted: Tue Jul 08, 2008 1:13 am    Post subject: Reply with quote  Mark this post and the followings unread

I noticed this some time ago and I've informed Ge.
He said it'll be fixed in the next release. Smile
I'm not sure if he only meant that he only fixed the negative frequency bug with FM...

Phasor should definately be a modulo 1 no matter what sync is used.

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



Joined: Sep 20, 2004
Posts: 765
Location: bangkok, thailand
Audio files: 4

PostPosted: Thu Jul 10, 2008 8:05 am    Post subject: Reply with quote  Mark this post and the followings unread

I think negetive frequency ( negative value => .freq ) also behave strangely.
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 [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 » 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


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