Highly Liquid Forum facebook twitter google plus rss feed

Go Back   Highly Liquid Forum > Current Products > MIDI CPU

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 05-27-2015, 07:43 PM
dgood dgood is offline
Junior Member
 
Join Date: May 2015
Posts: 13
Default Minor code help with 8 rotary knobs

Hi there,
I've been poking around a lot on the forum for some help since I started this project, and am definitely learning a lot! However i'm having an issue I can't find a solution to by reading other threads..

I'm having a bit of a hiccup with my sysex coding for 8 Rotary knobs to use with Waves Multirack midi plugin control.
Similar to what this person did with their behringer controller: https://www.youtube.com/watch?v=1Od3nLvRT8c

Rotary encoders used:
Bourns PEC09 (with pushbuttons - ignored wiring these for the time being)


Midi i/o seems to be working correctly and my rotary encoders are registering on Midi Monitor when I turn them up and down. However when I try to map in software (multirack, ableton..) it registers the knob CC# correctly but doesn't actually do any movement up or down. Could I be missing some simple code to tell the software what to do when turning? Attached is my Sysex Librarian dump.

This is the code I programmed the CPU with:

Code:
//Header
F0 00 01 5D 04 01

//Layer
00

//CT Rotary Encoder #1 - CC#111
00 00 14 00 6F 11
01 00 14 00 6F 11

//CT Rotary Encoder #2 - CC#112
02 00 14 00 70 12
03 00 14 00 70 12

//CT Rotary Encoder #3 - CC#113
04 00 14 00 71 13
05 00 14 00 71 13

//CT Rotary Encoder #4 - CC#114
06 00 14 00 72 14
07 00 14 00 72 14

//CT Rotary Encoder #5 - CC#115
08 00 14 00 73 15
09 00 14 00 73 15

//CT Rotary Encoder #6 - CC#116
0A 00 14 00 74 16
0B 00 14 00 74 16

//CT Rotary Encoder #7 - CC#117
0C 00 14 00 75 17
0D 00 14 00 75 17

//CT Rotary Encoder #8 - CC#118
0E 00 14 00 76 18
0F 00 14 00 76 18

F7

Any input from anyone who has had good luck coding rotary knobs would be greatly appreciated!

Thank you,
- Daniel
Attached Files
File Type: zip Sysex_Librarian_dump.zip (2.3 KB, 86 views)
Reply With Quote
  #2  
Old 05-27-2015, 10:42 PM
dgood dgood is offline
Junior Member
 
Join Date: May 2015
Posts: 13
Default

I think this may be what I'm trying to accomplish (relative rotary encoders)
http://forum.highlyliquid.com/showthread.php?t=1372

But not familiar with the steps in programming an additional layer, as the person who posted that must have been / figured it out offline.
Reply With Quote
  #3  
Old 05-28-2015, 06:24 PM
Synthetech's Avatar
Synthetech Synthetech is offline
Moderator
 
Join Date: May 2012
Location: USA
Posts: 711
Default

Hi,

what ver. firmware are you using?


check sect. 5.0 on how to get data configuration retrieval dumps


get layer00h and data register config dumps, then copy/paste them in here


also check you firmware ver. see end of manual how to...


we get that info, then we can start finding out what the problem is.. my guess is the data reg's are all 0'd out and cannot incr/decr until we config them a range of values..

/Blaine
Reply With Quote
  #4  
Old 05-28-2015, 08:36 PM
dgood dgood is offline
Junior Member
 
Join Date: May 2015
Posts: 13
Default

Thank you for the response Blaine,
I believe I'm running V1.4 - (bought the midi cpu last month)
Here is the code from sending this firmware retrieval code: 00 F0 00 01 5D 04 00 7D 00 F7

