def __init__(self, frames, name="Raw frames name", samplerate=44100):
        """Create a track with raw PCM data in array ``frames``

        :param frames: Raw PCM data array
        :type frames: numpy array
        :param integer samplerate: Sample rate of frames
        :param string name: Name of track

        """
        self._samplerate = samplerate
        self.frames = frames
        self.name = name
        self.filename = "RAW_" + name
        try:
            self.channels = np.shape(frames)[1]
        except:
            self.channels = 1
        self.current_frame = 0
        self._total_frames = np.shape(frames)[0]
def __init__ ( self , frames , name = "Raw frames name" , samplerate = 44100 ) : self . _samplerate = samplerate self . frames = frames self . name = name self . filename = "RAW_" + name try : self . channels = np . shape ( frames ) [ 1 ] except : self . channels = 1 self . current_frame = 0 self . _total_frames = np . shape ( frames ) [ 0 ]
Create a track with raw PCM data in array ``frames``

        :param frames: Raw PCM data array
        :type frames: numpy array
        :param integer samplerate: Sample rate of frames
        :param string name: Name of track