Exemple #1
0
def no_record(show=False):
    name = input("Name of file to read: ")

    plt.subplot(211)
    plt.title("Decibel Level")
    amp.graphThis(name)

    plt.subplot(212)
    plt.title("Frequency Graph")
    freq.frequencyThis(name)

    plt.tight_layout()
    save(name)
    if show:
        plt.show()
Exemple #2
0
def record_and_graph(show=False):
    name = input("Name to save files as: ")
    time = input("Time of sample to take in seconds: ")
    rec.recordThis(name, int(time))

    plt.subplot(211)
    plt.title("Decibel Level")
    amp.graphThis(name)

    plt.subplot(212)
    plt.title("Frequency Graph")
    freq.frequencyThis(name)

    plt.tight_layout()
    save(name)
    if show:
        plt.show()