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