Debian Codegraph @

ags/audio/fx/ags_fx_synth_audio_signal.c

raw symbols SCIP
1 /* GSequencer - Advanced GTK Sequencer
2 * Copyright (C) 2005-2026 Joël Krähemann
3 *
4 * This file is part of GSequencer.
5 *
6 * GSequencer is free software: you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License as published by
8 * the Free Software Foundation, either version 3 of the License, or
9 * (at your option) any later version.
10 *
11 * GSequencer is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 * GNU General Public License for more details.
15 *
16 * You should have received a copy of the GNU General Public License
17 * along with GSequencer. If not, see <http://www.gnu.org/licenses/>.
18 */
19
20 #include <ags/audio/fx/ags_fx_synth_audio_signal.h>cxx . . $ `<file>/ags/audio/fx/ags_fx_synth_audio_signal.h`/
21
22 #include <ags/audio/ags_port.h>cxx . . $ `<file>/ags/audio/ags_port.h`/
23 #include <ags/audio/ags_audio_buffer_util.h>cxx . . $ `<file>/ags/audio/ags_audio_buffer_util.h`/
24
25 #include <ags/audio/fx/ags_fx_synth_audio.h>cxx . . $ `<file>/ags/audio/fx/ags_fx_synth_audio.h`/
26 #include <ags/audio/fx/ags_fx_synth_audio_processor.h>cxx . . $ `<file>/ags/audio/fx/ags_fx_synth_audio_processor.h`/
27 #include <ags/audio/fx/ags_fx_synth_channel.h>cxx . . $ `<file>/ags/audio/fx/ags_fx_synth_channel.h`/
28 #include <ags/audio/fx/ags_fx_synth_channel_processor.h>cxx . . $ `<file>/ags/audio/fx/ags_fx_synth_channel_processor.h`/
29 #include <ags/audio/fx/ags_fx_synth_recycling.h>cxx . . $ `<file>/ags/audio/fx/ags_fx_synth_recycling.h`/
30
31 #include <ags/i18n.h>cxx . . $ `<file>/ags/i18n.h`/
32
33 static void ags_fx_synth_audio_signal_class_initcxx . . $ ags_fx_synth_audio_signal_class_init(4e08d4a730046950).(AgsFxSynthAudioSignalClasscxx . . $ AgsFxSynthAudioSignalClass# *fx_synth_audio_signal);
34 static void ags_fx_synth_audio_signal_initcxx . . $ ags_fx_synth_audio_signal_init(4d8fc05315a57ed1).(AgsFxSynthAudioSignalcxx . . $ AgsFxSynthAudioSignal# *fx_synth_audio_signal);
35 static void ags_fx_synth_audio_signal_disposecxx . . $ ags_fx_synth_audio_signal_dispose(6087475fa43034d3).(GObjectcxx . . $ GObject# *gobject);
36 static void ags_fx_synth_audio_signal_finalizecxx . . $ ags_fx_synth_audio_signal_finalize(6087475fa43034d3).(GObjectcxx . . $ GObject# *gobject);
37
38 static void ags_fx_synth_audio_signal_stream_feedcxx . . $ ags_fx_synth_audio_signal_stream_feed(c1f3604c91c44e20).(AgsFxNotationAudioSignalcxx . . $ AgsFxNotationAudioSignal# *fx_notation_audio_signal,
39 AgsAudioSignalcxx . . $ AgsAudioSignal# *source,
40 AgsNotecxx . . $ AgsNote# *note,
41 gbooleancxx . . $ gboolean# pattern_mode,
42 guintcxx . . $ guint# x0, guintcxx . . $ guint# x1,
43 guintcxx . . $ guint# y,
44 gdoublecxx . . $ gdouble# delay_counter, guint64cxx . . $ guint64# offset_counter,
45 guintcxx . . $ guint# frame_count,
46 gdoublecxx . . $ gdouble# delay, guintcxx . . $ guint# buffer_size);
47 static void ags_fx_synth_audio_signal_notify_removecxx . . $ ags_fx_synth_audio_signal_notify_remove(cecb0c466d8108c7).(AgsFxNotationAudioSignalcxx . . $ AgsFxNotationAudioSignal# *fx_notation_audio_signal,
48 AgsAudioSignalcxx . . $ AgsAudioSignal# *source,
49 AgsNotecxx . . $ AgsNote# *note,
50 guintcxx . . $ guint# x0, guintcxx . . $ guint# x1,
51 guintcxx . . $ guint# y);
52
53 /**
54 * SECTION:ags_fx_synth_audio_signal
55 * @short_description: fx synth audio signal
56 * @title: AgsFxSynthAudioSignal
57 * @section_id:
58 * @include: ags/audio/fx/ags_fx_synth_audio_signal.h
59 *
60 * The #AgsFxSynthAudioSignal class provides ports to the effect processor.
61 */
62
63 static gpointercxx . . $ gpointer# ags_fx_synth_audio_signal_parent_classcxx . . $ ags_fx_synth_audio_signal_parent_class. = NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/16/include/stddef.h:419:9`!;
64
65 static const gcharcxx . . $ gchar# *ags_fx_synth_audio_signal_plugin_namecxx . . $ ags_fx_synth_audio_signal_plugin_name. = "ags-fx-synth";
66
67 GTypecxx . . $ GType#
68 ags_fx_synth_audio_signal_get_typecxx . . $ ags_fx_synth_audio_signal_get_type(7b3bcd0168edf51f).()
69 {
70 static gsizecxx . . $ gsize# g_define_type_id__static = 0;
71
72 if(g_once_init_entercxx . . $ `<external>/457917468643292165/gthread.h:270:10`!(&g_define_type_id__static)){
73 GTypecxx . . $ GType# ags_type_fx_synth_audio_signal = 0;
74
75 static const GTypeInfocxx . . $ GTypeInfo# ags_fx_synth_audio_signal_info = {
76 sizeof (AgsFxSynthAudioSignalClasscxx . . $ AgsFxSynthAudioSignalClass#),
77 NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/16/include/stddef.h:419:9`!, /* base_init */
78 NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/16/include/stddef.h:419:9`!, /* base_finalize */
79 (GClassInitFunccxx . . $ GClassInitFunc#) ags_fx_synth_audio_signal_class_initcxx . . $ ags_fx_synth_audio_signal_class_init(4e08d4a730046950).,
80 NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/16/include/stddef.h:419:9`!, /* class_finalize */
81 NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/16/include/stddef.h:419:9`!, /* class_audio_signal */
82 sizeof (AgsFxSynthAudioSignalcxx . . $ AgsFxSynthAudioSignal#),
83 0, /* n_preallocs */
84 (GInstanceInitFunccxx . . $ GInstanceInitFunc#) ags_fx_synth_audio_signal_initcxx . . $ ags_fx_synth_audio_signal_init(4d8fc05315a57ed1).,
85 };
86
87 ags_type_fx_synth_audio_signal = g_type_register_staticcxx . . $ g_type_register_static(805a40cfa272e950).(AGS_TYPE_FX_NOTATION_AUDIO_SIGNALcxx . . $ `ags/audio/fx/ags_fx_notation_audio_signal.h:33:9`!,
88 "AgsFxSynthAudioSignal",
89 &ags_fx_synth_audio_signal_info,
90 0);
91
92 g_once_init_leavecxx . . $ `<external>/457917468643292165/gthread.h:277:10`!(&g_define_type_id__static, ags_type_fx_synth_audio_signal);
93 }
94
95 return(g_define_type_id__static);
96 }
97
98 void
99 ags_fx_synth_audio_signal_class_initcxx . . $ ags_fx_synth_audio_signal_class_init(4e08d4a730046950).(AgsFxSynthAudioSignalClasscxx . . $ AgsFxSynthAudioSignalClass# *fx_synth_audio_signal)
100 {
101 GObjectClasscxx . . $ GObjectClass# *gobject;
102 AgsFxNotationAudioSignalClasscxx . . $ AgsFxNotationAudioSignalClass# *fx_notation_audio_signal;
103
104 ags_fx_synth_audio_signal_parent_classcxx . . $ ags_fx_synth_audio_signal_parent_class. = g_type_class_peek_parentcxx . . $ g_type_class_peek_parent(9f162e79bfc6c74).(fx_synth_audio_signal);
105
106 /* GObjectClass */
107 gobject = (GObjectClasscxx . . $ GObjectClass# *) fx_synth_audio_signal;
108
109 gobject->disposecxx . . $ _GObjectClass#dispose. = ags_fx_synth_audio_signal_disposecxx . . $ ags_fx_synth_audio_signal_dispose(6087475fa43034d3).;
110 gobject->finalizecxx . . $ _GObjectClass#finalize. = ags_fx_synth_audio_signal_finalizecxx . . $ ags_fx_synth_audio_signal_finalize(6087475fa43034d3).;
111
112 /* AgsFxNotationAudioSignalClass */
113 fx_notation_audio_signal = (AgsFxNotationAudioSignalClasscxx . . $ AgsFxNotationAudioSignalClass# *) fx_synth_audio_signal;
114
115 fx_notation_audio_signal->stream_feedcxx . . $ _AgsFxNotationAudioSignalClass#stream_feed. = ags_fx_synth_audio_signal_stream_feedcxx . . $ ags_fx_synth_audio_signal_stream_feed(c1f3604c91c44e20).;
116 fx_notation_audio_signal->notify_removecxx . . $ _AgsFxNotationAudioSignalClass#notify_remove. = ags_fx_synth_audio_signal_notify_removecxx . . $ ags_fx_synth_audio_signal_notify_remove(cecb0c466d8108c7).;
117 }
118
119 void
120 ags_fx_synth_audio_signal_initcxx . . $ ags_fx_synth_audio_signal_init(4d8fc05315a57ed1).(AgsFxSynthAudioSignalcxx . . $ AgsFxSynthAudioSignal# *fx_synth_audio_signal)
121 {
122 AGS_RECALLcxx . . $ `ags/audio/ags_recall.h:42:9`!(fx_synth_audio_signal)->namecxx . . $ _AgsRecall#name. = "ags-fx-synth";
123 AGS_RECALLcxx . . $ `ags/audio/ags_recall.h:42:9`!(fx_synth_audio_signal)->versioncxx . . $ _AgsRecall#version. = AGS_RECALL_DEFAULT_VERSIONcxx . . $ `ags/audio/ags_recall.h:52:9`!;
124 AGS_RECALLcxx . . $ `ags/audio/ags_recall.h:42:9`!(fx_synth_audio_signal)->build_idcxx . . $ _AgsRecall#build_id. = AGS_RECALL_DEFAULT_BUILD_IDcxx . . $ `ags/audio/ags_recall.h:53:9`!;
125 AGS_RECALLcxx . . $ `ags/audio/ags_recall.h:42:9`!(fx_synth_audio_signal)->xml_typecxx . . $ _AgsRecall#xml_type. = "ags-fx-synth-audio-signal";
126 }
127
128 void
129 ags_fx_synth_audio_signal_disposecxx . . $ ags_fx_synth_audio_signal_dispose(6087475fa43034d3).(GObjectcxx . . $ GObject# *gobject)
130 {
131 AgsFxSynthAudioSignalcxx . . $ AgsFxSynthAudioSignal# *fx_synth_audio_signal;
132
133 fx_synth_audio_signal = AGS_FX_SYNTH_AUDIO_SIGNALcxx . . $ `ags/audio/fx/ags_fx_synth_audio_signal.h:36:9`!(gobject);
134
135 /* call parent */
136 G_OBJECT_CLASScxx . . $ `<external>/1341695927569185362/gobject.h:61:9`!(ags_fx_synth_audio_signal_parent_class)->disposecxx . . $ _GObjectClass#dispose.(gobject);
137 }
138
139 void
140 ags_fx_synth_audio_signal_finalizecxx . . $ ags_fx_synth_audio_signal_finalize(6087475fa43034d3).(GObjectcxx . . $ GObject# *gobject)
141 {
142 AgsFxSynthAudioSignalcxx . . $ AgsFxSynthAudioSignal# *fx_synth_audio_signal;
143
144 fx_synth_audio_signal = AGS_FX_SYNTH_AUDIO_SIGNALcxx . . $ `ags/audio/fx/ags_fx_synth_audio_signal.h:36:9`!(gobject);
145
146 /* call parent */
147 G_OBJECT_CLASScxx . . $ `<external>/1341695927569185362/gobject.h:61:9`!(ags_fx_synth_audio_signal_parent_class)->finalizecxx . . $ _GObjectClass#finalize.(gobject);
148 }
149
150 void
151 ags_fx_synth_audio_signal_stream_feedcxx . . $ ags_fx_synth_audio_signal_stream_feed(c1f3604c91c44e20).(AgsFxNotationAudioSignalcxx . . $ AgsFxNotationAudioSignal# *fx_notation_audio_signal,
152 AgsAudioSignalcxx . . $ AgsAudioSignal# *source,
153 AgsNotecxx . . $ AgsNote# *note,
154 gbooleancxx . . $ gboolean# pattern_mode,
155 guintcxx . . $ guint# x0, guintcxx . . $ guint# x1,
156 guintcxx . . $ guint# y,
157 gdoublecxx . . $ gdouble# delay_counter, guint64cxx . . $ guint64# offset_counter,
158 guintcxx . . $ guint# frame_count,
159 gdoublecxx . . $ gdouble# delay, guintcxx . . $ guint# buffer_size)
160 {
161 AgsAudiocxx . . $ AgsAudio# *audio;
162 AgsFxSynthAudiocxx . . $ AgsFxSynthAudio# *fx_synth_audio;
163 AgsFxSynthAudioProcessorcxx . . $ AgsFxSynthAudioProcessor# *fx_synth_audio_processor;
164 AgsFxSynthChannelProcessorcxx . . $ AgsFxSynthChannelProcessor# *fx_synth_channel_processor;
165 AgsFxSynthRecyclingcxx . . $ AgsFxSynthRecycling# *fx_synth_recycling;
166 AgsFxSynthAudioSignalcxx . . $ AgsFxSynthAudioSignal# *fx_synth_audio_signal;
167
168 guint64cxx . . $ guint64# note_256th_offset[16] = {0,};
169
170 guintcxx . . $ guint# sound_scope;
171 guintcxx . . $ guint# audio_channel;
172 guintcxx . . $ guint# audio_start_mapping;
173 guintcxx . . $ guint# midi_start_mapping;
174 gintcxx . . $ gint# midi_note;
175 guintcxx . . $ guint# note_256th_offset_length;
176 guintcxx . . $ guint# x0_256th, x1_256th;
177 guint64cxx . . $ guint64# note_256th_offset_lower;
178 gdoublecxx . . $ gdouble# note_256th_delay;
179 guintcxx . . $ guint# format;
180 guintcxx . . $ guint# samplerate;
181 guintcxx . . $ guint# copy_mode_out;
182 guintcxx . . $ guint# audio_buffer_util_format;
183 guintcxx . . $ guint# copy_mode;
184
185 gbooleancxx . . $ gboolean# synth_0_sync_enabled;
186 gdoublecxx . . $ gdouble# synth_0_sync_relative_attack_factor;
187 gdoublecxx . . $ gdouble# synth_0_sync_attack_0;
188 gdoublecxx . . $ gdouble# synth_0_sync_phase_0;
189 gdoublecxx . . $ gdouble# synth_0_sync_attack_1;
190 gdoublecxx . . $ gdouble# synth_0_sync_phase_1;
191 gdoublecxx . . $ gdouble# synth_0_sync_attack_2;
192 gdoublecxx . . $ gdouble# synth_0_sync_phase_2;
193 guintcxx . . $ guint# synth_0_sync_lfo_oscillator;
194 gdoublecxx . . $ gdouble# synth_0_sync_lfo_frequency;
195
196 gbooleancxx . . $ gboolean# synth_1_sync_enabled;
197 gdoublecxx . . $ gdouble# synth_1_sync_relative_attack_factor;
198 gdoublecxx . . $ gdouble# synth_1_sync_attack_0;
199 gdoublecxx . . $ gdouble# synth_1_sync_phase_0;
200 gdoublecxx . . $ gdouble# synth_1_sync_attack_1;
201 gdoublecxx . . $ gdouble# synth_1_sync_phase_1;
202 gdoublecxx . . $ gdouble# synth_1_sync_attack_2;
203 gdoublecxx . . $ gdouble# synth_1_sync_phase_2;
204 guintcxx . . $ guint# synth_1_sync_lfo_oscillator;
205 gdoublecxx . . $ gdouble# synth_1_sync_lfo_frequency;
206
207 gbooleancxx . . $ gboolean# sequencer_enabled;
208 gintcxx . . $ gint# sequencer_sign;
209
210 gbooleancxx . . $ gboolean# note_256th_mode;
211
212 gbooleancxx . . $ gboolean# low_pass_enabled;
213
214 gbooleancxx . . $ gboolean# high_pass_enabled;
215
216 gbooleancxx . . $ gboolean# chorus_enabled;
217
218 GRecMutexcxx . . $ GRecMutex# *source_stream_mutex;
219 GRecMutexcxx . . $ GRecMutex# *fx_synth_audio_mutex;
220 GRecMutexcxx . . $ GRecMutex# *fx_synth_audio_processor_mutex;
221
222 fx_synth_audio_signal = (AgsFxSynthAudioSignalcxx . . $ AgsFxSynthAudioSignal# *) fx_notation_audio_signal;
223
224 audio = NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/16/include/stddef.h:419:9`!;
225
226 fx_synth_audio = NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/16/include/stddef.h:419:9`!;
227 fx_synth_audio_processor = NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/16/include/stddef.h:419:9`!;
228
229 fx_synth_channel_processor = NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/16/include/stddef.h:419:9`!;
230
231 fx_synth_recycling = NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/16/include/stddef.h:419:9`!;
232
233 sound_scope = ags_recall_get_sound_scopecxx . . $ ags_recall_get_sound_scope(20bf46f7161aca3b).((AgsRecallcxx . . $ AgsRecall# *) fx_notation_audio_signal);
234
235 audio_channel = 0;
236
237 audio_start_mapping = 0;
238 midi_start_mapping = 0;
239
240 format = AGS_SOUNDCARD_DEFAULT_FORMATcxx . . $ `ags/object/ags_soundcard.h:49:9`!;
241 samplerate = AGS_SOUNDCARD_DEFAULT_SAMPLERATEcxx . . $ `ags/object/ags_soundcard.h:45:9`!;
242
243 synth_0_sync_enabled = FALSEcxx . . $ `<external>/12741050725406041920/gmacros.h:967:9`!;
244
245 synth_0_sync_relative_attack_factor = 1.0;
246
247 synth_0_sync_attack_0 = 0.0;
248 synth_0_sync_phase_0 = 0.0;
249
250 synth_0_sync_attack_1 = 0.0;
251 synth_0_sync_phase_1 = 0.0;
252
253 synth_0_sync_attack_2 = 0.0;
254 synth_0_sync_phase_2 = 0.0;
255
256 synth_0_sync_lfo_oscillator = AGS_SYNTH_OSCILLATOR_SINcxx . . $ AGS_SYNTH_OSCILLATOR_SIN.;
257 synth_0_sync_lfo_frequency = 10.0;
258
259 synth_1_sync_enabled = FALSEcxx . . $ `<external>/12741050725406041920/gmacros.h:967:9`!;
260
261 synth_1_sync_relative_attack_factor = 1.0;
262
263 synth_1_sync_attack_0 = 0.0;
264 synth_1_sync_phase_0 = 0.0;
265
266 synth_1_sync_attack_1 = 0.0;
267 synth_1_sync_phase_1 = 0.0;
268
269 synth_1_sync_attack_2 = 0.0;
270 synth_1_sync_phase_2 = 0.0;
271
272 synth_1_sync_lfo_oscillator = AGS_SYNTH_OSCILLATOR_SINcxx . . $ AGS_SYNTH_OSCILLATOR_SIN.;
273 synth_1_sync_lfo_frequency = 10.0;
274
275 sequencer_enabled = FALSEcxx . . $ `<external>/12741050725406041920/gmacros.h:967:9`!;
276 sequencer_sign = 0;
277
278 low_pass_enabled = FALSEcxx . . $ `<external>/12741050725406041920/gmacros.h:967:9`!;
279
280 high_pass_enabled = FALSEcxx . . $ `<external>/12741050725406041920/gmacros.h:967:9`!;
281
282 note_256th_mode = ags_fx_notation_audio_get_note_256th_modecxx . . $ ags_fx_notation_audio_get_note_256th_mode(56ada52d184c08f1).((AgsFxNotationAudiocxx . . $ AgsFxNotationAudio# *) fx_synth_audio);
283
284 chorus_enabled = FALSEcxx . . $ `<external>/12741050725406041920/gmacros.h:967:9`!;
285
286 g_object_getcxx . . $ g_object_get(1ac911bdc4e9a14d).(fx_notation_audio_signal,
287 "parent", &fx_synth_recycling,
288 NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/16/include/stddef.h:419:9`!);
289
290 g_object_getcxx . . $ g_object_get(1ac911bdc4e9a14d).(fx_synth_recycling,
291 "parent", &fx_synth_channel_processor,
292 NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/16/include/stddef.h:419:9`!);
293
294 g_object_getcxx . . $ g_object_get(1ac911bdc4e9a14d).(fx_synth_channel_processor,
295 "recall-audio", &fx_synth_audio,
296 "recall-audio-run", &fx_synth_audio_processor,
297 NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/16/include/stddef.h:419:9`!);
298
299 g_object_getcxx . . $ g_object_get(1ac911bdc4e9a14d).(fx_synth_audio,
300 "audio", &audio,
301 NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/16/include/stddef.h:419:9`!);
302
303 g_object_getcxx . . $ g_object_get(1ac911bdc4e9a14d).(fx_synth_audio_processor,
304 "audio-channel", &audio_channel,
305 NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/16/include/stddef.h:419:9`!);
306
307 g_object_getcxx . . $ g_object_get(1ac911bdc4e9a14d).(source,
308 "format", &format,
309 "samplerate", &samplerate,
310 NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/16/include/stddef.h:419:9`!);
311
312 g_object_getcxx . . $ g_object_get(1ac911bdc4e9a14d).(note,
313 "x0-256th", &x0_256th,
314 "x1-256th", &x1_256th,
315 NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/16/include/stddef.h:419:9`!);
316
317 audio_buffer_util_format = ags_audio_buffer_util_format_from_soundcardcxx . . $ ags_audio_buffer_util_format_from_soundcard(af3122fa74eb2af1).(&(fx_synth_audio_signal->audio_buffer_utilcxx . . $ _AgsFxSynthAudioSignal#audio_buffer_util.),
318 format);
319
320 copy_mode = ags_audio_buffer_util_get_copy_mode_from_formatcxx . . $ ags_audio_buffer_util_get_copy_mode_from_format(fdce556263aa1f1e).(&(fx_synth_audio_signal->audio_buffer_utilcxx . . $ _AgsFxSynthAudioSignal#audio_buffer_util.),
321 audio_buffer_util_format,
322 audio_buffer_util_format);
323
324 /* get synth mutex */
325 fx_synth_audio_mutex = AGS_RECALL_GET_OBJ_MUTEXcxx . . $ `ags/audio/ags_recall.h:50:9`!(fx_synth_audio);
326 fx_synth_audio_processor_mutex = AGS_RECALL_GET_OBJ_MUTEXcxx . . $ `ags/audio/ags_recall.h:50:9`!(fx_synth_audio_processor);
327
328 g_rec_mutex_lockcxx . . $ g_rec_mutex_lock(70e02e1a6dfc5752).(fx_synth_audio_processor_mutex);
329
330 note_256th_offset_length = 0;
331
332 ags_frame_clock_get_note_256th_offsetcxx . . $ ags_frame_clock_get_note_256th_offset(5cb29f1322a60365).(AGS_FX_NOTATION_AUDIO_PROCESSORcxx . . $ `ags/audio/fx/ags_fx_notation_audio_processor.h:37:9`!(fx_synth_audio_processor)->frame_clockcxx . . $ _AgsFxNotationAudioProcessor#frame_clock.,
333 &(note_256th_offset[0]),
334 &note_256th_offset_length);
335
336 note_256th_offset_lower = note_256th_offset[0];
337
338 note_256th_delay = (gdoublecxx . . $ gdouble#) AGS_FX_NOTATION_AUDIO_PROCESSORcxx . . $ `ags/audio/fx/ags_fx_notation_audio_processor.h:37:9`!(fx_synth_audio_processor)->frame_clockcxx . . $ _AgsFxNotationAudioProcessor#frame_clock.->absolute_delaycxx . . $ _AgsFrameClock#absolute_delay. / 16.0;
339
340 g_rec_mutex_unlockcxx . . $ g_rec_mutex_unlock(70e02e1a6dfc5752).(fx_synth_audio_processor_mutex);
341
342 /* process data */
343 source_stream_mutex = AGS_AUDIO_SIGNAL_GET_STREAM_MUTEXcxx . . $ `ags/audio/ags_audio_signal.h:41:9`!(source);
344
345 g_object_getcxx . . $ g_object_get(1ac911bdc4e9a14d).(audio,
346 "audio-start-mapping", &audio_start_mapping,
347 "midi-start-mapping", &midi_start_mapping,
348 NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/16/include/stddef.h:419:9`!);
349
350 if(ags_audio_test_behaviour_flagscxx . . $ ags_audio_test_behaviour_flags(a6fe955640454778).(audio, AGS_SOUND_BEHAVIOUR_REVERSE_MAPPINGcxx . . $ AGS_SOUND_BEHAVIOUR_REVERSE_MAPPING.)){
351 midi_note = (128 - y - 1 - audio_start_mapping + midi_start_mapping);
352 }else{
353 midi_note = (y - audio_start_mapping + midi_start_mapping);
354 }
355
356 if(fx_synth_audio != NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/16/include/stddef.h:419:9`!){
357 AgsPortcxx . . $ AgsPort# *port;
358
359 AgsFxSynthAudioChannelDatacxx . . $ AgsFxSynthAudioChannelData# *channel_data;
360
361 gdoublecxx . . $ gdouble# octave;
362 gdoublecxx . . $ gdouble# key;
363
364 GValuecxx . . $ GValue# value = {0,};
365
366 channel_data = fx_synth_audio->scope_datacxx . . $ _AgsFxSynthAudio#scope_data.[sound_scope]->channel_datacxx . . $ _AgsFxSynthAudioScopeData#channel_data.[audio_channel];
367
368 /* synth-0 oscillator */
369 g_object_getcxx . . $ g_object_get(1ac911bdc4e9a14d).(fx_synth_audio,
370 "synth-0-oscillator", &port,
371 NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/16/include/stddef.h:419:9`!);
372
373 g_value_initcxx . . $ g_value_init(afc049a76445919c).(&value, G_TYPE_FLOATcxx . . $ `<external>/9567554376676449156/gtype.h:153:9`!);
374
375 if(port != NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/16/include/stddef.h:419:9`!){
376 ags_port_safe_readcxx . . $ ags_port_safe_read(3f8c7b03f2be4a83).(port,
377 &value);
378
379 ags_synth_util_set_synth_oscillator_modecxx . . $ ags_synth_util_set_synth_oscillator_mode(81ee016634e46c86).(channel_data->synth_0cxx . . $ _AgsFxSynthAudioChannelData#synth_0.,
380 (guintcxx . . $ guint#) g_value_get_floatcxx . . $ g_value_get_float(19582a908f876f88).(&value));
381
382 g_object_unrefcxx . . $ g_object_unref(5d22bdacc48458e8).(port);
383 }
384
385 g_value_unsetcxx . . $ g_value_unset(15c06aff79890746).(&value);
386
387 /* synth-0 octave */
388 octave = 0.0;
389 key = 0.0;
390
391 g_object_getcxx . . $ g_object_get(1ac911bdc4e9a14d).(fx_synth_audio,
392 "synth-0-octave", &port,
393 NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/16/include/stddef.h:419:9`!);
394
395 g_value_initcxx . . $ g_value_init(afc049a76445919c).(&value, G_TYPE_FLOATcxx . . $ `<external>/9567554376676449156/gtype.h:153:9`!);
396
397 if(port != NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/16/include/stddef.h:419:9`!){
398 ags_port_safe_readcxx . . $ ags_port_safe_read(3f8c7b03f2be4a83).(port,
399 &value);
400
401 octave = (gdoublecxx . . $ gdouble#) g_value_get_floatcxx . . $ g_value_get_float(19582a908f876f88).(&value);
402
403 g_object_unrefcxx . . $ g_object_unref(5d22bdacc48458e8).(port);
404 }
405
406 g_value_unsetcxx . . $ g_value_unset(15c06aff79890746).(&value);
407
408 /* synth-0 key */
409 g_object_getcxx . . $ g_object_get(1ac911bdc4e9a14d).(fx_synth_audio,
410 "synth-0-key", &port,
411 NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/16/include/stddef.h:419:9`!);
412
413 g_value_initcxx . . $ g_value_init(afc049a76445919c).(&value, G_TYPE_FLOATcxx . . $ `<external>/9567554376676449156/gtype.h:153:9`!);
414
415 if(port != NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/16/include/stddef.h:419:9`!){
416 ags_port_safe_readcxx . . $ ags_port_safe_read(3f8c7b03f2be4a83).(port,
417 &value);
418
419 key = (gdoublecxx . . $ gdouble#) g_value_get_floatcxx . . $ g_value_get_float(19582a908f876f88).(&value);
420
421 g_object_unrefcxx . . $ g_object_unref(5d22bdacc48458e8).(port);
422 }
423
424 g_value_unsetcxx . . $ g_value_unset(15c06aff79890746).(&value);
425
426 ags_synth_util_set_frequencycxx . . $ ags_synth_util_set_frequency(da6026408120430c).(channel_data->synth_0cxx . . $ _AgsFxSynthAudioChannelData#synth_0.,
427 exp2cxx . . $ exp2(447c67c6676f75c3).(((octave * 12.0) + key + ((gdoublecxx . . $ gdouble#) midi_note - 48.0)) / 12.0) * 440.0);
428
429 // g_message("synth 0 - osc = %d, frequency = %f, octave = %f, key= %f", channel_data->synth_0.synth_oscillator_mode, channel_data->synth_0.frequency, octave, key);
430
431 /* synth-0 phase */
432 g_object_getcxx . . $ g_object_get(1ac911bdc4e9a14d).(fx_synth_audio,
433 "synth-0-phase", &port,
434 NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/16/include/stddef.h:419:9`!);
435
436 g_value_initcxx . . $ g_value_init(afc049a76445919c).(&value, G_TYPE_FLOATcxx . . $ `<external>/9567554376676449156/gtype.h:153:9`!);
437
438 if(port != NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/16/include/stddef.h:419:9`!){
439 ags_port_safe_readcxx . . $ ags_port_safe_read(3f8c7b03f2be4a83).(port,
440 &value);
441
442 ags_synth_util_set_phasecxx . . $ ags_synth_util_set_phase(da6026408120430c).(channel_data->synth_0cxx . . $ _AgsFxSynthAudioChannelData#synth_0.,
443 ((gdoublecxx . . $ gdouble#) samplerate / ags_synth_util_get_frequencycxx . . $ ags_synth_util_get_frequency(5aab7d53513f5afb).(channel_data->synth_0cxx . . $ _AgsFxSynthAudioChannelData#synth_0.)) * ((gdoublecxx . . $ gdouble#) g_value_get_floatcxx . . $ g_value_get_float(19582a908f876f88).(&value) / (2.0 * M_PIcxx . . $ `<external>/11263917310783833665/math.h:1289:10`!)));
444
445 g_object_unrefcxx . . $ g_object_unref(5d22bdacc48458e8).(port);
446 }
447
448 g_value_unsetcxx . . $ g_value_unset(15c06aff79890746).(&value);
449
450 /* synth-0 volume */
451 g_object_getcxx . . $ g_object_get(1ac911bdc4e9a14d).(fx_synth_audio,
452 "synth-0-volume", &port,
453 NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/16/include/stddef.h:419:9`!);
454
455 g_value_initcxx . . $ g_value_init(afc049a76445919c).(&value, G_TYPE_FLOATcxx . . $ `<external>/9567554376676449156/gtype.h:153:9`!);
456
457 if(port != NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/16/include/stddef.h:419:9`!){
458 ags_port_safe_readcxx . . $ ags_port_safe_read(3f8c7b03f2be4a83).(port,
459 &value);
460
461 ags_synth_util_set_volumecxx . . $ ags_synth_util_set_volume(da6026408120430c).(channel_data->synth_0cxx . . $ _AgsFxSynthAudioChannelData#synth_0.,
462 (gdoublecxx . . $ gdouble#) g_value_get_floatcxx . . $ g_value_get_float(19582a908f876f88).(&value));
463
464 g_object_unrefcxx . . $ g_object_unref(5d22bdacc48458e8).(port);
465 }
466
467 g_value_unsetcxx . . $ g_value_unset(15c06aff79890746).(&value);
468
469 /* synth-0 sync enabled */
470 g_object_getcxx . . $ g_object_get(1ac911bdc4e9a14d).(fx_synth_audio,
471 "synth-0-sync-enabled", &port,
472 NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/16/include/stddef.h:419:9`!);
473
474 g_value_initcxx . . $ g_value_init(afc049a76445919c).(&value, G_TYPE_FLOATcxx . . $ `<external>/9567554376676449156/gtype.h:153:9`!);
475
476 if(port != NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/16/include/stddef.h:419:9`!){
477 ags_port_safe_readcxx . . $ ags_port_safe_read(3f8c7b03f2be4a83).(port,
478 &value);
479
480 synth_0_sync_enabled = (gbooleancxx . . $ gboolean#) g_value_get_floatcxx . . $ g_value_get_float(19582a908f876f88).(&value);
481
482 g_object_unrefcxx . . $ g_object_unref(5d22bdacc48458e8).(port);
483 }
484
485 g_value_unsetcxx . . $ g_value_unset(15c06aff79890746).(&value);
486
487 if(synth_0_sync_enabled){
488 /* synth-0 sync relative attack factor */
489 g_object_getcxx . . $ g_object_get(1ac911bdc4e9a14d).(fx_synth_audio,
490 "synth-0-sync-relative-attack-factor", &port,
491 NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/16/include/stddef.h:419:9`!);
492
493 g_value_initcxx . . $ g_value_init(afc049a76445919c).(&value, G_TYPE_FLOATcxx . . $ `<external>/9567554376676449156/gtype.h:153:9`!);
494
495 if(port != NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/16/include/stddef.h:419:9`!){
496 ags_port_safe_readcxx . . $ ags_port_safe_read(3f8c7b03f2be4a83).(port,
497 &value);
498
499 synth_0_sync_relative_attack_factor = (gbooleancxx . . $ gboolean#) g_value_get_floatcxx . . $ g_value_get_float(19582a908f876f88).(&value);
500
501 g_object_unrefcxx . . $ g_object_unref(5d22bdacc48458e8).(port);
502 }
503
504 g_value_unsetcxx . . $ g_value_unset(15c06aff79890746).(&value);
505
506 /* synth-0 sync attack 0 */
507 g_object_getcxx . . $ g_object_get(1ac911bdc4e9a14d).(fx_synth_audio,
508 "synth-0-sync-attack-0", &port,
509 NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/16/include/stddef.h:419:9`!);
510
511 g_value_initcxx . . $ g_value_init(afc049a76445919c).(&value, G_TYPE_FLOATcxx . . $ `<external>/9567554376676449156/gtype.h:153:9`!);
512
513 if(port != NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/16/include/stddef.h:419:9`!){
514 ags_port_safe_readcxx . . $ ags_port_safe_read(3f8c7b03f2be4a83).(port,
515 &value);
516
517 synth_0_sync_attack_0 = (gdoublecxx . . $ gdouble#) g_value_get_floatcxx . . $ g_value_get_float(19582a908f876f88).(&value);
518
519 g_object_unrefcxx . . $ g_object_unref(5d22bdacc48458e8).(port);
520 }
521
522 g_value_unsetcxx . . $ g_value_unset(15c06aff79890746).(&value);
523
524 /* synth-0 sync phase 0 */
525 g_object_getcxx . . $ g_object_get(1ac911bdc4e9a14d).(fx_synth_audio,
526 "synth-0-sync-phase-0", &port,
527 NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/16/include/stddef.h:419:9`!);
528
529 g_value_initcxx . . $ g_value_init(afc049a76445919c).(&value, G_TYPE_FLOATcxx . . $ `<external>/9567554376676449156/gtype.h:153:9`!);
530
531 if(port != NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/16/include/stddef.h:419:9`!){
532 ags_port_safe_readcxx . . $ ags_port_safe_read(3f8c7b03f2be4a83).(port,
533 &value);
534
535 synth_0_sync_phase_0 = (gdoublecxx . . $ gdouble#) g_value_get_floatcxx . . $ g_value_get_float(19582a908f876f88).(&value);
536
537 g_object_unrefcxx . . $ g_object_unref(5d22bdacc48458e8).(port);
538 }
539
540 g_value_unsetcxx . . $ g_value_unset(15c06aff79890746).(&value);
541
542 /* synth-0 sync attack 1 */
543 g_object_getcxx . . $ g_object_get(1ac911bdc4e9a14d).(fx_synth_audio,
544 "synth-0-sync-attack-1", &port,
545 NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/16/include/stddef.h:419:9`!);
546
547 g_value_initcxx . . $ g_value_init(afc049a76445919c).(&value, G_TYPE_FLOATcxx . . $ `<external>/9567554376676449156/gtype.h:153:9`!);
548
549 if(port != NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/16/include/stddef.h:419:9`!){
550 ags_port_safe_readcxx . . $ ags_port_safe_read(3f8c7b03f2be4a83).(port,
551 &value);
552
553 synth_0_sync_attack_1 = (gdoublecxx . . $ gdouble#) g_value_get_floatcxx . . $ g_value_get_float(19582a908f876f88).(&value);
554
555 g_object_unrefcxx . . $ g_object_unref(5d22bdacc48458e8).(port);
556 }
557
558 g_value_unsetcxx . . $ g_value_unset(15c06aff79890746).(&value);
559
560 /* synth-0 sync phase 1 */
561 g_object_getcxx . . $ g_object_get(1ac911bdc4e9a14d).(fx_synth_audio,
562 "synth-0-sync-phase-1", &port,
563 NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/16/include/stddef.h:419:9`!);
564
565 g_value_initcxx . . $ g_value_init(afc049a76445919c).(&value, G_TYPE_FLOATcxx . . $ `<external>/9567554376676449156/gtype.h:153:9`!);
566
567 if(port != NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/16/include/stddef.h:419:9`!){
568 ags_port_safe_readcxx . . $ ags_port_safe_read(3f8c7b03f2be4a83).(port,
569 &value);
570
571 synth_0_sync_phase_1 = (gdoublecxx . . $ gdouble#) g_value_get_floatcxx . . $ g_value_get_float(19582a908f876f88).(&value);
572
573 g_object_unrefcxx . . $ g_object_unref(5d22bdacc48458e8).(port);
574 }
575
576 g_value_unsetcxx . . $ g_value_unset(15c06aff79890746).(&value);
577
578 /* synth-0 sync attack 2 */
579 g_object_getcxx . . $ g_object_get(1ac911bdc4e9a14d).(fx_synth_audio,
580 "synth-0-sync-attack-2", &port,
581 NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/16/include/stddef.h:419:9`!);
582
583 g_value_initcxx . . $ g_value_init(afc049a76445919c).(&value, G_TYPE_FLOATcxx . . $ `<external>/9567554376676449156/gtype.h:153:9`!);
584
585 if(port != NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/16/include/stddef.h:419:9`!){
586 ags_port_safe_readcxx . . $ ags_port_safe_read(3f8c7b03f2be4a83).(port,
587 &value);
588
589 synth_0_sync_attack_2 = (gdoublecxx . . $ gdouble#) g_value_get_floatcxx . . $ g_value_get_float(19582a908f876f88).(&value);
590
591 g_object_unrefcxx . . $ g_object_unref(5d22bdacc48458e8).(port);
592 }
593
594 g_value_unsetcxx . . $ g_value_unset(15c06aff79890746).(&value);
595
596 /* synth-0 sync phase 2 */
597 g_object_getcxx . . $ g_object_get(1ac911bdc4e9a14d).(fx_synth_audio,
598 "synth-0-sync-phase-2", &port,
599 NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/16/include/stddef.h:419:9`!);
600
601 g_value_initcxx . . $ g_value_init(afc049a76445919c).(&value, G_TYPE_FLOATcxx . . $ `<external>/9567554376676449156/gtype.h:153:9`!);
602
603 if(port != NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/16/include/stddef.h:419:9`!){
604 ags_port_safe_readcxx . . $ ags_port_safe_read(3f8c7b03f2be4a83).(port,
605 &value);
606
607 synth_0_sync_phase_2 = (gdoublecxx . . $ gdouble#) g_value_get_floatcxx . . $ g_value_get_float(19582a908f876f88).(&value);
608
609 g_object_unrefcxx . . $ g_object_unref(5d22bdacc48458e8).(port);
610 }
611
612 g_value_unsetcxx . . $ g_value_unset(15c06aff79890746).(&value);
613
614 /* synth-0 sync LFO oscillator */
615 g_object_getcxx . . $ g_object_get(1ac911bdc4e9a14d).(fx_synth_audio,
616 "synth-0-sync-lfo-oscillator", &port,
617 NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/16/include/stddef.h:419:9`!);
618
619 g_value_initcxx . . $ g_value_init(afc049a76445919c).(&value, G_TYPE_FLOATcxx . . $ `<external>/9567554376676449156/gtype.h:153:9`!);
620
621 if(port != NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/16/include/stddef.h:419:9`!){
622 ags_port_safe_readcxx . . $ ags_port_safe_read(3f8c7b03f2be4a83).(port,
623 &value);
624
625 synth_0_sync_lfo_oscillator = (guintcxx . . $ guint#) g_value_get_floatcxx . . $ g_value_get_float(19582a908f876f88).(&value);
626
627 g_object_unrefcxx . . $ g_object_unref(5d22bdacc48458e8).(port);
628 }
629
630 g_value_unsetcxx . . $ g_value_unset(15c06aff79890746).(&value);
631
632 /* synth-0 sync LFO frequency */
633 g_object_getcxx . . $ g_object_get(1ac911bdc4e9a14d).(fx_synth_audio,
634 "synth-0-sync-lfo-frequency", &port,
635 NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/16/include/stddef.h:419:9`!);
636
637 g_value_initcxx . . $ g_value_init(afc049a76445919c).(&value, G_TYPE_FLOATcxx . . $ `<external>/9567554376676449156/gtype.h:153:9`!);
638
639 if(port != NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/16/include/stddef.h:419:9`!){
640 ags_port_safe_readcxx . . $ ags_port_safe_read(3f8c7b03f2be4a83).(port,
641 &value);
642
643 synth_0_sync_lfo_frequency = (gdoublecxx . . $ gdouble#) g_value_get_floatcxx . . $ g_value_get_float(19582a908f876f88).(&value);
644
645 g_object_unrefcxx . . $ g_object_unref(5d22bdacc48458e8).(port);
646 }
647
648 g_value_unsetcxx . . $ g_value_unset(15c06aff79890746).(&value);
649 }
650
651 /* synth-1 oscillator */
652 g_object_getcxx . . $ g_object_get(1ac911bdc4e9a14d).(fx_synth_audio,
653 "synth-1-oscillator", &port,
654 NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/16/include/stddef.h:419:9`!);
655
656 g_value_initcxx . . $ g_value_init(afc049a76445919c).(&value, G_TYPE_FLOATcxx . . $ `<external>/9567554376676449156/gtype.h:153:9`!);
657
658 if(port != NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/16/include/stddef.h:419:9`!){
659 ags_port_safe_readcxx . . $ ags_port_safe_read(3f8c7b03f2be4a83).(port,
660 &value);
661
662 ags_synth_util_set_synth_oscillator_modecxx . . $ ags_synth_util_set_synth_oscillator_mode(81ee016634e46c86).(channel_data->synth_1cxx . . $ _AgsFxSynthAudioChannelData#synth_1.,
663 (guintcxx . . $ guint#) g_value_get_floatcxx . . $ g_value_get_float(19582a908f876f88).(&value));
664
665 g_object_unrefcxx . . $ g_object_unref(5d22bdacc48458e8).(port);
666 }
667
668 g_value_unsetcxx . . $ g_value_unset(15c06aff79890746).(&value);
669
670 /* synth-1 octave */
671 octave = 0.0;
672 key = 0.0;
673
674 g_object_getcxx . . $ g_object_get(1ac911bdc4e9a14d).(fx_synth_audio,
675 "synth-1-octave", &port,
676 NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/16/include/stddef.h:419:9`!);
677
678 g_value_initcxx . . $ g_value_init(afc049a76445919c).(&value, G_TYPE_FLOATcxx . . $ `<external>/9567554376676449156/gtype.h:153:9`!);
679
680 if(port != NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/16/include/stddef.h:419:9`!){
681 ags_port_safe_readcxx . . $ ags_port_safe_read(3f8c7b03f2be4a83).(port,
682 &value);
683
684 octave = (gdoublecxx . . $ gdouble#) g_value_get_floatcxx . . $ g_value_get_float(19582a908f876f88).(&value);
685
686 g_object_unrefcxx . . $ g_object_unref(5d22bdacc48458e8).(port);
687 }
688
689 g_value_unsetcxx . . $ g_value_unset(15c06aff79890746).(&value);
690
691 /* synth-1 key */
692 g_object_getcxx . . $ g_object_get(1ac911bdc4e9a14d).(fx_synth_audio,
693 "synth-1-key", &port,
694 NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/16/include/stddef.h:419:9`!);
695
696 g_value_initcxx . . $ g_value_init(afc049a76445919c).(&value, G_TYPE_FLOATcxx . . $ `<external>/9567554376676449156/gtype.h:153:9`!);
697
698 if(port != NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/16/include/stddef.h:419:9`!){
699 ags_port_safe_readcxx . . $ ags_port_safe_read(3f8c7b03f2be4a83).(port,
700 &value);
701
702 key = (gdoublecxx . . $ gdouble#) g_value_get_floatcxx . . $ g_value_get_float(19582a908f876f88).(&value);
703
704 g_object_unrefcxx . . $ g_object_unref(5d22bdacc48458e8).(port);
705 }
706
707 g_value_unsetcxx . . $ g_value_unset(15c06aff79890746).(&value);
708
709 ags_synth_util_set_frequencycxx . . $ ags_synth_util_set_frequency(da6026408120430c).(channel_data->synth_1cxx . . $ _AgsFxSynthAudioChannelData#synth_1.,
710 exp2cxx . . $ exp2(447c67c6676f75c3).(((octave * 12.0) + key + ((gdoublecxx . . $ gdouble#) midi_note - 48.0)) / 12.0) * 440.0);
711
712 // g_message("synth 1 - osc = %d, frequency = %f, octave = %f, key= %f", channel_data->synth_1.synth_oscillator_mode, channel_data->synth_1.frequency, octave, key);
713
714 /* synth-1 phase */
715 g_object_getcxx . . $ g_object_get(1ac911bdc4e9a14d).(fx_synth_audio,
716 "synth-1-phase", &port,
717 NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/16/include/stddef.h:419:9`!);
718
719 g_value_initcxx . . $ g_value_init(afc049a76445919c).(&value, G_TYPE_FLOATcxx . . $ `<external>/9567554376676449156/gtype.h:153:9`!);
720
721 if(port != NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/16/include/stddef.h:419:9`!){
722 ags_port_safe_readcxx . . $ ags_port_safe_read(3f8c7b03f2be4a83).(port,
723 &value);
724
725 ags_synth_util_set_phasecxx . . $ ags_synth_util_set_phase(da6026408120430c).(channel_data->synth_1cxx . . $ _AgsFxSynthAudioChannelData#synth_1.,
726 ((gdoublecxx . . $ gdouble#) samplerate / ags_synth_util_get_frequencycxx . . $ ags_synth_util_get_frequency(5aab7d53513f5afb).(channel_data->synth_1cxx . . $ _AgsFxSynthAudioChannelData#synth_1.)) * ((gdoublecxx . . $ gdouble#) g_value_get_floatcxx . . $ g_value_get_float(19582a908f876f88).(&value) / (2.0 * M_PIcxx . . $ `<external>/11263917310783833665/math.h:1289:10`!)));
727
728 g_object_unrefcxx . . $ g_object_unref(5d22bdacc48458e8).(port);
729 }
730
731 g_value_unsetcxx . . $ g_value_unset(15c06aff79890746).(&value);
732
733 /* synth-1 volume */
734 g_object_getcxx . . $ g_object_get(1ac911bdc4e9a14d).(fx_synth_audio,
735 "synth-1-volume", &port,
736 NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/16/include/stddef.h:419:9`!);
737
738 g_value_initcxx . . $ g_value_init(afc049a76445919c).(&value, G_TYPE_FLOATcxx . . $ `<external>/9567554376676449156/gtype.h:153:9`!);
739
740 if(port != NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/16/include/stddef.h:419:9`!){
741 ags_port_safe_readcxx . . $ ags_port_safe_read(3f8c7b03f2be4a83).(port,
742 &value);
743
744 ags_synth_util_set_volumecxx . . $ ags_synth_util_set_volume(da6026408120430c).(channel_data->synth_1cxx . . $ _AgsFxSynthAudioChannelData#synth_1.,
745 (gdoublecxx . . $ gdouble#) g_value_get_floatcxx . . $ g_value_get_float(19582a908f876f88).(&value));
746
747 g_object_unrefcxx . . $ g_object_unref(5d22bdacc48458e8).(port);
748 }
749
750 g_value_unsetcxx . . $ g_value_unset(15c06aff79890746).(&value);
751
752 /* synth-1 sync enabled */
753 g_object_getcxx . . $ g_object_get(1ac911bdc4e9a14d).(fx_synth_audio,
754 "synth-1-sync-enabled", &port,
755 NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/16/include/stddef.h:419:9`!);
756
757 g_value_initcxx . . $ g_value_init(afc049a76445919c).(&value, G_TYPE_FLOATcxx . . $ `<external>/9567554376676449156/gtype.h:153:9`!);
758
759 if(port != NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/16/include/stddef.h:419:9`!){
760 ags_port_safe_readcxx . . $ ags_port_safe_read(3f8c7b03f2be4a83).(port,
761 &value);
762
763 synth_1_sync_enabled = (gbooleancxx . . $ gboolean#) g_value_get_floatcxx . . $ g_value_get_float(19582a908f876f88).(&value);
764
765 g_object_unrefcxx . . $ g_object_unref(5d22bdacc48458e8).(port);
766 }
767
768 g_value_unsetcxx . . $ g_value_unset(15c06aff79890746).(&value);
769
770 if(synth_1_sync_enabled){
771 /* synth-1 sync relative attack factor */
772 g_object_getcxx . . $ g_object_get(1ac911bdc4e9a14d).(fx_synth_audio,
773 "synth-1-sync-relative-attack-factor", &port,
774 NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/16/include/stddef.h:419:9`!);
775
776 g_value_initcxx . . $ g_value_init(afc049a76445919c).(&value, G_TYPE_FLOATcxx . . $ `<external>/9567554376676449156/gtype.h:153:9`!);
777
778 if(port != NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/16/include/stddef.h:419:9`!){
779 ags_port_safe_readcxx . . $ ags_port_safe_read(3f8c7b03f2be4a83).(port,
780 &value);
781
782 synth_1_sync_relative_attack_factor = (gbooleancxx . . $ gboolean#) g_value_get_floatcxx . . $ g_value_get_float(19582a908f876f88).(&value);
783
784 g_object_unrefcxx . . $ g_object_unref(5d22bdacc48458e8).(port);
785 }
786
787 g_value_unsetcxx . . $ g_value_unset(15c06aff79890746).(&value);
788
789 /* synth-1 sync attack 0 */
790 g_object_getcxx . . $ g_object_get(1ac911bdc4e9a14d).(fx_synth_audio,
791 "synth-1-sync-attack-0", &port,
792 NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/16/include/stddef.h:419:9`!);
793
794 g_value_initcxx . . $ g_value_init(afc049a76445919c).(&value, G_TYPE_FLOATcxx . . $ `<external>/9567554376676449156/gtype.h:153:9`!);
795
796 if(port != NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/16/include/stddef.h:419:9`!){
797 ags_port_safe_readcxx . . $ ags_port_safe_read(3f8c7b03f2be4a83).(port,
798 &value);
799
800 synth_1_sync_attack_0 = (gdoublecxx . . $ gdouble#) g_value_get_floatcxx . . $ g_value_get_float(19582a908f876f88).(&value);
801
802 g_object_unrefcxx . . $ g_object_unref(5d22bdacc48458e8).(port);
803 }
804
805 g_value_unsetcxx . . $ g_value_unset(15c06aff79890746).(&value);
806
807 /* synth-1 sync phase 0 */
808 g_object_getcxx . . $ g_object_get(1ac911bdc4e9a14d).(fx_synth_audio,
809 "synth-1-sync-phase-0", &port,
810 NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/16/include/stddef.h:419:9`!);
811
812 g_value_initcxx . . $ g_value_init(afc049a76445919c).(&value, G_TYPE_FLOATcxx . . $ `<external>/9567554376676449156/gtype.h:153:9`!);
813
814 if(port != NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/16/include/stddef.h:419:9`!){
815 ags_port_safe_readcxx . . $ ags_port_safe_read(3f8c7b03f2be4a83).(port,
816 &value);
817
818 synth_1_sync_phase_0 = (gdoublecxx . . $ gdouble#) g_value_get_floatcxx . . $ g_value_get_float(19582a908f876f88).(&value);
819
820 g_object_unrefcxx . . $ g_object_unref(5d22bdacc48458e8).(port);
821 }
822
823 g_value_unsetcxx . . $ g_value_unset(15c06aff79890746).(&value);
824
825 /* synth-1 sync attack 1 */
826 g_object_getcxx . . $ g_object_get(1ac911bdc4e9a14d).(fx_synth_audio,
827 "synth-1-sync-attack-1", &port,
828 NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/16/include/stddef.h:419:9`!);
829
830 g_value_initcxx . . $ g_value_init(afc049a76445919c).(&value, G_TYPE_FLOATcxx . . $ `<external>/9567554376676449156/gtype.h:153:9`!);
831
832 if(port != NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/16/include/stddef.h:419:9`!){
833 ags_port_safe_readcxx . . $ ags_port_safe_read(3f8c7b03f2be4a83).(port,
834 &value);
835
836 synth_1_sync_attack_1 = (gdoublecxx . . $ gdouble#) g_value_get_floatcxx . . $ g_value_get_float(19582a908f876f88).(&value);
837
838 g_object_unrefcxx . . $ g_object_unref(5d22bdacc48458e8).(port);
839 }
840
841 g_value_unsetcxx . . $ g_value_unset(15c06aff79890746).(&value);
842
843 /* synth-1 sync phase 1 */
844 g_object_getcxx . . $ g_object_get(1ac911bdc4e9a14d).(fx_synth_audio,
845 "synth-1-sync-phase-1", &port,
846 NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/16/include/stddef.h:419:9`!);
847
848 g_value_initcxx . . $ g_value_init(afc049a76445919c).(&value, G_TYPE_FLOATcxx . . $ `<external>/9567554376676449156/gtype.h:153:9`!);
849
850 if(port != NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/16/include/stddef.h:419:9`!){
851 ags_port_safe_readcxx . . $ ags_port_safe_read(3f8c7b03f2be4a83).(port,
852 &value);
853
854 synth_1_sync_phase_1 = (gdoublecxx . . $ gdouble#) g_value_get_floatcxx . . $ g_value_get_float(19582a908f876f88).(&value);
855
856 g_object_unrefcxx . . $ g_object_unref(5d22bdacc48458e8).(port);
857 }
858
859 g_value_unsetcxx . . $ g_value_unset(15c06aff79890746).(&value);
860
861 /* synth-1 sync attack 2 */
862 g_object_getcxx . . $ g_object_get(1ac911bdc4e9a14d).(fx_synth_audio,
863 "synth-1-sync-attack-2", &port,
864 NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/16/include/stddef.h:419:9`!);
865
866 g_value_initcxx . . $ g_value_init(afc049a76445919c).(&value, G_TYPE_FLOATcxx . . $ `<external>/9567554376676449156/gtype.h:153:9`!);
867
868 if(port != NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/16/include/stddef.h:419:9`!){
869 ags_port_safe_readcxx . . $ ags_port_safe_read(3f8c7b03f2be4a83).(port,
870 &value);
871
872 synth_1_sync_attack_2 = (gdoublecxx . . $ gdouble#) g_value_get_floatcxx . . $ g_value_get_float(19582a908f876f88).(&value);
873
874 g_object_unrefcxx . . $ g_object_unref(5d22bdacc48458e8).(port);
875 }
876
877 g_value_unsetcxx . . $ g_value_unset(15c06aff79890746).(&value);
878
879 /* synth-1 sync phase 2 */
880 g_object_getcxx . . $ g_object_get(1ac911bdc4e9a14d).(fx_synth_audio,
881 "synth-1-sync-phase-2", &port,
882 NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/16/include/stddef.h:419:9`!);
883
884 g_value_initcxx . . $ g_value_init(afc049a76445919c).(&value, G_TYPE_FLOATcxx . . $ `<external>/9567554376676449156/gtype.h:153:9`!);
885
886 if(port != NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/16/include/stddef.h:419:9`!){
887 ags_port_safe_readcxx . . $ ags_port_safe_read(3f8c7b03f2be4a83).(port,
888 &value);
889
890 synth_1_sync_phase_2 = (gdoublecxx . . $ gdouble#) g_value_get_floatcxx . . $ g_value_get_float(19582a908f876f88).(&value);
891
892 g_object_unrefcxx . . $ g_object_unref(5d22bdacc48458e8).(port);
893 }
894
895 g_value_unsetcxx . . $ g_value_unset(15c06aff79890746).(&value);
896
897 /* synth-1 sync LFO oscillator */
898 g_object_getcxx . . $ g_object_get(1ac911bdc4e9a14d).(fx_synth_audio,
899 "synth-1-sync-lfo-oscillator", &port,
900 NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/16/include/stddef.h:419:9`!);
901
902 g_value_initcxx . . $ g_value_init(afc049a76445919c).(&value, G_TYPE_FLOATcxx . . $ `<external>/9567554376676449156/gtype.h:153:9`!);
903
904 if(port != NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/16/include/stddef.h:419:9`!){
905 ags_port_safe_readcxx . . $ ags_port_safe_read(3f8c7b03f2be4a83).(port,
906 &value);
907
908 synth_1_sync_lfo_oscillator = (guintcxx . . $ guint#) g_value_get_floatcxx . . $ g_value_get_float(19582a908f876f88).(&value);
909
910 g_object_unrefcxx . . $ g_object_unref(5d22bdacc48458e8).(port);
911 }
912
913 g_value_unsetcxx . . $ g_value_unset(15c06aff79890746).(&value);
914
915 /* synth-1 sync LFO frequency */
916 g_object_getcxx . . $ g_object_get(1ac911bdc4e9a14d).(fx_synth_audio,
917 "synth-1-sync-lfo-frequency", &port,
918 NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/16/include/stddef.h:419:9`!);
919
920 g_value_initcxx . . $ g_value_init(afc049a76445919c).(&value, G_TYPE_FLOATcxx . . $ `<external>/9567554376676449156/gtype.h:153:9`!);
921
922 if(port != NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/16/include/stddef.h:419:9`!){
923 ags_port_safe_readcxx . . $ ags_port_safe_read(3f8c7b03f2be4a83).(port,
924 &value);
925
926 synth_1_sync_lfo_frequency = (gdoublecxx . . $ gdouble#) g_value_get_floatcxx . . $ g_value_get_float(19582a908f876f88).(&value);
927
928 g_object_unrefcxx . . $ g_object_unref(5d22bdacc48458e8).(port);
929 }
930
931 g_value_unsetcxx . . $ g_value_unset(15c06aff79890746).(&value);
932 }
933
934 /* noise volume */
935 g_object_getcxx . . $ g_object_get(1ac911bdc4e9a14d).(fx_synth_audio,
936 "noise-gain", &port,
937 NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/16/include/stddef.h:419:9`!);
938
939 g_value_initcxx . . $ g_value_init(afc049a76445919c).(&value, G_TYPE_FLOATcxx . . $ `<external>/9567554376676449156/gtype.h:153:9`!);
940
941 if(port != NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/16/include/stddef.h:419:9`!){
942 ags_port_safe_readcxx . . $ ags_port_safe_read(3f8c7b03f2be4a83).(port,
943 &value);
944
945 ags_noise_util_set_volumecxx . . $ ags_noise_util_set_volume(f6f5e934a33abde7).(channel_data->noise_utilcxx . . $ _AgsFxSynthAudioChannelData#noise_util.,
946 (gdoublecxx . . $ gdouble#) g_value_get_floatcxx . . $ g_value_get_float(19582a908f876f88).(&value));
947
948 g_object_unrefcxx . . $ g_object_unref(5d22bdacc48458e8).(port);
949 }
950
951 g_value_unsetcxx . . $ g_value_unset(15c06aff79890746).(&value);
952
953 /* pitch base key */
954 // ags_common_pitch_util_set_base_key(channel_data->pitch_util,
955 // channel_data->pitch_type,
956 // (gdouble) midi_note - 48.0);
957
958 /* pitch tuning */
959 g_object_getcxx . . $ g_object_get(1ac911bdc4e9a14d).(fx_synth_audio,
960 "pitch-tuning", &port,
961 NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/16/include/stddef.h:419:9`!);
962
963 g_value_initcxx . . $ g_value_init(afc049a76445919c).(&value, G_TYPE_FLOATcxx . . $ `<external>/9567554376676449156/gtype.h:153:9`!);
964
965 if(port != NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/16/include/stddef.h:419:9`!){
966 ags_port_safe_readcxx . . $ ags_port_safe_read(3f8c7b03f2be4a83).(port,
967 &value);
968
969 ags_common_pitch_util_set_tuningcxx . . $ ags_common_pitch_util_set_tuning(c0a114cb3ab4d916).(channel_data->pitch_utilcxx . . $ _AgsFxSynthAudioChannelData#pitch_util.,
970 channel_data->pitch_typecxx . . $ _AgsFxSynthAudioChannelData#pitch_type.,
971 (gdoublecxx . . $ gdouble#) g_value_get_floatcxx . . $ g_value_get_float(19582a908f876f88).(&value));
972
973 g_object_unrefcxx . . $ g_object_unref(5d22bdacc48458e8).(port);
974 }
975
976 g_value_unsetcxx . . $ g_value_unset(15c06aff79890746).(&value);
977
978 /* low-pass enabled */
979 g_object_getcxx . . $ g_object_get(1ac911bdc4e9a14d).(fx_synth_audio,
980 "low-pass-enabled", &port,
981 NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/16/include/stddef.h:419:9`!);
982
983 g_value_initcxx . . $ g_value_init(afc049a76445919c).(&value, G_TYPE_FLOATcxx . . $ `<external>/9567554376676449156/gtype.h:153:9`!);
984
985 if(port != NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/16/include/stddef.h:419:9`!){
986 ags_port_safe_readcxx . . $ ags_port_safe_read(3f8c7b03f2be4a83).(port,
987 &value);
988
989 low_pass_enabled = (gbooleancxx . . $ gboolean#) g_value_get_floatcxx . . $ g_value_get_float(19582a908f876f88).(&value);
990
991 g_object_unrefcxx . . $ g_object_unref(5d22bdacc48458e8).(port);
992 }
993
994 g_value_unsetcxx . . $ g_value_unset(15c06aff79890746).(&value);
995
996 if(low_pass_enabled){
997 /* low-pass q-lin */
998 g_object_getcxx . . $ g_object_get(1ac911bdc4e9a14d).(fx_synth_audio,
999 "low-pass-q-lin", &port,
1000 NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/16/include/stddef.h:419:9`!);
1001
1002 g_value_initcxx . . $ g_value_init(afc049a76445919c).(&value, G_TYPE_FLOATcxx . . $ `<external>/9567554376676449156/gtype.h:153:9`!);
1003
1004 if(port != NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/16/include/stddef.h:419:9`!){
1005 ags_port_safe_readcxx . . $ ags_port_safe_read(3f8c7b03f2be4a83).(port,
1006 &value);
1007
1008 ags_fluid_iir_filter_util_set_q_lincxx . . $ ags_fluid_iir_filter_util_set_q_lin(f7c086d74a396de1).(channel_data->low_pass_filtercxx . . $ _AgsFxSynthAudioChannelData#low_pass_filter.,
1009 (gdoublecxx . . $ gdouble#) g_value_get_floatcxx . . $ g_value_get_float(19582a908f876f88).(&value));
1010
1011 g_object_unrefcxx . . $ g_object_unref(5d22bdacc48458e8).(port);
1012 }
1013
1014 g_value_unsetcxx . . $ g_value_unset(15c06aff79890746).(&value);
1015
1016 /* low-pass filter-gain */
1017 g_object_getcxx . . $ g_object_get(1ac911bdc4e9a14d).(fx_synth_audio,
1018 "low-pass-filter-gain", &port,
1019 NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/16/include/stddef.h:419:9`!);
1020
1021 g_value_initcxx . . $ g_value_init(afc049a76445919c).(&value, G_TYPE_FLOATcxx . . $ `<external>/9567554376676449156/gtype.h:153:9`!);
1022
1023 if(port != NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/16/include/stddef.h:419:9`!){
1024 ags_port_safe_readcxx . . $ ags_port_safe_read(3f8c7b03f2be4a83).(port,
1025 &value);
1026
1027 ags_fluid_iir_filter_util_set_filter_gaincxx . . $ ags_fluid_iir_filter_util_set_filter_gain(f7c086d74a396de1).(channel_data->low_pass_filtercxx . . $ _AgsFxSynthAudioChannelData#low_pass_filter.,
1028 (gdoublecxx . . $ gdouble#) g_value_get_floatcxx . . $ g_value_get_float(19582a908f876f88).(&value));
1029
1030 g_object_unrefcxx . . $ g_object_unref(5d22bdacc48458e8).(port);
1031 }
1032
1033 g_value_unsetcxx . . $ g_value_unset(15c06aff79890746).(&value);
1034 }
1035
1036 /* high-pass enabled */
1037 g_object_getcxx . . $ g_object_get(1ac911bdc4e9a14d).(fx_synth_audio,
1038 "high-pass-enabled", &port,
1039 NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/16/include/stddef.h:419:9`!);
1040
1041 g_value_initcxx . . $ g_value_init(afc049a76445919c).(&value, G_TYPE_FLOATcxx . . $ `<external>/9567554376676449156/gtype.h:153:9`!);
1042
1043 if(port != NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/16/include/stddef.h:419:9`!){
1044 ags_port_safe_readcxx . . $ ags_port_safe_read(3f8c7b03f2be4a83).(port,
1045 &value);
1046
1047 high_pass_enabled = (gbooleancxx . . $ gboolean#) g_value_get_floatcxx . . $ g_value_get_float(19582a908f876f88).(&value);
1048
1049 g_object_unrefcxx . . $ g_object_unref(5d22bdacc48458e8).(port);
1050 }
1051
1052 g_value_unsetcxx . . $ g_value_unset(15c06aff79890746).(&value);
1053
1054 if(high_pass_enabled){
1055 /* high-pass q-lin */
1056 g_object_getcxx . . $ g_object_get(1ac911bdc4e9a14d).(fx_synth_audio,
1057 "high-pass-q-lin", &port,
1058 NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/16/include/stddef.h:419:9`!);
1059
1060 g_value_initcxx . . $ g_value_init(afc049a76445919c).(&value, G_TYPE_FLOATcxx . . $ `<external>/9567554376676449156/gtype.h:153:9`!);
1061
1062 if(port != NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/16/include/stddef.h:419:9`!){
1063 ags_port_safe_readcxx . . $ ags_port_safe_read(3f8c7b03f2be4a83).(port,
1064 &value);
1065
1066 ags_fluid_iir_filter_util_set_q_lincxx . . $ ags_fluid_iir_filter_util_set_q_lin(f7c086d74a396de1).(channel_data->high_pass_filtercxx . . $ _AgsFxSynthAudioChannelData#high_pass_filter.,
1067 (gdoublecxx . . $ gdouble#) g_value_get_floatcxx . . $ g_value_get_float(19582a908f876f88).(&value));
1068
1069 g_object_unrefcxx . . $ g_object_unref(5d22bdacc48458e8).(port);
1070 }
1071
1072 g_value_unsetcxx . . $ g_value_unset(15c06aff79890746).(&value);
1073
1074 /* high-pass filter-gain */
1075 g_object_getcxx . . $ g_object_get(1ac911bdc4e9a14d).(fx_synth_audio,
1076 "high-pass-filter-gain", &port,
1077 NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/16/include/stddef.h:419:9`!);
1078
1079 g_value_initcxx . . $ g_value_init(afc049a76445919c).(&value, G_TYPE_FLOATcxx . . $ `<external>/9567554376676449156/gtype.h:153:9`!);
1080
1081 if(port != NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/16/include/stddef.h:419:9`!){
1082 ags_port_safe_readcxx . . $ ags_port_safe_read(3f8c7b03f2be4a83).(port,
1083 &value);
1084
1085 ags_fluid_iir_filter_util_set_filter_gaincxx . . $ ags_fluid_iir_filter_util_set_filter_gain(f7c086d74a396de1).(channel_data->high_pass_filtercxx . . $ _AgsFxSynthAudioChannelData#high_pass_filter.,
1086 (gdoublecxx . . $ gdouble#) g_value_get_floatcxx . . $ g_value_get_float(19582a908f876f88).(&value));
1087
1088 g_object_unrefcxx . . $ g_object_unref(5d22bdacc48458e8).(port);
1089 }
1090
1091 g_value_unsetcxx . . $ g_value_unset(15c06aff79890746).(&value);
1092 }
1093
1094 /* chorus enabled */
1095 g_object_getcxx . . $ g_object_get(1ac911bdc4e9a14d).(fx_synth_audio,
1096 "chorus-enabled", &port,
1097 NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/16/include/stddef.h:419:9`!);
1098
1099 g_value_initcxx . . $ g_value_init(afc049a76445919c).(&value, G_TYPE_FLOATcxx . . $ `<external>/9567554376676449156/gtype.h:153:9`!);
1100
1101 if(port != NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/16/include/stddef.h:419:9`!){
1102 ags_port_safe_readcxx . . $ ags_port_safe_read(3f8c7b03f2be4a83).(port,
1103 &value);
1104
1105 chorus_enabled = (gbooleancxx . . $ gboolean#) g_value_get_floatcxx . . $ g_value_get_float(19582a908f876f88).(&value);
1106
1107 g_object_unrefcxx . . $ g_object_unref(5d22bdacc48458e8).(port);
1108 }
1109
1110 g_value_unsetcxx . . $ g_value_unset(15c06aff79890746).(&value);
1111
1112 if(chorus_enabled){
1113 /* chorus input-volume */
1114 g_object_getcxx . . $ g_object_get(1ac911bdc4e9a14d).(fx_synth_audio,
1115 "chorus-input-volume", &port,
1116 NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/16/include/stddef.h:419:9`!);
1117
1118 g_value_initcxx . . $ g_value_init(afc049a76445919c).(&value, G_TYPE_FLOATcxx . . $ `<external>/9567554376676449156/gtype.h:153:9`!);
1119
1120 if(port != NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/16/include/stddef.h:419:9`!){
1121 ags_port_safe_readcxx . . $ ags_port_safe_read(3f8c7b03f2be4a83).(port,
1122 &value);
1123
1124 ags_chorus_util_set_input_volumecxx . . $ ags_chorus_util_set_input_volume(834d58fec0746dcc).(channel_data->chorus_utilcxx . . $ _AgsFxSynthAudioChannelData#chorus_util.,
1125 (gdoublecxx . . $ gdouble#) g_value_get_floatcxx . . $ g_value_get_float(19582a908f876f88).(&value));
1126
1127 g_object_unrefcxx . . $ g_object_unref(5d22bdacc48458e8).(port);
1128 }
1129
1130 g_value_unsetcxx . . $ g_value_unset(15c06aff79890746).(&value);
1131
1132 /* chorus output-volume */
1133 g_object_getcxx . . $ g_object_get(1ac911bdc4e9a14d).(fx_synth_audio,
1134 "chorus-output-volume", &port,
1135 NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/16/include/stddef.h:419:9`!);
1136
1137 g_value_initcxx . . $ g_value_init(afc049a76445919c).(&value, G_TYPE_FLOATcxx . . $ `<external>/9567554376676449156/gtype.h:153:9`!);
1138
1139 if(port != NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/16/include/stddef.h:419:9`!){
1140 ags_port_safe_readcxx . . $ ags_port_safe_read(3f8c7b03f2be4a83).(port,
1141 &value);
1142
1143 ags_chorus_util_set_output_volumecxx . . $ ags_chorus_util_set_output_volume(834d58fec0746dcc).(channel_data->chorus_utilcxx . . $ _AgsFxSynthAudioChannelData#chorus_util.,
1144 (gdoublecxx . . $ gdouble#) g_value_get_floatcxx . . $ g_value_get_float(19582a908f876f88).(&value));
1145
1146 g_object_unrefcxx . . $ g_object_unref(5d22bdacc48458e8).(port);
1147 }
1148
1149 g_value_unsetcxx . . $ g_value_unset(15c06aff79890746).(&value);
1150
1151 /* chorus lfo-oscillator */
1152 g_object_getcxx . . $ g_object_get(1ac911bdc4e9a14d).(fx_synth_audio,
1153 "chorus-lfo-oscillator", &port,
1154 NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/16/include/stddef.h:419:9`!);
1155
1156 g_value_initcxx . . $ g_value_init(afc049a76445919c).(&value, G_TYPE_FLOATcxx . . $ `<external>/9567554376676449156/gtype.h:153:9`!);
1157
1158 if(port != NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/16/include/stddef.h:419:9`!){
1159 ags_port_safe_readcxx . . $ ags_port_safe_read(3f8c7b03f2be4a83).(port,
1160 &value);
1161
1162 ags_chorus_util_set_lfo_oscillatorcxx . . $ ags_chorus_util_set_lfo_oscillator(ef09bcb2f4e8f971).(channel_data->chorus_utilcxx . . $ _AgsFxSynthAudioChannelData#chorus_util.,
1163 (guintcxx . . $ guint#) g_value_get_floatcxx . . $ g_value_get_float(19582a908f876f88).(&value));
1164
1165 g_object_unrefcxx . . $ g_object_unref(5d22bdacc48458e8).(port);
1166 }
1167
1168 g_value_unsetcxx . . $ g_value_unset(15c06aff79890746).(&value);
1169
1170 /* chorus lfo-frequency */
1171 g_object_getcxx . . $ g_object_get(1ac911bdc4e9a14d).(fx_synth_audio,
1172 "chorus-lfo-frequency", &port,
1173 NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/16/include/stddef.h:419:9`!);
1174
1175 g_value_initcxx . . $ g_value_init(afc049a76445919c).(&value, G_TYPE_FLOATcxx . . $ `<external>/9567554376676449156/gtype.h:153:9`!);
1176
1177 if(port != NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/16/include/stddef.h:419:9`!){
1178 ags_port_safe_readcxx . . $ ags_port_safe_read(3f8c7b03f2be4a83).(port,
1179 &value);
1180
1181 ags_chorus_util_set_lfo_frequencycxx . . $ ags_chorus_util_set_lfo_frequency(834d58fec0746dcc).(channel_data->chorus_utilcxx . . $ _AgsFxSynthAudioChannelData#chorus_util.,
1182 (gdoublecxx . . $ gdouble#) g_value_get_floatcxx . . $ g_value_get_float(19582a908f876f88).(&value));
1183
1184 g_object_unrefcxx . . $ g_object_unref(5d22bdacc48458e8).(port);
1185 }
1186
1187 g_value_unsetcxx . . $ g_value_unset(15c06aff79890746).(&value);
1188
1189 /* chorus depth */
1190 g_object_getcxx . . $ g_object_get(1ac911bdc4e9a14d).(fx_synth_audio,
1191 "chorus-depth", &port,
1192 NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/16/include/stddef.h:419:9`!);
1193
1194 g_value_initcxx . . $ g_value_init(afc049a76445919c).(&value, G_TYPE_FLOATcxx . . $ `<external>/9567554376676449156/gtype.h:153:9`!);
1195
1196 if(port != NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/16/include/stddef.h:419:9`!){
1197 ags_port_safe_readcxx . . $ ags_port_safe_read(3f8c7b03f2be4a83).(port,
1198 &value);
1199
1200 ags_chorus_util_set_depthcxx . . $ ags_chorus_util_set_depth(834d58fec0746dcc).(channel_data->chorus_utilcxx . . $ _AgsFxSynthAudioChannelData#chorus_util.,
1201 (gdoublecxx . . $ gdouble#) g_value_get_floatcxx . . $ g_value_get_float(19582a908f876f88).(&value));
1202
1203 g_object_unrefcxx . . $ g_object_unref(5d22bdacc48458e8).(port);
1204 }
1205
1206 g_value_unsetcxx . . $ g_value_unset(15c06aff79890746).(&value);
1207
1208 /* chorus mix */
1209 g_object_getcxx . . $ g_object_get(1ac911bdc4e9a14d).(fx_synth_audio,
1210 "chorus-mix", &port,
1211 NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/16/include/stddef.h:419:9`!);
1212
1213 g_value_initcxx . . $ g_value_init(afc049a76445919c).(&value, G_TYPE_FLOATcxx . . $ `<external>/9567554376676449156/gtype.h:153:9`!);
1214
1215 if(port != NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/16/include/stddef.h:419:9`!){
1216 ags_port_safe_readcxx . . $ ags_port_safe_read(3f8c7b03f2be4a83).(port,
1217 &value);
1218
1219 ags_chorus_util_set_mixcxx . . $ ags_chorus_util_set_mix(834d58fec0746dcc).(channel_data->chorus_utilcxx . . $ _AgsFxSynthAudioChannelData#chorus_util.,
1220 (gdoublecxx . . $ gdouble#) g_value_get_floatcxx . . $ g_value_get_float(19582a908f876f88).(&value));
1221
1222 g_object_unrefcxx . . $ g_object_unref(5d22bdacc48458e8).(port);
1223 }
1224
1225 g_value_unsetcxx . . $ g_value_unset(15c06aff79890746).(&value);
1226
1227 /* chorus delay */
1228 g_object_getcxx . . $ g_object_get(1ac911bdc4e9a14d).(fx_synth_audio,
1229 "chorus-delay", &port,
1230 NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/16/include/stddef.h:419:9`!);
1231
1232 g_value_initcxx . . $ g_value_init(afc049a76445919c).(&value, G_TYPE_FLOATcxx . . $ `<external>/9567554376676449156/gtype.h:153:9`!);
1233
1234 if(port != NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/16/include/stddef.h:419:9`!){
1235 ags_port_safe_readcxx . . $ ags_port_safe_read(3f8c7b03f2be4a83).(port,
1236 &value);
1237
1238 ags_chorus_util_set_delaycxx . . $ ags_chorus_util_set_delay(834d58fec0746dcc).(channel_data->chorus_utilcxx . . $ _AgsFxSynthAudioChannelData#chorus_util.,
1239 (gdoublecxx . . $ gdouble#) g_value_get_floatcxx . . $ g_value_get_float(19582a908f876f88).(&value));
1240
1241 g_object_unrefcxx . . $ g_object_unref(5d22bdacc48458e8).(port);
1242 }
1243
1244 g_value_unsetcxx . . $ g_value_unset(15c06aff79890746).(&value);
1245 }
1246 }
1247
1248 copy_mode_out = ags_audio_buffer_util_get_copy_mode_from_formatcxx . . $ ags_audio_buffer_util_get_copy_mode_from_format(fdce556263aa1f1e).(&(fx_synth_audio_signal->audio_buffer_utilcxx . . $ _AgsFxSynthAudioSignal#audio_buffer_util.),
1249 ags_audio_buffer_util_format_from_soundcardcxx . . $ ags_audio_buffer_util_format_from_soundcard(af3122fa74eb2af1).(&(fx_synth_audio_signal->audio_buffer_utilcxx . . $ _AgsFxSynthAudioSignal#audio_buffer_util.),
1250 format),
1251 AGS_AUDIO_BUFFER_UTIL_FLOATcxx . . $ AGS_AUDIO_BUFFER_UTIL_FLOAT.);
1252
1253 if(midi_note >= 0 &&
1254 midi_note < 128){
1255 AgsFxSynthAudioScopeDatacxx . . $ AgsFxSynthAudioScopeData# *scope_data;
1256 AgsFxSynthAudioChannelDatacxx . . $ AgsFxSynthAudioChannelData# *channel_data;
1257 AgsFxSynthAudioInputDatacxx . . $ AgsFxSynthAudioInputData# *input_data;
1258
1259 g_rec_mutex_lockcxx . . $ g_rec_mutex_lock(70e02e1a6dfc5752).(fx_synth_audio_mutex);
1260
1261 scope_data = fx_synth_audio->scope_datacxx . . $ _AgsFxSynthAudio#scope_data.[sound_scope];
1262
1263 channel_data = scope_data->channel_datacxx . . $ _AgsFxSynthAudioScopeData#channel_data.[audio_channel];
1264
1265 input_data = channel_data->input_datacxx . . $ _AgsFxSynthAudioChannelData#input_data.[midi_note];
1266
1267 g_rec_mutex_unlockcxx . . $ g_rec_mutex_unlock(70e02e1a6dfc5752).(fx_synth_audio_mutex);
1268
1269 if((gintcxx . . $ gint#) floorcxx . . $ floor(447c67c6676f75c3).(delay_counter) == 0 &&
1270 x0 == offset_counter){
1271 g_rec_mutex_lockcxx . . $ g_rec_mutex_lock(70e02e1a6dfc5752).(fx_synth_audio_mutex);
1272
1273 input_data->key_oncxx . . $ _AgsFxSynthAudioInputData#key_on. += 1;
1274
1275 g_rec_mutex_unlockcxx . . $ g_rec_mutex_unlock(70e02e1a6dfc5752).(fx_synth_audio_mutex);
1276 }
1277
1278 /* synth 0 */
1279 ags_synth_util_set_sourcecxx . . $ ags_synth_util_set_source(886b384a3ee94511).(channel_data->synth_0cxx . . $ _AgsFxSynthAudioChannelData#synth_0.,
1280 source->stream_currentcxx . . $ _AgsAudioSignal#stream_current.->datacxx . . $ _GList#data.);
1281 ags_synth_util_set_source_stridecxx . . $ ags_synth_util_set_source_stride(81ee016634e46c86).(channel_data->synth_0cxx . . $ _AgsFxSynthAudioChannelData#synth_0.,
1282 1);
1283
1284 ags_synth_util_set_buffer_lengthcxx . . $ ags_synth_util_set_buffer_length(81ee016634e46c86).(channel_data->synth_0cxx . . $ _AgsFxSynthAudioChannelData#synth_0.,
1285 buffer_size);
1286 ags_synth_util_set_formatcxx . . $ ags_synth_util_set_format(fd965ae495e9afd7).(channel_data->synth_0cxx . . $ _AgsFxSynthAudioChannelData#synth_0.,
1287 format);
1288 ags_synth_util_set_sampleratecxx . . $ ags_synth_util_set_samplerate(81ee016634e46c86).(channel_data->synth_0cxx . . $ _AgsFxSynthAudioChannelData#synth_0.,
1289 samplerate);
1290
1291 if(!note_256th_mode){
1292 ags_synth_util_set_frame_countcxx . . $ ags_synth_util_set_frame_count(81ee016634e46c86).(channel_data->synth_0cxx . . $ _AgsFxSynthAudioChannelData#synth_0.,
1293 floorcxx . . $ floor(447c67c6676f75c3).(((offset_counter - x0) * delay + delay_counter + 1.0) * buffer_size));
1294
1295 ags_synth_util_set_offsetcxx . . $ ags_synth_util_set_offset(81ee016634e46c86).(channel_data->synth_0cxx . . $ _AgsFxSynthAudioChannelData#synth_0.,
1296 floorcxx . . $ floor(447c67c6676f75c3).(((offset_counter - x0) * delay + delay_counter) * buffer_size));
1297 }else{
1298 ags_synth_util_set_frame_countcxx . . $ ags_synth_util_set_frame_count(81ee016634e46c86).(channel_data->synth_0cxx . . $ _AgsFxSynthAudioChannelData#synth_0.,
1299 (guintcxx . . $ guint#) floorcxx . . $ floor(447c67c6676f75c3).((double) (note_256th_offset_lower - x0_256th) * note_256th_delay * (double) buffer_size) + (guintcxx . . $ guint#) floorcxx . . $ floor(447c67c6676f75c3).(delay * (double) buffer_size));
1300
1301 ags_synth_util_set_offsetcxx . . $ ags_synth_util_set_offset(81ee016634e46c86).(channel_data->synth_0cxx . . $ _AgsFxSynthAudioChannelData#synth_0.,
1302 (guintcxx . . $ guint#) floorcxx . . $ floor(447c67c6676f75c3).(((double) (offset_counter - x0) * delay + delay_counter) * (double) buffer_size));
1303
1304 ags_synth_util_set_offset_256thcxx . . $ ags_synth_util_set_offset_256th(81ee016634e46c86).(channel_data->synth_0cxx . . $ _AgsFxSynthAudioChannelData#synth_0.,
1305 (guintcxx . . $ guint#) floorcxx . . $ floor(447c67c6676f75c3).((double) (note_256th_offset_lower - x0_256th) * note_256th_delay * (double) buffer_size));
1306 }
1307
1308 if(synth_0_sync_enabled){
1309 guintcxx . . $ guint# offset;
1310 gdoublecxx . . $ gdouble# freq_period;
1311 guintcxx . . $ guint# current_sync, next_sync;
1312 guintcxx . . $ guint# sync_reset;
1313 guintcxx . . $ guint# word_size;
1314 guintcxx . . $ guint# i, i_reset, i_stop;
1315
1316 offset = ags_synth_util_get_offsetcxx . . $ ags_synth_util_get_offset(507cf8be3b9ce840).(channel_data->synth_0cxx . . $ _AgsFxSynthAudioChannelData#synth_0.);
1317
1318 freq_period = samplerate / ags_synth_util_get_frequencycxx . . $ ags_synth_util_get_frequency(5aab7d53513f5afb).(channel_data->synth_0cxx . . $ _AgsFxSynthAudioChannelData#synth_0.);
1319
1320 word_size = sizeof(gint16cxx . . $ gint16#);
1321
1322 switch(format){
1323 case AGS_SOUNDCARD_SIGNED_8_BITcxx . . $ AGS_SOUNDCARD_SIGNED_8_BIT.:
1324 {
1325 word_size = sizeof(gint8cxx . . $ gint8#);
1326 }
1327 break;
1328 case AGS_SOUNDCARD_SIGNED_16_BITcxx . . $ AGS_SOUNDCARD_SIGNED_16_BIT.:
1329 {
1330 word_size = sizeof(gint16cxx . . $ gint16#);
1331 }
1332 break;
1333 case AGS_SOUNDCARD_SIGNED_24_BITcxx . . $ AGS_SOUNDCARD_SIGNED_24_BIT.:
1334 {
1335 word_size = sizeof(gint32cxx . . $ gint32#);
1336 }
1337 break;
1338 case AGS_SOUNDCARD_SIGNED_32_BITcxx . . $ AGS_SOUNDCARD_SIGNED_32_BIT.:
1339 {
1340 word_size = sizeof(gint32cxx . . $ gint32#);
1341 }
1342 break;
1343 case AGS_SOUNDCARD_SIGNED_64_BITcxx . . $ AGS_SOUNDCARD_SIGNED_64_BIT.:
1344 {
1345 word_size = sizeof(gint64cxx . . $ gint64#);
1346 }
1347 break;
1348 case AGS_SOUNDCARD_FLOATcxx . . $ AGS_SOUNDCARD_FLOAT.:
1349 {
1350 word_size = sizeof(gfloatcxx . . $ gfloat#);
1351 }
1352 break;
1353 case AGS_SOUNDCARD_DOUBLEcxx . . $ AGS_SOUNDCARD_DOUBLE.:
1354 {
1355 word_size = sizeof(gdoublecxx . . $ gdouble#);
1356 }
1357 break;
1358 }
1359
1360 for(i = 0, i_reset = 0, sync_reset = 0, current_sync = 0, next_sync = 0; i < offset + buffer_size;){
1361 if(i_reset + sync_reset == i){
1362 switch(current_sync){
1363 case 0:
1364 {
1365 if(synth_0_sync_attack_0 > 0.0){
1366 sync_reset = (1.0 - synth_0_sync_relative_attack_factor * ((gdoublecxx . . $ gdouble#) midi_note / 128.0)) * ((synth_0_sync_attack_0 / (2.0 * M_PIcxx . . $ `<external>/11263917310783833665/math.h:1289:10`!)) * freq_period);
1367 i_reset = i;
1368
1369 if(synth_0_sync_attack_1 > 0.0){
1370 next_sync = 1;
1371 }
1372 }
1373 }
1374 break;
1375 case 1:
1376 {
1377 if(synth_0_sync_attack_1 > 0.0){
1378 sync_reset = (1.0 - synth_0_sync_relative_attack_factor * ((gdoublecxx . . $ gdouble#) midi_note / 128.0)) * ((synth_0_sync_attack_1 / (2.0 * M_PIcxx . . $ `<external>/11263917310783833665/math.h:1289:10`!)) * freq_period);
1379 i_reset = i;
1380
1381 if(synth_0_sync_attack_2 > 0.0){
1382 next_sync = 2;
1383 }
1384 }
1385 }
1386 break;
1387 case 2:
1388 {
1389 if(synth_0_sync_attack_2 > 0.0){
1390 sync_reset = (1.0 - synth_0_sync_relative_attack_factor * ((gdoublecxx . . $ gdouble#) midi_note / 128.0)) * ((synth_0_sync_attack_2 / (2.0 * M_PIcxx . . $ `<external>/11263917310783833665/math.h:1289:10`!)) * freq_period);
1391 i_reset = i;
1392
1393 next_sync = 0;
1394 }
1395 }
1396 break;
1397 }
1398 }
1399
1400 // g_message("synth 0 - offset = %d, i = %d, i_reset = %d, sync_reset = %d", channel_data->synth_0.offset, i, i_reset, sync_reset);
1401
1402 if(i >= ags_synth_util_get_offsetcxx . . $ ags_synth_util_get_offset(507cf8be3b9ce840).(channel_data->synth_0cxx . . $ _AgsFxSynthAudioChannelData#synth_0.)){
1403 ags_synth_util_set_offsetcxx . . $ ags_synth_util_set_offset(81ee016634e46c86).(channel_data->synth_0cxx . . $ _AgsFxSynthAudioChannelData#synth_0.,
1404 i);
1405
1406 if(sync_reset != 0 && i_reset + sync_reset < buffer_size * (guintcxx . . $ guint#) floorcxx . . $ floor(447c67c6676f75c3).(i / buffer_size) + buffer_size){
1407 ags_synth_util_set_sourcecxx . . $ ags_synth_util_set_source(886b384a3ee94511).(channel_data->synth_0cxx . . $ _AgsFxSynthAudioChannelData#synth_0.,
1408 ((gucharcxx . . $ guchar# *) source->stream_currentcxx . . $ _AgsAudioSignal#stream_current.->datacxx . . $ _GList#data.) + ((i % buffer_size) * word_size));
1409
1410 ags_synth_util_set_buffer_lengthcxx . . $ ags_synth_util_set_buffer_length(81ee016634e46c86).(channel_data->synth_0cxx . . $ _AgsFxSynthAudioChannelData#synth_0.,
1411 (i_reset + sync_reset) - i);
1412 }else{
1413 ags_synth_util_set_sourcecxx . . $ ags_synth_util_set_source(886b384a3ee94511).(channel_data->synth_0cxx . . $ _AgsFxSynthAudioChannelData#synth_0.,
1414 ((gucharcxx . . $ guchar# *) source->stream_currentcxx . . $ _AgsAudioSignal#stream_current.->datacxx . . $ _GList#data.) + ((i % buffer_size) * word_size));
1415
1416 ags_synth_util_set_buffer_lengthcxx . . $ ags_synth_util_set_buffer_length(81ee016634e46c86).(channel_data->synth_0cxx . . $ _AgsFxSynthAudioChannelData#synth_0.,
1417 ((buffer_size * (guintcxx . . $ guint#) floorcxx . . $ floor(447c67c6676f75c3).(i / buffer_size) + buffer_size) - i));
1418 }
1419
1420 if(sync_reset != 0){
1421 gdoublecxx . . $ gdouble# lfo_factor;
1422
1423 lfo_factor = 1.0;
1424
1425 switch(synth_0_sync_lfo_oscillator){
1426 case AGS_SYNTH_OSCILLATOR_SINcxx . . $ AGS_SYNTH_OSCILLATOR_SIN.:
1427 {
1428 lfo_factor = (sincxx . . $ sin(447c67c6676f75c3).(i * 2.0 * M_PIcxx . . $ `<external>/11263917310783833665/math.h:1289:10`! * synth_0_sync_lfo_frequency / samplerate));
1429 }
1430 break;
1431 case AGS_SYNTH_OSCILLATOR_SAWTOOTHcxx . . $ AGS_SYNTH_OSCILLATOR_SAWTOOTH.:
1432 {
1433 lfo_factor = (((fmodcxx . . $ fmod(d8e7e0733fa41c87).(((gdoublecxx . . $ gdouble#) i), samplerate / synth_0_sync_lfo_frequency) * 2.0 * synth_0_sync_lfo_frequency / samplerate) - 1.0));
1434 }
1435 break;
1436 case AGS_SYNTH_OSCILLATOR_TRIANGLEcxx . . $ AGS_SYNTH_OSCILLATOR_TRIANGLE.:
1437 {
1438 lfo_factor = ((((i) * synth_0_sync_lfo_frequency / samplerate * 2.0) - (((double) (((i) * synth_0_sync_lfo_frequency / samplerate)) / 2.0) * 2.0) - 1.0));
1439 }
1440 break;
1441 case AGS_SYNTH_OSCILLATOR_SQUAREcxx . . $ AGS_SYNTH_OSCILLATOR_SQUARE.:
1442 {
1443 lfo_factor = ((sincxx . . $ sin(447c67c6676f75c3).((gdoublecxx . . $ gdouble#) (i) * 2.0 * M_PIcxx . . $ `<external>/11263917310783833665/math.h:1289:10`! * synth_0_sync_lfo_frequency / (gdoublecxx . . $ gdouble#) samplerate) >= 0.0 ? 1.0: -1.0));
1444 }
1445 break;
1446 case AGS_SYNTH_OSCILLATOR_IMPULSEcxx . . $ AGS_SYNTH_OSCILLATOR_IMPULSE.:
1447 {
1448 lfo_factor = ((sincxx . . $ sin(447c67c6676f75c3).((gdoublecxx . . $ gdouble#) (i) * 2.0 * M_PIcxx . . $ `<external>/11263917310783833665/math.h:1289:10`! * synth_0_sync_lfo_frequency / (gdoublecxx . . $ gdouble#) samplerate) >= sincxx . . $ sin(447c67c6676f75c3).(2.0 * M_PIcxx . . $ `<external>/11263917310783833665/math.h:1289:10`! * 3.0 / 5.0) ? 1.0: -1.0));
1449 }
1450 break;
1451 }
1452
1453 switch(current_sync){
1454 case 0:
1455 {
1456 ags_synth_util_set_phasecxx . . $ ags_synth_util_set_phase(da6026408120430c).(channel_data->synth_0cxx . . $ _AgsFxSynthAudioChannelData#synth_0.,
1457 (synth_0_sync_phase_0 / (2.0 * M_PIcxx . . $ `<external>/11263917310783833665/math.h:1289:10`!)) * freq_period * lfo_factor);
1458 }
1459 break;
1460 case 1:
1461 {
1462 ags_synth_util_set_phasecxx . . $ ags_synth_util_set_phase(da6026408120430c).(channel_data->synth_0cxx . . $ _AgsFxSynthAudioChannelData#synth_0.,
1463 (synth_0_sync_phase_1 / (2.0 * M_PIcxx . . $ `<external>/11263917310783833665/math.h:1289:10`!)) * freq_period * lfo_factor);
1464 }
1465 break;
1466 case 2:
1467 {
1468 ags_synth_util_set_phasecxx . . $ ags_synth_util_set_phase(da6026408120430c).(channel_data->synth_0cxx . . $ _AgsFxSynthAudioChannelData#synth_0.,
1469 (synth_0_sync_phase_2 / (2.0 * M_PIcxx . . $ `<external>/11263917310783833665/math.h:1289:10`!)) * freq_period * lfo_factor);
1470 }
1471 break;
1472 }
1473 }
1474
1475 g_rec_mutex_lockcxx . . $ g_rec_mutex_lock(70e02e1a6dfc5752).(source_stream_mutex);
1476
1477 switch(ags_synth_util_get_synth_oscillator_modecxx . . $ ags_synth_util_get_synth_oscillator_mode(507cf8be3b9ce840).(channel_data->synth_0cxx . . $ _AgsFxSynthAudioChannelData#synth_0.)){
1478 case AGS_SYNTH_OSCILLATOR_SINcxx . . $ AGS_SYNTH_OSCILLATOR_SIN.:
1479 {
1480 ags_synth_util_compute_sincxx . . $ ags_synth_util_compute_sin(4fddf9785c87e953).(channel_data->synth_0cxx . . $ _AgsFxSynthAudioChannelData#synth_0.);
1481 }
1482 break;
1483 case AGS_SYNTH_OSCILLATOR_SAWTOOTHcxx . . $ AGS_SYNTH_OSCILLATOR_SAWTOOTH.:
1484 {
1485 ags_synth_util_compute_sawtoothcxx . . $ ags_synth_util_compute_sawtooth(4fddf9785c87e953).(channel_data->synth_0cxx . . $ _AgsFxSynthAudioChannelData#synth_0.);
1486 }
1487 break;
1488 case AGS_SYNTH_OSCILLATOR_TRIANGLEcxx . . $ AGS_SYNTH_OSCILLATOR_TRIANGLE.:
1489 {
1490 ags_synth_util_compute_trianglecxx . . $ ags_synth_util_compute_triangle(4fddf9785c87e953).(channel_data->synth_0cxx . . $ _AgsFxSynthAudioChannelData#synth_0.);
1491 }
1492 break;
1493 case AGS_SYNTH_OSCILLATOR_SQUAREcxx . . $ AGS_SYNTH_OSCILLATOR_SQUARE.:
1494 {
1495 ags_synth_util_compute_squarecxx . . $ ags_synth_util_compute_square(4fddf9785c87e953).(channel_data->synth_0cxx . . $ _AgsFxSynthAudioChannelData#synth_0.);
1496 }
1497 break;
1498 case AGS_SYNTH_OSCILLATOR_IMPULSEcxx . . $ AGS_SYNTH_OSCILLATOR_IMPULSE.:
1499 {
1500 ags_synth_util_compute_impulsecxx . . $ ags_synth_util_compute_impulse(4fddf9785c87e953).(channel_data->synth_0cxx . . $ _AgsFxSynthAudioChannelData#synth_0.);
1501 }
1502 break;
1503 }
1504 }
1505
1506 g_rec_mutex_unlockcxx . . $ g_rec_mutex_unlock(70e02e1a6dfc5752).(source_stream_mutex);
1507
1508 if(sync_reset != 0 && i_reset + sync_reset < buffer_size * (guintcxx . . $ guint#) floorcxx . . $ floor(447c67c6676f75c3).(i / buffer_size) + buffer_size){
1509 i = i_reset + sync_reset;
1510
1511 current_sync = next_sync;
1512 }else{
1513 if(((buffer_size * (guintcxx . . $ guint#) floorcxx . . $ floor(447c67c6676f75c3).(i / buffer_size) + buffer_size) - i) != 0){
1514 i += ((buffer_size * (guintcxx . . $ guint#) floorcxx . . $ floor(447c67c6676f75c3).(i / buffer_size) + buffer_size) - i);
1515 }else{
1516 i++;
1517 }
1518 }
1519 }
1520 }else{
1521 g_rec_mutex_lockcxx . . $ g_rec_mutex_lock(70e02e1a6dfc5752).(source_stream_mutex);
1522
1523 switch(ags_synth_util_get_synth_oscillator_modecxx . . $ ags_synth_util_get_synth_oscillator_mode(507cf8be3b9ce840).(channel_data->synth_0cxx . . $ _AgsFxSynthAudioChannelData#synth_0.)){
1524 case AGS_SYNTH_OSCILLATOR_SINcxx . . $ AGS_SYNTH_OSCILLATOR_SIN.:
1525 {
1526 ags_synth_util_compute_sincxx . . $ ags_synth_util_compute_sin(4fddf9785c87e953).(channel_data->synth_0cxx . . $ _AgsFxSynthAudioChannelData#synth_0.);
1527 }
1528 break;
1529 case AGS_SYNTH_OSCILLATOR_SAWTOOTHcxx . . $ AGS_SYNTH_OSCILLATOR_SAWTOOTH.:
1530 {
1531 ags_synth_util_compute_sawtoothcxx . . $ ags_synth_util_compute_sawtooth(4fddf9785c87e953).(channel_data->synth_0cxx . . $ _AgsFxSynthAudioChannelData#synth_0.);
1532 }
1533 break;
1534 case AGS_SYNTH_OSCILLATOR_TRIANGLEcxx . . $ AGS_SYNTH_OSCILLATOR_TRIANGLE.:
1535 {
1536 ags_synth_util_compute_trianglecxx . . $ ags_synth_util_compute_triangle(4fddf9785c87e953).(channel_data->synth_0cxx . . $ _AgsFxSynthAudioChannelData#synth_0.);
1537 }
1538 break;
1539 case AGS_SYNTH_OSCILLATOR_SQUAREcxx . . $ AGS_SYNTH_OSCILLATOR_SQUARE.:
1540 {
1541 ags_synth_util_compute_squarecxx . . $ ags_synth_util_compute_square(4fddf9785c87e953).(channel_data->synth_0cxx . . $ _AgsFxSynthAudioChannelData#synth_0.);
1542 }
1543 break;
1544 case AGS_SYNTH_OSCILLATOR_IMPULSEcxx . . $ AGS_SYNTH_OSCILLATOR_IMPULSE.:
1545 {
1546 ags_synth_util_compute_impulsecxx . . $ ags_synth_util_compute_impulse(4fddf9785c87e953).(channel_data->synth_0cxx . . $ _AgsFxSynthAudioChannelData#synth_0.);
1547 }
1548 break;
1549 }
1550
1551 g_rec_mutex_unlockcxx . . $ g_rec_mutex_unlock(70e02e1a6dfc5752).(source_stream_mutex);
1552 }
1553
1554 ags_synth_util_set_sourcecxx . . $ ags_synth_util_set_source(886b384a3ee94511).(channel_data->synth_0cxx . . $ _AgsFxSynthAudioChannelData#synth_0.,
1555 NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/16/include/stddef.h:419:9`!);
1556
1557 /* synth 1 */
1558 ags_synth_util_set_sourcecxx . . $ ags_synth_util_set_source(886b384a3ee94511).(channel_data->synth_1cxx . . $ _AgsFxSynthAudioChannelData#synth_1.,
1559 source->stream_currentcxx . . $ _AgsAudioSignal#stream_current.->datacxx . . $ _GList#data.);
1560 ags_synth_util_set_source_stridecxx . . $ ags_synth_util_set_source_stride(81ee016634e46c86).(channel_data->synth_1cxx . . $ _AgsFxSynthAudioChannelData#synth_1.,
1561 1);
1562
1563 ags_synth_util_set_buffer_lengthcxx . . $ ags_synth_util_set_buffer_length(81ee016634e46c86).(channel_data->synth_1cxx . . $ _AgsFxSynthAudioChannelData#synth_1.,
1564 buffer_size);
1565 ags_synth_util_set_formatcxx . . $ ags_synth_util_set_format(fd965ae495e9afd7).(channel_data->synth_1cxx . . $ _AgsFxSynthAudioChannelData#synth_1.,
1566 format);
1567 ags_synth_util_set_sampleratecxx . . $ ags_synth_util_set_samplerate(81ee016634e46c86).(channel_data->synth_1cxx . . $ _AgsFxSynthAudioChannelData#synth_1.,
1568 samplerate);
1569
1570 if(!note_256th_mode){
1571 ags_synth_util_set_frame_countcxx . . $ ags_synth_util_set_frame_count(81ee016634e46c86).(channel_data->synth_1cxx . . $ _AgsFxSynthAudioChannelData#synth_1.,
1572 floorcxx . . $ floor(447c67c6676f75c3).(((offset_counter - x0) * delay + delay_counter + 1.0) * buffer_size));
1573
1574 ags_synth_util_set_offsetcxx . . $ ags_synth_util_set_offset(81ee016634e46c86).(channel_data->synth_1cxx . . $ _AgsFxSynthAudioChannelData#synth_1.,
1575 floorcxx . . $ floor(447c67c6676f75c3).(((offset_counter - x0) * delay + delay_counter) * buffer_size));
1576 }else{
1577 ags_synth_util_set_frame_countcxx . . $ ags_synth_util_set_frame_count(81ee016634e46c86).(channel_data->synth_1cxx . . $ _AgsFxSynthAudioChannelData#synth_1.,
1578 (guintcxx . . $ guint#) floorcxx . . $ floor(447c67c6676f75c3).((double) (note_256th_offset_lower - x0_256th) * note_256th_delay * (double) buffer_size) + (guintcxx . . $ guint#) floorcxx . . $ floor(447c67c6676f75c3).(delay * (double) buffer_size));
1579
1580 ags_synth_util_set_offsetcxx . . $ ags_synth_util_set_offset(81ee016634e46c86).(channel_data->synth_1cxx . . $ _AgsFxSynthAudioChannelData#synth_1.,
1581 (guintcxx . . $ guint#) floorcxx . . $ floor(447c67c6676f75c3).(((double) (offset_counter - x0) * delay + delay_counter) * (double) buffer_size));
1582
1583 ags_synth_util_set_offset_256thcxx . . $ ags_synth_util_set_offset_256th(81ee016634e46c86).(channel_data->synth_1cxx . . $ _AgsFxSynthAudioChannelData#synth_1.,
1584 (guintcxx . . $ guint#) floorcxx . . $ floor(447c67c6676f75c3).((double) (note_256th_offset_lower - x0_256th) * note_256th_delay * (double) buffer_size));
1585 }
1586
1587 if(synth_1_sync_enabled){
1588 guintcxx . . $ guint# offset;
1589 gdoublecxx . . $ gdouble# freq_period;
1590 guintcxx . . $ guint# current_sync, next_sync;
1591 guintcxx . . $ guint# sync_reset;
1592 guintcxx . . $ guint# word_size;
1593 guintcxx . . $ guint# i, i_reset, i_stop;
1594
1595 offset = ags_synth_util_get_offsetcxx . . $ ags_synth_util_get_offset(507cf8be3b9ce840).(channel_data->synth_1cxx . . $ _AgsFxSynthAudioChannelData#synth_1.);
1596
1597 freq_period = samplerate / ags_synth_util_get_frequencycxx . . $ ags_synth_util_get_frequency(5aab7d53513f5afb).(channel_data->synth_1cxx . . $ _AgsFxSynthAudioChannelData#synth_1.);
1598
1599 word_size = sizeof(gint16cxx . . $ gint16#);
1600
1601 switch(format){
1602 case AGS_SOUNDCARD_SIGNED_8_BITcxx . . $ AGS_SOUNDCARD_SIGNED_8_BIT.:
1603 {
1604 word_size = sizeof(gint8cxx . . $ gint8#);
1605 }
1606 break;
1607 case AGS_SOUNDCARD_SIGNED_16_BITcxx . . $ AGS_SOUNDCARD_SIGNED_16_BIT.:
1608 {
1609 word_size = sizeof(gint16cxx . . $ gint16#);
1610 }
1611 break;
1612 case AGS_SOUNDCARD_SIGNED_24_BITcxx . . $ AGS_SOUNDCARD_SIGNED_24_BIT.:
1613 {
1614 word_size = sizeof(gint32cxx . . $ gint32#);
1615 }
1616 break;
1617 case AGS_SOUNDCARD_SIGNED_32_BITcxx . . $ AGS_SOUNDCARD_SIGNED_32_BIT.:
1618 {
1619 word_size = sizeof(gint32cxx . . $ gint32#);
1620 }
1621 break;
1622 case AGS_SOUNDCARD_SIGNED_64_BITcxx . . $ AGS_SOUNDCARD_SIGNED_64_BIT.:
1623 {
1624 word_size = sizeof(gint64cxx . . $ gint64#);
1625 }
1626 break;
1627 case AGS_SOUNDCARD_FLOATcxx . . $ AGS_SOUNDCARD_FLOAT.:
1628 {
1629 word_size = sizeof(gfloatcxx . . $ gfloat#);
1630 }
1631 break;
1632 case AGS_SOUNDCARD_DOUBLEcxx . . $ AGS_SOUNDCARD_DOUBLE.:
1633 {
1634 word_size = sizeof(gdoublecxx . . $ gdouble#);
1635 }
1636 break;
1637 }
1638
1639 for(i = 0, i_reset = 0, sync_reset = 0, current_sync = 0, next_sync = 0; i < offset + buffer_size;){
1640 if(i_reset + sync_reset == i){
1641 switch(current_sync){
1642 case 0:
1643 {
1644 if(synth_1_sync_attack_0 > 0.0){
1645 sync_reset = (1.0 - synth_1_sync_relative_attack_factor * ((gdoublecxx . . $ gdouble#) midi_note / 128.0)) * ((synth_1_sync_attack_0 / (2.0 * M_PIcxx . . $ `<external>/11263917310783833665/math.h:1289:10`!)) * freq_period);
1646 i_reset = i;
1647
1648 if(synth_1_sync_attack_1 > 0.0){
1649 next_sync = 1;
1650 }
1651 }
1652 }
1653 break;
1654 case 1:
1655 {
1656 if(synth_1_sync_attack_1 > 0.0){
1657 sync_reset = (1.0 - synth_1_sync_relative_attack_factor * ((gdoublecxx . . $ gdouble#) midi_note / 128.0)) * ((synth_1_sync_attack_1 / (2.0 * M_PIcxx . . $ `<external>/11263917310783833665/math.h:1289:10`!)) * freq_period);
1658 i_reset = i;
1659
1660 if(synth_1_sync_attack_2 > 0.0){
1661 next_sync = 2;
1662 }
1663 }
1664 }
1665 break;
1666 case 2:
1667 {
1668 if(synth_1_sync_attack_2 > 0.0){
1669 sync_reset = (1.0 - synth_1_sync_relative_attack_factor * ((gdoublecxx . . $ gdouble#) midi_note / 128.0)) * ((synth_1_sync_attack_2 / (2.0 * M_PIcxx . . $ `<external>/11263917310783833665/math.h:1289:10`!)) * freq_period);
1670 i_reset = i;
1671
1672 next_sync = 0;
1673 }
1674 }
1675 break;
1676 }
1677 }
1678
1679 // g_message("synth 1 - offset = %d, i = %d, i_reset = %d, sync_reset = %d", channel_data->synth_1.offset, i, i_reset, sync_reset);
1680
1681 if(i >= ags_synth_util_get_offsetcxx . . $ ags_synth_util_get_offset(507cf8be3b9ce840).(channel_data->synth_1cxx . . $ _AgsFxSynthAudioChannelData#synth_1.)){
1682 ags_synth_util_set_offsetcxx . . $ ags_synth_util_set_offset(81ee016634e46c86).(channel_data->synth_1cxx . . $ _AgsFxSynthAudioChannelData#synth_1.,
1683 i);
1684
1685 if(sync_reset != 0 && i_reset + sync_reset < buffer_size * (guintcxx . . $ guint#) floorcxx . . $ floor(447c67c6676f75c3).(i / buffer_size) + buffer_size){
1686 ags_synth_util_set_sourcecxx . . $ ags_synth_util_set_source(886b384a3ee94511).(channel_data->synth_1cxx . . $ _AgsFxSynthAudioChannelData#synth_1.,
1687 ((gucharcxx . . $ guchar# *) source->stream_currentcxx . . $ _AgsAudioSignal#stream_current.->datacxx . . $ _GList#data.) + ((i % buffer_size) * word_size));
1688
1689 ags_synth_util_set_buffer_lengthcxx . . $ ags_synth_util_set_buffer_length(81ee016634e46c86).(channel_data->synth_1cxx . . $ _AgsFxSynthAudioChannelData#synth_1.,
1690 (i_reset + sync_reset) - i);
1691 }else{
1692 ags_synth_util_set_sourcecxx . . $ ags_synth_util_set_source(886b384a3ee94511).(channel_data->synth_1cxx . . $ _AgsFxSynthAudioChannelData#synth_1.,
1693 ((gucharcxx . . $ guchar# *) source->stream_currentcxx . . $ _AgsAudioSignal#stream_current.->datacxx . . $ _GList#data.) + ((i % buffer_size) * word_size));
1694
1695 ags_synth_util_set_buffer_lengthcxx . . $ ags_synth_util_set_buffer_length(81ee016634e46c86).(channel_data->synth_1cxx . . $ _AgsFxSynthAudioChannelData#synth_1.,
1696 ((buffer_size * (guintcxx . . $ guint#) floorcxx . . $ floor(447c67c6676f75c3).(i / buffer_size) + buffer_size) - i));
1697 }
1698
1699 if(sync_reset != 0){
1700 gdoublecxx . . $ gdouble# lfo_factor;
1701
1702 lfo_factor = 1.0;
1703
1704 switch(synth_1_sync_lfo_oscillator){
1705 case AGS_SYNTH_OSCILLATOR_SINcxx . . $ AGS_SYNTH_OSCILLATOR_SIN.:
1706 {
1707 lfo_factor = (sincxx . . $ sin(447c67c6676f75c3).(i * 2.0 * M_PIcxx . . $ `<external>/11263917310783833665/math.h:1289:10`! * synth_1_sync_lfo_frequency / samplerate));
1708 }
1709 break;
1710 case AGS_SYNTH_OSCILLATOR_SAWTOOTHcxx . . $ AGS_SYNTH_OSCILLATOR_SAWTOOTH.:
1711 {
1712 lfo_factor = (((fmodcxx . . $ fmod(d8e7e0733fa41c87).(((gdoublecxx . . $ gdouble#) i), samplerate / synth_1_sync_lfo_frequency) * 2.0 * synth_1_sync_lfo_frequency / samplerate) - 1.0));
1713 }
1714 break;
1715 case AGS_SYNTH_OSCILLATOR_TRIANGLEcxx . . $ AGS_SYNTH_OSCILLATOR_TRIANGLE.:
1716 {
1717 lfo_factor = ((((i) * synth_1_sync_lfo_frequency / samplerate * 2.0) - (((double) (((i) * synth_1_sync_lfo_frequency / samplerate)) / 2.0) * 2.0) - 1.0));
1718 }
1719 break;
1720 case AGS_SYNTH_OSCILLATOR_SQUAREcxx . . $ AGS_SYNTH_OSCILLATOR_SQUARE.:
1721 {
1722 lfo_factor = ((sincxx . . $ sin(447c67c6676f75c3).((gdoublecxx . . $ gdouble#) (i) * 2.0 * M_PIcxx . . $ `<external>/11263917310783833665/math.h:1289:10`! * synth_1_sync_lfo_frequency / (gdoublecxx . . $ gdouble#) samplerate) >= 0.0 ? 1.0: -1.0));
1723 }
1724 break;
1725 case AGS_SYNTH_OSCILLATOR_IMPULSEcxx . . $ AGS_SYNTH_OSCILLATOR_IMPULSE.:
1726 {
1727 lfo_factor = ((sincxx . . $ sin(447c67c6676f75c3).((gdoublecxx . . $ gdouble#) (i) * 2.0 * M_PIcxx . . $ `<external>/11263917310783833665/math.h:1289:10`! * synth_1_sync_lfo_frequency / (gdoublecxx . . $ gdouble#) samplerate) >= sincxx . . $ sin(447c67c6676f75c3).(2.0 * M_PIcxx . . $ `<external>/11263917310783833665/math.h:1289:10`! * 3.0 / 5.0) ? 1.0: -1.0));
1728 }
1729 break;
1730 }
1731
1732 switch(current_sync){
1733 case 0:
1734 {
1735 ags_synth_util_set_phasecxx . . $ ags_synth_util_set_phase(da6026408120430c).(channel_data->synth_1cxx . . $ _AgsFxSynthAudioChannelData#synth_1.,
1736 (synth_1_sync_phase_0 / (2.0 * M_PIcxx . . $ `<external>/11263917310783833665/math.h:1289:10`!)) * freq_period * lfo_factor);
1737 }
1738 break;
1739 case 1:
1740 {
1741 ags_synth_util_set_phasecxx . . $ ags_synth_util_set_phase(da6026408120430c).(channel_data->synth_1cxx . . $ _AgsFxSynthAudioChannelData#synth_1.,
1742 (synth_1_sync_phase_1 / (2.0 * M_PIcxx . . $ `<external>/11263917310783833665/math.h:1289:10`!)) * freq_period * lfo_factor);
1743 }
1744 break;
1745 case 2:
1746 {
1747 ags_synth_util_set_phasecxx . . $ ags_synth_util_set_phase(da6026408120430c).(channel_data->synth_1cxx . . $ _AgsFxSynthAudioChannelData#synth_1.,
1748 (synth_1_sync_phase_2 / (2.0 * M_PIcxx . . $ `<external>/11263917310783833665/math.h:1289:10`!)) * freq_period * lfo_factor);
1749 }
1750 break;
1751 }
1752 }
1753
1754 g_rec_mutex_lockcxx . . $ g_rec_mutex_lock(70e02e1a6dfc5752).(source_stream_mutex);
1755
1756 switch(ags_synth_util_get_synth_oscillator_modecxx . . $ ags_synth_util_get_synth_oscillator_mode(507cf8be3b9ce840).(channel_data->synth_1cxx . . $ _AgsFxSynthAudioChannelData#synth_1.)){
1757 case AGS_SYNTH_OSCILLATOR_SINcxx . . $ AGS_SYNTH_OSCILLATOR_SIN.:
1758 {
1759 ags_synth_util_compute_sincxx . . $ ags_synth_util_compute_sin(4fddf9785c87e953).(channel_data->synth_1cxx . . $ _AgsFxSynthAudioChannelData#synth_1.);
1760 }
1761 break;
1762 case AGS_SYNTH_OSCILLATOR_SAWTOOTHcxx . . $ AGS_SYNTH_OSCILLATOR_SAWTOOTH.:
1763 {
1764 ags_synth_util_compute_sawtoothcxx . . $ ags_synth_util_compute_sawtooth(4fddf9785c87e953).(channel_data->synth_1cxx . . $ _AgsFxSynthAudioChannelData#synth_1.);
1765 }
1766 break;
1767 case AGS_SYNTH_OSCILLATOR_TRIANGLEcxx . . $ AGS_SYNTH_OSCILLATOR_TRIANGLE.:
1768 {
1769 ags_synth_util_compute_trianglecxx . . $ ags_synth_util_compute_triangle(4fddf9785c87e953).(channel_data->synth_1cxx . . $ _AgsFxSynthAudioChannelData#synth_1.);
1770 }
1771 break;
1772 case AGS_SYNTH_OSCILLATOR_SQUAREcxx . . $ AGS_SYNTH_OSCILLATOR_SQUARE.:
1773 {
1774 ags_synth_util_compute_squarecxx . . $ ags_synth_util_compute_square(4fddf9785c87e953).(channel_data->synth_1cxx . . $ _AgsFxSynthAudioChannelData#synth_1.);
1775 }
1776 break;
1777 case AGS_SYNTH_OSCILLATOR_IMPULSEcxx . . $ AGS_SYNTH_OSCILLATOR_IMPULSE.:
1778 {
1779 ags_synth_util_compute_impulsecxx . . $ ags_synth_util_compute_impulse(4fddf9785c87e953).(channel_data->synth_1cxx . . $ _AgsFxSynthAudioChannelData#synth_1.);
1780 }
1781 break;
1782 }
1783 }
1784
1785 g_rec_mutex_unlockcxx . . $ g_rec_mutex_unlock(70e02e1a6dfc5752).(source_stream_mutex);
1786
1787 if(sync_reset != 0 && i_reset + sync_reset < buffer_size * (guintcxx . . $ guint#) floorcxx . . $ floor(447c67c6676f75c3).(i / buffer_size) + buffer_size){
1788 i = i_reset + sync_reset;
1789
1790 current_sync = next_sync;
1791 }else{
1792 if(((buffer_size * (guintcxx . . $ guint#) floorcxx . . $ floor(447c67c6676f75c3).(i / buffer_size) + buffer_size) - i) != 0){
1793 i += ((buffer_size * (guintcxx . . $ guint#) floorcxx . . $ floor(447c67c6676f75c3).(i / buffer_size) + buffer_size) - i);
1794 }else{
1795 i++;
1796 }
1797 }
1798 }
1799 }else{
1800 g_rec_mutex_lockcxx . . $ g_rec_mutex_lock(70e02e1a6dfc5752).(source_stream_mutex);
1801
1802 switch(ags_synth_util_get_synth_oscillator_modecxx . . $ ags_synth_util_get_synth_oscillator_mode(507cf8be3b9ce840).(channel_data->synth_1cxx . . $ _AgsFxSynthAudioChannelData#synth_1.)){
1803 case AGS_SYNTH_OSCILLATOR_SINcxx . . $ AGS_SYNTH_OSCILLATOR_SIN.:
1804 {
1805 ags_synth_util_compute_sincxx . . $ ags_synth_util_compute_sin(4fddf9785c87e953).(channel_data->synth_1cxx . . $ _AgsFxSynthAudioChannelData#synth_1.);
1806 }
1807 break;
1808 case AGS_SYNTH_OSCILLATOR_SAWTOOTHcxx . . $ AGS_SYNTH_OSCILLATOR_SAWTOOTH.:
1809 {
1810 ags_synth_util_compute_sawtoothcxx . . $ ags_synth_util_compute_sawtooth(4fddf9785c87e953).(channel_data->synth_1cxx . . $ _AgsFxSynthAudioChannelData#synth_1.);
1811 }
1812 break;
1813 case AGS_SYNTH_OSCILLATOR_TRIANGLEcxx . . $ AGS_SYNTH_OSCILLATOR_TRIANGLE.:
1814 {
1815 ags_synth_util_compute_trianglecxx . . $ ags_synth_util_compute_triangle(4fddf9785c87e953).(channel_data->synth_1cxx . . $ _AgsFxSynthAudioChannelData#synth_1.);
1816 }
1817 break;
1818 case AGS_SYNTH_OSCILLATOR_SQUAREcxx . . $ AGS_SYNTH_OSCILLATOR_SQUARE.:
1819 {
1820 ags_synth_util_compute_squarecxx . . $ ags_synth_util_compute_square(4fddf9785c87e953).(channel_data->synth_1cxx . . $ _AgsFxSynthAudioChannelData#synth_1.);
1821 }
1822 break;
1823 case AGS_SYNTH_OSCILLATOR_IMPULSEcxx . . $ AGS_SYNTH_OSCILLATOR_IMPULSE.:
1824 {
1825 ags_synth_util_compute_impulsecxx . . $ ags_synth_util_compute_impulse(4fddf9785c87e953).(channel_data->synth_1cxx . . $ _AgsFxSynthAudioChannelData#synth_1.);
1826 }
1827 break;
1828 }
1829
1830 g_rec_mutex_unlockcxx . . $ g_rec_mutex_unlock(70e02e1a6dfc5752).(source_stream_mutex);
1831 }
1832
1833 ags_synth_util_set_sourcecxx . . $ ags_synth_util_set_source(886b384a3ee94511).(channel_data->synth_1cxx . . $ _AgsFxSynthAudioChannelData#synth_1.,
1834 NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/16/include/stddef.h:419:9`!);
1835
1836 /* noise */
1837 if(ags_noise_util_get_volumecxx . . $ ags_noise_util_get_volume(520f22cfde7a1111).(channel_data->noise_utilcxx . . $ _AgsFxSynthAudioChannelData#noise_util.) != 0.0){
1838 ags_noise_util_set_sourcecxx . . $ ags_noise_util_set_source(31c8a3dbe659ec23).(channel_data->noise_utilcxx . . $ _AgsFxSynthAudioChannelData#noise_util.,
1839 source->stream_currentcxx . . $ _AgsAudioSignal#stream_current.->datacxx . . $ _GList#data.);
1840
1841 ags_noise_util_set_destinationcxx . . $ ags_noise_util_set_destination(31c8a3dbe659ec23).(channel_data->noise_utilcxx . . $ _AgsFxSynthAudioChannelData#noise_util.,
1842 source->stream_currentcxx . . $ _AgsAudioSignal#stream_current.->datacxx . . $ _GList#data.);
1843
1844 ags_noise_util_set_sampleratecxx . . $ ags_noise_util_set_samplerate(d52ad40eed0a110c).(channel_data->noise_utilcxx . . $ _AgsFxSynthAudioChannelData#noise_util.,
1845 samplerate);
1846 ags_noise_util_set_buffer_lengthcxx . . $ ags_noise_util_set_buffer_length(d52ad40eed0a110c).(channel_data->noise_utilcxx . . $ _AgsFxSynthAudioChannelData#noise_util.,
1847 buffer_size);
1848 ags_noise_util_set_formatcxx . . $ ags_noise_util_set_format(9f4d376f0cb345a9).(channel_data->noise_utilcxx . . $ _AgsFxSynthAudioChannelData#noise_util.,
1849 format);
1850
1851 if(!note_256th_mode){
1852 ags_noise_util_set_frame_countcxx . . $ ags_noise_util_set_frame_count(d52ad40eed0a110c).(channel_data->noise_utilcxx . . $ _AgsFxSynthAudioChannelData#noise_util.,
1853 floorcxx . . $ floor(447c67c6676f75c3).(((offset_counter - x0) * delay + delay_counter + 1.0) * buffer_size));
1854
1855 ags_noise_util_set_offsetcxx . . $ ags_noise_util_set_offset(d52ad40eed0a110c).(channel_data->noise_utilcxx . . $ _AgsFxSynthAudioChannelData#noise_util.,
1856 floorcxx . . $ floor(447c67c6676f75c3).(((offset_counter - x0) * delay + delay_counter) * buffer_size));
1857 }else{
1858 ags_noise_util_set_frame_countcxx . . $ ags_noise_util_set_frame_count(d52ad40eed0a110c).(channel_data->noise_utilcxx . . $ _AgsFxSynthAudioChannelData#noise_util.,
1859 (guintcxx . . $ guint#) floorcxx . . $ floor(447c67c6676f75c3).((double) (note_256th_offset_lower - x0_256th) * note_256th_delay * (double) buffer_size) + (guintcxx . . $ guint#) floorcxx . . $ floor(447c67c6676f75c3).(delay * (double) buffer_size));
1860
1861 ags_noise_util_set_offsetcxx . . $ ags_noise_util_set_offset(d52ad40eed0a110c).(channel_data->noise_utilcxx . . $ _AgsFxSynthAudioChannelData#noise_util.,
1862 (guintcxx . . $ guint#) floorcxx . . $ floor(447c67c6676f75c3).(((double) (offset_counter - x0) * delay + delay_counter) * (double) buffer_size));
1863
1864 ags_noise_util_set_offset_256thcxx . . $ ags_noise_util_set_offset_256th(d52ad40eed0a110c).(channel_data->noise_utilcxx . . $ _AgsFxSynthAudioChannelData#noise_util.,
1865 (guintcxx . . $ guint#) floorcxx . . $ floor(447c67c6676f75c3).((double) (note_256th_offset_lower - x0_256th) * note_256th_delay * (double) buffer_size));
1866 }
1867
1868 g_rec_mutex_lockcxx . . $ g_rec_mutex_lock(70e02e1a6dfc5752).(source_stream_mutex);
1869
1870 ags_noise_util_computecxx . . $ ags_noise_util_compute(be89fca8e4eb8c6b).(channel_data->noise_utilcxx . . $ _AgsFxSynthAudioChannelData#noise_util.);
1871
1872 g_rec_mutex_unlockcxx . . $ g_rec_mutex_unlock(70e02e1a6dfc5752).(source_stream_mutex);
1873
1874 /* reset source and destination */
1875 ags_noise_util_set_sourcecxx . . $ ags_noise_util_set_source(31c8a3dbe659ec23).(channel_data->noise_utilcxx . . $ _AgsFxSynthAudioChannelData#noise_util.,
1876 NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/16/include/stddef.h:419:9`!);
1877
1878 ags_noise_util_set_destinationcxx . . $ ags_noise_util_set_destination(31c8a3dbe659ec23).(channel_data->noise_utilcxx . . $ _AgsFxSynthAudioChannelData#noise_util.,
1879 NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/16/include/stddef.h:419:9`!);
1880 }
1881
1882 /* pitch */
1883 if(ags_common_pitch_util_get_tuningcxx . . $ ags_common_pitch_util_get_tuning(d0d9ac67adf7373).(channel_data->pitch_utilcxx . . $ _AgsFxSynthAudioChannelData#pitch_util.,
1884 channel_data->pitch_typecxx . . $ _AgsFxSynthAudioChannelData#pitch_type.) != 0.0){
1885 ags_common_pitch_util_set_destinationcxx . . $ ags_common_pitch_util_set_destination(508ce4cd4038a00a).(channel_data->pitch_utilcxx . . $ _AgsFxSynthAudioChannelData#pitch_util.,
1886 channel_data->pitch_typecxx . . $ _AgsFxSynthAudioChannelData#pitch_type.,
1887 source->stream_currentcxx . . $ _AgsAudioSignal#stream_current.->datacxx . . $ _GList#data.);
1888
1889 ags_common_pitch_util_set_sourcecxx . . $ ags_common_pitch_util_set_source(508ce4cd4038a00a).(channel_data->pitch_utilcxx . . $ _AgsFxSynthAudioChannelData#pitch_util.,
1890 channel_data->pitch_typecxx . . $ _AgsFxSynthAudioChannelData#pitch_type.,
1891 source->stream_currentcxx . . $ _AgsAudioSignal#stream_current.->datacxx . . $ _GList#data.);
1892
1893 ags_common_pitch_util_set_sampleratecxx . . $ ags_common_pitch_util_set_samplerate(42777cb9d99382a2).(channel_data->pitch_utilcxx . . $ _AgsFxSynthAudioChannelData#pitch_util.,
1894 channel_data->pitch_typecxx . . $ _AgsFxSynthAudioChannelData#pitch_type.,
1895 samplerate);
1896 ags_common_pitch_util_set_buffer_lengthcxx . . $ ags_common_pitch_util_set_buffer_length(42777cb9d99382a2).(channel_data->pitch_utilcxx . . $ _AgsFxSynthAudioChannelData#pitch_util.,
1897 channel_data->pitch_typecxx . . $ _AgsFxSynthAudioChannelData#pitch_type.,
1898 buffer_size);
1899 ags_common_pitch_util_set_formatcxx . . $ ags_common_pitch_util_set_format(42777cb9d99382a2).(channel_data->pitch_utilcxx . . $ _AgsFxSynthAudioChannelData#pitch_util.,
1900 channel_data->pitch_typecxx . . $ _AgsFxSynthAudioChannelData#pitch_type.,
1901 format);
1902
1903 g_rec_mutex_lockcxx . . $ g_rec_mutex_lock(70e02e1a6dfc5752).(source_stream_mutex);
1904
1905 ags_common_pitch_util_pitchcxx . . $ ags_common_pitch_util_pitch(5500c4293b1bbef0).(channel_data->pitch_utilcxx . . $ _AgsFxSynthAudioChannelData#pitch_util.,
1906 channel_data->pitch_typecxx . . $ _AgsFxSynthAudioChannelData#pitch_type.);
1907
1908 g_rec_mutex_unlockcxx . . $ g_rec_mutex_unlock(70e02e1a6dfc5752).(source_stream_mutex);
1909
1910 /* reset */
1911 ags_common_pitch_util_set_destinationcxx . . $ ags_common_pitch_util_set_destination(508ce4cd4038a00a).(channel_data->pitch_utilcxx . . $ _AgsFxSynthAudioChannelData#pitch_util.,
1912 channel_data->pitch_typecxx . . $ _AgsFxSynthAudioChannelData#pitch_type.,
1913 NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/16/include/stddef.h:419:9`!);
1914
1915 ags_common_pitch_util_set_sourcecxx . . $ ags_common_pitch_util_set_source(508ce4cd4038a00a).(channel_data->pitch_utilcxx . . $ _AgsFxSynthAudioChannelData#pitch_util.,
1916 channel_data->pitch_typecxx . . $ _AgsFxSynthAudioChannelData#pitch_type.,
1917 NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/16/include/stddef.h:419:9`!);
1918 }
1919
1920 /* low-pass */
1921 if(low_pass_enabled){
1922 ags_fluid_iir_filter_util_set_sourcecxx . . $ ags_fluid_iir_filter_util_set_source(44c8c31c2e090761).(channel_data->low_pass_filtercxx . . $ _AgsFxSynthAudioChannelData#low_pass_filter.,
1923 source->stream_currentcxx . . $ _AgsAudioSignal#stream_current.->datacxx . . $ _GList#data.);
1924
1925 ags_fluid_iir_filter_util_set_destinationcxx . . $ ags_fluid_iir_filter_util_set_destination(44c8c31c2e090761).(channel_data->low_pass_filtercxx . . $ _AgsFxSynthAudioChannelData#low_pass_filter.,
1926 source->stream_currentcxx . . $ _AgsAudioSignal#stream_current.->datacxx . . $ _GList#data.);
1927
1928 ags_fluid_iir_filter_util_set_sampleratecxx . . $ ags_fluid_iir_filter_util_set_samplerate(237aaab97850d785).(channel_data->low_pass_filtercxx . . $ _AgsFxSynthAudioChannelData#low_pass_filter.,
1929 samplerate);
1930 ags_fluid_iir_filter_util_set_buffer_lengthcxx . . $ ags_fluid_iir_filter_util_set_buffer_length(237aaab97850d785).(channel_data->low_pass_filtercxx . . $ _AgsFxSynthAudioChannelData#low_pass_filter.,
1931 buffer_size);
1932 ags_fluid_iir_filter_util_set_formatcxx . . $ ags_fluid_iir_filter_util_set_format(89bc4bbdd19dbfe6).(channel_data->low_pass_filtercxx . . $ _AgsFxSynthAudioChannelData#low_pass_filter.,
1933 format);
1934
1935 g_rec_mutex_lockcxx . . $ g_rec_mutex_lock(70e02e1a6dfc5752).(source_stream_mutex);
1936
1937 ags_fluid_iir_filter_util_processcxx . . $ ags_fluid_iir_filter_util_process(b5213aef9b8f8e0b).(channel_data->low_pass_filtercxx . . $ _AgsFxSynthAudioChannelData#low_pass_filter.);
1938
1939 g_rec_mutex_unlockcxx . . $ g_rec_mutex_unlock(70e02e1a6dfc5752).(source_stream_mutex);
1940
1941 /* reset */
1942 ags_fluid_iir_filter_util_set_sourcecxx . . $ ags_fluid_iir_filter_util_set_source(44c8c31c2e090761).(channel_data->low_pass_filtercxx . . $ _AgsFxSynthAudioChannelData#low_pass_filter.,
1943 NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/16/include/stddef.h:419:9`!);
1944
1945 ags_fluid_iir_filter_util_set_destinationcxx . . $ ags_fluid_iir_filter_util_set_destination(44c8c31c2e090761).(channel_data->low_pass_filtercxx . . $ _AgsFxSynthAudioChannelData#low_pass_filter.,
1946 NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/16/include/stddef.h:419:9`!);
1947 }
1948
1949 /* high-pass */
1950 if(high_pass_enabled){
1951 ags_fluid_iir_filter_util_set_sourcecxx . . $ ags_fluid_iir_filter_util_set_source(44c8c31c2e090761).(channel_data->high_pass_filtercxx . . $ _AgsFxSynthAudioChannelData#high_pass_filter.,
1952 source->stream_currentcxx . . $ _AgsAudioSignal#stream_current.->datacxx . . $ _GList#data.);
1953
1954 ags_fluid_iir_filter_util_set_destinationcxx . . $ ags_fluid_iir_filter_util_set_destination(44c8c31c2e090761).(channel_data->high_pass_filtercxx . . $ _AgsFxSynthAudioChannelData#high_pass_filter.,
1955 source->stream_currentcxx . . $ _AgsAudioSignal#stream_current.->datacxx . . $ _GList#data.);
1956
1957 ags_fluid_iir_filter_util_set_sampleratecxx . . $ ags_fluid_iir_filter_util_set_samplerate(237aaab97850d785).(channel_data->high_pass_filtercxx . . $ _AgsFxSynthAudioChannelData#high_pass_filter.,
1958 samplerate);
1959 ags_fluid_iir_filter_util_set_buffer_lengthcxx . . $ ags_fluid_iir_filter_util_set_buffer_length(237aaab97850d785).(channel_data->high_pass_filtercxx . . $ _AgsFxSynthAudioChannelData#high_pass_filter.,
1960 buffer_size);
1961 ags_fluid_iir_filter_util_set_formatcxx . . $ ags_fluid_iir_filter_util_set_format(89bc4bbdd19dbfe6).(channel_data->high_pass_filtercxx . . $ _AgsFxSynthAudioChannelData#high_pass_filter.,
1962 format);
1963
1964 g_rec_mutex_lockcxx . . $ g_rec_mutex_lock(70e02e1a6dfc5752).(source_stream_mutex);
1965
1966 ags_fluid_iir_filter_util_processcxx . . $ ags_fluid_iir_filter_util_process(b5213aef9b8f8e0b).(channel_data->high_pass_filtercxx . . $ _AgsFxSynthAudioChannelData#high_pass_filter.);
1967
1968 g_rec_mutex_unlockcxx . . $ g_rec_mutex_unlock(70e02e1a6dfc5752).(source_stream_mutex);
1969
1970 /* reset */
1971 ags_fluid_iir_filter_util_set_sourcecxx . . $ ags_fluid_iir_filter_util_set_source(44c8c31c2e090761).(channel_data->high_pass_filtercxx . . $ _AgsFxSynthAudioChannelData#high_pass_filter.,
1972 NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/16/include/stddef.h:419:9`!);
1973
1974 ags_fluid_iir_filter_util_set_destinationcxx . . $ ags_fluid_iir_filter_util_set_destination(44c8c31c2e090761).(channel_data->high_pass_filtercxx . . $ _AgsFxSynthAudioChannelData#high_pass_filter.,
1975 NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/16/include/stddef.h:419:9`!);
1976 }
1977
1978 /* chorus */
1979 if(ags_chorus_util_get_depthcxx . . $ ags_chorus_util_get_depth(356634161bf0946b).(channel_data->chorus_utilcxx . . $ _AgsFxSynthAudioChannelData#chorus_util.) != 0.0 &&
1980 chorus_enabled){
1981 ags_chorus_util_set_sourcecxx . . $ ags_chorus_util_set_source(56ef08d2c44a1551).(channel_data->chorus_utilcxx . . $ _AgsFxSynthAudioChannelData#chorus_util.,
1982 source->stream_currentcxx . . $ _AgsAudioSignal#stream_current.->datacxx . . $ _GList#data.);
1983
1984 ags_chorus_util_set_sampleratecxx . . $ ags_chorus_util_set_samplerate(ef09bcb2f4e8f971).(channel_data->chorus_utilcxx . . $ _AgsFxSynthAudioChannelData#chorus_util.,
1985 samplerate);
1986 ags_chorus_util_set_buffer_lengthcxx . . $ ags_chorus_util_set_buffer_length(ef09bcb2f4e8f971).(channel_data->chorus_utilcxx . . $ _AgsFxSynthAudioChannelData#chorus_util.,
1987 buffer_size);
1988 ags_chorus_util_set_formatcxx . . $ ags_chorus_util_set_format(ef09bcb2f4e8f971).(channel_data->chorus_utilcxx . . $ _AgsFxSynthAudioChannelData#chorus_util.,
1989 format);
1990
1991 ags_chorus_util_set_offsetcxx . . $ ags_chorus_util_set_offset(2772de3b6eb10716).(channel_data->chorus_utilcxx . . $ _AgsFxSynthAudioChannelData#chorus_util.,
1992 floorcxx . . $ floor(447c67c6676f75c3).(((offset_counter - x0) * delay + delay_counter) * buffer_size));
1993
1994 ags_chorus_util_set_base_keycxx . . $ ags_chorus_util_set_base_key(834d58fec0746dcc).(channel_data->chorus_utilcxx . . $ _AgsFxSynthAudioChannelData#chorus_util.,
1995 (gdoublecxx . . $ gdouble#) midi_note - 48.0);
1996
1997 g_rec_mutex_lockcxx . . $ g_rec_mutex_lock(70e02e1a6dfc5752).(source_stream_mutex);
1998
1999 ags_chorus_util_computecxx . . $ ags_chorus_util_compute(a456b19676e00499).(channel_data->chorus_utilcxx . . $ _AgsFxSynthAudioChannelData#chorus_util.);
2000
2001 g_rec_mutex_unlockcxx . . $ g_rec_mutex_unlock(70e02e1a6dfc5752).(source_stream_mutex);
2002
2003 ags_audio_buffer_util_clear_buffercxx . . $ ags_audio_buffer_util_clear_buffer(1a98a0af2481b1c).(&(fx_synth_audio_signal->audio_buffer_utilcxx . . $ _AgsFxSynthAudioSignal#audio_buffer_util.),
2004 source->stream_currentcxx . . $ _AgsAudioSignal#stream_current.->datacxx . . $ _GList#data., 1,
2005 buffer_size, audio_buffer_util_format);
2006
2007 ags_audio_buffer_util_copy_buffer_to_buffercxx . . $ ags_audio_buffer_util_copy_buffer_to_buffer(56b3d0336e0cbab3).(&(fx_synth_audio_signal->audio_buffer_utilcxx . . $ _AgsFxSynthAudioSignal#audio_buffer_util.),
2008 source->stream_currentcxx . . $ _AgsAudioSignal#stream_current.->datacxx . . $ _GList#data., 1, 0,
2009 ags_chorus_util_get_destinationcxx . . $ ags_chorus_util_get_destination(e04bc6cafb398a6f).(channel_data->chorus_utilcxx . . $ _AgsFxSynthAudioChannelData#chorus_util.), 1, 0,
2010 buffer_size, copy_mode);
2011
2012 /* reset */
2013 ags_chorus_util_set_sourcecxx . . $ ags_chorus_util_set_source(56ef08d2c44a1551).(channel_data->chorus_utilcxx . . $ _AgsFxSynthAudioChannelData#chorus_util.,
2014 NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/16/include/stddef.h:419:9`!);
2015 }
2016 }
2017
2018 /* unref */
2019 if(audio != NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/16/include/stddef.h:419:9`!){
2020 g_object_unrefcxx . . $ g_object_unref(5d22bdacc48458e8).(audio);
2021 }
2022
2023 if(fx_synth_audio != NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/16/include/stddef.h:419:9`!){
2024 g_object_unrefcxx . . $ g_object_unref(5d22bdacc48458e8).(fx_synth_audio);
2025 }
2026
2027 if(fx_synth_audio_processor != NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/16/include/stddef.h:419:9`!){
2028 g_object_unrefcxx . . $ g_object_unref(5d22bdacc48458e8).(fx_synth_audio_processor);
2029 }
2030
2031 if(fx_synth_channel_processor != NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/16/include/stddef.h:419:9`!){
2032 g_object_unrefcxx . . $ g_object_unref(5d22bdacc48458e8).(fx_synth_channel_processor);
2033 }
2034
2035 if(fx_synth_recycling != NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/16/include/stddef.h:419:9`!){
2036 g_object_unrefcxx . . $ g_object_unref(5d22bdacc48458e8).(fx_synth_recycling);
2037 }
2038 }
2039
2040 void
2041 ags_fx_synth_audio_signal_notify_removecxx . . $ ags_fx_synth_audio_signal_notify_remove(cecb0c466d8108c7).(AgsFxNotationAudioSignalcxx . . $ AgsFxNotationAudioSignal# *fx_notation_audio_signal,
2042 AgsAudioSignalcxx . . $ AgsAudioSignal# *source,
2043 AgsNotecxx . . $ AgsNote# *note,
2044 guintcxx . . $ guint# x0, guintcxx . . $ guint# x1,
2045 guintcxx . . $ guint# y)
2046 {
2047 AgsAudiocxx . . $ AgsAudio# *audio;
2048 AgsFxSynthAudiocxx . . $ AgsFxSynthAudio# *fx_synth_audio;
2049 AgsFxSynthAudioProcessorcxx . . $ AgsFxSynthAudioProcessor# *fx_synth_audio_processor;
2050 AgsFxSynthChannelProcessorcxx . . $ AgsFxSynthChannelProcessor# *fx_synth_channel_processor;
2051 AgsFxSynthRecyclingcxx . . $ AgsFxSynthRecycling# *fx_synth_recycling;
2052
2053 guintcxx . . $ guint# sound_scope;
2054 guintcxx . . $ guint# audio_channel;
2055 guintcxx . . $ guint# audio_start_mapping;
2056 guintcxx . . $ guint# midi_start_mapping;
2057 gintcxx . . $ gint# midi_note;
2058
2059 GRecMutexcxx . . $ GRecMutex# *fx_synth_audio_mutex;
2060
2061 audio = NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/16/include/stddef.h:419:9`!;
2062
2063 fx_synth_audio = NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/16/include/stddef.h:419:9`!;
2064 fx_synth_audio_processor = NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/16/include/stddef.h:419:9`!;
2065
2066 fx_synth_channel_processor = NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/16/include/stddef.h:419:9`!;
2067
2068 fx_synth_recycling = NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/16/include/stddef.h:419:9`!;
2069
2070 sound_scope = ags_recall_get_sound_scopecxx . . $ ags_recall_get_sound_scope(20bf46f7161aca3b).((AgsRecallcxx . . $ AgsRecall# *) fx_notation_audio_signal);
2071
2072 audio_channel = 0;
2073
2074 audio_start_mapping = 0;
2075 midi_start_mapping = 0;
2076
2077 g_object_getcxx . . $ g_object_get(1ac911bdc4e9a14d).(fx_notation_audio_signal,
2078 "parent", &fx_synth_recycling,
2079 NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/16/include/stddef.h:419:9`!);
2080
2081 g_object_getcxx . . $ g_object_get(1ac911bdc4e9a14d).(fx_synth_recycling,
2082 "parent", &fx_synth_channel_processor,
2083 NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/16/include/stddef.h:419:9`!);
2084
2085 g_object_getcxx . . $ g_object_get(1ac911bdc4e9a14d).(fx_synth_channel_processor,
2086 "recall-audio", &fx_synth_audio,
2087 "recall-audio-run", &fx_synth_audio_processor,
2088 NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/16/include/stddef.h:419:9`!);
2089
2090 g_object_getcxx . . $ g_object_get(1ac911bdc4e9a14d).(fx_synth_audio,
2091 "audio", &audio,
2092 NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/16/include/stddef.h:419:9`!);
2093
2094 g_object_getcxx . . $ g_object_get(1ac911bdc4e9a14d).(fx_synth_audio_processor,
2095 "audio-channel", &audio_channel,
2096 NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/16/include/stddef.h:419:9`!);
2097
2098 g_object_getcxx . . $ g_object_get(1ac911bdc4e9a14d).(audio,
2099 "audio-start-mapping", &audio_start_mapping,
2100 "midi-start-mapping", &midi_start_mapping,
2101 NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/16/include/stddef.h:419:9`!);
2102
2103 fx_synth_audio_mutex = AGS_RECALL_GET_OBJ_MUTEXcxx . . $ `ags/audio/ags_recall.h:50:9`!(fx_synth_audio);
2104
2105 midi_note = (y - audio_start_mapping + midi_start_mapping);
2106
2107 if(midi_note >= 0 &&
2108 midi_note < 128){
2109 AgsFxSynthAudioScopeDatacxx . . $ AgsFxSynthAudioScopeData# *scope_data;
2110 AgsFxSynthAudioChannelDatacxx . . $ AgsFxSynthAudioChannelData# *channel_data;
2111 AgsFxSynthAudioInputDatacxx . . $ AgsFxSynthAudioInputData# *input_data;
2112
2113 g_rec_mutex_lockcxx . . $ g_rec_mutex_lock(70e02e1a6dfc5752).(fx_synth_audio_mutex);
2114
2115 scope_data = fx_synth_audio->scope_datacxx . . $ _AgsFxSynthAudio#scope_data.[sound_scope];
2116
2117 channel_data = scope_data->channel_datacxx . . $ _AgsFxSynthAudioScopeData#channel_data.[audio_channel];
2118
2119 input_data = channel_data->input_datacxx . . $ _AgsFxSynthAudioChannelData#input_data.[midi_note];
2120
2121 input_data->key_oncxx . . $ _AgsFxSynthAudioInputData#key_on. -= 1;
2122
2123 g_rec_mutex_unlockcxx . . $ g_rec_mutex_unlock(70e02e1a6dfc5752).(fx_synth_audio_mutex);
2124 }
2125
2126 if(audio != NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/16/include/stddef.h:419:9`!){
2127 g_object_unrefcxx . . $ g_object_unref(5d22bdacc48458e8).(audio);
2128 }
2129
2130 if(fx_synth_audio != NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/16/include/stddef.h:419:9`!){
2131 g_object_unrefcxx . . $ g_object_unref(5d22bdacc48458e8).(fx_synth_audio);
2132 }
2133
2134 if(fx_synth_audio_processor != NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/16/include/stddef.h:419:9`!){
2135 g_object_unrefcxx . . $ g_object_unref(5d22bdacc48458e8).(fx_synth_audio_processor);
2136 }
2137
2138 if(fx_synth_channel_processor != NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/16/include/stddef.h:419:9`!){
2139 g_object_unrefcxx . . $ g_object_unref(5d22bdacc48458e8).(fx_synth_channel_processor);
2140 }
2141
2142 if(fx_synth_recycling != NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/16/include/stddef.h:419:9`!){
2143 g_object_unrefcxx . . $ g_object_unref(5d22bdacc48458e8).(fx_synth_recycling);
2144 }
2145 }
2146
2147 /**
2148 * ags_fx_synth_audio_signal_new:
2149 * @audio_signal: the #AgsAudioSignal
2150 *
2151 * Create a new instance of #AgsFxSynthAudioSignal
2152 *
2153 * Returns: the new #AgsFxSynthAudioSignal
2154 *
2155 * Since: 3.14.0
2156 */
2157 AgsFxSynthAudioSignalcxx . . $ AgsFxSynthAudioSignal#*
2158 ags_fx_synth_audio_signal_newcxx . . $ ags_fx_synth_audio_signal_new(31eb981ad634afcc).(AgsAudioSignalcxx . . $ AgsAudioSignal# *audio_signal)
2159 {
2160 AgsFxSynthAudioSignalcxx . . $ AgsFxSynthAudioSignal# *fx_synth_audio_signal;
2161
2162 fx_synth_audio_signal = (AgsFxSynthAudioSignalcxx . . $ AgsFxSynthAudioSignal# *) g_object_newcxx . . $ g_object_new(8485fe61b4be4c78).(AGS_TYPE_FX_SYNTH_AUDIO_SIGNALcxx . . $ `ags/audio/fx/ags_fx_synth_audio_signal.h:35:9`!,
2163 "source", audio_signal,
2164 NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/16/include/stddef.h:419:9`!);
2165
2166 return(fx_synth_audio_signal);
2167 }