Ticket #5457: axis-0.patch

File axis-0.patch, 926 bytes (added by Espionage724, 9 years ago)

git patch

  • extlib/freesound/audioprocessing.py

    From 407e123b0cbadc570525b2775028d9b4fced2f4a Mon Sep 17 00:00:00 2001
    From: Sean <espionage724@tutanota.com>
    Date: Sat, 30 Apr 2016 16:22:22 -0400
    Subject: [PATCH] - Change axis=1 to axis=0
    
    ---
     extlib/freesound/audioprocessing.py | 2 +-
     1 file changed, 1 insertion(+), 1 deletion(-)
    
    diff --git a/extlib/freesound/audioprocessing.py b/extlib/freesound/audioprocessing.py
    index 7ef8d5d..04e5e34 100644
    a b class AudioProcessor(object):  
    165165
    166166        if resize_if_less and (add_to_start > 0 or add_to_end > 0):
    167167            if add_to_start > 0:
    168                 samples = numpy.concatenate((numpy.zeros(add_to_start), samples), axis=1)
     168                samples = numpy.concatenate((numpy.zeros(add_to_start), samples), axis=0)
    169169
    170170            if add_to_end > 0:
    171171                samples = numpy.resize(samples, size)