-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added exposed function in ayfStart node for tutorial
- Loading branch information
Showing
5 changed files
with
98 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
15 changes: 10 additions & 5 deletions
15
...tarter/sources/Components/AudioNodes/ayfAuNStarter/matlab-local/jvxProcessOffline_local.m
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,13 @@ | ||
function [jvx_handle, jvx_out_frame] =jvxProcessOffline_local(jvx_handle, jvx_in_frame) | ||
function [jvx_handle, jvx_out_frame_m] =jvxProcessOffline_local(jvx_handle, jvx_in_frame) | ||
|
||
% Obtain processing handle | ||
global inProcessing; % <- access to the current processing data struct, frame counter etc. | ||
global jvx_host_call_global; % <- access to the underlying AudYoFlo host | ||
% Access to the host | ||
global jvx_host_call_global; | ||
|
||
% Realize talkthrough | ||
jvx_out_frame = jvx_in_frame * jvx_handle.volume; | ||
% Version I: C function version | ||
[a, jvx_out_frame_c] = jvx_host_call_global('external_call', 'CayfAuNStarter', 'ayf_starter_lib_process', jvx_in_frame); | ||
|
||
% Version II: Matlab version | ||
jvx_out_frame_m = jvx_in_frame * jvx_handle.volume; | ||
|
||
% Optional: compare both outputs! |
22 changes: 22 additions & 0 deletions
22
...b-projects/ayfstarter/sources/Components/AudioNodes/ayfAuNStarter/mcg/exports_project.mcg
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
SECTION MATLAB_EXPORTS | ||
{ | ||
//USE_MATLAB_CALL_AS_LIBRARY = "YES"; | ||
REFERENCE_CLASS = "CayfAuNStarter"; | ||
OUTPUTFILE_NAME = "CayfAuNStarter_external"; | ||
SECTION ayf_starter_lib_process | ||
{ | ||
DESCRIPTION = "Simple example function to call core processing function"; | ||
ACCEPT_INPUT_TYPES = { "JVX_DATAFORMAT_DATA"}; | ||
DIMENSION_INPUT_FIELD = {"2D"}; | ||
DESCRIPTION_INPUT_PARAMETERS = { "Input signal, NxM"}; | ||
ACCEPT_INPUT_NUMBER_MIN = 1; | ||
ACCEPT_INPUT_NUMBER_MAX = 1; | ||
PRODUCE_OUTPUT_TYPES = {"JVX_DATAFORMAT_DATA"}; | ||
DIMENSION_OUTPUT_FIELD = {"2D"}; | ||
DESCRIPTION_INPUT_PARAMETERS = { "Output signal, NxM"}; | ||
ACCEPT_OUTPUT_NUMBER_MIN = 1; | ||
ACCEPT_OUTPUT_NUMBER_MAX = 1; | ||
INPUT_OUTPUT_CROSS_REFERENCE_X = {0}; | ||
INPUT_OUTPUT_CROSS_REFERENCE_Y = {0}; | ||
}; | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters