//Skeleton code for pitch tracking //Set up to analyze sound from mic adc => FFT f => blackhole; //Pick a size of 1024 bins 1024 => f.size; //Use a hamming window of size 512 //(if this is meaningless to you right now, don't worry-- just keep this next line) Windowing.hamming(512) => f.window; while(true) { .1::second => now; f.upchuck(); /*TODO: Fill this in with code to locate the index of the frequency bin with the highest magnitude. Use your knowledge of the FFT and the sample rate used by miniAudicle (not sure? Go to Preferences menu) to compute the frequency associated with that bin. Print out both the index and the associated frequency. */ }