X-Git-Url: https://git.cinelerra-gg.org/git/?p=goodguy%2Fcinelerra.git;a=blobdiff_plain;f=cinelerra-5.1%2Fguicast%2Funits.h;fp=cinelerra-5.1%2Fguicast%2Funits.h;h=7e2243ef498b673f29798760756a55a1f0be38fb;hp=7456b662de9e5c62a38696fc86af14a5f4fd8fbf;hb=0e6cf5b52d1ebce9272270144bcf43df4683507e;hpb=f068b73c1d4afafbf6d86e7f5bc8f1c96b5366d3 diff --git a/cinelerra-5.1/guicast/units.h b/cinelerra-5.1/guicast/units.h index 7456b662..7e2243ef 100644 --- a/cinelerra-5.1/guicast/units.h +++ b/cinelerra-5.1/guicast/units.h @@ -32,6 +32,8 @@ #define INFINITYGAIN -96 #define MAXGAIN 50 #define TOTALFREQS 1024 +// slots per octave +#define OCTAVE 105 #define TOTAL_TIMEFORMATS 7 // h:mm:ss.sss @@ -125,7 +127,8 @@ public: // return index of frequency int fromfreq(); static int fromfreq(int index); - + static double tofreq_f(double index); + static double fromfreq_f(double freq); // increment frequency by one Freq& operator++(); Freq& operator--();