~ubuntu-branches/ubuntu/precise/csound/precise

« back to all changes in this revision

Viewing changes to frontends/CsoundAC/Conversions.hpp

  • Committer: Package Import Robot
  • Author(s): Felipe Sateler
  • Date: 2012-04-19 09:26:46 UTC
  • mfrom: (3.2.19 sid)
  • Revision ID: package-import@ubuntu.com-20120419092646-96xbj1n6atuqosk2
Tags: 1:5.17.6~dfsg-1
* New upstream release
 - Do not build the wiimote opcodes (we need wiiuse).
* Add new API function to symbols file
* Disable lua opcodes, they were broken. Requires OpenMP to be enabled.
* Backport fixes from upstream:
  - Link dssi4cs with dl. Backport
  - Fix building of CsoundAC

Show diffs side-by-side

added added

removed removed

Lines of Context:
55
55
   * All loudness conversions are driven by sample word size, which must be set before use;
56
56
   * the default is 4 (float samples).
57
57
   */
58
 
  class Conversions
 
58
  class SILENCE_PUBLIC Conversions
59
59
  {
60
60
    static bool initialized_;
61
61
    static std::map<std::string, double> pitchClassSetsForNames;
99
99
    static double amplitudeToMidi(double Amplitude);
100
100
    static double midiToGain(double Midi);
101
101
    static double leftPan(double x);
102
 
    static const double round(double value);
 
102
    static double round(double value);
103
103
    static double temper(double octave, double tonesPerOctave);
104
104
    static double phaseToTableLengths(double Phase, double TableSampleCount);
105
105
    static double hzToMidi(double Hz, bool rounded);
115
115
    static int swapInt(int Source);
116
116
    static short swapShort(short Source);
117
117
    /**
118
 
     * Translate the string value to a boolean value, 
 
118
     * Translate the string value to a boolean value,
119
119
     * returning the default if the string value is empty.
120
120
     */
121
121
    static bool stringToBool(std::string value, bool default_=false);
122
122
    static std::string boolToString(bool value);
123
123
    /**
124
 
     * Translate the string value to an integer value, 
 
124
     * Translate the string value to an integer value,
125
125
     * returning the default if the string value is empty.
126
126
     */
127
127
    static int stringToInt(std::string value, int default_=0);
128
128
    static std::string intToString(int value);
129
129
    /**
130
 
     * Translate the string value to a double-precision value, 
 
130
     * Translate the string value to a double-precision value,
131
131
     * returning the default if the string value is empty.
132
132
     */
133
133
    static double stringToDouble(std::string value, double default_=0.0);