亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? mp_stft.c

?? LastWave
?? C
?? 第 1 頁 / 共 2 頁
字號:
    UpdateSubDict(subDictAux);    stftAux = (STFT)subDictAux->dataContainer;    // Update the asked sub-dictionary now//    Printf("[H]");    UpdateStftHarmo(stft,stftAux,dict->updateTimeIdMin,dict->updateTimeIdMax);//     XXTerminalCursorGoBackward(3);    break;  case HighResStft :    Errorf("UpdateStftSubDict : HighResStft not implemented!");    // Update the auxiliary sub-dictionaries first    if((subDictAux = GetStftSubDict(dict,subDict->channel,RealStft,stft->windowShape,stft->windowSize,NULL))==NULL)      Errorf("UpdateStftSubDict (Weired) : missing auxiliary sub-dictionary RealStft for HighResStft");     UpdateSubDict(subDictAux);    stftAux = (STFT)subDictAux->dataContainer;    if((subDictAux = GetStftSubDict(dict,subDict->channel,PhaseStft,stft->windowShape,stft->windowSize,NULL))==NULL)      Errorf("UpdateStftSubDict (Weired) : missing auxiliary sub-dictionary PhaseStft for HighResStft");     UpdateSubDict(subDictAux);    stftAux1 = (STFT)subDictAux->dataContainer;    if((subDictAux = GetStftSubDict(dict,subDict->channel,RealStft,stft->windowShape,stft->windowSize/scaleFactorHighRes,NULL))==NULL)      Errorf("UpdateStftSubDict (Weired) : missing auxiliary sub-dictionary RealStft for HighResStft");     UpdateSubDict(subDictAux);    stftAux2 = (STFT)subDictAux->dataContainer;    if((subDictAux = GetStftSubDict(dict,subDict->channel,PhaseStft,stft->windowShape,stft->windowSize/scaleFactorHighRes,NULL))==NULL)      Errorf("UpdateStftSubDict (Weired) : missing auxiliary sub-dictionary PhaseStft for HighResStft");     UpdateSubDict(subDictAux);    stftAux3 = (STFT)subDictAux->dataContainer;    // Update the asked sub-dictionary now//    Printf("[h]");    UpdateStftHighRes(stft,stftAux,stftAux1,stftAux2,stftAux3,dict->updateTimeIdMin,dict->updateTimeIdMax);//     XXTerminalCursorGoBackward(3);    break;  default : Errorf("UpdateStftSubDict : type %s not implemented",StftType2Name(stft->type));  }  subDict->flagUpToDate = YES;  // TODO : remove that when possible  stft->flagUpToDate=YES;}char GetMaxStftSubDict(SUBDICT subDict,LISTV searchRange,LWFLOAT *pMaxValue,VALUE result) {  // Search range options  unsigned short i;  VALUE value=NULL;  STRVALUE str=NULL;  LISTV  lv=NULL;  char* rangeName=NULL;  char *type=NULL;  RANGE range=NULL;  LWFLOAT min,max;  LWFLOAT f;  // The search limits  char flagCausal;  long windowSizeMin,windowSizeMax;  long timeIdMin,timeIdMax;  long freqIdMin,freqIdMax;  // The location of the maximum  LWFLOAT maxValue;  // TODO : change to unsigned   int maxTimeId = 0;  int maxFreqId = 0;  int maxFreq0Id= 0;  int k_freqIdMin,k_freqIdMax;  int tmp1=0,tmp2=0;  // Some auxiliary variables  MOLECULE molecule=NULL;  static MOLECULE channelMol = NULL;  ATOM atom        =NULL;  ATOM channelAtom =NULL;  unsigned char channel;  unsigned short k;  LWFLOAT *innerProdR=NULL,*innerProdI=NULL;  DICT dict;  SUBDICT subDictAux = NULL;  STFT stftComplex = NULL;  STFT stftReal    = NULL;  STFT stft = (STFT)(subDict->dataContainer);  // Checking arguments  if(subDict->flagUpToDate==NO) Errorf("GetMaxStftSubDict : subDict is out of date!");  // Default search range  flagCausal  = NO;  windowSizeMin = STFT_MIN_WINDOWSIZE; windowSizeMax = STFT_MAX_WINDOWSIZE;  timeIdMin = 0; timeIdMax = stft->signalSize-1;  freqIdMin = 0; freqIdMax = GABOR_NYQUIST_FREQID;  // Limiting the search range if necessary  if(searchRange != NULL) {    i = 0;    while(i < searchRange->length) {      type = GetListvNth(searchRange,i,&value,&f);      // All search range options are &strings or &listv      if(type==strType) {	str = CastValue(value,STRVALUE);	if(!strcmp(str->str,"causal")) flagCausal=YES;	i++;continue;      }       if(type!=listvType) {	i++;continue;      }      lv=CastValue(value,LISTV);      if(lv->length!=2) {	i++;continue;      }      // Get the range name and the range itself      rangeName = GetListvNthStr(lv,0);      type = GetListvNth(lv,1,(VALUE*)&value,&f);      if(type==rangeType) {	range = CastValue(value,RANGE);	if(range->size >=2) Errorf("GetMaxStftSubDict : range size should be at most 2");	min = RangeMin(range);max=RangeMax(range);      } else if(type == numType) {	min = max = f;      } else Errorf("GetMaxStftSubDict : expect a &range or &num, not a '%s'",type);      // Treat the known fields      if(!strcmp(rangeName,"windowSize")) {	windowSizeMin = (long) MAX(windowSizeMin,min);windowSizeMax = (long) MIN(windowSizeMax,max);	if(!INRANGE(windowSizeMin,stft->windowSize,windowSizeMax)) return(NO);	i++;continue;      }      if(!strcmp(rangeName,"timeId")) {	timeIdMin = (long) MAX(timeIdMin,min);timeIdMax = (long) MIN(timeIdMax,max);	if(timeIdMin>timeIdMax) return(NO);	i++;continue;      }      if(!strcmp(rangeName,"time")) {	timeIdMin = (long) MAX(timeIdMin,Time2TimeId(stft,min));timeIdMax = (long) MIN(timeIdMax,Time2TimeId(stft,max));	if(timeIdMin>timeIdMax) return(NO);	i++;continue;      }      if(!strcmp(rangeName,"freqId")) {	freqIdMin = (long) MAX(freqIdMin,min);freqIdMax = (long)MIN(freqIdMax,max);	if(freqIdMin>freqIdMax) return(NO);	i++;continue;      }      if(!strcmp(rangeName,"freq")) {	freqIdMin = (long)MAX(freqIdMin,Freq2FreqId(stft,min));freqIdMax = (long)MIN(freqIdMax,Freq2FreqId(stft,max));	if(freqIdMin>freqIdMax) return(NO);	i++;continue;      }      i++;continue;    }  }  // Looks for the maximum over the stft  if(pMaxValue) *pMaxValue=0.0;  // If the search range was empty we return NO  if(GetStftMax(stft,flagCausal,timeIdMin,timeIdMax,freqIdMin,freqIdMax,&maxTimeId,&maxFreqId,&maxValue)==NO) return(NO);  if(pMaxValue) *pMaxValue=maxValue;    // If the result is a &listv we should fill it  if(GetTypeValue(result)==listvType) {    ClearListv(CastValue(result,LISTV));    lv = TNewListv();    AppendStr2Listv(lv,"timeId");AppendInt2Listv(lv,maxTimeId);    AppendValue2Listv(CastValue(result,LISTV),(VALUE)lv);    lv = TNewListv();    AppendStr2Listv(lv,"freqId");AppendInt2Listv(lv,maxFreqId);    AppendValue2Listv(CastValue(result,LISTV),(VALUE)lv);    return(YES);  }   // If the result is a &mol we should fill it  dict = subDict->dict;  if(GetTypeValue(result)==moleculeType) {    molecule = (MOLECULE)result;    ClearMolecule(molecule);    SizeMolecule(molecule,stft->dimHarmo*dict->nChannels);    // What we know so far as a 'freqId' is indeed the fundamental frequency.    maxFreq0Id = maxFreqId;    /* First, we fill the molecule with the first channel */    // Next we will loop (using 'maxFreqId') on the frequency of the partials    for(k = 0; k < stft->dimHarmo; k++) {      atom = NewAtom();      // First, set the time-frequency content      CopyFieldsTFContent(stft,atom);      atom->windowShape= stft->windowShape;      atom->windowSize = stft->windowSize;      atom->timeId 	= maxTimeId;      if(stft->type==HarmoStft) {	// Determining the box around (k+1)*freq0Id where to look for a partial	// if it is empty we return the molecule immediately without adding a new (empty!) atom.	if(HarmoPartialBox(stft,k,maxFreq0Id,&k_freqIdMin,&k_freqIdMax) == NO) {	  if(k==0) Errorf("GetMaxStftSubDict : (Weird) NULL first partial");	  DeleteAtom(atom);	  return(YES);	}	// Get the best partial in the box, using the (multichannel) 'real' stft of the dictionary 	// with the corresponding window	if(dict->nChannels>1) channel = dict->nChannels;	else                  channel = 0;	if((subDictAux = GetStftSubDict(subDict->dict,channel,RealStft,stft->windowShape,stft->windowSize,NULL))==NULL)	  Errorf("GetMaxStftSubDict (Weired) : missing auxiliary sub-dictionary RealStft for setting harmonic molecule"); 	if(subDictAux->flagUpToDate == NO) Errorf("GetMaxStftSubDict : stftReal is out of date");	stftReal = (STFT)subDictAux->dataContainer;	GetStftMax(stftReal,flagCausal,maxTimeId,maxTimeId,k_freqIdMin,k_freqIdMax,&tmp1,&tmp2,&f);	// maxFreqId is the freqId of the partial 'atom'	maxFreqId = tmp2;      }       atom->freqId = maxFreqId;      // Then, get the complex inner product (for the first channel) using the 'complex' stft of the dictionary       // with the corresponding window      channel = 0;      if((subDictAux = GetStftSubDict(subDict->dict,channel,ComplexStft,stft->windowShape,stft->windowSize,NULL))==NULL)	Errorf("GetMaxStftSubDict (Weired) : missing auxiliary sub-dictionary ComplexStft for setting atom");       if(subDictAux->flagUpToDate == NO)	Errorf("GetMaxStftSubDict : stftComplex is out of date");      stftComplex = (STFT)(subDictAux->dataContainer);        GetStftData(stftComplex,maxTimeId,&innerProdR,&innerProdI);      atom->coeffR= innerProdR[maxFreqId/stftComplex->fRate];      atom->coeffI= innerProdI[maxFreqId/stftComplex->fRate];      //	  //	  Printf("channel0 %g\n",innerProdR[maxFreqId/stftComplex->fRate]);      // Get the phase and real coeff2      CastAtomReal(atom);      // Compute the HighRes coefficient if asked      if(stft->type==HighResStft) {	//	SetRealAtom(atom,subDict->dict,subdict->dict->signal,	//		    flagOptimize,	//		    NO,YES);	Errorf("GetMaxStftSubDict : Highres atom not re-implemented");      }      // Now we add the atom and increase the actual dimension      AddAtom2Molecule(molecule,atom);    }    /* Now, we fill the other channels if necessary */    if(dict->nChannels > 1) {      if(channelMol==NULL) channelMol = NewMolecule();      SizeMolecule(channelMol,molecule->dim);      for(channel=1; channel<dict->nChannels; channel++) {	ClearMolecule(channelMol);	for(k = 0; k < molecule->dim; k++) {	  atom        = GetMoleculeAtom(molecule,0,k);	  channelAtom = CopyAtom(atom,channelAtom);	  /* Get the complex inner product */	  if((subDictAux = GetStftSubDict(subDict->dict,channel,ComplexStft,stft->windowShape,stft->windowSize,NULL))==NULL)	    Errorf("GetMaxStftSubDict (Weired) : missing auxiliary sub-dictionary ComplexStft for setting atom"); 	  if(subDictAux->flagUpToDate == NO)	    Errorf("GetMaxStftSubDict : stftComplex is out of date");	  stftComplex = (STFT)(subDictAux->dataContainer);  	  GetStftData(stftComplex,channelAtom->timeId,&innerProdR,&innerProdI);	  channelAtom->coeffR= innerProdR[((long)(channelAtom->freqId+0.5))/stftComplex->fRate];	  channelAtom->coeffI= innerProdI[((long)(channelAtom->freqId+0.5))/stftComplex->fRate];	  /* Get the phase and real coeff2 */	  CastAtomReal(channelAtom);	  /* Compute the HighRes coefficient if asked */	  if(stft->type==HighResStft) {	    //	SetRealAtom(atom,subDict->dict,subdict->dict->signal,	    //		    flagOptimize,	    //		    NO,YES);	    Errorf("GetMaxStftSubDict : Highres atom not re-implemented");	  }	  // Now we add the channelAtom to the channelMolecule */	  AddAtom2Molecule(channelMol,channelAtom);	}	AddChannel2Molecule(molecule,channelMol);      }    }    return(YES);  }  Errorf("GetMaxStftSubDict : Weired error!");}SubDictMethods StftMethods = {  &GetMaxStftSubDict,  &UpdateStftSubDict};

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
夜夜揉揉日日人人青青一国产精品| 亚洲伦理在线免费看| 欧洲色大大久久| 不卡在线观看av| 成人性生交大合| 成人免费看的视频| 成人aaaa免费全部观看| www.亚洲在线| 99国产精品99久久久久久| 成人午夜伦理影院| 91免费在线看| 欧美日本免费一区二区三区| 欧美三级电影网| 69堂精品视频| 2023国产精品视频| 亚洲国产经典视频| 中文字幕五月欧美| 国内精品视频666| 免费看欧美女人艹b| 精品一区免费av| 高清不卡在线观看| 日本精品一级二级| 91精品国产福利| 国产色综合久久| 亚洲视频 欧洲视频| 亚洲一区二区在线免费看| 丝袜亚洲精品中文字幕一区| 久久福利视频一区二区| 成人免费毛片app| 精品视频免费在线| 久久影音资源网| 一区二区三区精品视频在线| 秋霞电影网一区二区| 国产sm精品调教视频网站| 色狠狠av一区二区三区| xvideos.蜜桃一区二区| 最新热久久免费视频| 麻豆91小视频| 色偷偷88欧美精品久久久| 欧美大片在线观看| 亚洲精品久久嫩草网站秘色| 国模套图日韩精品一区二区| 色婷婷综合视频在线观看| 欧美日韩综合色| 精品久久人人做人人爰| 综合分类小说区另类春色亚洲小说欧美| 亚洲成人午夜影院| 99久久精品国产导航| 日韩精品一区二区三区视频在线观看 | 91精品国产高清一区二区三区| 国产喂奶挤奶一区二区三区| 天堂资源在线中文精品| 国产成人在线视频播放| 欧美一区二区三区免费| 一区二区三区在线免费播放 | 日本一区二区三区在线观看| 五月天一区二区| 91蜜桃婷婷狠狠久久综合9色| 久久伊人蜜桃av一区二区| 丝袜美腿成人在线| 欧洲亚洲精品在线| 亚洲男人的天堂网| 懂色av一区二区三区蜜臀| 日韩免费电影一区| 日本成人在线一区| 欧美日韩1区2区| 午夜视频在线观看一区二区三区 | 欧美网站一区二区| 亚洲欧美一区二区久久| 成人爱爱电影网址| 国产精品久久久久久久久晋中| 国内精品久久久久影院一蜜桃| 日韩欧美一级精品久久| 天天操天天综合网| 777亚洲妇女| 日韩成人一区二区三区在线观看| 欧美在线视频你懂得| 怡红院av一区二区三区| 在线中文字幕一区| 一区二区三区不卡视频| 一本大道综合伊人精品热热| 亚洲码国产岛国毛片在线| 91国偷自产一区二区三区观看| 亚洲欧美日韩国产综合在线| 一本久久a久久精品亚洲| 亚洲综合成人在线视频| 欧美日韩在线观看一区二区| 视频一区视频二区中文字幕| 91精品国产乱| 国产麻豆午夜三级精品| 国产精品私人影院| 在线视频亚洲一区| 亚洲主播在线观看| 久久综合九色综合97婷婷| 天天综合天天综合色| 欧美美女网站色| 久久99在线观看| 日本一区二区三区视频视频| 99久久er热在这里只有精品66| ...xxx性欧美| 91精品国产综合久久婷婷香蕉 | 精品久久久久久久久久久久包黑料| 麻豆精品在线播放| 国产精品初高中害羞小美女文| 欧美综合视频在线观看| 奇米精品一区二区三区在线观看一| 26uuu另类欧美亚洲曰本| 成人短视频下载| 午夜精品福利一区二区三区蜜桃| 欧美哺乳videos| 91在线视频网址| 蜜桃av一区二区在线观看 | 亚洲一级片在线观看| 日韩久久精品一区| jiyouzz国产精品久久| 丝袜美腿亚洲一区二区图片| 久久天堂av综合合色蜜桃网| 色综合天天综合网天天看片| 美女一区二区三区| 一区二区三区四区国产精品| 欧美大黄免费观看| 91成人国产精品| 成人性生交大片免费看中文| 亚洲国产欧美在线| 国产精品久久夜| 日韩欧美一区在线观看| 91网址在线看| 国产91精品一区二区麻豆亚洲| 香蕉久久夜色精品国产使用方法| 国产精品拍天天在线| 欧美v亚洲v综合ⅴ国产v| 色综合天天狠狠| 成人深夜在线观看| 久久精品国产999大香线蕉| 亚洲精品第一国产综合野| 日韩精品一区二区三区中文精品 | 日韩免费高清电影| 在线观看成人免费视频| 99久久精品国产毛片| 国产不卡一区视频| 国产成人免费视频网站高清观看视频 | 亚洲18色成人| 亚洲精品成人悠悠色影视| 欧美国产精品一区二区三区| 26uuu精品一区二区 | 成人综合在线观看| 国产自产2019最新不卡| 蜜桃av噜噜一区| 乱一区二区av| 久久精品免费看| 久久国产精品第一页| 久久国内精品视频| 麻豆精品视频在线| 久久精品国产亚洲aⅴ| 麻豆成人久久精品二区三区红 | 91蜜桃免费观看视频| 99re这里都是精品| 972aa.com艺术欧美| 91精品福利在线| 欧美视频一区二区在线观看| 欧美亚洲综合一区| 欧美乱妇23p| 精品少妇一区二区三区视频免付费 | 色88888久久久久久影院按摩| 91免费视频观看| 欧美日韩中文另类| 日韩欧美一区二区视频| 26uuu欧美| 亚洲欧美在线aaa| 亚洲午夜久久久久中文字幕久| 亚洲国产综合色| 奇米影视一区二区三区小说| 久久国产免费看| 成人激情午夜影院| 欧美在线视频全部完| 日韩午夜中文字幕| 欧美国产精品一区| 亚洲成人自拍偷拍| 精品影院一区二区久久久| 丁香桃色午夜亚洲一区二区三区| 91免费观看国产| 日韩色视频在线观看| 国产精品热久久久久夜色精品三区| 亚洲三级在线免费| 美国十次综合导航| av中文字幕亚洲| 91精品国产色综合久久ai换脸| www成人在线观看| 亚洲尤物视频在线| 精品亚洲成a人| 在线视频一区二区三| 精品国免费一区二区三区| 国产精品国产三级国产普通话99| 午夜精品福利一区二区蜜股av| 国产精品99久久久久久久女警| 91国产精品成人| 国产视频一区在线观看| 亚洲午夜久久久久久久久电影网 | 欧美午夜精品一区| 久久亚洲私人国产精品va媚药|