Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

同时弹奏多个音有时会有问题 #6

Open
bob-lytton opened this issue Aug 25, 2019 · 3 comments
Open

同时弹奏多个音有时会有问题 #6

bob-lytton opened this issue Aug 25, 2019 · 3 comments

Comments

@bob-lytton
Copy link

我试着用按键弹了下1 3 5,但是大部分时候三个音中只能稳定出现两个。不过有时候第三个音也会有一瞬间出现。不知道是代码实现的问题还是网络连接的问题

@Wscats
Copy link
Owner

Wscats commented Aug 29, 2019

@bob-lytton 测试了下,没问题的,控制力下节流的时间,应该会好多了

@ansonhorse
Copy link

在Chrome 88.0.4324.192测试,没发现这个问题。

不过,倒是有另外一个问题,就是快速连按同一个按键,比如连续按1,间隔大概100ms,第二次是没有声音的。
这个问题以前写网页提示音也发现过,我的理解是,同一个音频,在连续播放时,如果第一次播放还没有结束,就进行第二次播放,第二次播放是无效的。

@ansonhorse
Copy link

看到有用这个库 https://github.com/goldfire/howler.js 做的在线钢琴https://www.musicca.com/piano,
不过水平有限,暂时没太明白它是怎么处理的。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants