Skip to content

Commit

Permalink
[dsp] Rename EffectParameter to AudioProcessorParameter
Browse files Browse the repository at this point in the history
  • Loading branch information
tobiashienzsch committed May 21, 2021
1 parent 41f58d6 commit c692551
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ TEST_DIRECTORY = tests
DOC_DIRECTORY = docs

.PHONY:
default: develop test
default: clean test lint

.PHONY:
install:
Expand Down
4 changes: 2 additions & 2 deletions dsp/__init__.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
'''Audio DSP utility classes and functions
'''
from .parameter import EffectParameter
from .parameter import AudioProcessorParameter


__all__ = ['EffectParameter', ]
__all__ = ['AudioProcessorParameter', ]
2 changes: 1 addition & 1 deletion dsp/parameter.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
import abc


class EffectParameter:
class AudioProcessorParameter:
'''Base class for all parameter types
'''

Expand Down
2 changes: 1 addition & 1 deletion examples/parameter.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
import dsp

print(dsp.EffectParameter('test', 'Test'))
print(dsp.AudioProcessorParameter('test', 'Test'))
6 changes: 3 additions & 3 deletions tests/test_parameter.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# pylint: skip-file
import pytest

from dsp import EffectParameter
from dsp import AudioProcessorParameter


@pytest.mark.parametrize("test_case, expected", [
Expand All @@ -11,7 +11,7 @@
('baz', 'baz'),
])
def test_effect_parameter_identifier(test_case, expected):
param = EffectParameter(test_case, '')
param = AudioProcessorParameter(test_case, '')
assert param.identifier == expected


Expand All @@ -22,5 +22,5 @@ def test_effect_parameter_identifier(test_case, expected):
('baz', 'baz'),
])
def test_effect_parameter_name(test_case, expected):
param = EffectParameter('', test_case)
param = AudioProcessorParameter('', test_case)
assert param.name == expected

0 comments on commit c692551

Please sign in to comment.