| Yes I see them.
I think it is related either to the relationship between grain rate
and sr, and/or to the relationship between grain rate and the
fundamantal frequency inside each grain.
Could you try this score line
i1 0 4 441 1260
at sr=44100 and see of they are gone then?
Since you have overlapping grains the phase of the sound (inside) of
the previous grain is not necessarily aligned, unless you have an
integer ration between grain rate and grain pitch, this may cause some
distortion and pitch fluctuation.
Also, if your grain rate is not an integer subdivision of the sr, and
the grain generation does not take special caution, your grains will
not come at regular intervals. This is because normally a grain needs
to start at a sample boundary, either on this sample or the next
sample. If the grain rate is not an integer subdivision then some
grains will be slightly offset in time (up to one half a sample
displaced in time).
Partikkel (and I think syncgrain and siblings too(?)) does
interpolation of the grain start time to alleviate this problem, so
all grain rates are available with those grain generators.
Interpolation of grain start time is actually done by a slight offset
of the phase of the waveform inside each grain, but the practical
result is as if the grain started between sample boundaries. It is not
perfect, but a lot better than without this kind of interpolation.
best
Oeyvind
2013/9/12 luis jure :
>
> on 2013-09-12 at 22:19 Oeyvind Brandtsegg wrote:
>
>> There might be some inharmonic components generated depending on the
>> relationship between grain rate and the frequency of the waveform inside
>> each grain.
>
> should this happen, really? i can't say i fully understand the maths of
> the DSP involved, but i think the spectrum should be harmonic in all cases.
>
> i modified the previous orchestra a little bit to experiment with
> different relationships between fundamental and formant frequencies, and i
> think i discovered something interesting: at sr=48000 and 96000 the output
> is fairly clean in all cases, while at sr=44100 there are lots of
> sub-harmonics, that is harmonics of a fundamental = 1/4 of the grain rate.
> i attach the modified orchestra.
>
>
>
>
>
>
> Send bugs reports to the Sourceforge bug trackers
> csound6:
> https://sourceforge.net/p/csound/tickets/
> csound5:
> https://sourceforge.net/p/csound/bugs/
> Discussions of bugs and features can be posted here
> To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe csound"
>
>
--
Oeyvind Brandtsegg
Professor of Music Technology
NTNU
7491 Trondheim
Norway
Cell: +47 92 203 205
http://flyndresang.no/
http://www.partikkelaudio.com/
http://soundcloud.com/brandtsegg
http://soundcloud.com/t-emp
|