| Hi,
I have an example where this segfaults:
kSpread[] = kArrF-kcentroid
but this does not:
kSpread[] = kArrF+kcentroid
and even this works ok
kSpread[] = kArrF+(kcentroid*-1)
Tested wiith the recent 6.08 release on Windows,
also tested with my own compiled version of Oct 4 (behaves the same)
full csd below
Oeyvind
0dbfs = 1
gifftsize = 1024
giSine ftgen 0, 0, 65536, 10, 1
giFftTabSize = (gifftsize / 2)+1
gifna ftgen 1 ,0, giFftTabSize, 7, 0, giFftTabSize, 0
gifnf ftgen 2 ,0, giFftTabSize, 7, 0, giFftTabSize, 0
instr 1
a1 rnd31 1, 1
kArrA[] init giFftTabSize
kArrF[] init giFftTabSize
fsin pvsanal a1, gifftsize, gifftsize/2, gifftsize, 1
kflag pvsftw fsin,gifna,gifnf
if (kflag > 0) then
copyf2array kArrA, gifna
copyf2array kArrF, gifnf
kcentroid pvscent fsin
;kSpread[] = kArrF-kcentroid ; segfaults
;kSpread[] = kArrF+kcentroid ; ok
kSpread[] = kArrF+(kcentroid*-1) ; ok
endif
out a1
endin
i1 0 .1
e
--
Oeyvind Brandtsegg
Professor of Music Technology
NTNU
7491 Trondheim
Norway
Cell: +47 92 203 205
http://www.partikkelaudio.com/
http://crossadaptive.hf.ntnu.no
http://gdsp.hf.ntnu.no/
http://soundcloud.com/brandtsegg
http://flyndresang.no/ |