generate a cycle only during middle 50% of phase?

Jun 28, 2013 at 12:00am

generate a cycle only during middle 50% of phase?

I want a cycle~ object to run from -1. to 1. only once, no repeat values. Typically with cycle there are repeat values because of the shape of the waveform. Any way to do this?

#254343
Jun 28, 2013 at 12:10am

If I get it right you want some sort of s-shaped waveform.

If this is the case, you can use a phasor~ to drive your cycle~’s right outlet, with a scale~ object (or some math) to convert phasor’s 0-1 ramp into 0.25-0.75.

You should be aware that the sudden drop from 1 to -1 in the resulting waveform might cause you trouble, such as aliasing or clicks depending on how you plan to use your oscillator…

hth
aa

#254344
Jun 28, 2013 at 12:12am

as per what aa says:

<code>

– Pasted Max Patch, click to expand. –

</code>

(but cycle~ outputs an even function so its phase is clipped 0.5-1)

#254345
Jun 28, 2013 at 12:15am

or using scale~

<code>

– Pasted Max Patch, click to expand. –

</code>

#254346
Jun 28, 2013 at 12:31am

aah yes, sure, 0.5-1… its a cosine… ;)

#254349
Jun 28, 2013 at 8:38am

Or, for a one-shot occurrence:
<code>

– Pasted Max Patch, click to expand. –

</code>

#254396

You must be logged in to reply to this topic.