Code:
00  F0 00 01 5D 04 7D 04 F7
Here's the response from sending dump retrieval for Layer 00h
Code:
0000  F0 00 01 5D 04 01 00 00  00 14 00 6F 11 00 01 14  |   ]       o    |
0010  00 6F 11 01 00 14 00 6F  11 01 01 14 00 6F 11 02  | o     o     o  |
0020  00 14 00 70 12 02 01 14  00 70 12 03 00 14 00 70  |   p     p     p|
0030  12 03 01 14 00 70 12 04  00 14 00 71 13 04 01 14  |     p     q    |
0040  00 71 13 05 00 14 00 71  13 05 01 14 00 71 13 06  | q     q     q  |
0050  00 14 00 72 14 06 01 14  00 72 14 07 00 14 00 72  |   r     r     r|
0060  14 07 01 14 00 72 14 08  00 14 00 73 15 08 01 14  |     r     s    |
0070  00 73 15 09 00 14 00 73  15 09 01 14 00 73 15 0A  | s     s     s  |
0080  00 14 00 74 16 0A 01 14  00 74 16 0B 00 14 00 74  |   t     t     t|
0090  16 0B 01 14 00 74 16 0C  00 14 00 75 17 0C 01 14  |     t     u    |
00A0  00 75 17 0D 00 14 00 75  17 0D 01 14 00 75 17 0E  | u     u     u  |
00B0  00 14 00 76 18 0E 01 14  00 76 18 0F 00 14 00 76  |   v     v     v|
00C0  18 0F 01 14 00 76 18 10  00 14 00 77 19 10 01 14  |     v     w    |
00D0  00 77 19 11 00 14 00 77  19 11 01 14 00 77 19 12  | w     w     w  |
00E0  00 14 00 09 1A 12 01 14  00 09 1A 13 00 14 00 09  |                |
00F0  1A 13 01 14 00 09 1A 14  00 14 00 0A 1B 14 01 14  |                |
0100  00 0A 1B 15 00 14 00 0A  1B 15 01 14 00 0A 1B 16  |                |
0110  00 14 00 0B 1C 16 01 14  00 0B 1C 17 00 14 00 0B  |                |
0120  1C 17 01 14 00 0B 1C F7
Reply With Quote
  #5  
Old 05-29-2015, 03:41 PM
Synthetech's Avatar
Synthetech Synthetech is offline
Moderator
 
Join Date: May 2012
Location: USA
Posts: 711
Default

this firmware code..
F0 00 01 5D 04 7D 04 F7

04 means you are still on ver 1.2

try updating it using the most recent Firmware manual instructions..

let's see if the newer firmware will do any better.

then we can try again...
Reply With Quote
  #6  
Old 06-02-2015, 03:58 AM
dgood dgood is offline
Junior Member
 
Join Date: May 2015
Posts: 13
Default

I attempted to update the firmware and am stuck with a constantly flashing activity led. with or without jumping CAL L to Ground.

I believe it was my user error when I attempted to upgrade from 1.2 to 1.4 without noticing the special note for users updating from versions earlier than 1.3 ...

Is there a way to start fresh or have I completely ruined my MIDI CPU! - could this be similar to the Active Sense issue in earlier MIDI CPUs?
Reply With Quote
  #7  
Old 06-02-2015, 04:19 AM
dgood dgood is offline
Junior Member
 
Join Date: May 2015
Posts: 13
Default

Updated - am able to get back to solid LED when jumping ground and CAL L.

I should also mention the newest firmware version i was able to find was the 1-4-beta4.syx - Is there a final non-beta that I might have overlooked somewhere?


Thanks in advance!
Reply With Quote
  #8  
Old 06-04-2015, 12:53 PM
Synthetech's Avatar
Synthetech Synthetech is offline
Moderator
 
Join Date: May 2012
Location: USA
Posts: 711
Default

1.4beta4 is the most recent release.

It's stable.. John just has been naming them Beta's for each version of 1.4 he has published.
Reply With Quote
  #9  
Old 06-04-2015, 07:15 PM
dgood dgood is offline
Junior Member
 
Join Date: May 2015
Posts: 13
Default

Blaine, do you have an idea why I can't get any firmware to install correctly?
I boot up, it transfers completely, then keeps blinking forever.

