f2e989565ab89af58dff63ab3cf89fe63af38327,examples/raytracing.py,,,#,65

Before Change



        new_rir, room = get_rir(size=size, absorption=absorption)

        fs, old_rir = wavfile.read("notebooks/rir_{}_{}.wav".format(size, absorption))

        plt.figure()
        plt.plot(old_rir, label="old")
        plt.plot(new_rir, label="new")

After Change



if __name__ == "__main__":

    parser = argparse.ArgumentParser(
        description=(
            "Demonstrates the use of ray tracing for rooms of "
            "different size and reverberation time"
        )
    )
    size_choices = list(size_opts.keys())
    reverb_choices = list(reverb_opts.keys())
    parser.add_argument(
        "size", choices=size_choices, default=size_choices[0], help="room size"
    )
    parser.add_argument(
        "reverb",
        choices=reverb_choices,
        default=reverb_choices[0],
        help="amount of reverberation",
    )
    args = parser.parse_args()

    rir, room = get_rir(size=args.size, reverb=args.reverb)

    room.plot(img_order=0)
    plt.title("The room we have simulated")
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 6

Instances


Project Name: LCAV/pyroomacoustics
Commit Name: f2e989565ab89af58dff63ab3cf89fe63af38327
Time: 2020-06-02
Author: fakufaku@gmail.com
File Name: examples/raytracing.py
Class Name:
Method Name:


Project Name: Rostlab/nalaf
Commit Name: 6878a5d3dc03a464f99f90cbbd6edcd25eccde75
Time: 2015-06-16
Author: aleksandar.bojchevski@gmail.com
File Name: demo.py
Class Name:
Method Name:


Project Name: GoogleCloudPlatform/ml-on-gcp
Commit Name: 8079adae33711e4886a625df3f0ae9860739f7b9
Time: 2019-09-03
Author: yuhanliu@google.com
File Name: example_zoo/tools/process.py
Class Name:
Method Name: