| 1055 | } |
| 1056 | |
| 1057 | void Utilities::endWriteWavetablesToFile() { |
| 1058 | std::ofstream output_file; |
| 1059 | output_file.open("/home/frot/odin2/Source/audio/Oscillators/" |
| 1060 | "Wavetables/Tables/WavetableData.cpp", |
| 1061 | std::ofstream::out | std::ofstream::app); |
| 1062 | |
| 1063 | output_file << "};\n\nconst float " |
| 1064 | "(*getWavetableData())[NUMBER_OF_WAVETABLES][SUBTABLES_PER_" |
| 1065 | "WAVETABLE][" |
| 1066 | "WAVETABLE_LENGTH]{\n return &wavetable_data;\n}\nconst " |
| 1067 | "float * " |
| 1068 | "getOneSubTable(int p_wavetable, int p_subtable){\n return " |
| 1069 | "wavetable_data[p_wavetable][p_subtable];\n}"; |
| 1070 | output_file.close(); |
| 1071 | } |
| 1072 | |
| 1073 | void Utilities::writeLFOtablesToFiles() { |
| 1074 |
nothing calls this directly
no outgoing calls
no test coverage detected