Using an E-MU Xmidi 1x1 controller

with a mac running Sysex Librarian
Reply With Quote
  #10  
Old 06-04-2015, 10:50 PM
Synthetech's Avatar
Synthetech Synthetech is offline
Moderator
 
Join Date: May 2012
Location: USA
Posts: 711
Default

in the sticky above

Configuration Sysex How To


is a link.. this one

http://support.codeandcopper.com/txt-to-syx/


you need to create a .syx file from the text code.

try that and send it the file it sends back to you
Reply With Quote
  #11  
Old 06-04-2015, 11:17 PM
dgood dgood is offline
Junior Member
 
Join Date: May 2015
Posts: 13
Default

Perhaps i'm not being clear enough with my issue.

I'm experienced with using that txt to sysex converter as my midi cpu was working fine and i've programmed several things perfectly up until I attempted to update the firmware. Now it is a blinking paper weight due to the firmware not being upgraded successfully.

Are you saying the "MIDICPU-1-4-beta4.syx" should be opened in a text editor and copy and pasted into that sysex encoder to make a NEW sysex file? - that seems illogical, but i'm not making any progress with determining how to "start from scratch" with a messed up firmware update.

- -
Trying to send it new firmware while in the config mode is unsuccessful as well.

Last edited by dgood; 06-04-2015 at 11:21 PM.
Reply With Quote
  #12  
Old 06-05-2015, 12:16 PM
Synthetech's Avatar
Synthetech Synthetech is offline
Moderator
 
Join Date: May 2012
Location: USA
Posts: 711
Default

I'm terribly sorry I missed the entire problem you're having.

I think this is a problem John needs to help with.
I emailed him to come to this thread to see what can be done to fix it.

Sorry for the frustration. I'm sure John will have a solution.
Reply With Quote
  #13  
Old 06-05-2015, 06:20 PM
John's Avatar
John John is offline
Moderator
 
Join Date: Jan 2009
Posts: 3,007
Default

Quote:
Originally Posted by dgood View Post
I'm experienced with using that txt to sysex converter as my midi cpu was working fine and i've programmed several things perfectly up until I attempted to update the firmware. Now it is a blinking paper weight due to the firmware not being upgraded successfully.
Ok. The continuous blinking of the LED means that on the last firmware update attempt, there was an error (most likely, some of the code was loaded onto the MIDI CPU, but not all).

Sometimes this can happen because a MIDI interface or its driver will choke on a large SysEx file such as those used in the firmware update procedure. (There are many, really badly implemented interfaces. Check out the list here.)

When the MIDI CPU powers up for normal operation, it checksums its own firmware. If the checksum fails, the MIDI CPU will blink its LED continuously and it won't work.

The good news is that you can re-attempt the firmware update as many times as necessary to get things loaded correctly.

Do you happen to have a different USB MIDI interface that you can try to use?
Reply With Quote
  #14  
Old 06-05-2015, 06:56 PM
dgood dgood is offline
Junior Member
 
Join Date: May 2015
Posts: 13
Default

Quote:
Originally Posted by Synthetech View Post
I'm terribly sorry I missed the entire problem you're having.

I think this is a problem John needs to help with.
I emailed him to come to this thread to see what can be done to fix it.

Sorry for the frustration. I'm sure John will have a solution.
No Problem Blaine! Thanks for getting in touch with John.

--

John,
I do have a M Audio Profire interface with midi around here. I can try that out later tonight and let you know!

Thanks both of you!
Reply With Quote
  #15  
Old 06-06-2015, 03:54 AM
dgood dgood is offline
Junior Member
 
Join Date: May 2015
Posts: 13
Default

I was able to get it back to normal and running firmware 1.4-beta4
Code:
00  F0 00 01 5D 04 7D 06 F7
Had to use windows in Parallells (existing equipment, but the midi cpu seemed to prefer being upgraded in windows using Send SX)

But now back to square one and can't seem to get my rotary encoders back in action. Is there a place you could nudge me in the right direction to programming 8 rotary encoders?

