graphName "builtin_speaker_out" ; macros ; Uncomment the fs definition below if you want to process the graph offline ; [def fs 48000] [def numChansIn 2] [def numChansOut 2] [def numRefChans 2] [def DEVICE_BRING_UP 0] ; set this to 0 or remove any references to enable LSM post bringup ; boxes in in out out out ref box VirtBass (aufx vben) 1 1 box Tone1 (aufx tmst) 1 1 box Comp (aufx mstk) 1 1 box Tone2 (aufx tmst) 1 1 box toMS (aufx pchr) 1 1 box msEQ (aufx tmst) 1 1 box fromMS (aufx pchr) 1 1 box VolumeTaper (aufx volt) 1 1 box split split 1 2 box leftBalance dbgn 1 1 box rightBalance dbgn 1 1 box join join 2 1 box ControlFreak (aufx cfrk) 1 1 box NFP nfnp 1 1 ; Non Finite Protection box Ramp dbgn 1 1; For ramping at start/stop to avoid pop [if [== [DEVICE_BRING_UP] 1] { box bringUpGain dbgn 1 1 }{ box LSM (aufx lsm2) 1 1 }] ; wires wire in NFP ([fs] [numChansIn]) wire NFP VirtBass ([fs] [numChansIn]) wire VirtBass Tone1 ([fs] [numChansIn]) wire Tone1 VolumeTaper ([fs] [numChansIn]) wire VolumeTaper split ([fs] [numChansIn]) wire (split 0) leftBalance ([fs] 1) wire leftBalance (join 0) ([fs] 1) wire (split 1) rightBalance ([fs] 1) wire rightBalance (join 1) ([fs] 1) wire join Comp ([fs] [numChansIn]) wire Comp Tone2 ([fs] [numChansIn]) wire Tone2 toMS ([fs] [numChansIn]) wire toMS msEQ ([fs] [numChansIn]) wire msEQ fromMS ([fs] [numChansIn]) wire fromMS ControlFreak ([fs] 2) [if [== [DEVICE_BRING_UP] 1] { wire ControlFreak bringUpGain ([fs] [numChansOut]) wire bringUpGain Ramp ([fs] [numChansOut]) }{ wire ControlFreak LSM ([fs] [numChansOut]) wire LSM Ramp ([fs] [numChansOut]) }] wire Ramp ref ([fs] [numRefChans]) wire Ramp out ([fs] [numChansOut]) ; graph-level parameters param mvsc 1 wireGraphParam mvsc (VolumeTaper 4 0 0) wireGraphParam mvsc (Tone1 3 0 0) wireGraphParam mvsc (Tone2 3 0 0) param mvol 0 wireParam (VolumeTaper 100 0 0) (Comp 79 0 0) param mmut 0 wireGraphParam mmut (VolumeTaper 0 0 0) param rpss 0 wireGraphParam rpss (Ramp 1) param lbal 0 wireGraphParam lbal (leftBalance 0) param rbal 0 wireGraphParam rbal (rightBalance 0) [if [== [DEVICE_BRING_UP] 1] { param brgn -20.0 in ; default value of -20dB wireGraphParam brgn (bringUpGain 0 0 0) }{ ; Graph parameter 4cc definitions [def kGraphParameter_SpkModelPwr mdpw] [def kAULoudspeakerManagerV2_SpkModelPwr 1073741824] [def kAULoudspeakerManagerV2_VelocityControl 1048582] param [kGraphParameter_SpkModelPwr] 0 out wireGraphParam [kGraphParameter_SpkModelPwr] (LSM [kAULoudspeakerManagerV2_SpkModelPwr] global 0) ; Do we need this input parameter? param velo 1 in ;wireGraphParam velo (LSM [kAULoudspeakerManagerV2_VelocityControl] global 0) false property cpms in wireGraphProperty cpms (LSM 64008 0 0) ; CPMSPowerBudget }]