如何产生吉他音符 [英] How to generate a guitar note

查看:252
本文介绍了如何产生吉他音符的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

回到一个新生的软件编程课,我们不得不编写一个程序来模拟吉他的声音。

Back in a freshman software programming class we had to write a program that would simulate the sound of a guitar pluck.

我可以整天做纯正的罪孽,但我想记住如何做一个声音,像一把吉他。我记得它使用random()和一个falloff常数添加到sin波,但我不记得的细节。

I can make pure sin waves all day, but I am trying to remember how to do a sound like a guitar pluck. I remember it had something to with using random() and a falloff constant added to the sin wave, but I can not remember the details.

推荐答案

我认为我找到了你要找的东西:写一个程序模拟使用Karplus-Strong算法来弹拨吉他弦。

I think I found just what you are looking for: Write a program to simulate plucking a guitar string using the Karplus-Strong algorithm.

这篇关于如何产生吉他音符的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