Go Back   Cockos Incorporated Forums > REAPER Forums > MIDI Hardware, Control Surfaces, and OSC

Reply
 
Thread Tools Display Modes
Old 12-15-2018, 06:27 AM   #1
kram0
Human being with feelings
 
Join Date: Mar 2015
Posts: 40
Default Issue with StuffMIDIMessage and Korg nanoKontrol2

I know there are some very good solutions for nanoKontrol2 and Reaper but I'm experimenting with scripting, etc.
From what I can tell this command should light up the REW button on the nanoKontrol2 but I can't get the buttons to light up:

reaper.StuffMIDIMessage( 17, 191, 43, 127)

My device is id 1 (so 17 = external midi dev 1)
According to the MID implementation doco I found, lighting up the REW button I should send a 3-byte message of BF 2B 7F, where 2B is the button and 7F is "light on" command. I converted those 3 codes to integers of 191 43 127.
I've tried a bunch of variation including loops to send

The lights are working fine. I've also tried with "sendmidi" command line tool to rule out a Reaper environmental issue.

I was hoping it's something simple and someone can tell me why it won't work.

Thank you!!
kram0 is offline   Reply With Quote
Old 12-16-2018, 08:15 PM   #2
kram0
Human being with feelings
 
Join Date: Mar 2015
Posts: 40
Default

Is anyone with a Korg nanoKontrol2 willing to run the command to test if it's just my device that is not working correctly?
That would confirm if the command is correct or not. Thanks!
kram0 is offline   Reply With Quote
Old 12-20-2018, 11:33 PM   #3
kram0
Human being with feelings
 
Join Date: Mar 2015
Posts: 40
Default

I wasted a lot of time so if anyone is interested:
The doco was WRONG!

The first hex byte should be B0 (not BF).
B0 translates to 176 in decimal.

This command work perfectly:
reaper.StuffMIDIMessage( 17, 176, 43, 127)
kram0 is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -7. The time now is 10:06 AM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.