MCPcopy Create free account
hub / github.com/TheWaveWarden/odin2 / endWriteWavetablesToFile

Method endWriteWavetablesToFile

Source/Utilities.cpp:1057–1071  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1055}
1056
1057void 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
1073void Utilities::writeLFOtablesToFiles() {
1074

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected