5b82d130747a10559da252ab814aa411ceaca77e,pyroomacoustics/experimental/measure_ir.py,,,#,153

Before Change


    parser = argparse.ArgumentParser(prog="measure_ir", description="Measures an impulse response by playing a sweep and recording it using the sounddevice package.")
    parser.add_argument("-l", "--length", type=float, default=1.,
            help="length of the sweep in seconds")
    parser.add_argument("-t", "--type", type=str, default=SweepType.linear.value, 
            choices=[SweepType.exponential.value, SweepType.linear.value],
            help="type of sweep to use linear or exponential (default)")
    parser.add_argument("-f", "--file", type=str,
            help="name of file where to save the recorded signals (without extension)")
    parser.add_argument("-r", "--fs", type=int, default=48000,
            help="sampling frequency (default 48 kHz)")

After Change



    args = parser.parse_args()

    if args.type not in _sweep_types:
        raise ValueError("Sweep must be exponential or linear")

    kwargs = dict(
            sweep_length=args.length,
            sweep_type=args.type,
            fs=args.fs,
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 4

Instances


Project Name: LCAV/pyroomacoustics
Commit Name: 5b82d130747a10559da252ab814aa411ceaca77e
Time: 2017-10-08
Author: fakufaku@gmail.com
File Name: pyroomacoustics/experimental/measure_ir.py
Class Name:
Method Name:


Project Name: Microsoft/nni
Commit Name: e0b692c96565074d4cb148e6011b2007d0a55348
Time: 2020-03-23
Author: Quanlu.Zhang@microsoft.com
File Name: examples/model_compress/model_speedup.py
Class Name:
Method Name:


Project Name: moskomule/senet.pytorch
Commit Name: ac695a5b4bf38853367f2c37ce104caba111576f
Time: 2018-12-29
Author: hataya@keio.jp
File Name: imagenet.py
Class Name:
Method Name: