Untitled
unknown
plain_text
10 months ago
1.6 kB
17
Indexable
#include <iostream>
#include <fstream>
#include <iomanip>
#include <string>
int main() {
// Create output file
std::ofstream outFile("matrix_8080_createknob.txt");
if (!outFile.is_open()) {
std::cerr << "Error: Could not create output file!" << std::endl;
return 1;
}
std::cout << "Generating 80x80 matrix createKnob calls..." << std::endl;
// Generate all 6,400 createKnob calls
for (int col = 1; col <= 80; col++) {
outFile << "// Column " << std::setfill('0') << std::setw(2) << col << std::endl;
for (int row = 1; row <= 80; row++) {
// Format: createKnob(mixRR_CCParamPosition, module, Matrix8080::MIXRRCC_PARAM);
outFile << "createKnob(mix"
<< std::setfill('0') << std::setw(2) << row << "_"
<< std::setfill('0') << std::setw(2) << col
<< "ParamPosition, module, Matrix8080::MIX"
<< std::setfill('0') << std::setw(2) << row
<< std::setfill('0') << std::setw(2) << col
<< "_PARAM);" << std::endl;
}
outFile << std::endl; // Add blank line between columns
}
outFile.close();
std::cout << "Successfully generated matrix_8080_createknob.txt with 6,400 createKnob calls!" << std::endl;
std::cout << "File saved in the same directory as this program." << std::endl;
// Keep console open
std::cout << "Press Enter to exit...";
std::cin.get();
return 0;
}Editor is loading...
Leave a Comment