TheKikGen / MPCLiveXplore-libs

Special libraries and code for MPC and Force devices
Creative Commons Zero v1.0 Universal
14 stars 4 forks source link

Midimapper issue on MPC Live #1

Closed TheKikGen closed 1 year ago

TheKikGen commented 1 year ago

Gennadiy Boychenko Here is the deepest I got. I couldn't make it work [tkgl INFO ] MPC args : --tkplg=./tmm-demoForceNextSeq.so --tkport=24:0 [tkgl INFO ] [tkgl INFO ] --tkplg specified. File ./tmm-demoForceNextSeq.so will be used for midi mapping [tkgl INFO ] --tkport specified. Midi Seq port (24:0) will be captured [tkgl INFO ] Product code : ACV8 (MPC Live) [tkgl ***FATAL] ./tmm-demoForceNextSeq.so midipapper library loading error or not found

TheKikGen commented 1 year ago

Please post here :

Be sure to download the last .so , as it is still in a beta stage.

TheKikGen commented 1 year ago

It seems you have a path problem.

Just to be sure : download last version of midi mapper here :

https://github.com/TheKikGen/MPCLiveXplore-libs/blob/main/src/tkgl_midimapper.so

and next seq demo here :

https://github.com/TheKikGen/MPCLiveXplore-libs/blob/main/src/tmm-plugins/tmm-demoForceNextSeq.so

Create a temporary directory, and copy the 2 so files downloaded in that directory Connect to your Live with ssh, and i fyou have the bootstrap smartcard :

cd /media/TKGL_BOOSTRAP
mkdir tempdir
cd tempdir

(copy files here) then LD_PRELOAD=./tkgl_midimapper.so MPC --tkplg=./tmm-demoForceNextSeq.so --tkport=24:0

Potreba commented 1 year ago

Sorry for a bit long terminal , but I think it will help to debug.

Welcome to the MPC OS ssh mod !
Linux mpc-live 5.15.89-inmusic-2023-01-18-rt56 #1 SMP PREEMPT_RT Tue Jan 24 17:57:35 UTC 2023 armv7l GNU/Linux
Your IP address is 192.168.0.20
WARNING : you have root permissions. You may harm your system.
root@mpc-live:~# sl -l
-sh: sl: not found
root@mpc-live:~# ls -l
total 0
root@mpc-live:~# amidi -l
Dir Device    Name
IO  hw:0,0,0  MPC Public
IO  hw:0,0,1  MPC Private
IO  hw:0,0,2  MPC MIDI Port A
IO  hw:0,0,3  MPC MIDI Port B
root@mpc-live:~# amidi -l
Dir Device    Name
IO  hw:0,0,0  MPC Public
IO  hw:0,0,1  MPC Private
IO  hw:0,0,2  MPC MIDI Port A
IO  hw:0,0,3  MPC MIDI Port B
IO  hw:2,0,0  OpenDeck MIDI 1
root@mpc-live:~# cd /media/TKGL_BOOTSTRAP/tkgl_bootstrap_[ProjectData]/libs
-sh: cd: can't cd to /media/TKGL_BOOTSTRAP/tkgl_bootstrap_[ProjectData]/libs: No such file or directory
root@mpc-live:~# cd /media/TKGL_BOOTSTRAP/
root@mpc-live:/media/TKGL_BOOTSTRAP# cd /media/TKGL_BOOTSTRAP/tkgl_bootstrap_[Pr
jectData]/
-sh: cd: can't cd to /media/TKGL_BOOTSTRAP/tkgl_bootstrap_[PrjectData]/: No such file or directory
root@mpc-live:/media/TKGL_BOOTSTRAP# ls -l
total 373124
-rwxr-xr-x    1 root     root     234760791 Jul  4  2022 MPC-2.11.2.2.tkglssh-Update.img
-rw-r--r--    1 root     root          6707 Feb 26  2022 README.md
-rw-r--r--    1 root     root     147283855 Feb 26  2022 force-3.1.3.8.tkglssh-update.img
drwx------    2 root     root         16384 Feb 26  2022 lost+found
drwxr-xr-x    9 root     root          4096 Mar  2 00:31 tkgl_bootstrap_[ProjectData]
root@mpc-live:/media/TKGL_BOOTSTRAP# cd /media/TKGL_BOOTSTRAP/tkgl_bootstrap_[Pr
jectData]/tkgl_bootstrap_[ProjectData]
-sh: cd: can't cd to /media/TKGL_BOOTSTRAP/tkgl_bootstrap_[PrjectData]/tkgl_bootstrap_[ProjectData]: No such file or directory
root@mpc-live:/media/TKGL_BOOTSTRAP# cd /media/TKGL_BOOTSTRAP/tkgl_bootstrap_[Pr
jectData]/tkgl_bootstrap_[ProjectData]
-sh: cd: can't cd to /media/TKGL_BOOTSTRAP/tkgl_bootstrap_[PrjectData]/tkgl_bootstrap_[ProjectData]: No such file or directory
root@mpc-live:/media/TKGL_BOOTSTRAP# cd /media/TKGL_BOOTSTRAP/tkgl_bootstrap_[ProjectData]/
root@mpc-live:/media/TKGL_BOOTSTRAP/tkgl_bootstrap_[ProjectData]# cd /media/TKGL_BOOTSTRAP/tkgl_boo
tstrap_[ProjectData]/libs
-sh: cd: can't cd to /media/TKGL_BOOTSTRAP/tkgl_bootstrap_[ProjectData]/libs: No such file or directory
root@mpc-live:/media/TKGL_BOOTSTRAP/tkgl_bootstrap_[ProjectData]# cd /media/TKGL_BOOTSTRAP/tkgl_boo
tstrap_[ProjectData]/lib
root@mpc-live:/media/TKGL_BOOTSTRAP/tkgl_bootstrap_[ProjectData]/lib# ls -l
total 24520
lrwxrwxrwx    1 root     root            15 Feb 26  2022 libEGL.so.1 -> libmali.so.14.0
lrwxrwxrwx    1 root     root            15 Feb 26  2022 libGLESv1_CM.so -> libmali.so.14.0
lrwxrwxrwx    1 root     root            15 Feb 26  2022 libGLESv1_CM.so.1 -> libGLESv1_CM.so
lrwxrwxrwx    1 root     root            15 Feb 26  2022 libMaliOpenCL.so -> libmali.so.14.0
lrwxrwxrwx    1 root     root            15 Feb 26  2022 libMaliOpenCL.so.1 -> libmali.so.14.0
lrwxrwxrwx    1 root     root            21 Feb 26  2022 libSDL2-2.0.so.0 -> libSDL2-2.0.so.0.12.0
-rw-r--r--    1 root     root       4214620 Feb 26  2022 libSDL2-2.0.so.0.12.0
lrwxrwxrwx    1 root     root            21 Feb 26  2022 libSDL2.so -> libSDL2-2.0.so.0.12.0
lrwxrwxrwx    1 root     root            26 Feb 26  2022 libSDL2_image-2.0.so.0 -> libSDL2_image-2.0.so.0.2.3
-rw-r--r--    1 root     root        432080 Feb 26  2022 libSDL2_image-2.0.so.0.2.3
lrwxrwxrwx    1 root     root            26 Feb 26  2022 libSDL2_image.so -> libSDL2_image-2.0.so.0.2.3
lrwxrwxrwx    1 root     root            26 Feb 26  2022 libSDL2_mixer-2.0.so.0 -> libSDL2_mixer-2.0.so.0.2.2
-rw-r--r--    1 root     root        389092 Feb 26  2022 libSDL2_mixer-2.0.so.0.2.2
lrwxrwxrwx    1 root     root            26 Feb 26  2022 libSDL2_mixer.so -> libSDL2_mixer-2.0.so.0.2.2
lrwxrwxrwx    1 root     root            24 Feb 26  2022 libSDL2_net-2.0.so.0 -> libSDL2_net-2.0.so.0.0.1
-rw-r--r--    1 root     root         58124 Feb 26  2022 libSDL2_net-2.0.so.0.0.1
lrwxrwxrwx    1 root     root            24 Feb 26  2022 libSDL2_net.so -> libSDL2_net-2.0.so.0.0.1
lrwxrwxrwx    1 root     root            25 Feb 26  2022 libSDL2_ttf-2.0.so.0 -> libSDL2_ttf-2.0.so.0.14.1
-rw-r--r--    1 root     root        100808 Feb 26  2022 libSDL2_ttf-2.0.so.0.14.1
lrwxrwxrwx    1 root     root            25 Feb 26  2022 libSDL2_ttf.so -> libSDL2_ttf-2.0.so.0.14.1
lrwxrwxrwx    1 root     root            15 Feb 26  2022 libffi.so -> libffi.so.6.0.4
lrwxrwxrwx    1 root     root            15 Feb 26  2022 libffi.so.6 -> libffi.so.6.0.4
-rw-r--r--    1 root     root         22216 Feb 26  2022 libffi.so.6.0.4
lrwxrwxrwx    1 root     root            15 Feb 26  2022 libgbm.so -> libmali.so.14.0
lrwxrwxrwx    1 root     root            15 Feb 26  2022 libgbm.so.1 -> libmali.so.14.0
lrwxrwxrwx    1 root     root            15 Feb 26  2022 libmali.so.1 -> libmali.so.14.0
-rw-r--r--    1 root     root      18577200 Feb 26  2022 libmali.so.14.0
lrwxrwxrwx    1 root     root            11 Feb 26  2022 libpng.so -> libpng16.so
lrwxrwxrwx    1 root     root            18 Feb 26  2022 libpng12.so.0 -> libpng12.so.0.50.0
-rw-r--r--    1 root     root        100388 Feb 26  2022 libpng12.so.0.50.0
lrwxrwxrwx    1 root     root            19 Feb 26  2022 libpng16.so -> libpng16.so.16.28.0
lrwxrwxrwx    1 root     root            19 Feb 26  2022 libpng16.so.16 -> libpng16.so.16.28.0
-rw-r--r--    1 root     root        128360 Feb 26  2022 libpng16.so.16.28.0
lrwxrwxrwx    1 root     root            15 Feb 26  2022 libtinfo.so.6 -> libtinfo.so.6.1
-rw-r--r--    1 root     root        116836 Feb 26  2022 libtinfo.so.6.1
drwxr-xr-x    3 root     root          4096 Feb 26  2022 lua
-rw-r--r--    1 root     root         22920 Feb 26  2022 tkgl_anyctrl.so
-rw-r--r--    1 root     root         18220 Feb 26  2022 tkgl_anyctrl_lt.so
-rw-r--r--    1 root     root         12320 Feb 26  2022 tkgl_ctrldump.so
-rw-r--r--    1 root     root         23364 Feb 26  2022 tkgl_iamforcectrl.so
-rw-r--r--    1 root     root         41928 Mar  1 23:44 tkgl_midimapper.so
-rw-r--r--    1 root     root         51400 Feb 26  2022 tkgl_mpcmapper.so
-rw-r--r--    1 root     root        266114 Mar  1 23:44 tmm-demo.c
-rw-r--r--    1 root     root        208753 Mar  1 23:44 tmm-demo.so
-rw-r--r--    1 root     root        278448 Mar  1 23:44 tmm-demoForceNextSeq.c
-rw-r--r--    1 root     root          7700 Mar  2 00:13 tmm-demoForceNextSeq.so
root@mpc-live:/media/TKGL_BOOTSTRAP/tkgl_bootstrap_[ProjectData]/lib# aconnect -l
client 0: 'System' [type=kernel]
    0 'Timer           '
    1 'Announce        '