Rotary 1
TT 00-01

Rotary 2
TT 02-03

Rotary 3
TT 04-05

and so on..
Reply With Quote
  #16  
Old 06-06-2015, 03:58 AM
dgood dgood is offline
Junior Member
 
Join Date: May 2015
Posts: 13
Default

Here is a full config dump:

(updated post for easier viewing code, still sloppy at the end..)

Code:
F0 00 01 5D 04 01
00
00 00 14 00 00 11 
00 01 14 00 00 11 
01 00 14 00 00 11 
01 01 14 00 00 11 
02 00 14 00 01 12 
02 01 14 00 01 12 
03 00 14 00 01 12 
03 01 14 00 01 12 
04 00 14 00 02 13 
04 01 14 00 02 13 
05 00 14 00 02 13 
05 01 14 00 02 13 
06 00 14 00 03 14 
06 01 14 00 03 14 
07 00 14 00 03 14 
07 01 14 00 03 14 
08 00 14 00 04 15 
08 01 14 00 04 15 
09 00 14 00 04 16 
09 01 14 00 04 16 
0A 00 14 00 05 17 
0A 01 14 00 05 17 
0B 00 14 00 05 18 
0B 01 14 00 05 18 
0C 00 14 00 06 19 
0C 01 14 00 06 19 
0D 00 14 00 06 20 
0D 01 14 00 06 20 
0E 00 14 00 05 17 
0E 01 14 00 05 17 
0F 00 14 00 05 18 
0F 01 14 00 05 18 
10 00 14 00 77 19 
10 01 14 00 77 19 
11 00 14 00 77 19 
11 01 14 00 77 19 
12 00 14 00 09 1A 
12 01 14 00 09 1A 
13 00 14 00 09 1A 
13 01 14 00 09 1A 
14 00 14 00 0A 1B 
14 01 14 00 0A 1B 
15 00 14 00 0A 1B 
15 01 14 00 0A 1B 
16 00 14 00 0B 1C 
16 01 14 00 0B 1C 
17 00 14 00 0B 1C 
17 01 14 00 0B 1C 
F7

F0 00 01 5D 04 01 

01 

00 00 7F 00 00 00 
00 01 7F 00 00 00 
01 00 7F 00 00 00 
01 01 7F 00 00 00 
02 00 7F 00 00 00 
02 01 7F 00 00 00 
03 00 7F 00 00 00 
03 01 7F 00 00 00 
04 00 7F 00 00 00 
04 01 7F 00 00 00 
05 00 7F 00 00 00 
05 01 7F 00 00 00 
06 00 7F 00 00 00 
06 01 7F 00 00 00 
07 00 7F 00 00 00 
07 01 7F 00 00 00 
08 00 7F 00 00 00 
08 01 7F 00 00 00 
09 00 7F 00 00 00 
09 01 7F 00 00 00 
0A 00 7F 00 00 00 
0A 01 7F 00 00 00 
0B 00 7F 00 00 00 
0B 01 7F 00 00 00 
0C 00 7F 00 00 00 
0C 01 7F 00 00 00 
0D 00 7F 00 00 00 
0D 01 7F 00 00 00 
0E 00 7F 00 00 00 
0E 01 7F 00 00 00 
0F 00 7F 00 00 00 
0F 01 7F 00 00 00 
10 00 7F 00 00 00 
10 01 7F 00 00 00 
11 00 7F 00 00 00 
11 01 7F 00 00 00 
12 00 7F 00 00 00 
12 01 7F 00 00 00 
13 00 7F 00 00 00 
13 01 7F 00 00 00 
14 00 7F 00 00 00 
14 01 7F 00 00 00 
15 00 7F 00 00 00 
15 01 7F 00 00 00 
16 00 7F 00 00 00 
16 01 7F 00 00 00 
17 00 7F 00 00 00 
17 01 7F 00 00 00 
F7

