Skip to content

Commit

Permalink
Fix issue-2. Now is building (#10)
Browse files Browse the repository at this point in the history
* Improve readme
* Add sudo in travis for test
* change coverage to coveralls
* try not use jack library
* Removed wrong reference path
* Fix coverage
  • Loading branch information
SrMouraSilva committed Feb 11, 2017
1 parent 2af1a1c commit 749de55
Show file tree
Hide file tree
Showing 4 changed files with 26 additions and 8 deletions.
9 changes: 8 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,19 @@ python:
- "3.6-dev"
- "nightly"

sudo: required

install:
- pip3 install coverage
- pip3 install coveralls
- pip3 install cffi
- pip3 install JACK-Client

script:
- cd ..
- mkdir data
- cd data
- mkdir test
- cd ../PluginsManager
- coverage3 run --source=pluginsmanager setup.py test

after_success:
Expand Down
16 changes: 13 additions & 3 deletions Readme.rst
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,8 @@ Pythonic management of LV2 audio plugins with `mod-host`_.
Example
-------

This examples uses `Calf`_ and `Guitarix`_ audio plugins

Download and install `mod-host`_. For more information: :class:`Mod-host`

Start audio process
Expand Down Expand Up @@ -102,7 +104,7 @@ Add effects in the pedalboard
builder = Lv2EffectBuilder()
reverb = builder.build('http://calf.sourceforge.net/plugins/Reverb')
fuzz = builder.build('http://guitarix.sourceforge.net/plugins/gx_fuzzfacefm_#_fuzzfacefm_')
fuzz = builder.build('http://guitarix.sourceforge.net/plugins/gx_fuzz_#fuzz_')
reverb2 = builder.build('http://calf.sourceforge.net/plugins/Reverb')
pedalboard.append(reverb)
Expand All @@ -117,13 +119,14 @@ For obtains automatically the sound card inputs and outputs, use :class:`SystemE

.. code-block:: python
from pluginsmanager.model.system.system_effect_builder import SystemEffectBuilder
sys_effect = SystemEffectBuilder()
For manual input and output sound card definition, use:

.. code-block:: python
sys_effect = SystemEffect('system', ('capture_1', 'capture_2'), ('playback_1', 'playback_2'))
sys_effect = SystemEffect('system', ['capture_1', 'capture_2'], ['playback_1', 'playback_2'])
.. note::

Expand All @@ -133,7 +136,10 @@ Connecting *mode one*:

.. code-block:: python
sys_effect.outputs[0].connect(reverb.inputs[0])
# For connect output system effects, use
pedalboard.connections.append(Connection(sys_effect.outputs[0], reverb.inputs[0]))
# Instead of
#sys_effect.outputs[0].connect(reverb.inputs[0])
reverb.outputs[0].connect(fuzz.inputs[0])
reverb.outputs[1].connect(fuzz.inputs[0])
Expand All @@ -147,6 +153,8 @@ Connecting *mode two*:

.. code-block:: python
pedalboard.connections.append(Connection(sys_effect.outputs[0], reverb.inputs[0]))
pedalboard.connections.append(Connection(reverb.outputs[0], fuzz.inputs[0]))
pedalboard.connections.append(Connection(reverb.outputs[1], fuzz.inputs[0]))
pedalboard.connections.append(Connection(fuzz.outputs[0], reverb2.inputs[0]))
Expand Down Expand Up @@ -225,3 +233,5 @@ You can generate the documentation in your local machine:
.. _Sphinx: http://www.sphinx-doc.org/
.. _Read the Docs: http://readthedocs.org
.. _Calf: http://calf-studio-gear.org/
.. _Guitarix: http://guitarix.org/
6 changes: 3 additions & 3 deletions test/observer/autosaver_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ def test_observers(self):
observer.delete.assert_called_with(bank2)

def test_replace_bank(self):
observer = Autosaver('/home/paulo/PycharmProjects/PedalPi-Raspberry/data/test/')
observer = Autosaver('../data/test/')

manager = BanksManager()
manager.register(observer)
Expand All @@ -88,7 +88,7 @@ def test_replace_bank(self):
del manager.banks[0]

def test_swap_bank(self):
observer = Autosaver('/home/paulo/PycharmProjects/PedalPi-Raspberry/data/test/')
observer = Autosaver('../data/test/')

manager = BanksManager()
manager.register(observer)
Expand All @@ -107,7 +107,7 @@ def test_swap_bank(self):
del manager.banks[0]

def validate_persisted(self, manager):
autosaver_validation = Autosaver('/home/paulo/PycharmProjects/PedalPi-Raspberry/data/test/')
autosaver_validation = Autosaver('../data/test/')
banks = autosaver_validation.load(None)

self.assertEqual(len(manager.banks), len(banks))
Expand Down
3 changes: 2 additions & 1 deletion test/util/persistence_decoder_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@
from pluginsmanager.util.persistence_decoder import PersistenceDecoder, PersistenceDecoderError

from pluginsmanager.model.lv2.lv2_effect_builder import Lv2EffectBuilder
from pluginsmanager.model.system.system_effect_builder import SystemEffectBuilder
from pluginsmanager.model.system.system_effect import SystemEffect


Expand Down Expand Up @@ -86,6 +85,8 @@ def test_read_unknown_technology(self):
@unittest.skip
@unittest.skipIf('TRAVIS' in os.environ, 'Travis not contains audio interface')
def test_read_system_builder(self):
from pluginsmanager.model.system.system_effect_builder import SystemEffectBuilder

system_effect = SystemEffectBuilder(False).build()

util = PersistenceDecoder(system_effect)
Expand Down

0 comments on commit 749de55

Please sign in to comment.