Foot pedal Airturn Duo 500 : Not able to configure long press

41 views
Skip to first unread message

Jean-Michel Beaupré

unread,
Jun 2, 2025, 12:03:34 PMJun 2
to OpenSongApp
Hi,

I have an Airturn Duo BT-500 Foot pedal and try to configure the long press/hold on left or right buton but it didn't detect it. 
The short press/click action works fine. I use it for scolling UP/Down on left/right pedal. I would like to have Start scroll on a long press.
I try to combine with multiple options (ie: airturn mode on/off) but nothing of them works.

Does anybody having an airturn duo BT-500 where successfull with long press action ?

Many thanks in advance for your advices,

Jean-Michel
(v.6.4.6-418)

Gareth Evans

unread,
Jun 2, 2025, 1:46:20 PMJun 2
to Jean-Michel Beaupré, OpenSongApp

Hi Jean-Michel,

I don't have an Airturn pedal to test this, but have you connected it to the Airturn manager app on Android (https://play.google.com/store/apps/details?id=com.airturn.airturnmanager).  From that, you can make sure that auto-repeat is switched on.  See attached picture from the play store: 




This will be crucial for OpenSongApp to allow it to simulate long press actions.  Airturn mode may or may not work - different Airturn pedals work slightly differently (although none of these pedals support long press directly the app tries to listen for repeated signals).

Can you let me know how you get on with switching on the auto repeat mode on the Airturn.


--
When responding to a post on the forum using your email, please make sure to click on the 'Reply all' button so that your response is also sent to the forum for other people to see the full conversation.
---
You received this message because you are subscribed to the Google Groups "OpenSongApp" group.
To unsubscribe from this group and stop receiving emails from it, send an email to opensongapp...@googlegroups.com.
To view this discussion, visit https://groups.google.com/d/msgid/opensongapp/60ff53e3-1071-4aa1-8657-867479c85347n%40googlegroups.com.

Gareth Evans

unread,
Jun 2, 2025, 2:28:19 PMJun 2
to Jean-Michel Beaupré, OpenSongApp
If this doesn't fix it for you, can you try out the following webpage on your Android device and with the Airturn pedal connected:
https://w3c.github.io/uievents/tools/key-event-viewer.html

Click in the text box and then long press one of your pedals for about a second.  Take a screenshot of what you see.  It should look a little like my screenshot here:
image.png