F0 00 01 5D 04 01 
02 
00 00 7F 00 00 00 
00 01 7F 00 00 00 
01 00 7F 00 00 00 
01 01 7F 00 00 00 
02 00 7F 00 00 00 
02 01 7F 00 00 00 
03 00 7F 00 00 00 
03 01 7F 00 00 00 
04 00 7F 00 00 00 
04 01 7F 00 00 00 
05 00 7F 00 00 00 
05 01 7F 00 00 00 
06 00 7F 00 00 00 
06 01 7F 00 00 00 
07 00 7F 00 00 00 
07 01 7F 00 00 00 
08 00 7F 00 00 00 
08 01 7F 00 00 00 
09 00 7F 00 00 00 
09 01 7F 00 00 00 
0A 00 7F 00 00 00 
0A 01 7F 00 00 00 
0B 00 7F 00 00 00 
0B 01 7F 00 00 00 
0C 00 7F 00 00 00 
0C 01 7F 00 00 00 
0D 00 7F 00 00 00 
0D 01 7F 00 00 00 
0E 00 7F 00 00 00 
0E 01 7F 00 00 00 
0F 00 7F 00 00 00 
0F 01 7F 00 00 00 
10 00 7F 00 00 00 
10 01 7F 00 00 00 
11 00 7F 00 00 00 
11 01 7F 00 00 00 
12 00 7F 00 00 00 
12 01 7F 00 00 00 
13 00 7F 00 00 00 
13 01 7F 00 00 00 
14 00 7F 00 00 00 
14 01 7F 00 00 00 
15 00 7F 00 00 00 
15 01 7F 00 00 00 
16 00 7F 00 00 00 
16 01 7F 00 00 00 
17 00 7F 00 00 00 
17 01 7F 00 00 00 
F7
F0 00 01 5D 04 01 
03 
00 00 7F 00 00 00 
00 01 7F 00 00 00 
01 00 7F 00 00 00 
01 01 7F 00 00 00 
02 00 7F 00 00 00 
02 01 7F 00 00 00 
03 00 7F 00 00 00 
03 01 7F 00 00 00 
04 00 7F 00 00 00 
04 01 7F 00 00 00 
05 00 7F 00 00 00 
05 01 7F 00 00 00 
06 00 7F 00 00 00 
06 01 7F 00 00 00 
07 00 7F 00 00 00 
07 01 7F 00 00 00 
08 00 7F 00 00 00 
08 01 7F 00 00 00 
09 00 7F 00 00 00 
09 01 7F 00 00 00 
0A 00 7F 00 00 00 
0A 01 7F 00 00 00 
0B 00 7F 00 00 00 
0B 01 7F 00 00 00 
0C 00 7F 00 00 00 
0C 01 7F 00 00 00 
0D 00 7F 00 00 00 
0D 01 7F 00 00 00 
0E 00 7F 00 00 00 
0E 01 7F 00 00 00 
0F 00 7F 00 00 00 
0F 01 7F 00 00 00 
10 00 7F 00 00 00 
10 01 7F 00 00 00 
11 00 7F 00 00 00 
11 01 7F 00 00 00 
12 00 7F 00 00 00 
12 01 7F 00 00 00 
13 00 7F 00 00 00 
13 01 7F 00 00 00 
14 00 7F 00 00 00 
14 01 7F 00 00 00 
15 00 7F 00 00 00 
15 01 7F 00 00 00 
16 00 7F 00 00 00 
16 01 7F 00 00 00 
17 00 7F 00 00 00 
17 01 7F 00 00 00 
F7

