~kulthauskante/nsynth/devel

« back to all changes in this revision

Viewing changes to Tangibles/Controller/Linear/Sequencer/Sequencer.cpp

  • Committer: Karsten Krispin
  • Date: 2010-06-26 22:26:16 UTC
  • Revision ID: karsten@nonlimited.org-20100626222616-nl620che76t3zmn2
* added oscillator to Metronome, so that it has real phase now
* added visualisation of Metronome to SystemSink

Show diffs side-by-side

added added

removed removed

Lines of Context:
83
83
        
84
84
qreal Sequencer::linearToFrequency(qreal linearInput)
85
85
{
86
 
        return Metronome::frequencyFromLinear(linearInput)/2.0;
 
86
        return Metronome::frequencyFromLinear(linearInput)/4.0;
87
87
}
88
88
 
89
89
 
117
117
        
118
118
        return -this->getHeadingToPoint(this->GetMainSinkPosition());
119
119
}
 
120
 
 
121
qreal Sequencer::__tangibleRotationBase(qreal currentRotation)
 
122
{
 
123
//      qreal base = 0.5 - currentRotation;
 
124
//      if(base > 1.0)
 
125
//              base -= 1.0;
 
126
//      return base;
 
127
        return 0.0;
 
128
}