| 466 | } |
| 467 | |
| 468 | void NeuralPiAudioProcessor::installTones() |
| 469 | //==================================================================== |
| 470 | // Description: Checks that the default tones |
| 471 | // are installed to the NeuralPi directory, and if not, |
| 472 | // copy them from the binary data in the plugin to that directory. |
| 473 | // |
| 474 | //==================================================================== |
| 475 | { |
| 476 | // Default tones |
| 477 | File ts9_tone = userAppDataDirectory_tones.getFullPathName() + "/TS9.json"; |
| 478 | File bjdirty_tone = userAppDataDirectory_tones.getFullPathName() + "/BluesJR.json"; |
| 479 | File ht40od_tone = userAppDataDirectory_tones.getFullPathName() + "/HT40_Overdrive.json"; |
| 480 | |
| 481 | if (ts9_tone.existsAsFile() == false) { |
| 482 | std::string string_command = ts9_tone.getFullPathName().toStdString(); |
| 483 | const char* char_ts9_tone = &string_command[0]; |
| 484 | |
| 485 | std::ofstream myfile; |
| 486 | myfile.open(char_ts9_tone); |
| 487 | myfile << BinaryData::TS9_json; |
| 488 | |
| 489 | myfile.close(); |
| 490 | } |
| 491 | |
| 492 | if (bjdirty_tone.existsAsFile() == false) { |
| 493 | std::string string_command = bjdirty_tone.getFullPathName().toStdString(); |
| 494 | const char* char_bjdirty = &string_command[0]; |
| 495 | |
| 496 | std::ofstream myfile; |
| 497 | myfile.open(char_bjdirty); |
| 498 | myfile << BinaryData::BluesJr_json; |
| 499 | |
| 500 | myfile.close(); |
| 501 | } |
| 502 | |
| 503 | if (ht40od_tone.existsAsFile() == false) { |
| 504 | std::string string_command = ht40od_tone.getFullPathName().toStdString(); |
| 505 | const char* char_ht40od = &string_command[0]; |
| 506 | |
| 507 | std::ofstream myfile; |
| 508 | myfile.open(char_ht40od); |
| 509 | myfile << BinaryData::HT40_Overdrive_json; |
| 510 | |
| 511 | myfile.close(); |
| 512 | } |
| 513 | |
| 514 | } |
| 515 | |
| 516 | void NeuralPiAudioProcessor::set_ampEQ(float bass_slider, float mid_slider, float treble_slider, float presence_slider) |
| 517 | { |
nothing calls this directly
no outgoing calls
no test coverage detected