Changeset dea34a1
- Timestamp:
- Jul 27, 2012, 6:37:38 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:
- 85ebab8, fc197b0
- Parents:
- 0c83de6
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/spectral/tss.c
r0c83de6 rdea34a1 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.