Skip to content

Commit

Permalink
fixed operator IDs and supported files doc
Browse files Browse the repository at this point in the history
  • Loading branch information
ansaminard committed Dec 5, 2024
1 parent a127929 commit de430d8
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions src/ansys/sound/core/sound_composer/source_harmonics.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,8 @@
from ._source_parent import SourceParent
from .source_control_time import SourceControlTime

ID_COMPUTE_LOAD_SOURCE_BBN = "sound_composer_load_source_harmonics"
ID_COMPUTE_GENERATE_SOUND_BBN = "sound_composer_generate_sound_harmonics"
ID_COMPUTE_LOAD_SOURCE_HARMONICS = "sound_composer_load_source_harmonics"
ID_COMPUTE_GENERATE_SOUND_HARMONICS = "sound_composer_generate_sound_harmonics"


class SourceHarmonics(SourceParent):
Expand All @@ -50,8 +50,8 @@ def __init__(self, file: str = "", source_control: SourceControlTime = None):
Parameters
----------
file : str, default: ""
Path to the harmonics data file. Supported files are text files with the header
`AnsysSound_Orders`.
Path to the harmonics source data file. Supported files are the same XML and text (with
the header `AnsysSound_Orders`) formats as supported by Ansys Sound SAS.
source_control : SourceControlTime, default: None
Source control, consisting of the control parameter values over time, to use when
generating the sound from this source.
Expand All @@ -60,8 +60,8 @@ def __init__(self, file: str = "", source_control: SourceControlTime = None):
self.source_control = source_control

# Define DPF Sound operators.
self.__operator_load = Operator(ID_COMPUTE_LOAD_SOURCE_BBN)
self.__operator_generate = Operator(ID_COMPUTE_GENERATE_SOUND_BBN)
self.__operator_load = Operator(ID_COMPUTE_LOAD_SOURCE_HARMONICS)
self.__operator_generate = Operator(ID_COMPUTE_GENERATE_SOUND_HARMONICS)

if len(file) > 0:
self.load_source_harmonics(file)
Expand Down Expand Up @@ -201,8 +201,8 @@ def load_source_harmonics(self, file: str):
Parameters
----------
file : str
Path to the harmonics source data file. Supported files have the same text format (with
the `AnsysSound_Orders` header) as that which is supported by Ansys Sound SAS.
Path to the harmonics source data file. Supported files are the same XML and text (with
the header `AnsysSound_Orders`) formats as supported by Ansys Sound SAS.
"""
# Set operator inputs.
self.__operator_load.connect(0, file)
Expand Down

0 comments on commit de430d8

Please sign in to comment.