|
Oakfield API Documentation 1.0.0
Numerical core APIs
|
Log-frequency spectral grid stimulus with explicit coordinate controls. More...
#include "coords.h"#include "oakfield/operator_split.h"#include <stdbool.h>#include <stddef.h>#include <stdint.h>

Go to the source code of this file.
Classes | |
| struct | SimStimulusLogSpectralGridConfig |
| Configuration for a log-frequency spectral grid stimulus. More... | |
Typedefs | |
| typedef struct SimStimulusLogSpectralGridConfig | SimStimulusLogSpectralGridConfig |
| Configuration for a log-frequency spectral grid stimulus. | |
Functions | |
| SimResult | sim_add_stimulus_log_spectral_grid_operator (struct SimContext *context, const SimStimulusLogSpectralGridConfig *config, size_t *out_index) |
| Register a log-frequency spectral grid stimulus operator. | |
| SimResult | sim_stimulus_log_spectral_grid_config (struct SimContext *context, size_t operator_index, SimStimulusLogSpectralGridConfig *out_config) |
| Copy the current log-spectral-grid configuration from a registered operator. | |
| SimResult | sim_stimulus_log_spectral_grid_update (struct SimContext *context, size_t operator_index, const SimStimulusLogSpectralGridConfig *config) |
| Replace or renormalize a registered log-spectral-grid configuration. | |
Log-frequency spectral grid stimulus with explicit coordinate controls.
| SimResult sim_add_stimulus_log_spectral_grid_operator | ( | struct SimContext * | context, |
| const SimStimulusLogSpectralGridConfig * | config, | ||
| size_t * | out_index | ||
| ) |
Register a log-frequency spectral grid stimulus operator.
The implementation copies and normalizes config, builds the modal grid and phase table, and registers the operator on the configured target field.
| context | Simulation context that will own the operator. | |
| config | Optional log-spectral-grid configuration; NULL selects normalized defaults. | |
| [out] | out_index | Optional destination for the registered operator index. |
| SimResult sim_stimulus_log_spectral_grid_config | ( | struct SimContext * | context, |
| size_t | operator_index, | ||
| SimStimulusLogSpectralGridConfig * | out_config | ||
| ) |
Copy the current log-spectral-grid configuration from a registered operator.
| context | Simulation context containing the operator. | |
| operator_index | Index returned by sim_add_stimulus_log_spectral_grid_operator(). | |
| [out] | out_config | Receives the operator's normalized configuration. |
| SimResult sim_stimulus_log_spectral_grid_update | ( | struct SimContext * | context, |
| size_t | operator_index, | ||
| const SimStimulusLogSpectralGridConfig * | config | ||
| ) |
Replace or renormalize a registered log-spectral-grid configuration.
Passing NULL for config keeps the existing configuration and reapplies normalization. A successful update rebuilds modes as needed and invalidates the scheduler plan.
| context | Simulation context containing the operator. |
| operator_index | Index of the log-spectral-grid operator to update. |
| config | Optional replacement configuration. |