<commit_before>


//define our hearing aid prescription...allow toggling between two presents
#include "GHA_Constants.h"  //this sets dsl and gha settings, which will be the defaults
#include "GHA_Alternates.h"  //this sets alternate dsl and gha, which can be switched in via commands

//define the filterbank size
#define N_FIR 96

void setupFromDSLandGHA(const BTNRH_WDRC::CHA_DSL &this_dsl, const BTNRH_WDRC::CHA_WDRC &this_gha,
     const int n_chan, const int n_fir, const AudioSettings_F32 &settings)
{

  //set the per-channel filter coefficients
  filterbank.designFilters(n_chan, n_fir, settings.sample_rate_Hz, settings.audio_block_samples, (float *)this_dsl.cross_freq);

  //setup all of the per-channel compressors
  #if USE_NEW_COMPBANK
    compbank.configureFromDSLandGHA(settings.sample_rate_Hz,  this_dsl, this_gha);
  #else
    configurePerBandWDRCs(n_chan, settings.sample_rate_Hz, this_dsl, this_gha, expCompLim);
  #endif

  //setup the broad band compressor (limiter)
  //configureBroadbandWDRCs(settings.sample_rate_Hz, this_gha, compBroadband);
  compBroadband.configureFromGHA(settings.sample_rate_Hz, this_gha);

  //overwrite the one-point calibration based on the dsl data structure
  myState.overall_cal_dBSPL_at0dBFS = this_dsl.maxdB;

}

void setupAudioProcessing(void) {
  //make all of the audio connections
  makeAudioConnections();  //see AudioConnections.h

  //setup processing based on the DSL and GHA prescriptions<commit_msg>WDRC_8BandFIR_Full: oops.  removed debugging code.<commit_after>


//define our hearing aid prescription...allow toggling between two presents
#include "GHA_Constants.h"  //this sets dsl and gha settings, which will be the defaults
#include "GHA_Alternates.h"  //this sets alternate dsl and gha, which can be switched in via commands

//define the filterbank size
#define N_FIR 96

void setupFromDSLandGHA(const BTNRH_WDRC::CHA_DSL &this_dsl, const BTNRH_WDRC::CHA_WDRC &this_gha,
     const int n_chan, const int n_fir, const AudioSettings_F32 &settings)
{
     
  //set the per-channel filter coefficients
  filterbank.designFilters(n_chan, n_fir, settings.sample_rate_Hz, settings.audio_block_samples, (float *)this_dsl.cross_freq);

  //setup all of the per-channel compressors
  compbank.configureFromDSLandGHA(settings.sample_rate_Hz,  this_dsl, this_gha);

  //setup the broad band compressor (limiter)
  //configureBroadbandWDRCs(settings.sample_rate_Hz, this_gha, compBroadband);
  compBroadband.configureFromGHA(settings.sample_rate_Hz, this_gha);

  //overwrite the one-point calibration based on the dsl data structure
  myState.overall_cal_dBSPL_at0dBFS = this_dsl.maxdB;
     
}

void setupAudioProcessing(void) {
  //make all of the audio connections
  makeAudioConnections();  //see AudioConnections.h

  //setup processing based on the DSL and GHA prescriptions
{'fraction_non_alphanumeric': 0.07879001055223356, 'fraction_numerical': 0.0038691523039043265, 'mean_word_length': 5.051063829787234, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '7249242', 'n_tokens_mistral': 972, 'n_tokens_neox': 931, 'n_words': 260}