如何同时创建多个事件? [英] how to create multiple events at the same time ?

查看:116
本文介绍了如何同时创建多个事件?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的项目读取表示音符的数据,并且并行读取音符可以是和弦(同时两个音符).

我需要显示在钢琴键盘图形用户界面上被按下的 button 键,看起来像钢琴键盘同时按下笔记.

因此,一次如何触发多个事件以使按键看起来像被按下?

请帮帮我吗?谢谢您的帮助!

My project reads data representing music notes, and the music notes are read parallel can be chords (two notes at same time).

I need to show button keys being pressed on a piano keyboard graphic user interface that looks like a piano keyboard press at same time , that correspond to the notes.

So, at one time, how can I trigger multiple events to make the keys look pressed ?

Please help me? Thanks for your help !

推荐答案

您是说:您有一个模拟钢琴键盘的用户界面,并且您想要读取一些文件,然后在UI中以图形方式显示,持有"的注释将镜像"文件中的和弦"?

如果是这样,您就不想使用Buttons,而是要使用位图,恕我直言.

您需要使这个问题更加具体.您是在这里使用触摸屏设备,还是在这里实际连接了中键盘?
Are you saying: you have a user-interface that simulates a Piano keyboard, and you want to read some file and then show, graphically, in the UI, the notes being "held" which would ''mirror'' the ''chord'' read in the file ?

If that''s the case, you don''t want to be using Buttons, but bit-maps, imho.

You need to make this question much more specific. Are you using a touch-screen device here, or do you have a midi-keyboard actually connected here ?


这篇关于如何同时创建多个事件?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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