Re: [PD] get sinusoid from a sine and a cosine oscillator

2014-01-30 Thread Charles Z Henry
On Thu, Jan 30, 2014 at 10:58 AM, Alexandros Drymonitis wrote: > > On Thu, Jan 30, 2014 at 6:36 PM, Charles Z Henry wrote: > >> If you want to use a contribution from both of your axes, you can just >> sum them together. (x+y)*sqrt(2)/2 is just a projection along the line >> x-y=0 >> > Let me cor

Re: [PD] get sinusoid from a sine and a cosine oscillator

2014-01-30 Thread Alexandros Drymonitis
On Thu, Jan 30, 2014 at 6:36 PM, Charles Z Henry wrote: > That's the point I was making. By (x,y)->x I mean that you'd just use > the x (cosine table) for example. The easiest projection is to throw away > axes :) > > If you're making shapes as repeated paths in 2-D, then taking a projection >

Re: [PD] get sinusoid from a sine and a cosine oscillator

2014-01-30 Thread Charles Z Henry
That's the point I was making. By (x,y)->x I mean that you'd just use the x (cosine table) for example. The easiest projection is to throw away axes :) If you're making shapes as repeated paths in 2-D, then taking a projection (along an axis x y or any rotation of x,y) will generate a signal t

Re: [PD] get sinusoid from a sine and a cosine oscillator

2014-01-30 Thread Alexandros Drymonitis
In the case of the circle I could just use one of the tables, since one has the cosine and the other the sine, and output that as an oscillator, but if I want to combine functions to create shapes, e.g. one function for the x axis and another for y, how can I combine these two dimensions in one? I

Re: [PD] get sinusoid from a sine and a cosine oscillator

2014-01-30 Thread Charles Z Henry
You don't want fft~/ rifft~ for that. It's a mapping between large structures on blocks and single-samples (and vice-versa). To get a single sinusoid from a path-defined circle, you just project onto a single dimension. For example, (x,y)->x or (x,y)->y or (x,y)-> (sqrt(3)/2*x+1/2*y). In the

Re: [PD] get sinusoid from a sine and a cosine oscillator

2014-01-29 Thread Alexandros Drymonitis
Yeah, well I'm trying to create shapes in Gem (say a circle) and create the sound they make. So, to make a circle, I'm making a ramp from 0 to 1, multiply it by 2pi and send it to [cos] and [sin] and store these values in two tables, which I then read for every instance of a [circle] (using [repeat

Re: [PD] get sinusoid from a sine and a cosine oscillator

2014-01-29 Thread Charles Z Henry
What you seem to be doing is creating a spectrum which has magnitude 1 everywhere, and the phase is varying at a constant rate vs frequency. That means it has a constant group delay. So... my guess is that you'd get an impulse in each block, whose timing depends on the rate of the phasor. When y

[PD] get sinusoid from a sine and a cosine oscillator

2014-01-29 Thread Alexandros Drymonitis
Say I have a full sine and a full cosine cycle stored in two tables. I'm trying the following to get a sinusoid from [rifft~] but it doesn't work. [phasor~] | [*~ sizeOfTable - 3] | [+~ 1] |\ | \ | [tabread4~ sine] | \ [tabread4~ cosine] | \ [rifft~] | |[tabreceive~ hann] || [*~ ]