Changeset 85ebab8
- Timestamp:
- Jul 27, 2012, 6:39:20 PM (12 years ago)
- Branches:
- feature/autosink, feature/cnn, feature/cnn_org, feature/constantq, feature/crepe, feature/crepe_org, feature/pitchshift, feature/pydocstrings, feature/timestretch, fix/ffmpeg5, master, pitchshift, sampler, timestretch, yinfft+
- Children:
- 063fa5a
- Parents:
- d00e223 (diff), dea34a1 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the(diff)
links above to see all the changes relative to each parent. - Files:
-
- 2 added
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/spectral/tss.c
rd00e223 r85ebab8 61 61 theta2[j] = theta1[j]; 62 62 theta1[j] = input->phas[j]; 63 }64 63 65 for (j=0;j<nbins; j++){66 64 /* transient analysis */ 67 65 test = (ABS(dev[j]) > parm*oft1[j]); 68 66 trans->norm[j] = input->norm[j] * test; 69 67 trans->phas[j] = input->phas[j] * test; 70 }71 68 72 for (j=0;j<nbins; j++){73 69 /* steady state analysis */ 74 70 test = (ABS(dev[j]) < parm*oft2[j]); … … 76 72 stead->phas[j] = input->phas[j] * test; 77 73 78 /*increase sstate probability for sines*/74 /*increase probability for transient */ 79 75 test = (trans->norm[j]==0.); 80 76 oft1[j] = test; 77 test = (trans->norm[j]>0.); 78 oft1[j] += alpha*test; 79 test = (oft1[j]>1. && trans->norm[j]>0.); 80 oft1[j] += beta*test; 81 82 /*increase probability for steady states */ 81 83 test = (stead->norm[j]==0.); 82 84 oft2[j] = test; 83 test = (trans->norm[j]>0.);84 oft1[j] += alpha*test;85 85 test = (stead->norm[j]>0.); 86 86 oft2[j] += alpha*test; 87 test = (oft1[j]>1. && trans->norm[j]>0.);88 oft1[j] += beta*test;89 87 test = (oft2[j]>1. && stead->norm[j]>0.); 90 88 oft2[j] += beta*test;
Note: See TracChangeset
for help on using the changeset viewer.