/dports/science/py-obspy/obspy-1.2.2/obspy/signal/src/evalresp/ |
H A D | evresp.c | 105 nfreqs = *nfreqs_in; in evresp_() 110 dfreqs = alloc_double(nfreqs); in evresp_() 111 for(i = 0; i < nfreqs; i++) in evresp_() 276 nfreqs_orig = nfreqs; in evresp_itp() 402 resp = alloc_response(nfreqs); in evresp_itp() 525 resp->nfreqs = nfreqs; in evresp_itp() 531 nfreqs = nfreqs_orig; in evresp_itp() 536 resp->nfreqs = nfreqs; in evresp_itp() 738 resp->nfreqs = nfreqs; in evresp_itp() 743 nfreqs = nfreqs_orig; in evresp_itp() [all …]
|
H A D | evalresp.c | 30 int lin_typ = 0, nfreqs, i, fswidx, tmp_val, fldlen; in main() local 276 nfreqs = atoi(numfstr); in main() 285 else if(nfreqs <= 0){ in main() 287 nfreqs); in main() 295 if (nfreqs == 1) in main() 298 incr = (freq_lims[1]-freq_lims[0])/(nfreqs-1); in main() 301 if (nfreqs == 1) in main() 304 incr = pow((freq_lims[1]/freq_lims[0]), (1./(nfreqs-1))); in main() 348 freqs = alloc_double(nfreqs); in main() 349 for(i = 0, val = freq_lims[0]; i < nfreqs; i++) { in main() [all …]
|
H A D | print_fctns.c | 241 void print_resp_itp(double *freqs, int nfreqs, struct response *first, in print_resp_itp() argument 267 num_points = resp->nfreqs; in print_resp_itp() 276 if(listinterp_out_flag && (nfreqs != resp->nfreqs || in print_resp_itp() 277 !arrays_equal(freqs,resp->freqs,nfreqs))) { in print_resp_itp() 286 &num_points,freqs,nfreqs,listinterp_tension); in print_resp_itp() 398 for(i = 0; i < resp->nfreqs; i++) in print_resp_itp() 427 void print_resp(double *freqs, int nfreqs, struct response *first, in print_resp() argument 429 print_resp_itp(freqs,nfreqs,first,rtype,stdio_flag,0,0.0, 0); in print_resp()
|
/dports/science/harminv/harminv-1.3.1/ |
H A D | harminv.c | 554 d->nfreqs = J; in harminv_solve_once() 558 d->nfreqs -= 1; in harminv_solve_once() 579 CHK_MALLOC(V1, cmplx, d->nfreqs * d->nfreqs); in harminv_solve_once() 580 CHK_MALLOC(H1, cmplx, d->nfreqs * d->nfreqs); in harminv_solve_once() 588 ZGEMM(F_("T"), F_("N"), &d->nfreqs, &d->nfreqs, &J, in harminv_solve_once() 594 ZGEMM(F_("N"), F_("N"), &J, &d->nfreqs, &d->nfreqs, in harminv_solve_once() 639 d->nfreqs = j; in harminv_solve_again() 650 init_z(d, d->nfreqs, d->u); in harminv_solve_again() 652 d->nfreqs = 0; in harminv_solve_again() 715 if (!d->nfreqs) return NULL; in harminv_compute_frequency_errors() [all …]
|
/dports/graphics/bonzomatic/Bonzomatic-2021-03-07/external/kiss_fft/tools/ |
H A D | psdpng.c | 126 int nfreqs=nfft/2+1; in transform_signal() local 132 CHECKNULL( mag2buf=(float*)malloc(sizeof(float)*nfreqs ) ); in transform_signal() 134 memset(mag2buf,0,sizeof(mag2buf)*nfreqs); in transform_signal() 161 for (i=0;i<nfreqs;++i) in transform_signal() 169 for (i=0;i<nfreqs;++i) in transform_signal() 171 memset(mag2buf,0,sizeof(mag2buf[0])*nfreqs); in transform_signal() 188 int nfreqs = nfft/2+1; in make_png() local 201 row_data = (rgb_t*)malloc(sizeof(rgb_t) * nrows * nfreqs) ; in make_png() 202 cpx2pixels(row_data, vals, nfreqs*nrows ); in make_png() 206 row_pointers[i] = (png_bytep)(row_data + i*nfreqs); in make_png() [all …]
|
/dports/audio/chromaprint/chromaprint-v1.5.0/vendor/kissfft/tools/ |
H A D | psdpng.c | 132 int nfreqs=nfft/2+1; in transform_signal() local 138 CHECKNULL( mag2buf=(float*)malloc(sizeof(float)*nfreqs ) ); in transform_signal() 140 memset(mag2buf,0,sizeof(mag2buf)*nfreqs); in transform_signal() 167 for (i=0;i<nfreqs;++i) in transform_signal() 175 for (i=0;i<nfreqs;++i) in transform_signal() 177 memset(mag2buf,0,sizeof(mag2buf[0])*nfreqs); in transform_signal() 194 int nfreqs = nfft/2+1; in make_png() local 207 row_data = (rgb_t*)malloc(sizeof(rgb_t) * nrows * nfreqs) ; in make_png() 208 cpx2pixels(row_data, vals, nfreqs*nrows ); in make_png() 212 row_pointers[i] = (png_bytep)(row_data + i*nfreqs); in make_png() [all …]
|
/dports/math/vtk9/VTK-9.1.0/ThirdParty/kissfft/vtkkissfft/tools/ |
H A D | psdpng.c | 126 int nfreqs=nfft/2+1; in transform_signal() local 132 CHECKNULL( mag2buf=(float*)malloc(sizeof(float)*nfreqs ) ); in transform_signal() 134 memset(mag2buf,0,sizeof(mag2buf)*nfreqs); in transform_signal() 161 for (i=0;i<nfreqs;++i) in transform_signal() 169 for (i=0;i<nfreqs;++i) in transform_signal() 171 memset(mag2buf,0,sizeof(mag2buf[0])*nfreqs); in transform_signal() 188 int nfreqs = nfft/2+1; in make_png() local 201 row_data = (rgb_t*)malloc(sizeof(rgb_t) * nrows * nfreqs) ; in make_png() 202 cpx2pixels(row_data, vals, nfreqs*nrows ); in make_png() 206 row_pointers[i] = (png_bytep)(row_data + i*nfreqs); in make_png() [all …]
|
/dports/multimedia/opentoonz/opentoonz-1.5.0/thirdparty/kiss_fft130/tools/ |
H A D | psdpng.c | 132 int nfreqs=nfft/2+1; in transform_signal() local 138 CHECKNULL( mag2buf=(float*)malloc(sizeof(float)*nfreqs ) ); in transform_signal() 140 memset(mag2buf,0,sizeof(mag2buf)*nfreqs); in transform_signal() 167 for (i=0;i<nfreqs;++i) in transform_signal() 175 for (i=0;i<nfreqs;++i) in transform_signal() 177 memset(mag2buf,0,sizeof(mag2buf[0])*nfreqs); in transform_signal() 194 int nfreqs = nfft/2+1; in make_png() local 207 row_data = (rgb_t*)malloc(sizeof(rgb_t) * nrows * nfreqs) ; in make_png() 208 cpx2pixels(row_data, vals, nfreqs*nrows ); in make_png() 212 row_pointers[i] = (png_bytep)(row_data + i*nfreqs); in make_png() [all …]
|
/dports/multimedia/kdenlive/kdenlive-21.12.3/src/lib/external/kiss_fft/tools/ |
H A D | psdpng.c | 132 int nfreqs=nfft/2+1; in transform_signal() local 138 CHECKNULL( mag2buf=(float*)malloc(sizeof(float)*nfreqs ) ); in transform_signal() 140 memset(mag2buf,0,sizeof(float)*nfreqs); in transform_signal() 167 for (i=0;i<nfreqs;++i) in transform_signal() 177 for (i=0;i<nfreqs;++i) in transform_signal() 179 memset(mag2buf,0,sizeof(mag2buf[0])*nfreqs); in transform_signal() 196 int nfreqs = nfft/2+1; in make_png() local 209 row_data = (rgb_t*)malloc(sizeof(rgb_t) * nrows * nfreqs) ; in make_png() 210 cpx2pixels(row_data, vals, nfreqs*nrows ); in make_png() 222 row_pointers[i] = (png_bytep)(row_data + i*nfreqs); in make_png() [all …]
|
/dports/cad/ngspice_rework/ngspice-35/src/frontend/ |
H A D | fourier.c | 45 int nfreqs, fourgridsize, polydegree; in fourier() local 68 if (!cp_getvar("nfreqs", CP_NUM, &nfreqs, 0) || nfreqs < 1) in fourier() 69 nfreqs = 10; in fourier() 86 freq = TMALLOC(double, nfreqs); in fourier() 87 mag = TMALLOC(double, nfreqs); in fourier() 88 phase = TMALLOC(double, nfreqs); in fourier() 89 nmag = TMALLOC(double, nfreqs); in fourier() 90 nphase = TMALLOC(double, nfreqs); in fourier() 168 for (i = 0; i < nfreqs; i++) { in fourier() 201 n->v_dims[1] = nfreqs; in fourier() [all …]
|
/dports/audio/spectmorph/spectmorph-0.5.2/lib/ |
H A D | smsinedecoder.cc | 111 vector<float> nfreqs (next_block.freqs.size()); in process() local 116 for (size_t i = 0; i < nfreqs.size(); i++) in process() 119 int todo = freqs.size() + nfreqs.size(); in process() 123 next_synth_fixed_phase.resize (nfreqs.size()); in process() 133 for (size_t j = 0; j < nfreqs.size(); j++) in process() 148 double nfreq = nfreqs[best_j]; in process() 149 nfreqs[best_j] = -1; in process() 226 for (size_t to = 0; to < nfreqs.size(); to++) in process() 228 if (nfreqs[to] > -1) in process() 230 double freq = nfreqs[to]; in process() [all …]
|
/dports/cad/jspice3/jspice3-2.5/src/lib/plot/ |
H A D | fourier.c | 38 int nfreqs, fourgridsize, polydegree; local 54 if ((!cp_getvar(kw_nfreqs, VT_NUM, (char *) &nfreqs)) || (nfreqs < 1)) 55 nfreqs = 10; 97 freq = (double *) tmalloc(nfreqs * sizeof (double)); 98 mag = (double *) tmalloc(nfreqs * sizeof (double)); 99 phase = (double *) tmalloc(nfreqs * sizeof (double)); 100 nmag = (double *) tmalloc(nfreqs * sizeof (double)); 101 nphase = (double *) tmalloc(nfreqs * sizeof (double)); 145 err = CKTfour(fourgridsize, nfreqs, &thd, timescale, 155 nfreqs, thd, fourgridsize, polydegree); [all …]
|
/dports/science/octopus/octopus-10.5/src/opt_control/ |
H A D | filter.F90 | 145 integer :: no_f, i, j, nfreqs local 159 nfreqs = tdf_nfreqs(f) 165 do j = 2, nfreqs !+ 1 168 do j = nfreqs + 1, 2*nfreqs - 1 169 call tdf_set_numerical(f, j, tdf(f, j)*tdf(filter%f(i), j-nfreqs+1) / sqrt(M_TWO) ) 189 integer :: i, ip, j, nfreqs local 198 nfreqs = tdf_nfreqs(filter%f(i)) 221 do j = 2, nfreqs !+ 1 225 do j = nfreqs + 1, 2*nfreqs - 1 226 call tdf_set_numerical(filter%f(i), j, -sqrt(M_TWO)*aimag(ff(j-nfreqs+1)))
|
/dports/science/octopus/octopus-10.5/src/math/ |
H A D | tdfunction.F90 | 535 do i = 1, f%nfreqs 568 do j = 2, f%nfreqs 571 do j = f%nfreqs+1, 2*f%nfreqs-1 594 do j = 2, f%nfreqs 620 f%valww(2:f%nfreqs) = f%valww(2:f%nfreqs) - s/f%nfreqs 653 f%valww(1:2*f%nfreqs-1) = values(1:2*f%nfreqs-1) 656 f%valww(2:2*f%nfreqs-1) = values(1:2*f%nfreqs-2) 698 n = 2*f%nfreqs-1 700 n = 2*f%nfreqs-2 723 e(1:f%nfreqs-1) = e(1:f%nfreqs-1) - sum(e(1:f%nfreqs-1))/(f%nfreqs-1) [all …]
|
/dports/audio/csound/csound-6.15.0/Opcodes/ |
H A D | spectra.c | 82 if (UNLIKELY(nfreqs <= 0 || nfreqs > MAXFRQS)) in spectset() 90 nfreqs != p->nfreqs || /* if anything has changed */ in spectset() 102 p->nfreqs = nfreqs; in spectset() 327 for (nfreqs=p->nfreqs; nfreqs--; ) { /* now for ea. frq this oct */ in spectrum() 612 nfreqs = (MYFLT)inspecp->nfreqs; in sptrkset() 882 if (UNLIKELY(inspec1p->nfreqs != inspec2p->nfreqs)) in spadmset() 895 p->waddm->nfreqs = inspec1p->nfreqs; in spadmset() 939 p->wdiff->nfreqs = inspecp->nfreqs; in spdifset() 1001 outspecp->nfreqs = inspecp->nfreqs; in spsclset() 1094 p->wacout->nfreqs = inspecp->nfreqs; in sphstset() [all …]
|
/dports/audio/rkr-lv2/rkrlv2-beta_2-2-gd8c17d3/src/ |
H A D | FilterParams.C | 201 FilterParams::formantfilterH (int nvowel, int nfreqs, float * freqs) in formantfilterH() argument 207 for (int i = 0; i < nfreqs; i++) in formantfilterH() 237 for (int i = 0; i < nfreqs; i++) { in formantfilterH() 238 float freq = getfreqx ((float)i / (float) nfreqs); in formantfilterH() 240 for (int tmp = i; tmp < nfreqs; tmp++) in formantfilterH() 262 for (int i = 0; i < nfreqs; i++) { in formantfilterH()
|
/dports/audio/zynaddsubfx/zynaddsubfx-3.0.6-rc5/src/UI/ |
H A D | FormantFilterGraph.cpp | 251 void FormantFilterGraph::formantfilterH(int nvowel, int nfreqs, float *freqs) 255 for(int i = 0; i < nfreqs; ++i) 289 for(int i = 0; i < nfreqs; ++i) { 290 const float freq = getfreqx(i / (float) nfreqs); 294 for(int tmp = i; tmp < nfreqs; ++tmp) 322 for(int i = 0; i < nfreqs; ++i) {
|
/dports/multimedia/v4l_compat/linux-5.13-rc2/drivers/media/platform/qcom/camss/ |
H A D | camss-csid.c | 110 for (j = 0; j < clock->nfreqs; j++) in csid_set_clock_rates() 114 if (j == clock->nfreqs) { in csid_set_clock_rates() 123 j = clock->nfreqs - 1; in csid_set_clock_rates() 137 } else if (clock->nfreqs) { in csid_set_clock_rates() 615 clock->nfreqs = 0; in msm_csid_subdev_init() 616 while (res->clock_rate[i][clock->nfreqs]) in msm_csid_subdev_init() 617 clock->nfreqs++; in msm_csid_subdev_init() 619 if (!clock->nfreqs) { in msm_csid_subdev_init() 625 clock->nfreqs, in msm_csid_subdev_init() 631 for (j = 0; j < clock->nfreqs; j++) in msm_csid_subdev_init()
|
H A D | camss-csiphy.c | 150 for (j = 0; j < clock->nfreqs; j++) in csiphy_set_clock_rates() 154 if (j == clock->nfreqs) { in csiphy_set_clock_rates() 163 j = clock->nfreqs - 1; in csiphy_set_clock_rates() 660 clock->nfreqs = 0; in msm_csiphy_subdev_init() 661 while (res->clock_rate[i][clock->nfreqs]) in msm_csiphy_subdev_init() 662 clock->nfreqs++; in msm_csiphy_subdev_init() 664 if (!clock->nfreqs) { in msm_csiphy_subdev_init() 670 clock->nfreqs, in msm_csiphy_subdev_init() 676 for (j = 0; j < clock->nfreqs; j++) in msm_csiphy_subdev_init()
|
/dports/multimedia/v4l-utils/linux-5.13-rc2/drivers/media/platform/qcom/camss/ |
H A D | camss-csid.c | 110 for (j = 0; j < clock->nfreqs; j++) in csid_set_clock_rates() 114 if (j == clock->nfreqs) { in csid_set_clock_rates() 123 j = clock->nfreqs - 1; in csid_set_clock_rates() 137 } else if (clock->nfreqs) { in csid_set_clock_rates() 615 clock->nfreqs = 0; in msm_csid_subdev_init() 616 while (res->clock_rate[i][clock->nfreqs]) in msm_csid_subdev_init() 617 clock->nfreqs++; in msm_csid_subdev_init() 619 if (!clock->nfreqs) { in msm_csid_subdev_init() 625 clock->nfreqs, in msm_csid_subdev_init() 631 for (j = 0; j < clock->nfreqs; j++) in msm_csid_subdev_init()
|
H A D | camss-csiphy.c | 150 for (j = 0; j < clock->nfreqs; j++) in csiphy_set_clock_rates() 154 if (j == clock->nfreqs) { in csiphy_set_clock_rates() 163 j = clock->nfreqs - 1; in csiphy_set_clock_rates() 660 clock->nfreqs = 0; in msm_csiphy_subdev_init() 661 while (res->clock_rate[i][clock->nfreqs]) in msm_csiphy_subdev_init() 662 clock->nfreqs++; in msm_csiphy_subdev_init() 664 if (!clock->nfreqs) { in msm_csiphy_subdev_init() 670 clock->nfreqs, in msm_csiphy_subdev_init() 676 for (j = 0; j < clock->nfreqs; j++) in msm_csiphy_subdev_init()
|
/dports/multimedia/libv4l/linux-5.13-rc2/drivers/media/platform/qcom/camss/ |
H A D | camss-csid.c | 110 for (j = 0; j < clock->nfreqs; j++) in csid_set_clock_rates() 114 if (j == clock->nfreqs) { in csid_set_clock_rates() 123 j = clock->nfreqs - 1; in csid_set_clock_rates() 137 } else if (clock->nfreqs) { in csid_set_clock_rates() 615 clock->nfreqs = 0; in msm_csid_subdev_init() 616 while (res->clock_rate[i][clock->nfreqs]) in msm_csid_subdev_init() 617 clock->nfreqs++; in msm_csid_subdev_init() 619 if (!clock->nfreqs) { in msm_csid_subdev_init() 625 clock->nfreqs, in msm_csid_subdev_init() 631 for (j = 0; j < clock->nfreqs; j++) in msm_csid_subdev_init()
|
H A D | camss-csiphy.c | 150 for (j = 0; j < clock->nfreqs; j++) in csiphy_set_clock_rates() 154 if (j == clock->nfreqs) { in csiphy_set_clock_rates() 163 j = clock->nfreqs - 1; in csiphy_set_clock_rates() 660 clock->nfreqs = 0; in msm_csiphy_subdev_init() 661 while (res->clock_rate[i][clock->nfreqs]) in msm_csiphy_subdev_init() 662 clock->nfreqs++; in msm_csiphy_subdev_init() 664 if (!clock->nfreqs) { in msm_csiphy_subdev_init() 670 clock->nfreqs, in msm_csiphy_subdev_init() 676 for (j = 0; j < clock->nfreqs; j++) in msm_csiphy_subdev_init()
|
/dports/science/py-scipy/scipy-1.7.1/scipy/signal/ |
H A D | fir_filter_design.py | 487 def firwin2(numtaps, freq, gain, nfreqs=None, window='hamming', nyq=None, argument 596 if nfreqs is not None and numtaps >= nfreqs: 599 (numtaps, nfreqs)) 635 if nfreqs is None: 636 nfreqs = 1 + 2 ** int(ceil(log(numtaps, 2))) 654 x = np.linspace(0.0, nyq, nfreqs)
|
/dports/audio/lmms/lmms-1.2.2/plugins/zynaddsubfx/zynaddsubfx/src/Params/ |
H A D | FilterParams.cpp | 189 void FilterParams::formantfilterH(int nvowel, int nfreqs, float *freqs) in formantfilterH() argument 195 for(int i = 0; i < nfreqs; ++i) in formantfilterH() 227 for(int i = 0; i < nfreqs; ++i) { in formantfilterH() 228 float freq = getfreqx(i / (float) nfreqs); in formantfilterH() 230 for(int tmp = i; tmp < nfreqs; ++tmp) in formantfilterH() 252 for(int i = 0; i < nfreqs; ++i) { in formantfilterH()
|