Ejemplo n.º 1
0
    def remove(self, effect):
        """
        Remove an LV2 plugin instance (and also the jack client)

        :param Lv2Effect effect: Effect that your jack client encapsulated will removed
        """
        self.connection.send(ProtocolParser.remove(effect))
    def test_remove(self):
        effect_uri = 'http://calf.sourceforge.net/plugins/Reverb'
        effect_instance = 3

        reverb = self.builder.build(effect_uri)
        reverb.instance = effect_instance

        message = ProtocolParser.remove(reverb)

        correct_message = "remove {}".format(effect_instance)
        self.assertEqual(correct_message, message)