예제 #1
0
    def add_send(self, destination=None):
        """
        Add send to track and return it.

        Parameters
        ----------
        destination : Track or None
            Send destination (default=None). If None, destination is
            set to hardware output.

        Returns
        -------
        send : Send
            New send on track.
        """
        if isinstance(destination, Track):
            destination = destination.id
        send_id = RPR.CreateTrackSend(self.id, destination)
        type = "hardware" if destination is None else "send"
        send = reapy.Send(self, send_id, type=type)
        return send
예제 #2
0
 def sends(self):
     return [reapy.Send(self, i, type="send") for i in range(self.n_sends)]
예제 #3
0
 def receives(self):
     return [
         reapy.Send(self, i, type="receive") for i in range(self.n_receives)
     ]