Author |
Topic: Calculate NPRN from log data (Read 2135 times) |
|
dabl
New Member

 MIDI-OX Rules!
Posts: 2
|
 |
Calculate NPRN from log data
« on: May 16th, 2002, 12:54pm » |
Quote Modify
|
Hi, I've read the help file and the NPRN tutorial, I guess I'm kinda dense, I can't seem to understand some basic stuff about how to use some of the tools in Midi-Ox. My goal is to determine the NPRN values a device is sending when a given button is pushed and released. In my case, my device should be sending the same data for a push/relase with button 1 and button 2 (ie seperate buttons) but doesn't appear to be doing so. I captured the data fine, and think I can see that the data is indeed different but can't understand how to really analyze the output, including calculating the NPRN. I even know the NPRN numbers I'm looking for, but can't seem to use the data I have to see how that number would be calculated. I did much better on the verbal part of my SAT than the math part. Below is my log output for button 1 push/release and button 2 push/release. If what I've been told about this particular device is accurate, the button(s) should send out "an NRPN message (#4502) with a value of 1 when the button is depressed and 16383 when the button is released" After I confirm the NPRN data are indeed different for button 1, I was hoping to try using midi-ox to try and change the NPRN data sent out by button 2 to match that of button 1. For reference, my midi I/O card for this device is a Creative Labs Audigy and the device is a Peavey StudioMix, used to control certain functions in Cakewalk sequencers. I'm using Sonar v1.3.1 and soon v2.0 My OS is Win XP. As I understand it, I believe I'll need Midi-Yoke to do the data mapping? I'm not asking you to do my homework for me, or explain every last detail but any help would sure be appreciated. Based on my data and the NPRN calculator, I can't figure out how to use the raw data I have to determine the NPRN values in that data. It seems like there are two MSB and LSB values for the button push and two for the button release, yet the calculator only allows entry for one of each? Again, I know I'm mising something fundamental here..... thanks for any enlightenment! --Don don@donlindbergh.com ===================== BUTTON 1 PUSH/RELEASE ===================== ===> MIDI-OX Version: 6.4.2.317 ===> Log Opened: Wed 15-May-2002 20:02:36 ===> TIMESTAMP PORT STATUS DATA1 DATA2 CHAN NOTE EVENT 00095888 1 BF 63 13 16 -- CC: NRPN MSB 00095889 1 BF 62 44 16 -- CC: NRPN LSB 0009588A 1 BF 06 00 16 -- CC: Data Entry MSB 0009588B 1 BF 26 01 16 -- CC: Data Entry LSB 00095D74 1 BF 63 13 16 -- CC: NRPN MSB 00095D75 1 BF 62 44 16 -- CC: NRPN LSB 00095D76 1 BF 06 7F 16 -- CC: Data Entry MSB 00095D77 1 BF 26 7F 16 -- CC: Data Entry LSB <=== MIDI-OX Log Closed: Wed 15-May-2002 20:02:53 <=== ===================== BUTTON 2 PUSH/RELEASE ===================== ===> MIDI-OX Version: 6.4.2.317 ===> Log Opened: Wed 15-May-2002 20:13:50 ===> TIMESTAMP PORT STATUS DATA1 DATA2 CHAN NOTE EVENT 00138DF9 1 BF 63 23 16 -- CC: NRPN MSB 00138DFA 1 BF 62 16 16 -- CC: NRPN LSB 00138DFB 1 BF 06 00 16 -- CC: Data Entry MSB 00138DFC 1 BF 26 01 16 -- CC: Data Entry LSB 00139304 1 BF 63 23 16 -- CC: NRPN MSB 00139305 1 BF 62 16 16 -- CC: NRPN LSB 00139306 1 BF 06 7F 16 -- CC: Data Entry MSB 00139306 1 BF 26 7F 16 -- CC: Data Entry LSB <=== MIDI-OX Log Closed: Wed 15-May-2002 20:14:01 <===
|
|
IP Logged |
|
|
|
Jamie OConnell
Administrator
    


Gender: 
Posts: 2027
|
 |
Re: Calculate NPRN from log data
« Reply #1 on: May 16th, 2002, 3:08pm » |
Quote Modify
|
First, don't feel dumb, NRPNs are very confusing -- I often have to look several times before I know what I am looking at. The NRPN calculator is just a little tool to calculate a single NRPN value from MSB and LSB, or to calculate a single MSB and LSB when given a NRPN value. You have to write down or copy and paste any values calculated, because they are discarded as soon as new values are entered. To use the NRPN calculator on your first example, I would first get the NRPN Number (the first MSB and LSB) and then obtain the NRPN value (the 2nd MSB and LSB). I would also choose (*) Hex, as the Monitor Log is displaying Hex: MSB LSB 14Bit Value 1) 13 44 09C4 (2500 dec) 2) 00 01 0001 (1 dec) 3) 13 44 09C4 (2500 dec) 4) 7F 7F 3FFF (16383 dec) So Button 1 issues NRPN 2500 and a Data entry value of 1. Releasing it issues NRPN 2500 with a value of 16383. Using the same technique, Button 2 issues NRPN 4502 (1196 Hex) using 1 for down and 16383 for up. You could set up a map to convert button 2 to 1 with a single mapping step: * NRPN 4502 4502 * * | * NRPN 2500 2500 * * You also need to check "[x] Wait for complete NRPN" and "[x] Send Full NRPN", otherwise the map will react as soon as it gets CC:6 (Data Entry MSB). If you want to map your StudioMix you'll need to connect it to MIDI-OX and then connect MIDI-OX to SONAR via a MIDI Yoke port.
|
« Last Edit: May 16th, 2002, 3:10pm by Jamie OConnell » |
IP Logged |
--Jamie Music is its own reward.
|
|
|
dabl
New Member

 MIDI-OX Rules!
Posts: 2
|
 |
Re: Calculate NPRN from log data
« Reply #2 on: May 16th, 2002, 3:12pm » |
Quote Modify
|
Wow, thanks Jamie for the incredibly fast relpy and the great information, I really appreciate it! --Don
|
|
IP Logged |
|
|
|
|