I copied your example for creating a visualization for a sound file but it didn't work. I figured out that's because of the use of the Processing function nf() in the lines below, that uses (in my case) the comma as a decimal point for formatting.
These values are then saved to the text file that gets parsed again with Processing's float(), which converts them to NaN since it doesn't recognize the comma as the decimal point.
I copied your example for creating a visualization for a sound file but it didn't work. I figured out that's because of the use of the Processing function
nf()
in the lines below, that uses (in my case) the comma as a decimal point for formatting.These values are then saved to the text file that gets parsed again with Processing's
float()
, which converts them to NaN since it doesn't recognize the comma as the decimal point.