Develop and Download Open Source Software

Browse Subversion Repository

Diff of /trunk/synthesis/Vocoder.cpp

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 100 by haruneko24, Thu Nov 29 19:29:48 2012 UTC revision 101 by haruneko24, Fri Feb 1 01:09:56 2013 UTC
# Line 23  Line 23 
23  #include "audio/AudioChunk.h"  #include "audio/AudioChunk.h"
24    
25  #include "../configure.h"  #include "../configure.h"
26    #include "Utility.h"
27    
28  using namespace stand::synthesis;  using namespace stand::synthesis;
29  using namespace stand::model;  using namespace stand::model;
# Line 151  double Vocoder::_synthesizeOneNote(stand Line 152  double Vocoder::_synthesizeOneNote(stand
152      while(msCurrent < phrase->msEnd() && msCurrent < current->msEnd())      while(msCurrent < phrase->msEnd() && msCurrent < current->msEnd())
153      {      {
154          double f0 = phrase->track()->f0At(msCurrent);          double f0 = phrase->track()->f0At(msCurrent);
155          if(f0 == 0.0)          if(f0 < stand::utility::NoteFrequency(0) || f0 > stand::utility::NoteFrequency(128))
156          {          {
157              f0 = stand::DefaultF0Value;              f0 = stand::DefaultF0Value;
158          }          }

Legend:
Removed from v.100  
changed lines
  Added in v.101

Back to OSDN">Back to OSDN
ViewVC Help
Powered by ViewVC 1.1.26