client 16: 'MPC Live Controller' [type=kernel,card=0]
    0 'MPC Public      '
    Connected From: 136:0
    1 'MPC Private     '
    Connecting To: 134:0
    Connected From: 135:0
    2 'MPC MIDI Port A '
    Connecting To: 137:0
    Connected From: 137:3
    3 'MPC MIDI Port B '
    Connecting To: 137:1
    Connected From: 137:4
client 24: 'OpenDeck' [type=kernel,card=2]
    0 'OpenDeck MIDI 1 '
    Connecting To: 137:8
    Connected From: 137:9
client 130: 'Virtual MIDI Output 1 Input' [type=user,pid=290]
    0 'in              '
    Connected From: 137:7
client 131: 'Virtual MIDI Output 2 Input' [type=user,pid=290]
    0 'in              '
    Connected From: 137:5
client 132: 'Virtual MIDI Input 1 Output' [type=user,pid=290]
    0 'out             '
    Connecting To: 137:6
client 133: 'Virtual MIDI Input 2 Output' [type=user,pid=290]
    0 'out             '
    Connecting To: 137:2
client 134: 'Client-134' [type=user,pid=346]
    0 'TKGL Virtual In Private'
    Connected From: 16:1
client 135: 'Client-135' [type=user,pid=346]
    0 'TKGL Virtual Out Private'
    Connecting To: 16:1
client 136: 'Client-136' [type=user,pid=346]
    0 'TKGL Virtual Out Public'
    Connecting To: 16:0
client 137: 'MPC' [type=user,pid=346]
    0 'MPC Live Controller MPC MIDI Port A'
    Connected From: 16:2
    1 'MPC Live Controller MPC MIDI Port B'
    Connected From: 16:3
    2 'Virtual MIDI Input 2 Output out'
    Connected From: 133:0
    3 'MPC Live Controller MPC MIDI Port A'
    Connecting To: 16:2
    4 'MPC Live Controller MPC MIDI Port B'
    Connecting To: 16:3
    5 'Virtual MIDI Output 2 Input in'
    Connecting To: 131:0
    6 'Virtual MIDI Input 1 Output out'
    Connected From: 132:0
    7 'Virtual MIDI Output 1 Input in'
    Connecting To: 130:0
    8 'OpenDeck MIDI 1 '
    Connected From: 24:0
    9 'OpenDeck MIDI 1 '
    Connecting To: 24:0
root@mpc-live:/media/TKGL_BOOTSTRAP/tkgl_bootstrap_[ProjectData]/lib# cd /media/TKGL_BOOSTRAP
-sh: cd: can't cd to /media/TKGL_BOOSTRAP: No such file or directory
root@mpc-live:/media/TKGL_BOOTSTRAP/tkgl_bootstrap_[ProjectData]/lib# mkdir tempdir
root@mpc-live:/media/TKGL_BOOTSTRAP/tkgl_bootstrap_[ProjectData]/lib# cd /media/TKGL_BOOTSTRAP
root@mpc-live:/media/TKGL_BOOTSTRAP# mkdir tempdir
root@mpc-live:/media/TKGL_BOOTSTRAP# cd tempdit
-sh: cd: can't cd to tempdit: No such file or directory
root@mpc-live:/media/TKGL_BOOTSTRAP# cd tempdir
root@mpc-live:/media/TKGL_BOOTSTRAP/tempdir# LD_PRELOAD=./tkgl_midimapper.so MPC --tkplg=./tmm-demo
ForceNextSeq.so --tkport=24:0

