Numpy combine channels

Wanderer wanderer at dialup4less.com
Mon Sep 10 15:56:17 EDT 2012


On Monday, September 10, 2012 3:39:11 PM UTC-4, Wanderer wrote:
> I have an array generated by audiolab of left and right stereo channels. It looks like [[1,1],[1,2],[2,3]]. I would like to combine the left and right channels to get an array [2,3,5]. Is there a numpy command to do that?
> 
> 
> 
> Thanks

I figured it out. numpy.sum(array, axis=1). 



More information about the Python-list mailing list