Displaying a double (frequency) that is updated constantly while recording with Android

前端 未结 3 700
春和景丽
春和景丽 2021-01-03 13:36

I am building an android application that displays the Frequency of a sustained note with the FFT algorithm. I am using Jtransform methods. My issue currently is that I can\

3条回答
  •  天涯浪人
    2021-01-03 14:07

    Try replace

    protected void onProgressUpdate(Double value){
    
            //print the frequency 
            setContentView(R.layout.tuning);
            String info = Double.toString(value);
    

    with

    protected void onProgressUpdate(Double... value){
    
            //print the frequency             
            String info = Double.toString(value[0]);
    

    For others not having jtransforms.jar, refer to http://sourceforge.net/projects/jtransforms/

提交回复
热议问题