pysynth/output/base.py
def bind_synth(self, synth):

        """
        Binds a synth chain to the Output class.

        We return an OutputControl class to manage adding the synth to this class.
        This allows synths to be managed by a sequencer,
        or for them to be added for a specified amount of time.

        We will bind the synth chain to the OutputControl class,
        and return it.

        We also set the sampling rate of the synth chain to our own,
        so all synths can maintain a similar sampling rate.

        :param synth: Synth chain to add to output
        :type synth: BaseModule
        :return: OutputControl with the synth chain bound to it
        :rtype: OutputControl
        """

        # Create an output control:

        out = OutputControl()
        out.OUT.append(self)

        # Bind the synth to the output control:

        out.bind(synth)

        # Bind our sampling rate to the synth chain:

        synth._info.samp = self.rate

        # Return the output control:

        return out

        Binds a synth chain to the Output class.

        We return an OutputControl class to manage adding the synth to this class.
        This allows synths to be managed by a sequencer,
        or for them to be added for a specified amount of time.

        We will bind the synth chain to the OutputControl class,
        and return it.

        We also set the sampling rate of the synth chain to our own,
        so all synths can maintain a similar sampling rate.

        :param synth: Synth chain to add to output
        :type synth: BaseModule
        :return: OutputControl with the synth chain bound to it
        :rtype: OutputControl
        
Binds a synth chain to the Output class.
We return an OutputControl class to manage adding the synth to this class.
This allows synths to be managed by a sequencer,
or for them to be added for a specified amount of time.

We will bind the synth chain to the OutputControl class,
and return it.

We also set the sampling rate of the synth chain to our own,
so all synths can maintain a similar sampling rate.
Binds a synth chain to the Output class . We return an OutputControl class to manage adding the synth to this class . This allows synths to be managed by a sequencer or for them to be added for a specified amount of time . We will bind the synth chain to the OutputControl class and return it . We also set the sampling rate of the synth chain to our own so all synths can maintain a similar sampling rate .
def bind_synth(self, synth):
        out = OutputControl()
        out.OUT.append(self)
        out.bind(synth)
        synth._info.samp = self.rate
        return out
def bind_synth ( self , synth ) : out = OutputControl ( ) out . OUT . append ( self ) out . bind ( synth ) synth . _info . samp = self . rate return out
Binds a synth chain to the Output class.
Binds a synth chain to the Output class .
"""
        Binds a synth chain to the Output class.

        We return an OutputControl class to manage adding the synth to this class.
        This allows synths to be managed by a sequencer,
        or for them to be added for a specified amount of time.

        We will bind the synth chain to the OutputControl class,
        and return it.

        We also set the sampling rate of the synth chain to our own,
        so all synths can maintain a similar sampling rate.

        :param synth: Synth chain to add to output
        :type synth: BaseModule
        :return: OutputControl with the synth chain bound to it
        :rtype: OutputControl
        """ # Create an output control: # Bind the synth to the output control: # Bind our sampling rate to the synth chain: # Return the output control:
OutputControl with the synth chain bound to it
OutputControl with the synth chain bound to it
OutputControl
self
synth
Synth chain to add to output
Synth chain to add to output