__ __| |           |  /_) |     ___|             |           |
  |   __ \   _ \  ' /  | |  / |      _ \ __ \   |      _` | __ \   __|
  |   | | |  __/  . \  |   <  |   |  __/ |   |  |     (   | |   |\__ \
 _|  _| |_|\___| _|\_\_|_|\_\\____|\___|_|  _| _____|\__,_|_.__/ ____/
[tkgl INFO    ]  ---------------------------------------------------------
[tkgl INFO    ]  TKGL_MIDIMAPPER Version : BETA2
[tkgl INFO    ]  (c) The KikGen Labs.
[tkgl INFO    ]  https://github.com/TheKikGen/MPC-LiveXplore
[tkgl INFO    ]  ---------------------------------------------------------
[tkgl INFO    ]  MPC args : --tkplg=./tmm-demoForceNextSeq.so --tkport=24:0 
[tkgl INFO    ]  
[tkgl INFO    ]  --tkplg specified. File ./tmm-demoForceNextSeq.so will be used for midi mapping
[tkgl INFO    ]  --tkport specified. Midi Seq port (24:0) will be captured
[tkgl INFO    ]  Product code : ACV8 (MPC Live)
[tkgl INFO    ]  Midi mapping ./tmm-demoForceNextSeq.so library succefully loaded.
[tkgl INFO    ]  NEXT SEQ DEMO for Force with a Roland A800 master keyboard. The Kikgen Labs, 2023
[tkgl INFO    ]  This plugin is not compatible with your MPC Live device
[tkgl INFO    ]  MPC controller Private hardware port Alsa name is hw:0,0,1. Sequencer id is 16:1.
[tkgl INFO    ]  MPC controller Public  hardware port Alsa name is hw:0,0,0. Sequencer id is 16:0.
[tkgl INFO    ]  External midi controller name is OpenDeck OpenDeck MIDI 1 on port (24:0).
[tkgl INFO    ]  Port creation : Virtual RawMIDI
[tkgl INFO    ]  Port creation : Virtual RawMIDI
[tkgl INFO    ]  Virtual rawmidi private input port 138:0  created.
[tkgl INFO    ]  Virtual rawmidi private output port 139:0 created.
[tkgl INFO    ]  Port creation : Priv Private
[tkgl INFO    ]  Port creation : Ctrl Private
[tkgl INFO    ]  Port creation : Mpc Priv Private
[tkgl INFO    ]  Port creation : _OpenDeck MIDI 1
[tkgl INFO    ]  Midi Router created as client 140.
[tkgl INFO    ]  MPC hardware Private Out (16:1) connected to Router Hw Private IN (140:0).
[tkgl INFO    ]  Router HW Private Out (140:2) connected to MPC hardware Private In (16:1).
[tkgl INFO    ]  MPC App virtual rawmidi private Out (139:0) connected to Router MPC app Private in (140:0).
[tkgl INFO    ]  Router MPC app Private out (140:0) connected to MPC App virtual rawmidi private IN (138:0).
[tkgl INFO    ]  Ext controller port (24:0) connected to Router controller port in (140:1).
[tkgl INFO    ]  Router controller port in (140:1) connected to Ext controller port (24:0).
[tkgl INFO    ]  Midi router thread started. Waiting for events...
Aborted (core dumped)
root@mpc-live:/media/TKGL_BOOTSTRAP/tempdir# LD_PRELOAD=./tkgl_midimapper.so MPC --tkplg=./tmm-demo
ForceNextSeq.so --tkport=24:0

__ __| |           |  /_) |     ___|             |           |
  |   __ \   _ \  ' /  | |  / |      _ \ __ \   |      _` | __ \   __|
  |   | | |  __/  . \  |   <  |   |  __/ |   |  |     (   | |   |\__ \
 _|  _| |_|\___| _|\_\_|_|\_\\____|\___|_|  _| _____|\__,_|_.__/ ____/
[tkgl INFO    ]  ---------------------------------------------------------
[tkgl INFO    ]  TKGL_MIDIMAPPER Version : BETA2
[tkgl INFO    ]  (c) The KikGen Labs.
[tkgl INFO    ]  https://github.com/TheKikGen/MPC-LiveXplore
[tkgl INFO    ]  ---------------------------------------------------------
[tkgl INFO    ]  MPC args : --tkplg=./tmm-demoForceNextSeq.so --tkport=24:0 
[tkgl INFO    ]  
[tkgl INFO    ]  --tkplg specified. File ./tmm-demoForceNextSeq.so will be used for midi mapping
[tkgl INFO    ]  --tkport specified. Midi Seq port (24:0) will be captured
[tkgl INFO    ]  Product code : ACV8 (MPC Live)
[tkgl INFO    ]  Midi mapping ./tmm-demoForceNextSeq.so library succefully loaded.
[tkgl INFO    ]  NEXT SEQ DEMO for Force with a Roland A800 master keyboard. The Kikgen Labs, 2023
[tkgl INFO    ]  This plugin is not compatible with your MPC Live device
[tkgl INFO    ]  MPC controller Private hardware port Alsa name is hw:0,0,1. Sequencer id is 16:1.
[tkgl INFO    ]  MPC controller Public  hardware port Alsa name is hw:0,0,0. Sequencer id is 16:0.
[tkgl INFO    ]  External midi controller name is OpenDeck OpenDeck MIDI 1 on port (24:0).
[tkgl INFO    ]  Port creation : Virtual RawMIDI
[tkgl INFO    ]  Port creation : Virtual RawMIDI
[tkgl INFO    ]  Virtual rawmidi private input port 138:0  created.
[tkgl INFO    ]  Virtual rawmidi private output port 139:0 created.
[tkgl INFO    ]  Port creation : Priv Private
[tkgl INFO    ]  Port creation : Ctrl Private
[tkgl INFO    ]  Port creation : Mpc Priv Private
[tkgl INFO    ]  Port creation : _OpenDeck MIDI 1
[tkgl INFO    ]  Midi Router created as client 140.
[tkgl INFO    ]  MPC hardware Private Out (16:1) connected to Router Hw Private IN (140:0).
[tkgl INFO    ]  Router HW Private Out (140:2) connected to MPC hardware Private In (16:1).
[tkgl INFO    ]  MPC App virtual rawmidi private Out (139:0) connected to Router MPC app Private in (140:0).
[tkgl INFO    ]  Router MPC app Private out (140:0) connected to MPC App virtual rawmidi private IN (138:0).
[tkgl INFO    ]  Ext controller port (24:0) connected to Router controller port in (140:1).
[tkgl INFO    ]  Router controller port in (140:1) connected to Ext controller port (24:0).
[tkgl INFO    ]  Midi router thread started. Waiting for events...
Aborted (core dumped)
root@mpc-live:/media/TKGL_BOOTSTRAP/tempdir# aconnect -l
client 0: 'System' [type=kernel]
    0 'Timer           '
    1 'Announce        '
client 16: 'MPC Live Controller' [type=kernel,card=0]
    0 'MPC Public      '
    Connected From: 136:0
    1 'MPC Private     '
    Connecting To: 134:0
    Connected From: 135:0
    2 'MPC MIDI Port A '
    Connecting To: 137:0
    Connected From: 137:3
    3 'MPC MIDI Port B '
    Connecting To: 137:1
    Connected From: 137:4
client 24: 'OpenDeck' [type=kernel,card=2]
    0 'OpenDeck MIDI 1 '
    Connecting To: 137:8
    Connected From: 137:9
client 130: 'Virtual MIDI Output 1 Input' [type=user,pid=290]
    0 'in              '
    Connected From: 137:7
client 131: 'Virtual MIDI Output 2 Input' [type=user,pid=290]
    0 'in              '
    Connected From: 137:5
client 132: 'Virtual MIDI Input 1 Output' [type=user,pid=290]
    0 'out             '
    Connecting To: 137:6
client 133: 'Virtual MIDI Input 2 Output' [type=user,pid=290]
    0 'out             '
    Connecting To: 137:2
client 134: 'Client-134' [type=user,pid=346]
    0 'TKGL Virtual In Private'
    Connected From: 16:1
client 135: 'Client-135' [type=user,pid=346]
    0 'TKGL Virtual Out Private'
    Connecting To: 16:1
client 136: 'Client-136' [type=user,pid=346]
    0 'TKGL Virtual Out Public'
    Connecting To: 16:0
client 137: 'MPC' [type=user,pid=346]
    0 'MPC Live Controller MPC MIDI Port A'
    Connected From: 16:2
    1 'MPC Live Controller MPC MIDI Port B'
    Connected From: 16:3
    2 'Virtual MIDI Input 2 Output out'
    Connected From: 133:0
    3 'MPC Live Controller MPC MIDI Port A'
    Connecting To: 16:2
    4 'MPC Live Controller MPC MIDI Port B'
    Connecting To: 16:3
    5 'Virtual MIDI Output 2 Input in'
    Connecting To: 131:0
    6 'Virtual MIDI Input 1 Output out'
    Connected From: 132:0
    7 'Virtual MIDI Output 1 Input in'
    Connecting To: 130:0
    8 'OpenDeck MIDI 1 '
    Connected From: 24:0
    9 'OpenDeck MIDI 1 '
    Connecting To: 24:0
root@mpc-live:/media/TKGL_BOOTSTRAP/tempdir# 

My 'Opendeck' device sends CC # 22 val 127 on one button and CC#23 val 127 on another + CC#24 val 127 on another physical terminal. This CC# 24 is always couple ms later than CC #23. Anyway, nothing happens. It also messed up my 'PlayStart' button, which always launched scene 8, but now launches scene 1. I think I've programmed it in mpcmapper.

When rebooted all I get is


| | |_ | |/ (| |__ _ _ | | _ | | | | | ' \/ -) | ' <| | / / ` / -| ' \ | |/ ` | ' (-< || |||_| ||_||__, _|||| |\,|.// |_/

Welcome to the MPC OS ssh mod ! Linux mpc-live 5.15.89-inmusic-2023-01-18-rt56 #1 SMP PREEMPT_RT Tue Jan 24 17:57:35 UTC 2023 armv7l GNU/Linux Your IP address is 192.168.0.20 WARNING : you have root permissions. You may harm your system. root@mpc-live:~# cd /media/TKGL_BOOTSTRAP/tempdir -sh: cd: can't cd to /media/TKGL_BOOTSTRAP/tempdir: No such file or directory root@mpc-live:~# cd /media/TKGL_BOOTSTRAP/tempdir root@mpc-live:/media/TKGL_BOOTSTRAP/tempdir# aconnect -l client 0: 'System' [type=kernel] 0 'Timer ' 1 'Announce ' client 16: 'MPC Live Controller' [type=kernel,card=0] 0 'MPC Public ' 1 'MPC Private ' 2 'MPC MIDI Port A ' Connecting To: 134:0 Connected From: 134:3 3 'MPC MIDI Port B ' Connecting To: 134:1 Connected From: 134:4 client 130: 'Virtual MIDI Output 1 Input' [type=user,pid=287] 0 'in ' Connected From: 134:7 client 131: 'Virtual MIDI Output 2 Input' [type=user,pid=287] 0 'in ' Connected From: 134:5 client 132: 'Virtual MIDI Input 1 Output' [type=user,pid=287] 0 'out ' Connecting To: 134:6 client 133: 'Virtual MIDI Input 2 Output' [type=user,pid=287] 0 'out ' Connecting To: 134:2 client 134: 'MPC' [type=user,pid=295] 0 'MPC Live Controller MPC MIDI Port A' Connected From: 16:2 1 'MPC Live Controller MPC MIDI Port B' Connected From: 16:3 2 'Virtual MIDI Input 2 Output out' Connected From: 133:0 3 'MPC Live Controller MPC MIDI Port A' Connecting To: 16:2 4 'MPC Live Controller MPC MIDI Port B' Connecting To: 16:3 5 'Virtual MIDI Output 2 Input in' Connecting To: 131:0 6 'Virtual MIDI Input 1 Output out' Connected From: 132:0 7 'Virtual MIDI Output 1 Input in' Connecting To: 130:0 root@mpc-live:/media/TKGL_BOOTSTRAP/tempdir# aconnect -l client 0: 'System' [type=kernel] 0 'Timer ' 1 'Announce ' client 16: 'MPC Live Controller' [type=kernel,card=0] 0 'MPC Public ' 1 'MPC Private ' 2 'MPC MIDI Port A ' Connecting To: 134:0 Connected From: 134:3 3 'MPC MIDI Port B ' Connecting To: 134:1 Connected From: 134:4 client 24: 'OpenDeck' [type=kernel,card=2] 0 'OpenDeck MIDI 1 ' Connecting To: 134:8 Connected From: 134:9 client 130: 'Virtual MIDI Output 1 Input' [type=user,pid=287] 0 'in ' Connected From: 134:7 client 131: 'Virtual MIDI Output 2 Input' [type=user,pid=287] 0 'in ' Connected From: 134:5 client 132: 'Virtual MIDI Input 1 Output' [type=user,pid=287] 0 'out ' Connecting To: 134:6 client 133: 'Virtual MIDI Input 2 Output' [type=user,pid=287] 0 'out ' Connecting To: 134:2 client 134: 'MPC' [type=user,pid=295] 0 'MPC Live Controller MPC MIDI Port A' Connected From: 16:2 1 'MPC Live Controller MPC MIDI Port B' Connected From: 16:3 2 'Virtual MIDI Input 2 Output out' Connected From: 133:0 3 'MPC Live Controller MPC MIDI Port A' Connecting To: 16:2 4 'MPC Live Controller MPC MIDI Port B' Connecting To: 16:3 5 'Virtual MIDI Output 2 Input in' Connecting To: 131:0 6 'Virtual MIDI Input 1 Output out' Connected From: 132:0 7 'Virtual MIDI Output 1 Input in' Connecting To: 130:0 8 'OpenDeck MIDI 1 ' Connected From: 24:0 9 'OpenDeck MIDI 1 ' Connecting To: 24:0 root@mpc-live:/media/TKGL_BOOTSTRAP/tempdir# LD_PRELOAD=./tkgl_midimapper.so MPC --tkplg=./tmm-demo

| | | /_) | _| | | | \ \ ' / | | / | \ \ | _` | \ | | | | | / . \ | < | | / | | | ( | | |_ \ | | ||_| |__||_\_|\|| | ___|\,|./ __/ [tkgl INFO ] --------------------------------------------------------- [tkgl INFO ] TKGL_MIDIMAPPER Version : BETA2 [tkgl INFO ] (c) The KikGen Labs. [tkgl INFO ] https://github.com/TheKikGen/MPC-LiveXplore [tkgl INFO ] --------------------------------------------------------- [tkgl INFO ] MPC args : --tkplg=./tmm-demo [tkgl INFO ]
[tkgl INFO ] --tkplg specified. File ./tmm-demo will be used for midi mapping [tkgl INFO ] Product code : ACV8 (MPC Live) [tkgl ***FATAL] ./tmm-demo midipapper library loading error or not found root@mpc-live:/media/TKGL_BOOTSTRAP/tempdir# ForceNextSeq.so --tkport=24:0 -sh: ForceNextSeq.so: not found root@mpc-live:/media/TKGL_BOOTSTRAP/tempdir# inmusic top -sh: inmusic: not found root@mpc-live:/media/TKGL_BOOTSTRAP/tempdir# -inmusic stop -sh: -inmusic: not found root@mpc-live:/media/TKGL_BOOTSTRAP/tempdir# LD_PRELOAD=./tkgl_midimapper.so MPC --tkplg=./tmm-demo

| | | /_) | _| | | | \ \ ' / | | / | \ \ | _` | \ | | | | | / . \ | < | | / | | | ( | | |_ \ | | ||_| |__||_\_|\|| | ___|\,|./ __/ [tkgl INFO ] --------------------------------------------------------- [tkgl INFO ] TKGL_MIDIMAPPER Version : BETA2 [tkgl INFO ] (c) The KikGen Labs. [tkgl INFO ] https://github.com/TheKikGen/MPC-LiveXplore [tkgl INFO ] --------------------------------------------------------- [tkgl INFO ] MPC args : --tkplg=./tmm-demo [tkgl INFO ]
[tkgl INFO ] --tkplg specified. File ./tmm-demo will be used for midi mapping [tkgl INFO ] Product code : ACV8 (MPC Live) [tkgl ***FATAL] ./tmm-demo midipapper library loading error or not found root@mpc-live:/media/TKGL_BOOTSTRAP/tempdir# ls -l total 56 -rw-r--r-- 1 root root 46796 Mar 4 19:12 tkgl_midimapper.so -rw-r--r-- 1 root root 7700 Mar 4 19:12 tmm-demoForceNextSeq.so root@mpc-live:/media/TKGL_BOOTSTRAP/tempdir#