You can see that the first press (#1 at the bottom) is a keydown event, followed by a repeated keydown code.  After 1 second, the keyup code is sent when I released the button.  This was on a computer using a keyboard command, but it should be similar.  If you do this without switching on the auto-repeat function on the AirTurn manager, you will probably just see one keydown then one keyup message.

Jean-Michel Beaupré

unread,
Jun 2, 2025, 4:25:44 PMJun 2
to OpenSongApp
Hi,
The app "hear" now the repeated "key_down" but unfortunately doesn't detect the long press event :
image.png
With airturn mode On or off.

What I have done :
 I changed the switch settings of de switches with the airturn manager and now I have the expect result. I had to change from pulse to "momentary" configuration type....not so clear.
1000025916.png
1000025917.png
Many thanks for your help 
jm

Gareth Evans

unread,
Jun 3, 2025, 2:17:24 AMJun 3
to Jean-Michel Beaupré, OpenSongApp

It looks like you've had some progress.  The air turn won't show a long press as it doesn't send that (it is different to keyup and keydown).
With Airturn mode, the app listens for the first onkeydown (pressing the button) it then waits for the keyup ignoring further keydown commands.  If the keyup happens before the the time set in the slider below the Airturn button (default 1sec), if registers as a normal short press.  If it doesn't see the keyup within this time, it registers a simulated long press and triggers that action.  It then also stops listening for a second to avoid repeats.

Did you try the pedal to start the autoscroll within a song (not just testing in the box shown)?


--
When responding to a post on the forum using your email, please make sure to click on the 'Reply all' button so that your response is also sent to the forum for other people to see the full conversation.
---
You received this message because you are subscribed to the Google Groups "OpenSongApp" group.
To unsubscribe from this group and stop receiving emails from it, send an email to opensongapp...@googlegroups.com.

Jean-Michel Beaupré

unread,
Jun 3, 2025, 4:26:19 AMJun 3
to OpenSongApp
Hi,
It is still not workinging, even within a song. the events sent by the pedal seams to be ok but i suspect that there is a problem of clock refresh because the time doesn't seams to change during de press (all events has same time). cf. attachment.
jm
WhatsApp Image 2025-06-03 at 10.20.36.jpeg

Gareth Evans

unread,
Jun 4, 2025, 2:29:26 AMJun 4
to Jean-Michel Beaupré, OpenSongApp

I'm pretty sure that's what my homemade pedal says on that screen (non Airturn, but works in that mode).
If you have the slider underneath the Airturn mode button set to 1 sec, this means you have to hold the pedal down for at least 1 second (until you see the action take place).  As long as you don't release the pedal (keyup) before this point.
Can you check with a different command for long press, such as opening/closing the song menu just to make sure it isn't an unrelated issue with autoscroll.
I will dig out my pedal tonight and try again to confirm what I see.

Gareth


Jean-Michel Beaupré

unread,
Jun 4, 2025, 5:42:53 AMJun 4
to OpenSongApp
Many thanks Gareth for your help.
After à lot of configuration test I'm finally successful with the longpress buton :)
I don't know exactly what made it ok but I think I had mutliple event receiver setted with different actions.
Here is now the configuration that works find for me.
Sorry for the inconvenience and thank you so much four your help !
jm

Airturn Manager Configuration (tested on AirTurn Duo)
=====================================================
Main
----
Auto-repeat : On
Delay before repeat : 0.02s
Repeat rate : 2.00/s

Switch Actions
--------------
Mode : 2

Switch : 1/up
-------------
Combination : on
Item 1 :
Mechanism : Momentary
Item Type : Keyboard
Modifier : None
Keyboard Code : Down Arrow
Custom value : off

Switch : 3/down
---------------
Combination : on
Item 1 :
Mechanism : Momentary
Item Type : Keyboard
Modifier : None
Keyboard Code : Down Arrow
Custom value : off

OpenSongApp Configuration
=========================
Airturn mode : on
Long press : 1000ms

1 : KEYCODE_PAGE_UP (C3)
nothing

2 : KEYCODE_DPAD_DOWN (D3)
nothing

3: KEYCODE_DPAD_UP (E3)
Scroll Up
longpress : Pad + Autoscroll Start/Stop

4 : KEYCODE_DPAD_DOWN (F3)
Scroll Down
longpress : Autoscroll Start/Stop

5/6/7/8 : nothing

Gareth Evans

unread,
Jun 4, 2025, 5:39:40 PMJun 4
to Jean-Michel Beaupré, OpenSongApp
Hi Jean-Michel,

I'm so glad you got it working!!!  I'll put some info up on my website for other users to learn from (and your settings are available on the forum).
I did find a minor bug in my code that doesn't put the correct time next to the key events - you were right, they all say the same time! I will fix this for the next release.
I will also look at modifying the 'test' panel to try to detect if Airturn mode should be switched on for the pedal.

There is something about your OpenSongApp settings that don't quite look right - you seem to have the commands for button 2 and button 4 both listening for KEYCODE_DPAD_DOWN.  This shouldn't have been allowed.  I wonder if the action for button 2 (nothing) is sometimes being triggered rather than the action for button 4 (scroll down for short press and start/stop autoscroll for long press) and this has been causing your problems rather than the time or auto-repeat rate settings.

To correctly assign buttons, you should follow the instructions on my video (also available on the website):

To give a simplified version (that is shown on the video):

On the foot pedal setup page in OpenSongApp, click on the button 1 heading (as shown by the red circle in the image below):
image.png
The app will then listen for any foot pedal button being pressed.  Press the first button on your pedal (e.g. the left pedal). You may have to press it twice for the app to confirm it.  It will then display for button 1 which key event was detected.   It should then clear any other buttons that try to listen for the same key event.
Next you can assign the actions for button 1.  I would recommend following actions:
Short press/tap action:  Previous (I'll explain later)
Long press action:  Pad + Autoscroll Start/Stop

Repeat the process by clicking on the button 2 heading and when the app starts listening for a pedal, press your second button on the foot pedal (e.g. the right pedal).  I would suggest the following actions:
Short press/tap action:  Next (I'll explain later)
Long press action:  Autoscroll Start/Stop
To explain the Previous/Next rather then Scroll up/scroll down:  If you switch on the 'Try to scroll before changing songs' option, the pedal will function as a scroll pedal and will also move between songs in a set when you scroll down after reaching the bottom of a song or try to scroll up when at the top of a song.
image.png

You can then clear any actions for buttons 3 and 4

Jean-Michel Beaupré

unread,
Jun 13, 2025, 9:28:47 AMJun 13
to OpenSongApp
Thank you so much Gareth!
I think you are right with the fact that 2 options of the app was listening on the same event.
Have a nice day
jm

Reply all
Reply to author
Forward
0 new messages