Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/python/324.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Python 使用一个小的声音文件来创作一首歌_Python_Audio - Fatal编程技术网

Python 使用一个小的声音文件来创作一首歌

Python 使用一个小的声音文件来创作一首歌,python,audio,Python,Audio,假设我有一首歌,我想用一个较小的声音文件(我们称之为“x”)的重复版本来重现同一首歌。现在,要复制同一首歌曲,“x”需要在原始歌曲的不同样本中具有相同的频率 为了实现这一点,我以原始速率确定主歌的频率,然后我必须改变“x”的频率。我该怎么做?我走的方向对吗

假设我有一首歌,我想用一个较小的声音文件(我们称之为“x”)的重复版本来重现同一首歌。现在,要复制同一首歌曲,“x”需要在原始歌曲的不同样本中具有相同的频率

为了实现这一点,我以原始速率确定主歌的频率,然后我必须改变“x”的频率。我该怎么做?我走的方向对吗