TheKikGen commented 1 year ago

Ok. You took the last version of midimapper ? The demo plugin will only display a log message on the console.
You can download it at https://github.com/TheKikGen/MPCLiveXplore-libs/raw/main/src/tmm-plugins/tmm-demo.so

TheKikGen commented 1 year ago

It is a good start to test with that basic plugin. If you press something on your pedal, you should see something like "Midi Event received from CTRL EXT". Test it and confirm that you see messages when you press MPC pads, buttons, and your midi device.

Potreba commented 1 year ago

Ok. You took the last version of midimapper ? The demo plugin will only display a log message on the console. You can download it at https://github.com/TheKikGen/MPCLiveXplore-libs/raw/main/src/tmm-plugins/tmm-demo.so

Should I copy this plugin Into tempdir and modify terminal command somehow? What else should be in this folder? There's only two files right now .

Also I send this command when iamforce already loaded. When I tried to send this command from MPC I got path error for some reason.

[tkgl INFO ] --------------------------------------------------------- [tkgl INFO ] TKGL_MIDIMAPPER Version : BETA2 [tkgl INFO ] (c) The KikGen Labs. [tkgl INFO ] https://github.com/TheKikGen/MPC-LiveXplore [tkgl INFO ] --------------------------------------------------------- [tkgl INFO ] MPC args : --tkplg=./tmm-demo [tkgl INFO ] [tkgl INFO ] --tkplg specified. File ./tmm-demo will be used for midi mapping [tkgl INFO ] Product code : ACV8 (MPC Live) [tkgl ***FATAL] ./tmm-demo midipapper library loading error or not found root@mpc-live:/media/TKGL_BOOTSTRAP/tempdir# ls -l total 56 -rw-r--r-- 1 root root 46796 Mar 4 19:12 tkgl_midimapper.so -rw-r--r-- 1 root root 7700 Mar 4 19:12 tmm-demoForceNextSeq.so root@mpc-live:/media/TKGL_BOOTSTRAP/tempdir#

Potreba commented 1 year ago

Nothing happens when I press buttons. Here is the terminal


| | |_ | |/ (| |__ _ _ | | _ | | | | | ' \/ -) | ' <| | / / ` / -| ' \ | |/ ` | ' (-< || |||_| ||_||__, _|||| |\,|.// |_/

Welcome to the MPC OS ssh mod ! Linux mpc-live 5.15.89-inmusic-2023-01-18-rt56 #1 SMP PREEMPT_RT Tue Jan 24 17:57:35 UTC 2023 armv7l GNU/Linux Your IP address is 192.168.0.20 WARNING : you have root permissions. You may harm your system. root@mpc-live:~# cd /media/TKGL_BOOTSTRAP/tempdir root@mpc-live:/media/TKGL_BOOTSTRAP/tempdir# ls -l total 64 -rw-r--r-- 1 root root 46796 Mar 4 19:12 tkgl_midimapper.so -rw-r--r-- 1 root root 7684 Mar 4 19:45 tmm-demo.so -rw-r--r-- 1 root root 7700 Mar 4 19:12 tmm-demoForceNextSeq.so root@mpc-live:/media/TKGL_BOOTSTRAP/tempdir# LD_PRELOAD=./tkgl_midimapper.so MPC --tkplg=./tmm-demoForceNextSeq.so --tkplg=./tmm-demo.so --tkport=24:0

| | | /_) | _| | | | \ \ ' / | | / | \ \ | _` | \ | | | | | / . \ | < | | / | | | ( | | |_ \ | | ||_| |__||_\_|\|| | ___|\,|./ __/ [tkgl INFO ] --------------------------------------------------------- [tkgl INFO ] TKGL_MIDIMAPPER Version : BETA2 [tkgl INFO ] (c) The KikGen Labs. [tkgl INFO ] https://github.com/TheKikGen/MPC-LiveXplore [tkgl INFO ] --------------------------------------------------------- [tkgl INFO ] MPC args : --tkplg=./tmm-demoForceNextSeq.so --tkplg=./tmm-demo.so --tkport=24:0 [tkgl INFO ]
[tkgl INFO ] --tkplg specified. File ./tmm-demoForceNextSeq.so will be used for midi mapping [tkgl INFO ] --tkplg specified. File ./tmm-demo.so will be used for midi mapping [tkgl INFO ] --tkport specified. Midi Seq port (24:0) will be captured [tkgl INFO ] Product code : ACV8 (MPC Live) [tkgl INFO ] Midi mapping ./tmm-demo.so library succefully loaded. [tkgl INFO ] Welcome to the MPC Midimapper demo by the Kikgen Labs [tkgl INFO ] MPC controller Private hardware port Alsa name is hw:0,0,1. Sequencer id is 16:1. [tkgl INFO ] MPC controller Public hardware port Alsa name is hw:0,0,0. Sequencer id is 16:0. [tkgl ***ERROR] External midi controller name not found for port (24:0), and will be ignored. [tkgl INFO ] Port creation : Virtual RawMIDI [tkgl INFO ] Port creation : Virtual RawMIDI [tkgl INFO ] Virtual rawmidi private input port 138:0 created. [tkgl INFO ] Virtual rawmidi private output port 139:0 created. [tkgl INFO ] Port creation : Priv Private [tkgl INFO ] Port creation : Ctrl Private [tkgl INFO ] Port creation : Mpc Priv Private [tkgl INFO ] Midi Router created as client 140. [tkgl INFO ] MPC hardware Private Out (16:1) connected to Router Hw Private IN (140:0). [tkgl INFO ] Router HW Private Out (140:2) connected to MPC hardware Private In (16:1). [tkgl INFO ] MPC App virtual rawmidi private Out (139:0) connected to Router MPC app Private in (140:0). [tkgl INFO ] Router MPC app Private out (140:0) connected to MPC App virtual rawmidi private IN (138:0). [tkgl INFO ] Midi router thread started. Waiting for events... Aborted (core dumped) root@mpc-live:/media/TKGL_BOOTSTRAP/tempdir#

