class_docstr: The :class:`SignalProcessor` class is a basic signal processor.
  
  Parameters
  ----------
  sample_rate : int, optional
      Sample rate of the signal [Hz]; if set the signal will be re-sampled
      to that sample rate; if 'None' the sample rate of the audio file will
      be used.
  num_channels : int, optional
      Number of channels of the signal; if set, the signal will be reduced
      to that number of channels; if 'None' as many channels as present in
      the audio file are returned.
  start : float, optional
      Start position [seconds].
  stop : float, optional
      Stop position [seconds].
  norm : bool, optional
      Normalize the signal to the range [-1, +1].
  gain : float, optional
      Adjust the gain of the signal [dB].
  dtype : numpy data type, optional
      The data is returned with the given dtype. If 'None', it is returned
      with its original dtype, otherwise the signal gets rescaled. Integer
      dtypes use the complete value range, float dtypes the range [-1, +1].
  
  Examples
  --------
  Processor for loading the first two seconds of an audio file, re-sampling
  it to 22.05 kHz and down-mixing it to mono:
  
  >>> proc = SignalProcessor(sample_rate=22050, num_channels=1, stop=2)
  >>> sig = proc('tests/data/audio/sample.wav')
  >>> sig
  Signal([-2470, -2553, ...,  -173,  -265], dtype=int16)
  >>> sig.sample_rate
  22050
  >>> sig.num_channels
  1
  >>> sig.length
  2.0
class_docstr_tok: ["The",":","class",":","`","SignalProcessor","`","class","is","a","basic","signal","processor",".","Parameters","--","--","--","--","--","sample_rate",":","int",",","optional","Sample","rate","of","the","signal","[","Hz","]",";","if","set","the","signal","will","be","re-sampled","to","that","sample","rate",";","if","'None","'","the","sample","rate","of","the","audio","file","will","be","used",".","num_channels",":","int",",","optional","Number","of","channels","of","the","signal",";","if","set",",","the","signal","will","be","reduced","to","that","number","of","channels",";","if","'None","'","as","many","channels","as","present","in","the","audio","file","are","returned",".","start",":","float",",","optional","Start","position","[","seconds","]",".","stop",":","float",",","optional","Stop","position","[","seconds","]",".","norm",":","bool",",","optional","Normalize","the","signal","to","the","range","[","-1",",","+1","]",".","gain",":","float",",","optional","Adjust","the","gain","of","the","signal","[","dB","]",".","dtype",":","numpy","data","type",",","optional","The","data","is","returned","with","the","given","dtype",".","If","'None","'",",","it","is","returned","with","its","original","dtype",",","otherwise","the","signal","gets","rescaled",".","Integer","dtypes","use","the","complete","value","range",",","float","dtypes","the","range","[","-1",",","+1","]",".","Examples","--","--","--","--","Processor","for","loading","the","first","two","seconds","of","an","audio","file",",","re-sampling","it","to","22.05","kHz","and","down-mixing","it","to","mono",":",">",">",">","proc","=","SignalProcessor","(","sample_rate=22050",",","num_channels=1",",","stop=2",")",">",">",">","sig","=","proc","(","'tests\/data\/audio\/sample.wav","'",")",">",">",">","sig","Signal","(","[","-2470",",","-2553",",","...",",","-173",",","-265","]",",","dtype=int16",")",">",">",">","sig.sample_rate","22050",">",">",">","sig.num_channels","1",">",">",">","sig.length","2.0"]
code: def __init__(
      self,
      sample_rate=SAMPLE_RATE,
      num_channels=NUM_CHANNELS,
      start=START,
      stop=STOP,
      norm=NORM,
      gain=GAIN,
      dtype=DTYPE,
      **kwargs,
  ):
      # pylint: disable=unused-argument
      self.sample_rate = sample_rate
      self.num_channels = num_channels
      self.start = start
      self.stop = stop
      self.norm = norm
      self.gain = gain
      self.dtype = dtype
  
imports: from __future__ import absolute_import, division, print_function
  import warnings
  import numpy
  from ..processors import BufferProcessor, Processor
  from ..utils import integer_types
label_desc: Use image node_id 1 to create a new SignalProcessor object from inherited base classes: Processor with example: obj = SignalProcessor(sample_rate, num_channels, start, stop, norm, gain, dtype)