@Christoph-Hart These snippets are full of some seemingly forbidden HISE magic.
I'm trying to put together your two snippets here
HiseSnippet 2593.3oc2Y01aabbD9njufPF2zlhfhh9osFEvjsJzjJt9kJXGY8BcTikkpIisQBRcWd2Rdazwcub6dRh0P.4mX+IzeB4ef6L6t2aTzxNpsFMUePP6Kyry9Lyryyb5vTY.SojodMZNZdByqwU8GNWni1NhxEd6siWiV9CoGyFwTZuslmPUJVnWiFq9Pb8FMuhm4me3y1hFSEArxo77dpjGvdDeFWWN6ga9E733AzP1H9rJ69latWfTrsLVlA1xp987RnAGQmxdLE21J9dMducC4ZY5PMUyTdMtxVxv4CijmHr6+obEebLCGz2aHnH6zCjwgnEiy5scDON7v76rxyqg+gkHvpVD3i82mGxKluDI9ElEHkRTEOZrRcya0ZlW+plWuJl2RLoFULoqXMoOxeXPJOQWtBZOef+dBMKcBEf8plhcudq7cuu+1RXGBc2YziXCRgAERz9V85sFA9UmMZ0BfdkljxBjogakMYBKcH+uyH2irqXJWv5NkoGRmkDydBb4Z2g76IeZOProwxwzXTNqPJPhulX+6tAoLbyKpzNq0pI9C4MsuuYCbiUNCX48DgrSgC4S5uApgVsZcLMkLgmpzVIg0JslutGni7KGtwACF8hg68U6B65N8u65vh23FD64Sn3pD43ukEnqHxjI5RXvtUXes6XkUwzDcDibBWDJOgnAmUKPhtv7OyLE59ZiyrULDNOiJ9bZZJWsf3xiYowzDR6SXjPo35ZhfwBKlNhkx5jq2CrS1tW2dNs7my.aErXXAsxnuwbgEozRBGlKfgdcxjT12kwDAyIYJtXpYqJiaMEtVnpnhPyrHTn.mP2VbQLbyISxDAZtTTn5QxAf1ZyCOsSqW1pYJSmkJH3XxMJvYLPY4QPaz5rBDfVpccDUCfYbLYLivNkEjoAb3DtNxXVynSEbcVHivESjoynnPnZfADFMHhnhgmb5RFEUwjQrDvkSjDZ5zrY.VnVynNSbCIBdf.PCTML3f.bhRFaCl.sREfToz4D4D2rJRa73lkEq4v8gDDQEBVrpiwNQ07ZMUTIFy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yUybabHGeIYWwwrXHWvXi+ReWCG4yVOVdeoPlDIE7fpN5mvfT3oSYoUs8kdgdfVCcrTNyGu4SXwLZ0f1e2lOBB1noX+JWRrn+OZ9mK0e8q8slKAS.I+zschU++51IdmTG4cwYLiFjJeQfs7KFm99lYf6sv7uAro+93XReOSI4p9xYvqbuHHntpNmfqeYE7SurBdyKqf+wKqf25xJ3surBdm2rfXQnGjok1+QHvF1+vcMrQZzXWAEhxMYDd+K.GruEgC
Play a note, click and hold the button, release to analyse. The longer the hold, the longer the log , but it's always zeroes after a few entries with correct data.
Just like the OP, I would want to record for up to 10 seconds, then be able to analyse the spectrum: am I assuming correctly that 8192 size is the "resolution" of the spectrum? each of these is then a frequency point, no? I'd like to be able to get the gain in dB for all of these points, but across the entire capture. So, an average.
Would I just store data from the magnitude function, then average it?
How big are the chunks that the magnitude function is processing? Is it 8192 samples, if that's our FFT size?