pythonpitch-tracking

How to print the value of the object?


How to print the values of the objects?

    import amfm_decompy.pYAAPT as pYAAPT
    import amfm_decompy.basic_tools as basic

    signal = basic.SignalObj('microphone-results-6.wav')
    pitch = pYAAPT.yaapt(signal)
    print(pitch)

It is instead printing the object's address. Please help me


Solution

  • Have you tried?

    pitch.samp_values
    

    then you can plot it like that:

    plt.plot(pitch.samp_values)
    plt.show()