KinMaynard / soundscope

Audio Imager & Editor Python Package
MIT License
0 stars 0 forks source link

run_vis_tests.py possible syntax error line 30-34 #71

Open KinMaynard opened 1 year ago

KinMaynard commented 1 year ago

Lines 30-34: Line 31 & 33 why 2np… and 2 np… these are different syntax?

Check if syntax is intentional if not change it to python style guide.

    if 'Mono' in answers['tests']:
        # Create test files
        # Random to simulate dither
        sf.write('silence.aiff', (2*np.random.default_rng(42).random((4410))
                 - 1) / 10000, 44100, 'PCM_16')
        sf.write('white.aiff', 2 * np.random.default_rng(42).random((4410))
                 - 1, 88200, 'PCM_16')
        sf.write('sin.aiff', np.sin(np.linspace(-np.pi, np.pi, 4410)), 44100,
                 'PCM_16')