Jump to content

Recommended Posts

Posted

I've got NG going with a newly built core and some old hardware I had lying around.

There are 2 2x40LCDs and 16 encoders on SR1 to 4.

 

I'm able to execute the exercises in section "Rotate Me" and "Encoder Send MIDI now".

However the sections "Display Me" and Toy Me" are not giving the expected results:

 

With the code of "Display Me" pasted at the bottom of my file:

I get: "ENC #  8      0_ "

and nothing else displayed on LCD #1,

and the debug window shows after moving encoder #1:

 

[7798.626] [EVENT:7001] ENC hw_id=0x7001 bank=0 fwd_id=0x0000 type=CC value=1 label=
[7798.736] MBNG_ENC_NotifyChange(1, 1)
[7798.736] [EVENT:7001] ENC hw_id=0x7001 bank=0 fwd_id=0x0000 type=CC value=2 label=
[7799.437] MBNG_ENC_NotifyChange(1, 1)
[7799.437] [EVENT:7001] ENC hw_id=0x7001 bank=0 fwd_id=0x0000 type=CC value=3 label=
[7799.499] MBNG_ENC_NotifyChange(1, 1)
[7799.499] [EVENT:7001] ENC hw_id=0x7001 bank=0 fwd_id=0x0000 type=CC value=4 label=
[7800.083] MBNG_ENC_NotifyChange(1, 1)
[7800.083] [EVENT:7001] ENC hw_id=0x7001 bank=0 fwd_id=0x0000 type=CC value=5 label=
 


here's the *.ngc file in it's entirety: 

RESET_HW
LCD "%CEncoder Test"
ENC n=  1   sr=1 pins=0:1   type=detented1
ENC n=  2   sr=1 pins=2:3   type=detented1
ENC n=  3   sr=1 pins=4:5   type=detented1
ENC n=  4   sr=1 pins=6:7   type=detented1
ENC n=  5   sr=2 pins=0:1   type=detented1
ENC n=  6   sr=2 pins=2:3   type=detented1
ENC n=  7   sr=2 pins=4:5   type=detented1
ENC n=  8   sr=2 pins=6:7   type=detented1

ENC n=  9    sr=3 pins=0:1   type=detented1
ENC n=  10   sr=3 pins=2:3   type=detented1
ENC n=  11   sr=3 pins=4:5   type=detented1
ENC n=  12   sr=3 pins=6:7   type=detented1
ENC n=  13   sr=4 pins=0:1   type=detented1
ENC n=  14   sr=4 pins=2:3   type=detented1
ENC n=  15   sr=4 pins=4:5   type=detented1
ENC n=  16   sr=4 pins=6:7   type=detented1

EVENT_ENC id=1  type=CC chn= 1 cc= 16
EVENT_ENC id=2  type=CC chn= 1 cc= 17
EVENT_ENC id=3  type=CC chn= 1 cc= 18
EVENT_ENC id=4  type=CC chn= 1 cc= 19
EVENT_ENC id=5  type=CC chn= 1 cc= 20
EVENT_ENC id=6  type=CC chn= 1 cc= 21
EVENT_ENC id=7  type=CC chn= 1 cc= 22
EVENT_ENC id=8  type=CC chn= 1 cc= 23

EVENT_ENC id=9   type=CC chn= 1 cc= 26
EVENT_ENC id=10  type=CC chn= 1 cc= 27
EVENT_ENC id=11  type=CC chn= 1 cc= 28
EVENT_ENC id=12  type=CC chn= 1 cc= 29
EVENT_ENC id=13  type=CC chn= 1 cc= 30
EVENT_ENC id=14  type=CC chn= 1 cc= 31
EVENT_ENC id=15  type=CC chn= 1 cc= 32
EVENT_ENC id=16  type=CC chn= 1 cc= 33

EVENT_ENC id=1  type=CC chn= 1 cc= 16  lcd_pos=1:1:1  label="ENC #%3i    %3d%B"
EVENT_ENC id=2  type=CC chn= 1 cc= 17  lcd_pos=1:1:1  label="ENC #%3i    %3d%B"
EVENT_ENC id=3  type=CC chn= 1 cc= 18  lcd_pos=1:1:1  label="ENC #%3i    %3d%B"
EVENT_ENC id=4  type=CC chn= 1 cc= 19  lcd_pos=1:1:1  label="ENC #%3i    %3d%B"
EVENT_ENC id=5  type=CC chn= 1 cc= 20  lcd_pos=1:1:1  label="ENC #%3i    %3d%B"
EVENT_ENC id=6  type=CC chn= 1 cc= 21  lcd_pos=1:1:1  label="ENC #%3i    %3d%B"
EVENT_ENC id=7  type=CC chn= 1 cc= 22  lcd_pos=1:1:1  label="ENC #%3i    %3d%B"
EVENT_ENC id=8  type=CC chn= 1 cc= 23  lcd_pos=1:1:1  label="ENC #%3i    %3d%B"

 

 

Posted

Yes, there is no protection against duplicated IDs - and only the first id will be taken.

Which explains, why the labels were not print out: because they were defined for the second set of (redundant) EVENT_ENC

Best Regards, Thorsten.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...