Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- for (int i = 0; i < floatArray.Length - (BLOCKLENGTH - 1); i += BLOCKLENGTH) {
- // make array (empty again), with same length, for calculations
- soundArray = new float[floatArray.Length];
- // nextSoundIndex will (again ) be set
- CheckForSound();
- // filling tempArray with 4096 samples of a founded sound
- for (int j = 0; j < tempBlock.Length; j++) {
- tempBlock[j] = floatArray[i + j];
- }
- // get complex number's of one block
- Fourier.RFFT(tempBlock, FourierDirection.Forward);
- // set modulus Array
- CalculateModulus(resolution);
- // check for matches
- CheckModulusForNumber(resolution);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement