Jump to content

Fast Scan Matrix 3


robinfawell
 Share

Recommended Posts

I have attached a table showing the analysis of successive scans to determine the code for the electronic piano I am building. This relates to one piano note. The two switches are mechanically displaced to enable the velocity to be measured. This is not new information and is based on other peoples work.

Once the 1st switch is made and the Xor becomes 1 the counter is set to say 127. Until the 2nd switch is closed and the Xor changes to 0 the count is decremented on each scan. At this point the Midi Note On is sent with the velocity parameter. The counter will also be stopped.

The Midi Note Off will be generated when two successive scans produce zeros. Note that a flag is set to prevent spurious generation of Note Off signals.

There may be flaws in the logic of this approach or it may be simplified. In any case please let me know.

Regards Robin1st Sw 2nd Switch.doc

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

×
×
  • Create New...