fbpx
Skip to main content

MIDI Forum

Piano keyboard scan...
 
Notifications
Clear all

Piano keyboard scan rate

7 Posts
3 Users
0 Reactions
5,961 Views
Christoph
Posts: 38
Trusted Member
Topic starter
 

I'm about to midify a Hammond bass pedal (25 keys). I'm wondering what usual scan rates for musical instrument keyboards are?
It is the intention to always find the latest pressed key and possibly all other pressed keys. The keys are arranged in a matrix 4x8, like in the attached scheme.

Also I don't know whether this is the right forum to discuss such issues.

 
Posted : 08/11/2022 1:55 am
Eddie Lotter
Posts: 295
Reputable Member
 

Yes, this is the correct place to ask. I hope someone knowledgeable about hardware will respond.

 
Posted : 08/11/2022 6:30 am
Clemens Ladisch
Posts: 324
 

Both classic MIDI and USB MIDI have a latency of about one millisecond, so it does not make sense to have a scan interval much shorter than this.

You want to avoid noticeable jitter. Bass pedals are not played very quickly, so you might be able to get away with a longer interval.

 
Posted : 08/11/2022 10:39 pm
Christoph
Posts: 38
Trusted Member
Topic starter
 

[quotePost id=16524]Both classic MIDI and USB MIDI have a latency of about one millisecond, so it does not make sense to have a scan interval much shorter than this.

You want to avoid noticeable jitter. Bass pedals are not played very quickly, so you might be able to get away with a longer interval.[/quotePost]

But isn't the overall latency important as well? The duration from the key press to the detection shouldn't exceed a millisecond or so either.

 
Posted : 10/11/2022 1:20 am
Clemens Ladisch
Posts: 324
 

Yes. But reducing the overall latency from 1.4 ms to 1.2 ms might not be worth the effort.

 
Posted : 10/11/2022 5:31 am
Christoph
Posts: 38
Trusted Member
Topic starter
 

Thanks for the ideas. Actually I'm seeking for a place for discussing the scanning algorithm (software wise) a bit more in depth.
Do you think I should proceed here? Scanning a musical keyboard might be different from scanning a calculator or computer keyboard.

Especially when considering situations where you play legato and the last note is triggered while the second but last still is pressed.

 
Posted : 14/11/2022 12:44 am
Clemens Ladisch
Posts: 324
 

Asking here is OK.

There's nothing special about legato; only the device that actually generates sounds has to decide whether two notes are near enough to be legato.

 
Posted : 14/11/2022 1:36 pm
Share: