X-Git-Url: https://git.cinelerra-gg.org/git/?a=blobdiff_plain;f=cinelerra-5.1%2Fguicast%2Funits.h;h=7e2243ef498b673f29798760756a55a1f0be38fb;hb=82931d63c508e5953e9d5a19be76b60ec0e146c5;hp=7456b662de9e5c62a38696fc86af14a5f4fd8fbf;hpb=7fd85fb66168f6b518c5f2d73e04036e87faa0e1;p=goodguy%2Fcinelerra.git 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--();