我希望这是发布此内容的正确位置,有人可以提供帮助.
我是一名音乐技术专业的学生,我最近学习了C++,因为它对我的职业生涯有很大帮助,因为它可以用于视频游戏行业.
无论如何进入主题.我想要创建的是一个程序(在C++中),它允许用户加载一个16位线性PCM WAVE文件.然后我想操纵该波形文件中的音频样本数据.我想要删除每个第n个样本,或者在某个参数内随机化它们(±10%).然后将其写为新的WAVE文件.
我对WAVE文件和RIFF标题的结构比较熟悉.我现在也使用Xcode作为我的IDE(因为我的macbook pro是我的工作计算机),但如果需要,我可以使用代码块在我的PC上编码.
所以简单来说它应该显示类似的东西?我知道这里有错误,所以你知道我在追求什么:
#include <iostream>
using namespace std;
class main() //function start
{
string fileinput; //variable
string outlocation; //variable
cout << "please type file path directory: \n \n";
cin >> fileinput; //navigate to file by typing
cout << "Where would you like to save new file? \n \n";
cin >> outlocation; //select output by typing
// Then all the maths and manipulation is done
cout << "Your file has been created at ";
cout << outlocation; …Run Code Online (Sandbox Code Playgroud)