Skip to content
  • This project
    • Loading...
  • Sign in

Barry / rf-depot

Go to a project
Toggle navigation
Toggle navigation pinning
  • Projects
  • Groups
  • Snippets
  • Help
  • Project
  • Activity
  • Repository
  • Graphs
  • Network
  • Create a new issue
  • Commits
  • Issue Boards
  • Files
  • Commits
  • Network
  • Compare
  • Branches
  • Tags
Switch branch/tag
  • rf-depot
  • ..
  • irix
  • pitchgen.c
  • root's avatar
    added the rest · 5fa3b884
    5fa3b884
    root committed 2020-05-02 06:11:47 +0000
pitchgen.c 284 Bytes
Raw Blame History Permalink
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
#include <math.h>
#include <stdio.h>

main() 
{
    int i;
    double ratio;

    printf("float _pitchTable[] = {\n");
    
    for (i = -11; i < 12; i++) {
        ratio = pow(2, ((double)i)/12.0);
        printf("\t%.10f, /* %2d\t */\n", ratio, i);
    }
    printf("};\n");
    
}