Hi, I'm working on beginning an additive synth for a uni assignment and I'm fairly new to PD so I've ran into some problems.
I'm not sure why but my waveforms wont properly fit into the linked arrays (left half) and I can't send my waveforms to the other array on the right half.
Any help would be appreciated, greatly.
-
Array issues
-
Hmm, I'm not sure what you're expecting with the arrays on the left. If you add up harmonics at those coefficients, I would expect some values to be greater than 1 and less than -1, no? Also, is "normalise" a message arrays recognize? PD is complaining.
The problem with the array on the right is that you're asking tabread4~ to look at the values in your source table between 0 and 1 inclusive (that's the output of phasor~), but your source tables are 2051 samples long. So it's doing what you've asked: returning 4 point interpolations of the first two samples in the source table. Try multiplying the output of phasor~ by your source table length, although I think there's some issue with the beginning and/or end of a table when using 4 point interpolation.
-
@AaronMusicTec Spelling mistake....... should be "normalize"..... not "normalise".
And [phasor] outputs 0 to 1 (a ramp) but you are reading arrays with 2051 data points.
You need to read from 1 to 2049 as [tabread4~] interpolates (see its help file).
Actually the help file is a bit confusing as it talks of the array size minus 2.But the array you are reading starts at zero and ends at 2050 (look inside properties... and click "list view" to see the values.
Put a [*~ 2048] and then a [+~ 1] between the [phasor] and [tabread4~] as it should read from 1 to 2049.
(Remember that you set the array length to 2051 instead of 2048 to allow for the interpolation by adding 3 points....!)See the Pd "doc" folder.... examples B01 to B04.
A bit more explanation........ https://forum.pdpatchrepo.info/topic/11208/why-does-floss-manual-give-sinesum-a-value-of-2051arrgh.pd
David.