F0 00 01 5D 04 04 03 00 7C 00 00 04 00 7E 00 00 05 00 0E 00 00 06 00 0C 00 00 07 00 0A 00 00 08 00 0B 00 00 09 00 0D 00 00 0A 00 0F 00 00 0B 00 00 00 00 0C 00 00 00 00 0D 00 00 00 00 0E 00 01 00 00 0F 00 02 00 00 10 00 03 00 00 11 00 04 00 00 12 00 05 00 00 13 00 06 00 00 14 00 07 00 00 15 00 00 00 00 16 00 00 00 00 17 00 00 00 00 18 00 00 00 00 19 00 00 00 00 1A 00 00 00 00 1B 00 00 00 00 1C 00 00 00 00 1D 00 00 00 00 1E 01 00 00 00 1F 03 00 00 00 20 07 00 00 00 21 0F 00 00 00 22 1F 00 00 00 23 3F 00 00 00 24 7F 00 00 00 25 00 00 00 01 26 40 00 00 01 27 60 00 00 01 28 70 00 00 01 29 78 00 00 01 F7
F0 00 01 5D 04 05 00 01 02 03 04 05 06 07 08 09 0A 0B 0C 0D 0E 0F 10 11 12 13 14 15 16 17 18 19 1A 1B 1C 1D 1E 1F 20 21 22 23 24 25 26 27 28 29 2A 2B 2C 2D 2E 2F 30 31 32 33 34 35 36 37 38 39 3A 3B 3C 3D 3E 3F 40 41 42 43 44 45 46 47 48 49 4A 4B 4C 4D 4E 4F 50 51 52 53 54 55 56 57 58 59 5A 5B 5C 5D 5E 5F 60 61 62 63 64 65 66 67 68 69 6A 6B 6C 6D 6E 6F 70 71 72 73 74 75 76 77 78 79 7A 7B 7C 7D 7E 7F F7
F0 00 01 5D 04 07 00 01 02 03 04 05 06 07 08 09 0A 0B 0C 0D 0E 0F 10 11 12 13 14 15 16 17 18 19 1A 1B 1C 1D 1E 1F 20 21 22 23 24 25 26 27 28 29 2A 2B 2C 2D 2E 2F 30 31 32 33 34 35 36 37 38 39 3A 3B 3C 3D 3E 3F 40 41 42 43 44 45 46 47 48 49 4A 4B 4C 4D 4E 4F 50 51 52 53 54 55 56 57 58 59 5A 5B 5C 5D 5E 5F 60 61 62 63 64 65 66 67 68 69 6A 6B 6C 6D 6E 6F 70 71 72 73 74 75 76 77 78 79 7A 7B 7C 7D 7E 7F F7
F0 00 01 5D 04 08 06 04 00 F7
F0 00 01 5D 04 09 00 F7
F0 00 01 5D 04 0A 00 F7
F0 00 01 5D 04 0B 7F F7
F0 00 01 5D 04 0C 00 00 F7
F0 00 01 5D 04 0D 00 F7
F0 00 01 5D 04 7D 06 F7

Last edited by dgood; 06-06-2015 at 05:33 AM.
Reply With Quote
  #17  
Old 06-06-2015, 10:40 AM
John's Avatar
John John is offline
Moderator
 
Join Date: Jan 2009
Posts: 3,007
Default

Code looks good to me. Let me try to reproduce the problem. There was another user with an encoder issue. There might be a bug in the MIDI CPU that is overdue for being fixed.
Reply With Quote
  #18  
Old 06-10-2015, 05:29 AM
dgood dgood is offline
Junior Member
 
Join Date: May 2015
Posts: 13
Default

John, have you had any chance to take a look into this?
Reply With Quote
  #19  
Old 06-12-2015, 02:37 PM
John's Avatar
John John is offline
Moderator
 
Join Date: Jan 2009
Posts: 3,007
Default

Quote:
Originally Posted by dgood View Post
John, have you had any chance to take a look into this?
Daniel,

I'm not going to get to this until next week. I'm really sorry for the delay. Please continue to bump the thread if you don't hear back from me.
Reply With Quote
  #20  
Old 06-12-2015, 02:39 PM
John's Avatar
John John is offline
Moderator
 
Join Date: Jan 2009
Posts: 3,007
Default

In the meantime, one other thing is to double-check your data register config and make sure that the data registers associated with the encoders are set up correctly (to allow a full range of values). This should already be the case if you followed the 1.4 upgrade procedure thru to the last step.
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
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. The time now is 02:37 AM.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2017, vBulletin Solutions, Inc.