Hi,
Thanks Heiga Zen.
Now BAP to AP conversion seems OK with XP+Cygwin.
However, I have a question
echo "Converting aperiodicity file $${ap} to band aperiodicity file bap/$${base}.bap"; \
$(X2X) +af $${ap} | $(BCP) +f -n 512 -L 64 -s 0 -e 63 -S 0 | $(AVERAGE) -l 64 > bap1; \
$(X2X) +af $${ap} | $(BCP) +f -n 512 -L 64 -s 64 -e 127 -S 0 | $(AVERAGE) -l 64 > bap2; \
$(X2X) +af $${ap} | $(BCP) +f -n 512 -L 128 -s 128 -e 255 -S 0 | $(AVERAGE) -l 128 > bap3; \
$(X2X) +af $${ap} | $(BCP) +f -n 512 -L 128 -s 256 -e 383 -S 0 | $(AVERAGE) -l 128 > bap4; \
$(X2X) +af $${ap} | $(BCP) +f -n 512 -L 129 -s 384 -e 512 -S 0 | $(AVERAGE) -l 129 > bap5; \
"-L 64" + "-L 64" + "-L 128" + "-L 128" + "-L 129" = 513
So I think that $(BCP) +f -n 512 should be $(BCP) +f -n 513
Did I misunderstand?
Regards,
SangJin Kim
On Thu, Sep 11, 2008 at 5:03 PM, Heiga ZEN (Byung Ha CHUN)
<zen@xxxxxxxxxxxxxxx> wrote:
Hi,
Heiga ZEN (Byung Ha CHUN) wrote (2008/09/11 8:57):
I checked it both on WinXP+Cygwin & Linux and found that it happened on Cygwin only. And I also found that "${INTERPOLATE} -p rather than "DFS -a 1 -1" caused this problem. Please apply the attached patch code to interpolation.c and report whether it solves your problem or not.
The bug in interpolate.c was the use of uninitialized variable. The following patch code also solves this problem.
--- interpolate.c Thu Sep 11 08:52:10 2008
+++ interpolate.c Thu Sep 11 08:48:08 2008
@@ -136,7 +134,6 @@
int i, period=PERIOD, start=START;
FILE *fp=stdin;
double *x;
- Boolean padinput;
+ Boolean padinput=PADINPUT;
if ((cmnd=strrchr(argv[0], '/'))==NULL)
cmnd = argv[0];
Regards,
Heiga ZEN (Byung Ha CHUN)
--
------------------------------------------------
Heiga ZEN (in Japanese pronunciation)
Byung Ha CHUN (in Korean pronunciation)
------------------------------------------------