GoXLR-on-Linux / goxlr-utility

An unofficial GoXLR App replacement for Linux, Windows and MacOS
MIT License
654 stars 36 forks source link

Ability to Load / Save Microphone Profiles #11

Closed FrostyCoolSlug closed 2 years ago

FrostyCoolSlug commented 2 years ago

Tested against the default profile added (may not actually be the GoXLR default, just my personal configuration), was able to read and write all values.

The only thing untested currently is whether the generated XML can be loaded on Windows.

Dinnerbone commented 2 years ago

It looks like we will have to do some work to support the mini, its default mic profile looks much different:

<?xml version="1.0" encoding="UTF-8"?>

<MicProfileTree>
  <dspTreeMicProfile MIC_MINI_EQ_90HZ_GAIN="1.00000000000000000000" MIC_MINI_EQ_250HZ_GAIN="2.00000000000000000000"
                     MIC_MINI_EQ_500HZ_GAIN="-2.00000000000000000000" MIC_MINI_EQ_1KHZ_GAIN="-1.00000000000000000000"
                     MIC_MINI_EQ_3KHZ_GAIN="4.00000000000000000000" MIC_MINI_EQ_8KHZ_GAIN="0.00000000000000000000"
                     MIC_MINI_EQ_90HZ_F="90" MIC_MINI_EQ_250HZ_F="160" MIC_MINI_EQ_500HZ_F="480"
                     MIC_MINI_EQ_1KHZ_F="1500" MIC_MINI_EQ_3KHZ_F="4500" MIC_MINI_EQ_8KHZ_F="7800"
                     MIC_COMP_THRESHOLD="-25.00000000000000000000" MIC_COMP_RATIO="9"
                     MIC_COMP_ATTACK="9.00000000000000000000" MIC_COMP_RELEASE="9.00000000000000000000"
                     MIC_COMP_MAKEUPGAIN="5.00000000000000000000" MIC_GATE_MACRO_AMOUNT="0"
                     MIC_GATE_THRESOLD="-50.00000000000000000000" MIC_GATE_MODE="2"
                     MIC_GATE_ATTACK="0" MIC_GATE_RELEASE="20.00000000000000000000"
                     MIC_GATE_ENABLE="1" MIC_GATE_ATTEN="100"/>
  <setupTreeMicProfile MIC_TYPE="0" DYNAMIC_MIC_GAIN="3932160" CONDENSER_MIC_GAIN="3604480"
                       TRS_MIC_GAIN="2359296"/>
  <micProfileUIMicProfile eqAdvanced="1" compAdvanced="1" gateAdvanced="1" eqFineTuneEnabled="0"/>
</MicProfileTree>