在pygame中,释放按钮时vaw文件切断

问题描述

我正在制作一个尝试模拟钢琴的程序,因此当按下一个键时,我希望不要播放整个长度。但是每当我释放 wav 文件的键时。感谢任何可以提供帮助的人。

 setElemPosition() {
  const rect = this.elementRef.nativeElement.getBoundingClientRect();
  if (this.domele) {
     this.domele.style.position = 'absolute';
     this.domele.style.top = rect.top + window.pageYOffset + this.elementRef.nativeElement.scrollHeight + 'px';
     this.domele.style.left = rect.left + 'px';
     this.domele.style.width = Math.floor(rect.width) + 'px';
     this.domele.style.zIndex = '9999999999';
  }

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)