[英]Tone.js help on structure
I have a music app which is used to compose music, I can have up to 3 instruments playing and I have 2 effects available, pitch change and reverb.我有一个用于创作音乐的音乐应用程序,我最多可以演奏 3 种乐器,并且有 2 种效果可用,音高变化和混响。
I'm currently using the standard web audio API but I'm having issues sometimes when playing too many notes at once, audio gets messed up.我目前正在使用标准的 web 音频 API 但我有时会在一次播放太多音符时遇到问题,音频会变得混乱。 Plus I liked some features that tone.js offers.
另外,我喜欢tone.js 提供的一些功能。
I wanted to try and use tone.js to address those issues (if possible) and have all features I previously had.我想尝试使用tone.js 来解决这些问题(如果可能的话)并拥有我以前拥有的所有功能。 The issue is that I quickly went through the docs but I don't really understand how I should structure things.
问题是我快速浏览了文档,但我并不真正了解我应该如何构建事物。 I have 21 audio files, one for each note, for all 3 instruments, my questions are:
我有 21 个音频文件,每个音符一个,对于所有 3 种乐器,我的问题是:
Any suggestions are welcome too.也欢迎任何建议。 The website is: here
网站是:这里
I'm not familiar with tone.js, but when trying to build high-quality audio with getDisplayMedia, in the past I've passed in MediaStreamConstraints that remove some of the default processing on the input track:我不熟悉tone.js,但是在尝试使用getDisplayMedia构建高质量音频时,过去我传入了MediaStreamConstraints,它删除了输入轨道上的一些默认处理:
stream = await navigator.mediaDevices.getDisplayMedia({ video: true, audio: { channels: 2, autoGainControl: false, echoCancellation: false, noiseSuppression: false }}); stream = await navigator.mediaDevices.getDisplayMedia({ video: true, audio: { channels: 2, autoGainControl: false, echoCancellation: false, noiseSuppression: false }});
I'm still learning WebRTC, and, again, have not used tone.js, so I'm not sure if this is helpful at all, but I thought I'd share just in case.我还在学习 WebRTC,而且,再次,没有使用过tone.js,所以我不确定这是否有帮助,但我想我会分享以防万一。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.