History

some fixes I've had lying around for literally years; may as well commit them I suppose

robs committed 19 years ago

Commit ca17c961 parent 39de1445 files · +12 −10Browse files

Unified · Split

5 files
  1. test/Makefile +3 −2
  2. test/ltest.pl +2 −1
  3. test/model.c +3 −3
  4. test/plotA +2 −2
  5. test/responseAB +2 −2
test/Makefile+3−2
@@ -10,7 +10,7 @@ LIBS:=-lm · 9 unmodified lines
1010 all: ding model lding lmodel corr
1111
1212 corr: corr.c
13− $(CC) $(CFLAGS) $(LDFLAGS) -o $@ $<
13+ $(CC) $(CFLAGS) $(LDFLAGS) -o $@ $< $(LIBS)
1414
1515 ding: ding.c
1616 $(CC) $(CFLAGS) $(LDFLAGS) -o $@ $< $(LIBS)
@@ -25,5 +25,6 @@ lmodel: model.c · 8 unmodified lines
2525 $(CC) $(CFLAGS) -DLSAMPL $(LDFLAGS) -o $@ $< $(LIBS)
2626
2727 clean:
28− rm -f ding lding model lmodel corr *~
28+ rm -f ding lding model lmodel corr *~ A B
29+ rm -rf d
2930
test/ltest.pl+2−1
@@ -22,7 +22,7 @@ use strict; · 21 unmodified lines
2222 $|=1;
2323
2424 # set default values
25−my $sox='../sox';
25+my $sox='../src/sox';
2626 my $effect='resample';
2727 #my $effect='resample -qs';
2828 #my $effect='resample -q';
@@ -31,6 +31,7 @@ my $effect='resample'; · 2 unmodified lines
3131 #my $effect='filter 400-2000';
3232 #my $effect='filter 400-2000 1024';
3333
34+#my ($rate0,$rate1)=(44100,44100); # sample rates
3435 my ($rate0,$rate1)=(8000,22050); # sample rates
3536 my $p=400; # silence before/after tonepulse
3637 my $env="4000:16000:4000"; # attack, duration, drop
test/model.c+3−3
@@ -131,7 +131,7 @@ bigcalc(double Factor, double Freq1, const SAMPL *ibuff, int len) · 130 unmodified lines
131131 double s2=0, v2=0;
132132 const SAMPL *ip;
133133
134− static inline void a_init(double frq)
134+ inline void a_init(double frq)
135135 {
136136 x = 1;
137137 y = 0;
@@ -139,7 +139,7 @@ bigcalc(double Factor, double Freq1, const SAMPL *ibuff, int len) · 1 unmodified line
139139 thy = sin(frq*M_PI);
140140 }
141141
142− static inline const double a(double k, double L)
142+ inline double a(double k, double L)
143143 {
144144 double a, l, u;
145145 l = L/2.0;
@@ -148,7 +148,7 @@ bigcalc(double Factor, double Freq1, const SAMPL *ibuff, int len) · 2 unmodified lines
148148 return a;
149149 }
150150
151− static inline void a_post(int k)
151+ inline void a_post(int k)
152152 {
153153 double x1;
154154 x1 = x*thx - y*thy;
test/plotA+2−2
@@ -6,8 +6,8 @@ set mytics 2 · 5 unmodified lines
66 set grid xtics ytics
77 set grid mxtics mytics
88 show grid
9−plot [0:4000] 'A' using (4000*$1):2 title "response" with lines,\
10− 'A' using (4000*$1):3 title "error" with lines
9+plot [0:22050] 'A' using (22050*$1):2 title "response" with lines,\
10+ 'A' using (22050*$1):3 title "error" with lines
1111 pause -1 "Hit return to continue"
1212 quit
1313
test/responseAB+2−2
@@ -6,8 +6,8 @@ set mytics 2 · 5 unmodified lines
66 set grid xtics ytics
77 set grid mxtics mytics
88 show grid
9−plot [0:4000] 'A' using (4000*$1):2 title "A response" with lines,\
10− 'B' using (4000*$1):3 title "B response" with lines
9+plot [0:22050] 'A' using (22050*$1):2 title "A response" with lines,\
10+ 'B' using (22050*$1):2 title "B response" with lines
1111 pause -1 "Hit return to continue"
1212 quit
1313

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t