X-Git-Url: https://git.sesse.net/?p=pitch;a=blobdiff_plain;f=pitch.cpp;h=658066b0edcf1911f08f253ad5a462c10e8fd873;hp=92c7b085cf026ce6a9aa9a2f5ff070bb875e7115;hb=9fb7e2081d99ba0e13dee47a1d37fbbfd769f8d0;hpb=b81a44fa57306d7e2b1376419a5448f5d8c72291 diff --git a/pitch.cpp b/pitch.cpp index 92c7b08..658066b 100644 --- a/pitch.cpp +++ b/pitch.cpp @@ -20,7 +20,7 @@ #define EQUAL_TEMPERAMENT 0 #define WELL_TEMPERED_GUITAR 1 -#define TUNING EQUAL_TEMPERAMENT +#define TUNING WELL_TEMPERED_GUITAR int get_dsp_fd(); void read_chunk(int fd, double *in, unsigned num_samples); @@ -87,7 +87,7 @@ int get_dsp_fd() int chan = 1; ioctl(fd, SOUND_PCM_WRITE_CHANNELS, &chan); - int rate = 22050; + int rate = SAMPLE_RATE; ioctl(fd, SOUND_PCM_WRITE_RATE, &rate); ioctl(3, SNDCTL_DSP_SYNC, 0);