Welcome to %s forums

BrainModular Users Forum

Login Register

sinus frequency

I need help on a Patch
Post Reply
23fx23
Member
Posts: 2545
Contact:

Unread post by 23fx23 » 11 Mar 2015, 13:19

im currently trying to make a cuctom kick generator based on several parts.
the idea is to get two input curves: a pitch(or frequency) over time and an amplitude over time curve.

i made a bezier setup to get curved enveloppes that i convert to linear 'classic' array
where i store frequency input.(F) over time
i wanna scrub this array and get a wavform out.

so i first used a fonction like:


out:= sin (F*2*pi)

but i had strange 'phasing effects sometimes, i mean the sinus didn't keep 'continuity"

the lastest function improved a bit, but i still get issues ie if curve goes down then back up (see down result array in center)

actual function is:
out = sin((F*2*pi*1000) mod trunc(2*pi*1000)) / 1000 . where 1000 was used for the mod integer stuff.

im a bit stuck, maybe my base function is wrong, any ideas on how to get smooth and 'continuous sinus' out while having a frequency input curve?

Image

Who is online

Users browsing this forum: No registered users and 18 guests