TheKikGen commented 1 year ago

You should see messages on the console "Message receive from..." etc...

Potreba commented 1 year ago

Already did, but no events showing up. Events show up in force event view.

Here is my terminal command

root@mpc-live:/media/TKGL_BOOTSTRAP/tempdir# LD_PRELOAD=./tkgl_midimapper.so MPC --tkplg=./tmm-demoForceNextSeq.so --tkplg=./tmm-demo.so --tkport=24:0

Potreba commented 1 year ago

Here is the log for MPC app stop then use LD_PRELOAD command

 _____ _          _  ___ _                   _         _       
 |_   _| |_  ___  | |/ (_| |____ _ ___ _ _   | |   __ _| |__ ___
   | | | ' \/ -_) | ' <| | / / _` / -_| ' \  | |__/ _` | '_ (_-<
   |_| |_||_\___| |_|\_|_|_\_\__, \___|_||_| |____\__,_|_.__/__/
                             |___/                              

Welcome to the MPC OS ssh mod !
Linux mpc-live 5.15.89-inmusic-2023-01-18-rt56 #1 SMP PREEMPT_RT Tue Jan 24 17:57:35 UTC 2023 armv7l GNU/Linux
Your IP address is 192.168.0.20
WARNING : you have root permissions. You may harm your system.
root@mpc-live:~# cd /media/TKGL_BOOTSTRAP/tempdir
root@mpc-live:/media/TKGL_BOOTSTRAP/tempdir# ls -l
total 64
-rw-r--r--    1 root     root         46796 Mar  4 19:12 tkgl_midimapper.so
-rw-r--r--    1 root     root          7684 Mar  4 19:45 tmm-demo.so
-rw-r--r--    1 root     root          7700 Mar  4 19:12 tmm-demoForceNextSeq.so
root@mpc-live:/media/TKGL_BOOTSTRAP/tempdir# systemctl stop inmusic-mpc
root@mpc-live:/media/TKGL_BOOTSTRAP/tempdir# LD_PRELOAD=./tkgl_midimapper.so MPC
 --tkplg=./tmm-demo.so --tkplg=./tmm-demo.so --tkport=24:0

__ __| |           |  /_) |     ___|             |           |
  |   __ \   _ \  ' /  | |  / |      _ \ __ \   |      _` | __ \   __|
  |   | | |  __/  . \  |   <  |   |  __/ |   |  |     (   | |   |\__ \
 _|  _| |_|\___| _|\_\_|_|\_\\____|\___|_|  _| _____|\__,_|_.__/ ____/
[tkgl INFO    ]  ---------------------------------------------------------
[tkgl INFO    ]  TKGL_MIDIMAPPER Version : BETA2
[tkgl INFO    ]  (c) The KikGen Labs.
[tkgl INFO    ]  https://github.com/TheKikGen/MPC-LiveXplore
[tkgl INFO    ]  ---------------------------------------------------------
[tkgl INFO    ]  MPC args : --tkplg=./tmm-demo.so --tkplg=./tmm-demo.so --tkport=24:0 
[tkgl INFO    ]  
[tkgl INFO    ]  --tkplg specified. File ./tmm-demo.so will be used for midi mapping
[tkgl INFO    ]  --tkplg specified. File ./tmm-demo.so will be used for midi mapping
[tkgl INFO    ]  --tkport specified. Midi Seq port (24:0) will be captured
[tkgl INFO    ]  Product code : ACV8 (MPC Live)
[tkgl INFO    ]  Midi mapping ./tmm-demo.so library succefully loaded.
[tkgl INFO    ]  Welcome to the MPC Midimapper demo by the Kikgen Labs
[tkgl INFO    ]  MPC controller Private hardware port Alsa name is hw:0,0,1. Sequencer id is 16:1.
[tkgl INFO    ]  MPC controller Public  hardware port Alsa name is hw:0,0,0. Sequencer id is 16:0.
[tkgl ***ERROR]  External midi controller name not found for port (24:0), and will be ignored.
[tkgl INFO    ]  Port creation : Virtual RawMIDI
[tkgl INFO    ]  Port creation : Virtual RawMIDI
[tkgl INFO    ]  Virtual rawmidi private input port 134:0  created.
[tkgl INFO    ]  Virtual rawmidi private output port 135:0 created.
[tkgl INFO    ]  Port creation : Priv Private
[tkgl INFO    ]  Port creation : Ctrl Private
[tkgl INFO    ]  Port creation : Mpc Priv Private
[tkgl INFO    ]  Midi Router created as client 136.
[tkgl INFO    ]  MPC hardware Private Out (16:1) connected to Router Hw Private IN (136:0).
[tkgl INFO    ]  Router HW Private Out (136:2) connected to MPC hardware Private In (16:1).
[tkgl INFO    ]  MPC App virtual rawmidi private Out (135:0) connected to Router MPC app Private in (136:0).
[tkgl INFO    ]  Router MPC app Private out (136:0) connected to MPC App virtual rawmidi private IN (134:0).
[tkgl INFO    ]  Midi router thread started. Waiting for events...
LibXtract compiled with ooura FFT
MPC 2.11.8
Reducing RLIMIT_DATA from 18446744073709551615 -> 1923260416
[tkgl INFO    ]  Port creation : MPC Live Controller MPC MIDI Port A
[tkgl INFO    ]  MPC seq client is 137
[tkgl INFO    ]  Port creation : MPC Live Controller MPC MIDI Port B
[tkgl INFO    ]  Port creation : OpenDeck MIDI 1
[tkgl INFO    ]  Port creation : Virtual MIDI Input 2 Output out
[tkgl INFO    ]  Port creation : TKGL Midi Priv Private
[tkgl INFO    ]    => MPC app Port TKGL Midi Priv Private creation canceled.
[tkgl INFO    ]  Port creation : TKGL Midi Ctrl Private
[tkgl INFO    ]    => MPC app Port TKGL Midi Ctrl Private creation canceled.
[tkgl INFO    ]  Port creation : TKGL Midi Mpc Priv Private
[tkgl INFO    ]    => MPC app Port TKGL Midi Mpc Priv Private creation canceled.
[tkgl INFO    ]  Port creation : MPC Live Controller MPC MIDI Port A
[tkgl INFO    ]  Port creation : MPC Live Controller MPC MIDI Port B
[tkgl INFO    ]  Port creation : OpenDeck MIDI 1
[tkgl INFO    ]  Port creation : Virtual MIDI Output 2 Input in
[tkgl INFO    ]  Port creation : TKGL Midi Priv Private
[tkgl INFO    ]    => MPC app Port TKGL Midi Priv Private creation canceled.
[tkgl INFO    ]  Port creation : TKGL Midi Ctrl Private
[tkgl INFO    ]    => MPC app Port TKGL Midi Ctrl Private creation canceled.
[tkgl INFO    ]  Port creation : TKGL Midi Mpc Priv Private
[tkgl INFO    ]    => MPC app Port TKGL Midi Mpc Priv Private creation canceled.
Reducing RLIMIT_DATA from 1923260416 -> 1922654208
[tkgl INFO    ]  hw:0,0,1 (private) substitution by virtual rawmidi successfull
[tkgl INFO    ]  hw:0,0,1 (private) substitution by virtual rawmidi successfull
[tkgl INFO    ]  hw:0,0,0 (public) rawmidi capture successfull
[tkgl INFO    ]  Port creation : Virtual MIDI Input 1 Output out
[tkgl INFO    ]  Port creation : Virtual MIDI Output 1 Input in
**** Audio 44100Hz; 2-in; 6-out; 128sample buffer
**** Warning: inefficient input path: hardware=2 filter=32
**** Warning: inefficient output path: hardware=6 filter=32
WARNING: ClearChannels unoptimized channel count: 30
[tkgl INFO    ]  Midi RAW Event received from MPC PUBLIC
[tkgl INFO    ]  Midi Event received from CTRL MPC
[tkgl TRACE   ]  Source port :  16:0  
[tkgl TRACE   ]  System exclusive         
[tkgl TRACE   ]  F0 7E 00 06 02 47 3B 00 19 00 01 01 01 7F 00 00  | .~...G;.........
[tkgl TRACE   ]  00 00 41 31 31 37 31 32 32 30 36 31 31 36 30 36  | ..A1171220611606
[tkgl TRACE   ]  37 00 F7                                         | 7..
[tkgl TRACE   ]  
[tkgl INFO    ]  Midi RAW Event received from MPC PUBLIC
[tkgl INFO    ]  Midi Event received from CTRL MPC
[tkgl TRACE   ]  Source port :  16:0  
[tkgl TRACE   ]  System exclusive         
[tkgl TRACE   ]  F0 47 7F 3B 64 00 03 00 01 01 F7                 | .G.;d......
[tkgl TRACE   ]  
[tkgl INFO    ]  Midi Event received from CTRL MPC
[tkgl TRACE   ]  Source port :  16:0  
[tkgl TRACE   ]  System exclusive         
[tkgl TRACE   ]  F0 47 7F 3B 64 00 03 01 01 01 F7                 | .G.;d......
[tkgl TRACE   ]  
[tkgl INFO    ]  Midi Event received from CTRL MPC
[tkgl TRACE   ]  Source port :  16:0  
[tkgl TRACE   ]  System exclusive         
[tkgl TRACE   ]  F0 47 7F 3B 64 00 03 02 00 00 F7                 | .G.;d......
[tkgl TRACE   ]  
[tkgl INFO    ]  Midi Event received from CTRL MPC
[tkgl TRACE   ]  Source port :  16:0  
[tkgl TRACE   ]  System exclusive         
[tkgl TRACE   ]  F0 47 7F 3B 64 00 03 03 00 0A F7                 | .G.;d......
[tkgl TRACE   ]  
[tkgl INFO    ]  Midi Event received from CTRL MPC
[tkgl TRACE   ]  Source port :  16:0  
[tkgl TRACE   ]  System exclusive         
[tkgl TRACE   ]  F0 47 7F 3B 41 00 13 00 00 00 00 00 00 00 00 00  | .G.;A...........
[tkgl TRACE   ]  00 00 00 00 00 00 00 00 00 00 F7                 | ...........
[tkgl TRACE   ]  
ButtonStates reply from firmware: {0,0,0,0}
[tkgl INFO    ]  Midi Event received from CTRL MPC
[tkgl TRACE   ]  Source port :  16:0  
[tkgl TRACE   ]  System exclusive         
[tkgl TRACE   ]  F0 7E 00 06 02 47 3B 00 19 00 01 01 01 7F 00 00  | .~...G;.........
[tkgl TRACE   ]  00 00 41 31 31 37 31 32 32 30 36 31 31 36 30 36  | ..A1171220611606
[tkgl TRACE   ]  37 00 F7                                         | 7..
[tkgl TRACE   ]  
[tkgl INFO    ]  Midi RAW Event received from MPC PUBLIC
Reducing RLIMIT_DATA from 1922654208 -> 1921921024
[tkgl INFO    ]  Midi Event received from MPC PRIVATE
[tkgl INFO    ]  Midi RAW Event received from MPC PUBLIC

(...)
[tkgl INFO    ]  Midi Event received from MPC PRIVATE
[tkgl INFO    ]  Midi Event received from MPC PRIVATE
[tkgl INFO    ]  Midi Event received from MPC PRIVATE
[tkgl INFO    ]  Midi RAW Event received from MPC PUBLIC
[tkgl INFO    ]  Midi Event received from MPC PRIVATE
[tkgl INFO    ]  Midi RAW Event received from MPC PUBLIC
[tkgl INFO    ]  Midi Event received from MPC PRIVATE
[tkgl INFO    ]  Midi Event received from MPC PRIVATE
[tkgl INFO    ]  Midi Event received from MPC PRIVATE
[tkgl INFO    ]  Midi Event received from MPC PRIVATE
Reducing RLIMIT_DATA from 1921921024 -> 1921114112

[tkgl INFO    ]  Midi Event received from MPC PRIVATE
[tkgl INFO    ]  Midi Event received from MPC PRIVATE
[tkgl INFO    ]  Midi Event received from MPC PRIVATE
[tkgl INFO    ]  Midi Event received from MPC PRIVATE
Reducing RLIMIT_DATA from 1921114112 -> 1920610304
[tkgl INFO    ]  Midi Event received from MPC PRIVATE
[tkgl INFO    ]  Midi Event received from MPC PRIVATE
[tkgl INFO    ]  Port creation : OpenDeck MIDI 1
[tkgl INFO    ]  Port creation : OpenDeck MIDI 1
Reducing RLIMIT_DATA from 1920610304 -> 1920479232
[tkgl INFO    ]  Midi Event received from MPC PRIVATE
[tkgl INFO    ]  Midi Event received from MPC PRIVATE
[tkgl INFO    ]  Midi Event received from MPC PRIVATE
[tkgl INFO    ]  Midi Event received from MPC PRIVATE
ATE
[tkgl INFO    ]  Midi Event received from MPC PRIVATE
[tkgl INFO    ]  Midi Event received from MPC PRIVATE
[tkgl INFO    ]  Midi Event received from CTRL MPC
[tkgl TRACE   ]  Source port :  16:0  
[tkgl TRACE   ]  Note on                 0  55 127
[tkgl INFO    ]  Midi Event received from MPC PRIVATE
[tkgl INFO    ]  Midi Event received from MPC PRIVATE
[tkgl INFO    ]  Midi Event received from CTRL MPC
[tkgl TRACE   ]  Source port :  16:0  
[tkgl TRACE   ]  Note on                 0  55   0
[tkgl INFO    ]  Midi Event received from MPC PRIVATE
[tkgl INFO    ]  Midi Event received from MPC PRIVATE
[tkgl INFO    ]  Midi Event received from MPC PRIVATE
[tkgl INFO    ]  Midi Event received from MPC PRIVATE
[tkgl INFO    ]  Midi Event received from CTRL MPC
[tkgl TRACE   ]  Source port :  16:0  
[tkgl TRACE   ]  Note on                 0  55 127
[tkgl INFO    ]  Midi Event received from MPC PRIVATE
[tkgl INFO    ]  Midi Event received from CTRL MPC
[tkgl TRACE   ]  Source port :  16:0  
[tkgl TRACE   ]  Note on                 0  55   0
[tkgl INFO    ]  Midi Event received from MPC PRIVATE
[tkgl INFO    ]  Midi Event received from MPC PRIVATE
[tkgl INFO    ]  Midi Event received from CTRL MPC
[tkgl TRACE   ]  Source port :  16:0  
[tkgl TRACE   ]  Note on                 0  55 127
[tkgl INFO    ]  Midi Event received from MPC PRIVATE
[tkgl INFO    ]  Midi Event received from CTRL MPC
[tkgl TRACE   ]  Source port :  16:0  
[tkgl TRACE   ]  Note on                 0  55   0
[tkgl INFO    ]  Midi Event received from MPC PRIVATE
[tkgl INFO    ]  Midi Event received from MPC PRIVATE
[tkgl INFO    ]  Midi Event received from CTRL MPC
[tkgl TRACE   ]  Source port :  16:0  
[tkgl TRACE   ]  Note on                 0  55 127
[tkgl INFO    ]  Midi Event received from MPC PRIVATE
[tkgl INFO    ]  Midi Event received from CTRL MPC
[tkgl TRACE   ]  Source port :  16:0  
[tkgl TRACE   ]  Note on                 0  55   0
[tkgl INFO    ]  Midi Event received from MPC PRIVATE
[tkgl INFO    ]  Midi Event received from MPC PRIVATE
[tkgl INFO    ]  Midi Event received from CTRL MPC
[tkgl TRACE   ]  Source port :  16:0  
[tkgl TRACE   ]  Note on                 0  54 127
[tkgl INFO    ]  Midi Event received from MPC PRIVATE
[tkgl INFO    ]  Midi Event received from CTRL MPC
[tkgl TRACE   ]  Source port :  16:0  
[tkgl TRACE   ]  Note on                 0  54   0
[tkgl INFO    ]  Midi Event received from MPC PRIVATE
[tkgl INFO    ]  Midi Event received from MPC PRIVATE
[tkgl INFO    ]  Midi Event received from MPC PRIVATE
[tkgl INFO    ]  Midi Event received from MPC PRIVATE
[tkgl INFO    ]  Midi Event received from CTRL MPC
[tkgl TRACE   ]  Source port :  16:0  
[tkgl TRACE   ]  Note on                 0  54 127
[tkgl INFO    ]  Midi Event received from MPC PRIVATE
[tkgl INFO    ]  Midi Event received from CTRL MPC
[tkgl TRACE   ]  Source port :  16:0  
[tkgl TRACE   ]  Note on                 0  54   0
[tkgl INFO    ]  Midi Event received from MPC PRIVATE
[tkgl INFO    ]  Midi Event received from MPC PRIVATE
[tkgl INFO    ]  Midi Event received from CTRL MPC
[tkgl TRACE   ]  Source port :  16:0  
[tkgl TRACE   ]  Note on                 0  54 127
[tkgl INFO    ]  Midi Event received from MPC PRIVATE
[tkgl INFO    ]  Midi Event received from CTRL MPC
[tkgl TRACE   ]  Source port :  16:0  
[tkgl TRACE   ]  Note on                 0  54   0
[tkgl INFO    ]  Midi Event received from MPC PRIVATE
[tkgl INFO    ]  Midi Event received from MPC PRIVATE
[tkgl INFO    ]  Midi Event received from CTRL MPC
[tkgl TRACE   ]  Source port :  16:0  
[tkgl TRACE   ]  Note on                 0  55 127
[tkgl INFO    ]  Midi Event received from MPC PRIVATE
[tkgl INFO    ]  Midi Event received from CTRL MPC
[tkgl TRACE   ]  Source port :  16:0  
[tkgl TRACE   ]  Note on                 0  55   0
[tkgl INFO    ]  Midi Event received from MPC PRIVATE
[tkgl INFO    ]  Midi Event received from MPC PRIVATE
[tkgl INFO    ]  Midi Event received from CTRL MPC
[tkgl TRACE   ]  Source port :  16:0  
[tkgl TRACE   ]  Note on                 0  55 127
[tkgl INFO    ]  Midi Event received from MPC PRIVATE
[tkgl INFO    ]  Midi Event received from CTRL MPC
[tkgl TRACE   ]  Source port :  16:0  
[tkgl TRACE   ]  Note on                 0  55   0
[tkgl INFO    ]  Midi Event received from MPC PRIVATE
[tkgl INFO    ]  Midi Event received from MPC PRIVATE
[tkgl INFO    ]  Midi Event received from MPC PRIVATE
[tkgl INFO    ]  Midi Event received from MPC PRIVATE
[tkgl INFO    ]  Midi Event received from MPC PRIVATE
[tkgl INFO    ]  Midi Event received from CTRL MPC
[tkgl TRACE   ]  Source port :  16:0  
[tkgl TRACE   ]  Note on                 0  83 127
[tkgl INFO    ]  Midi Event received from MPC PRIVATE
[tkgl INFO    ]  Midi Event received from MPC PRIVATE
[tkgl INFO    ]  Midi Event received from MPC PRIVATE
[tkgl INFO    ]  Midi Event received from MPC PRIVATE
[tkgl INFO    ]  Midi Event received from MPC PRIVATE
[tkgl INFO    ]  Midi Event received from MPC PRIVATE
[tkgl INFO    ]  Midi Event received from MPC PRIVATE
[tkgl INFO    ]  Midi Event received from CTRL MPC
[tkgl TRACE   ]  Source port :  16:0  
[tkgl TRACE   ]  Note on                 0  83   0
[tkgl INFO    ]  Midi Event received from MPC PRIVATE
[tkgl INFO    ]  Midi Event received from MPC PRIVATE
[tkgl INFO    ]  Midi Event received from MPC PRIVATE
[tkgl INFO    ]  Midi Event received from MPC PRIVATE
[tkgl INFO    ]  Midi Event received from MPC PRIVATE
[tkgl INFO    ]  Midi Event received from CTRL MPC
[tkgl TRACE   ]  Source port :  16:0  
[tkgl TRACE   ]  Note on                 0  83 127
[tkgl INFO    ]  Midi Event received from MPC PRIVATE
[t

[tkgl INFO    ]  Midi Event received from CTRL MPC
[tkgl TRACE   ]  Source port :  16:0  
[tkgl TRACE   ]  Note on                 0  83   0
[tkgl INFO    ]  Midi Event received from MPC PRIVATE
[tkgl INFO    ]  Midi Event received from MPC PRIVATE
[
[tkgl INFO    ]  Midi Event received from MPC PRIVATE
[tkgl INFO    ]  Midi Event received from MPC PRIVATE
[tkgl INFO    ]  Midi Event received from CTRL MPC
[tkgl TRACE   ]  Source port :  16:0  
[tkgl TRACE   ]  Note on                 0  81 127
[tkgl INFO    ]  Midi Event received from MPC PRIVATE
[tkgl INFO    ]  Midi Event received from MPC PRIVATE
[tkgl INFO    ]  Midi Event received from MPC PRIVATE
[tkgl INFO    ]  Midi Event received from CTRL MPC
[tkgl TRACE   ]  Source port :  16:0  
[tkgl TRACE   ]  Note on                 0  81   0
[tkgl INFO    ]  Midi Event received from CTRL MPC
[tkgl TRACE   ]  Source port :  16:0  
[tkgl TRACE   ]  Note on                 0  81 127
[tkgl INFO    ]  Midi Event received from MPC PRIVATE
[tkgl INFO    ]  Midi Event received from CTRL MPC
[tkgl TRACE   ]  Source port :  16:0  
[tkgl TRACE   ]  Note on                 0  81   0
[tkgl INFO    ]  Midi Event received from MPC PRIVATE
[tkgl INFO    ]  Midi Event received from MPC PRIVATE

[tkgl INFO    ]  Midi Event received from MPC PRIVATE
[tkgl INFO    ]  Midi Event received from CTRL MPC
[tkgl TRACE   ]  Source port :  16:0  
[tkgl TRACE   ]  Note on                 9  44  72
[tkgl INFO    ]  Midi RAW Event received from MPC PUBLIC
[tkgl INFO    ]  Midi Event received from CTRL MPC
[tkgl TRACE   ]  Source port :  16:0  
[tkgl TRACE   ]  Polyphonic aftertouch   9  44  23
[tkgl INFO    ]  Midi RAW Event received from MPC PUBLIC
[tkgl INFO    ]  Midi Event received from CTRL MPC
[tkgl TRACE   ]  Source port :  16:0  
[tkgl TRACE   ]  Polyphonic aftertouch   9  44   2
[tkgl INFO    ]  Midi RAW Event received from MPC PUBLIC
[tkgl INFO    ]  Midi Event received from CTRL MPC
[tkgl TRACE   ]  Source port :  16:0  
[tkgl TRACE   ]  Polyphonic aftertouch   9  44   0
[tkgl INFO    ]  Midi Event received from CTRL MPC
[tkgl TRACE   ]  Source port :  16:0  
[tkgl TRACE   ]  Note off                9  44   0
[tkgl INFO    ]  Midi RAW Event received from MPC PUBLIC
[tkgl INFO    ]  Midi Event received from MPC PRIVATE
[tkgl INFO    ]  Midi Event received from CTRL MPC
[tkgl TRACE   ]  Source port :  16:0  
[tkgl TRACE   ]  Note on                 9  46  89
[tkgl INFO    ]  Midi RAW Event received from MPC PUBLIC
[tkgl INFO    ]  Midi Event received from CTRL MPC
[tkgl TRACE   ]  Source port :  16:0  
[tkgl TRACE   ]  Note off                9  46   0
[tkgl INFO    ]  Midi RAW Event received from MPC PUBLIC
[tkgl INFO    ]  Midi Event received from MPC PRIVATE
[tkgl INFO    ]  Midi Event received from MPC PRIVATE
[tkgl INFO    ]  Midi Event received from CTRL MPC
[tkgl TRACE   ]  Source port :  16:0  
[tkgl TRACE   ]  Note on                 9  45  78
[tkgl INFO    ]  Midi RAW Event received from MPC PUBLIC
[tkgl INFO    ]  Midi Event received from CTRL MPC
[tkgl TRACE   ]  Source port :  16:0  
[tkgl TRACE   ]  Polyphonic aftertouch   9  45  42
[tkgl INFO    ]  Midi RAW Event received from MPC PUBLIC
[tkgl INFO    ]  Midi Event received from CTRL MPC
[tkgl TRACE   ]  Source port :  16:0  
[tkgl TRACE   ]  Polyphonic aftertouch   9  45  20
[tkgl INFO    ]  Midi RAW Event received from MPC PUBLIC
[tkgl INFO    ]  Midi Event received from CTRL MPC
[tkgl TRACE   ]  Source port :  16:0  
[tkgl TRACE   ]  Polyphonic aftertouch   9  45   1
[tkgl INFO    ]  Midi RAW Event received from MPC PUBLIC
[tkgl INFO    ]  Midi Event received from CTRL MPC
[tkgl TRACE   ]  Source port :  16:0  
[tkgl TRACE   ]  Polyphonic aftertouch   9  45   0
[tkgl INFO    ]  Midi Event received from CTRL MPC
[tkgl TRACE   ]  Source port :  16:0  
[tkgl TRACE   ]  Note off                9  45   0
[tkgl INFO    ]  Midi RAW Event received from MPC PUBLIC
[tkgl INFO    ]  Midi Event received from MPC PRIVATE
[tkgl INFO    ]  Midi Event received from MPC PRIVATE
[tkgl INFO    ]  Midi Event received from MPC PRIVATE
[tkgl INFO    ]  Midi Event received from MPC PRIVATE
[tkgl INFO    ]  Midi Event received from CTRL MPC
[tkgl TRACE   ]  Source port :  16:0  
[tkgl TRACE   ]  Note on                 0 123 127
[tkgl INFO    ]  Midi Event received from MPC PRIVATE
[tkgl INFO    ]  Midi Event received from CTRL MPC
[tkgl TRACE   ]  Source port :  16:0  
[tkgl TRACE   ]  Note on                 0 123   0
[tkgl INFO    ]  Midi Event received from MPC PRIVATE
[tkgl INFO    ]  Midi Event received from MPC PRIVATE
[tkgl INFO    ]  Midi Event received from MPC PRIVATE
[tkgl INFO    ]  Midi Event received from MPC PRIVATE
[tkgl INFO    ]  Midi Event received from CTRL MPC
[tkgl TRACE   ]  Source port :  16:0  
[tkgl TRACE   ]  Note on                 0  52 127
[tkgl INFO    ]  Midi Event received from CTRL MPC
[tkgl TRACE   ]  Source port :  16:0  
[tkgl TRACE   ]  Note on                 0  52   0
[tkgl INFO    ]  Midi Event received from MPC PRIVATE
[tkgl INFO    ]  Midi Event received from MPC PRIVATE
[tkgl INFO    ]  Midi Event received from MPC PRIVATE
[tkgl INFO    ]  Midi Event received from MPC PRIVATE
[tkgl INFO    ]  Midi Event received from MPC PRIVATE
[tkgl INFO    ]  Midi Event received from MPC PRIVATE
[tkgl INFO    ]  Midi Event received from MPC PRIVATE
[tkgl INFO    ]  Midi Event received from MPC PRIVATE
[tkgl INFO    ]  Midi Event received from MPC PRIVATE
^[[A[tkgl INFO    ]  Midi Event received from MPC PRIVATE
[tkgl INFO    ]  Midi Event received from MPC PRIVATE
[tkgl INFO    ]  Midi Event received from MPC PRIVATE
[tkgl INFO    ]  Midi Event received from MPC PRIVATE
[tkgl INFO    ]  Midi Event received from MPC PRIVATE
[tkgl INFO    ]  Midi Event received from MPC PRIVATE

[tkgl INFO    ]  Midi Event received from MPC PRIVATE
[tkgl INFO    ]  Midi Event received from MPC PRIVATE
[tkgl INFO    ]  Midi RAW Event received from MPC PUBLIC

After using new project MPC freezes with hourglass 

again, nothing from pedal showing up, just internal buttons/pads etc.

This is maximum I got with force os started and LD_PRELOAD command

root@mpc-live:/media/TKGL_BOOTSTRAP/tempdir# LD_PRELOAD=./tkgl_midimapper.so MPCLD_PRELOAD=./tkgl_midima
pper.so MPC --tkplg=./tmm-demo.so --tkplg=./tmm-demo.so --tkport=24:0

__ __| |           |  /_) |     ___|             |           |
  |   __ \   _ \  ' /  | |  / |      _ \ __ \   |      _` | __ \   __|
  |   | | |  __/  . \  |   <  |   |  __/ |   |  |     (   | |   |\__ \
 _|  _| |_|\___| _|\_\_|_|\_\\____|\___|_|  _| _____|\__,_|_.__/ ____/
[tkgl INFO    ]  ---------------------------------------------------------
[tkgl INFO    ]  TKGL_MIDIMAPPER Version : BETA2
[tkgl INFO    ]  (c) The KikGen Labs.
[tkgl INFO    ]  https://github.com/TheKikGen/MPC-LiveXplore
[tkgl INFO    ]  ---------------------------------------------------------
[tkgl INFO    ]  MPC args : --tkplg=./tmm-demo.so --tkplg=./tmm-demo.so --tkport=24:0 
[tkgl INFO    ]  
[tkgl INFO    ]  --tkplg specified. File ./tmm-demo.so will be used for midi mapping
[tkgl INFO    ]  --tkplg specified. File ./tmm-demo.so will be used for midi mapping
[tkgl INFO    ]  --tkport specified. Midi Seq port (24:0) will be captured
[tkgl INFO    ]  Product code : ACV8 (MPC Live)
[tkgl INFO    ]  Midi mapping ./tmm-demo.so library succefully loaded.
[tkgl INFO    ]  Welcome to the MPC Midimapper demo by the Kikgen Labs
[tkgl INFO    ]  MPC controller Private hardware port Alsa name is hw:0,0,1. Sequencer id is 16:1.
[tkgl INFO    ]  MPC controller Public  hardware port Alsa name is hw:0,0,0. Sequencer id is 16:0.
[tkgl INFO    ]  External midi controller name is OpenDeck OpenDeck MIDI 1 on port (24:0).
[tkgl INFO    ]  Port creation : Virtual RawMIDI
[tkgl INFO    ]  Port creation : Virtual RawMIDI
[tkgl INFO    ]  Virtual rawmidi private input port 138:0  created.
[tkgl INFO    ]  Virtual rawmidi private output port 139:0 created.
[tkgl INFO    ]  Port creation : Priv Private
[tkgl INFO    ]  Port creation : Ctrl Private
[tkgl INFO    ]  Port creation : Mpc Priv Private
[tkgl INFO    ]  Port creation : _OpenDeck MIDI 1
[tkgl INFO    ]  Midi Router created as client 140.
[tkgl INFO    ]  MPC hardware Private Out (16:1) connected to Router Hw Private IN (140:0).
[tkgl INFO    ]  Router HW Private Out (140:2) connected to MPC hardware Private In (16:1).
[tkgl INFO    ]  MPC App virtual rawmidi private Out (139:0) connected to Router MPC app Private in (140:0).
[tkgl INFO    ]  Router MPC app Private out (140:0) connected to MPC App virtual rawmidi private IN (138:0).
[tkgl INFO    ]  Ext controller port (24:0) connected to Router controller port in (140:1).
[tkgl INFO    ]  Router controller port in (140:1) connected to Ext controller port (24:0).
[tkgl INFO    ]  Midi router thread started. Waiting for events...
Aborted (core dumped)
TheKikGen commented 1 year ago

[tkgl ***ERROR] External midi controller name not found for port (24:0), and will be ignored

1/ Plug your controller before launching the command line. It was not found at 24:0 port. 2/ Do not use the "new" project when working with a command line. Use CTRL+ C to stop and restart 3/ Try with another controller.

I also use a MPC LIVE for my own tests. it should work. I see that your controller is connected to the TKGL internal router. When everythng will be ok with the small demo plugin, we'll switch to next seq plugin. So use the tmm-demo.so for now and forget the tmm-demoForceNextSeq.so (use the correct command line).

root@mpc-live:/media/TKGL_BOOTSTRAP/tempdir# LD_PRELOAD=./tkgl_midimapper.so MPC --tkplg=./tmm-demo.so --tkport=24:0

And don't forget to stop the MPC service with "systemctl stop inmusic-mpc" command before starting to hack (once after ssh connection is enough).

Potreba commented 1 year ago

I'm using 3.1.3 rootfs force. Once Start MPC. Insert SD

cd /media/TKGL_BOOTSTRAP/tempdir

systemctl stop inmusic-mpc

LD_PRELOAD=./tkgl_midimapper.so MPC --tkplg=./tmm-demo.so --tkport=20:0

Normal MPC starts

I could get

[tkgl INFO ] Midi Event received from CTRL EXT

But LD_PRELOAD starts normal MPC not force. Also my controller can take different number. 20 or 24 this is potentially critical issue

Potreba commented 1 year ago

LD_PRELOAD=./tkgl_midimapper.so MPC tmm-demoForceNextSeq.so --tkport=24:0

Does start normal mpc. When I use systemctl stop inmusic-mpc , then systemctl start inmusic-mpc I can get to force os, but LD_PRELOAD=./tkgl_midimapper.so MPC tmm-demoForceNextSeq.so --tkport=24:0 doesn't do anything

Unfortunately I have to use 3.1.3 for the time, because my projects wont open with 3.2 as they're too heavy on RAM. I might try newer firware but I'm not sure it will help.

Maybe you could update rootfs to 3.2.3 ? Who knows, maybe it will open my projects. Also wanted to try mpc import feature.

TheKikGen commented 1 year ago

For now, we are trying to make things to work . It is the case with the demo plugin.
You got the Midi Event received from CTRL EXT message. That means your controller is captured by Midimapper. Good news. Secondly, if you plug your controller before starting your MPC, it Will keep the same port.

I realized that you own a Live and you wanted to run IamForce with the next seq mod. Not possible for the moment. The next seq works on a native Force environnement (I own both MPC Live and Force).

The IamFore V1 is not compatible with Midimapper . I'm writing an IamForce v2 that will be a plugin of Midimapper.

Currently I am porting code from Mpcmapper to Midimapper. The first controller target will be the Launchpad Mini mk3. No more configuration file as it is to slow and consume memory. All will be coded in C language.

Potreba commented 1 year ago

Understood. Well, I'll be eagerly waiting for this new version then. Thank you for the effort

TheKikGen commented 1 year ago

A first release has been pushed into the repo. I covered almost all Force buttons.