| Author |
Message |
kijjaz

Joined: Sep 20, 2004 Posts: 765 Location: bangkok, thailand
Audio files: 4
|
Posted: Mon Jul 07, 2008 10:35 pm Post subject:
General Oscillators: testing the Sync option and more issues |
 |
|
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
|
|
 |
Frostburn

Joined: Dec 12, 2007 Posts: 255 Location: Finland
Audio files: 9
|
Posted: Tue Jul 08, 2008 1:13 am Post subject:
|
 |
|
I noticed this some time ago and I've informed Ge.
He said it'll be fixed in the next release.
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
|
|
 |
kijjaz

Joined: Sep 20, 2004 Posts: 765 Location: bangkok, thailand
Audio files: 4
|
Posted: Thu Jul 10, 2008 8:05 am Post subject:
|
 |
|
| I think negetive frequency ( negative value => .freq ) also behave strangely. |
|
|
Back to top
|
|
 |
|