vivian-xu / music Goto Github PK
View Code? Open in Web Editor NEW在线弹钢琴小游戏
Home Page: http://music.zhangxiaoxu.com
在线弹钢琴小游戏
Home Page: http://music.zhangxiaoxu.com
需要处理下延迟问题
一般电脑默认都是比较大的声音,直接播放起来好吓人。
如果能控制下默认的音量就好了,
加入音频播放以后,如果长按,能够连续播放声音么?怎么播放,会不会奇怪。
键盘操作,是否也需要 keydown 与 keyup 分别监听
按键完全弹起之前, 用户再次点击, 如何响应.
用户点击后, 延迟 300 ms 弹起按键. 期间可能发生点击行为.
播放扫过的音乐。
对应的事件处理下。
关键参数:
两根指头,分别是 A 和 B ,A 在钢琴键上触发 touchstart 事件 ,并且按着不放 , 这时 B 在其他地方触发touchstart 事件 ,并且按着不放 , 然后 A 先松指头 ,A 不触发 touchend 事件 。
并且 , 如果 B 指头触发的其他地方是另一个钢琴键,并以某种速度触发, 则 B 也不触发 touchend 事件。
移动端加载音频很慢,还不缓存,导致音频文件总是播放延迟。
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.