Brandon Invergo (6305d364) at 28 Nov 23:29
Update ChangeLog
Brandon Invergo (0d74e350) at 28 Nov 23:22
Fix silly arithmetic mistake in note name generation.
Hi Brandon,
i send you the init.scm for RigKontrol3 as far i could get it to work, what i didnt manage to work is to send a cc via button-1 and not a bank change. Maybe you can help with this ? Fell free to add it to the contribution.
have a nice day.
Cheers Guido
(use-modules (librekontrol core) (librekontrol device) (librekontrol input) (librekontrol alsa) (librekontrol midi) ((librekontrol devices ni-rk3) #:prefix rk3:))
(configure-device #:alsa-name rk3:alsa-name #:input-name rk3:input-name #:idle-wait 120000 #:remap-events ( list (make-input-event ev-key key-5) (make-input-event ev-key key-6) (make-input-event ev-key key-7) (make-input-event ev-key key-8) (make-input-event ev-key key-1) (make-input-event ev-key key-2) (make-input-event ev-key key-3) (make-input-event ev-key key-4) (make-input-event ev-key key-9) (make-input-event ev-abs abs-z) )
#:controls ( list (list rk3:button-1 (make-midi-note-button-toggle) #:note 'note-d3)
(list rk3:button-2 (make-midi-note-button-toggle)
#:note 'note-d3)
(list rk3:button-3 (make-midi-note-button-toggle)
#:note 'note-e3)
(list rk3:button-4 (make-midi-note-button-toggle)
#:note 'note-f3)
(list rk3:button-5 (make-midi-note-button-toggle)
#:note 'note-g3)
(list rk3:button-6 (make-midi-note-button-toggle)
#:note 'note-a3)
(list rk3:button-7 (make-midi-note-button-toggle)
#:note 'note-b3)
(list rk3:button-8 (make-midi-note-button-toggle)
#:note 'note-c4)
;; pedal knpb (list rk3:pedal remap-button #:event-code key-9) ;; pedal (list rk3:expression midi-control-abs-knob #:control 'foot-controller #:knob-max (rk3:trs-max)) )
"init.scm" 70 lines, 2325 characters
cat setup-sh (uinput) ls -l /dev/uinput chgrp input /dev/uinput chmod g+rw /dev/uinput ls -l /dev/uinput
On Mon, Nov 29, 2021 at 5:19 PM Brandon Invergo (@brandoninvergo) < gitlab@mg.gitlab.com> wrote:
Brandon Invergo https://gitlab.com/brandoninvergo commented on a discussion #9 (comment 746593876):
Hi Guido, To send MIDI events, you should use the midi-note-button callback, e.g.:
(configure-device ... #:controls (list (list rk3:button-1 midi-note-button #:note 'note-d3) (list rk3:pedal-in-1 midi-control-abs-knob #:control 'foot-controller #:knob-max (rk3:trs-max)) ...) ...)
See: https://www.librekontrol.org/manual/Callbacks.html Don't forget to add (librekontrol midi) to your list of modules.
Presently, Librekontrol uses low-level the ALSA MIDI interface. If you're using Jack, you will probably have to use a2jmidid to make the ALSA MIDI ports available in Jack. Unfortunately, I cannot provide help with that. I started implementing Jack MIDI support over the summer but, as mentioned, I have not had time to work on anything recently so it remains incomplete.
— Reply to this email directly or view it on GitLab #9 (comment 746593876). You're receiving this email because of your account on gitlab.com. If you'd like to receive fewer emails, you can unsubscribe https://gitlab.com/-/sent_notifications/REDACTED/unsubscribe from this thread or adjust your notification settings.
Good morning Brandon,
i got it running this morning with reaper via jack. ReaControlMIdi shows the input. The keypresses on rigKontoil3 show up also here in typing this message :-) 5616 i think tis is somehow related to uinput which i chgrp to input and mod to g+rw.
thank you for your support.
Cheers Guido
On Mon, Nov 29, 2021 at 5:19 PM Brandon Invergo (@brandoninvergo) < gitlab@mg.gitlab.com> wrote:
Brandon Invergo https://gitlab.com/brandoninvergo commented on a discussion #9 (comment 746593876):
Hi Guido, To send MIDI events, you should use the midi-note-button callback, e.g.:
(configure-device ... #:controls (list (list rk3:button-1 midi-note-button #:note 'note-d3) (list rk3:pedal-in-1 midi-control-abs-knob #:control 'foot-controller #:knob-max (rk3:trs-max)) ...) ...)
See: https://www.librekontrol.org/manual/Callbacks.html Don't forget to add (librekontrol midi) to your list of modules.
Presently, Librekontrol uses low-level the ALSA MIDI interface. If you're using Jack, you will probably have to use a2jmidid to make the ALSA MIDI ports available in Jack. Unfortunately, I cannot provide help with that. I started implementing Jack MIDI support over the summer but, as mentioned, I have not had time to work on anything recently so it remains incomplete.
— Reply to this email directly or view it on GitLab #9 (comment 746593876). You're receiving this email because of your account on gitlab.com. If you'd like to receive fewer emails, you can unsubscribe https://gitlab.com/-/sent_notifications/REDACTED/unsubscribe from this thread or adjust your notification settings.
Hi Brandon,
Thank you ill try it tomorrow. Cheers Guido
Brandon Invergo (@brandoninvergo) gitlab@mg.gitlab.com schrieb am Mo., 29. Nov. 2021, 17:19:
Brandon Invergo https://gitlab.com/brandoninvergo commented on a discussion #9 (comment 746593876):
Hi Guido, To send MIDI events, you should use the midi-note-button callback, e.g.:
(configure-device ... #:controls (list (list rk3:button-1 midi-note-button #:note 'note-d3) (list rk3:pedal-in-1 midi-control-abs-knob #:control 'foot-controller #:knob-max (rk3:trs-max)) ...) ...)
See: https://www.librekontrol.org/manual/Callbacks.html Don't forget to add (librekontrol midi) to your list of modules.
Presently, Librekontrol uses low-level the ALSA MIDI interface. If you're using Jack, you will probably have to use a2jmidid to make the ALSA MIDI ports available in Jack. Unfortunately, I cannot provide help with that. I started implementing Jack MIDI support over the summer but, as mentioned, I have not had time to work on anything recently so it remains incomplete.
— Reply to this email directly or view it on GitLab #9 (comment 746593876). You're receiving this email because of your account on gitlab.com. If you'd like to receive fewer emails, you can unsubscribe https://gitlab.com/-/sent_notifications/REDACTED/unsubscribe from this thread or adjust your notification settings.
Hi Guido,
To send MIDI events, you should use the midi-note-button
callback, e.g.:
(configure-device
...
#:controls (list (list rk3:button-1 midi-note-button
#:note 'note-d3)
(list rk3:pedal-in-1 midi-control-abs-knob
#:control 'foot-controller #:knob-max (rk3:trs-max))
...)
...)
See: https://www.librekontrol.org/manual/Callbacks.html
Don't forget to add (librekontrol midi)
to your list of modules.
Presently, Librekontrol uses the low-level ALSA MIDI interface. If you're using Jack, you will probably have to use a2jmidid to make the ALSA MIDI ports available in Jack. Unfortunately, I cannot provide help with that. I started implementing Jack MIDI support over the summer but, as mentioned, I have not had time to work on anything recently so it remains incomplete.
Hallo Brandon,
Thanks a ton for your hint with this i setup the config. Now the buttons ,leds and pedal are working. One question would it be possible to give an example how to translate the captured key presses to midi command? Press key to midi?
Thank you for your great work.
Cheers Guido
Am Montag, 29. November 2021 schrieb g schasie gschasie@gmail.com:
Hello Brandon,
Thanks for your reply. I will try it . I think i have overlooked to import the mk3 to init.
Cheers Guido
Am Montag, 29. November 2021 schrieb Brandon Invergo (@brandoninvergo) < gitlab@mg.gitlab.com>:
Brandon Invergo https://gitlab.com/brandoninvergo commented #9 (comment 746144489):
Hello Guido,
I copied ni-rk3.scm to $HOME/.config/librekontrol/init.scm
ni-rk3.scm is a Scheme module that is to be loaded by your initialization script. So, you should not copy it to init.scm, but rather you need to write an init.scm file that imports ni-rk3.
I recommend reading the "Getting Started" section of the manual https://www.librekontrol.org/manual/Getting-Started.html#Getting-Started, which includes a detailed tutorial. The tutorial is for the Audio Kontrol 1, but the same principles apply to setting up the Rig Kontrol 3. You will also need the specific Rig Kontrol 3 device definitions https://www.librekontrol.org/manual/Native-Instruments-Rig-Kontrol-3.html#Native-Instruments-Rig-Kontrol-3 (which are what the file ni-rk3.scm provides).
You can also look in the examples directory in the source code for a couple AK1 configurations, one of which I use on a daily basis (the playerctl one).
Please note that I do not have an RK3 so I have never tested that specific device. You might find the pedal unsatisfying because Librekontrol does not yet have a "debounce" method, so such controls feel a bit "jumpy". I have not had time to work on Librekontrol lately, so I haven't been able to fix that. Anyway, if you make an init.scm for the RK3 that works, it would be great if you could offer it for inclusion in the LibreKontrol source distribution as an example.
— Reply to this email directly or view it on GitLab #9 (comment 746144489).
You're receiving this email because of your account on gitlab.com. If you'd like to receive fewer emails, you can unsubscribe https://gitlab.com/-/sent_notifications/REDACTED/unsubscribe from this thread or adjust your notification settings.
Hello Brandon,
Thanks for your reply. I will try it . I think i have overlooked to import the mk3 to init.
Cheers Guido
Am Montag, 29. November 2021 schrieb Brandon Invergo (@brandoninvergo) < gitlab@mg.gitlab.com>:
Brandon Invergo https://gitlab.com/brandoninvergo commented #9 (comment 746144489):
Hello Guido,
I copied ni-rk3.scm to $HOME/.config/librekontrol/init.scm
ni-rk3.scm is a Scheme module that is to be loaded by your initialization script. So, you should not copy it to init.scm, but rather you need to write an init.scm file that imports ni-rk3.
I recommend reading the "Getting Started" section of the manual https://www.librekontrol.org/manual/Getting-Started.html#Getting-Started, which includes a detailed tutorial. The tutorial is for the Audio Kontrol 1, but the same principles apply to setting up the Rig Kontrol 3. You will also need the specific Rig Kontrol 3 device definitions https://www.librekontrol.org/manual/Native-Instruments-Rig-Kontrol-3.html#Native-Instruments-Rig-Kontrol-3 (which are what the file ni-rk3.scm provides).
You can also look in the examples directory in the source code for a couple AK1 configurations, one of which I use on a daily basis (the playerctl one).
Please note that I do not have an RK3 so I have never tested that specific device. You might find the pedal unsatisfying because Librekontrol does not yet have a "debounce" method, so such controls feel a bit "jumpy". I have not had time to work on Librekontrol lately, so I haven't been able to fix that. Anyway, if you make an init.scm for the RK3 that works, it would be great if you could offer it for inclusion in the LibreKontrol source distribution as an example.
— Reply to this email directly or view it on GitLab #9 (comment 746144489). You're receiving this email because of your account on gitlab.com. If you'd like to receive fewer emails, you can unsubscribe https://gitlab.com/-/sent_notifications/REDACTED/unsubscribe from this thread or adjust your notification settings.
Hello Guido,
I copied ni-rk3.scm to $HOME/.config/librekontrol/init.scm
ni-rk3.scm is a Scheme module that is to be loaded by your initialization script. So, you should not copy it to init.scm, but rather you need to write an init.scm file that imports ni-rk3.
I recommend reading the "Getting Started" section of the manual, which includes a detailed tutorial. The tutorial is for the Audio Kontrol 1, but the same principles apply to setting up the Rig Kontrol 3. You will also need the specific Rig Kontrol 3 device definitions (which are what the file ni-rk3.scm provides).
You can also look in the examples
directory in the source code for a couple AK1 configurations, one of which I use on a daily basis (the playerctl one).
Please note that I do not have an RK3 so I have never tested that specific device. You might find the pedal unsatisfying because Librekontrol does not yet have a "debounce" method, so such controls feel a bit "jumpy". I have not had time to work on Librekontrol lately, so I haven't been able to fix that. Anyway, if you make an init.scm for the RK3 that works, it would be great if you could offer it for inclusion in the LibreKontrol source distribution as an example.
Hello Brandon,
thank you for this application.
I followed the setup advise and got librekontrol
compiled.
I use ubuntu studio 20.04.
5.11.0-40-lowlatency #44~20.04.2-Ubuntu SMP PREEMPT Tue Oct 26 19:27:49 UTC 2021 x86_64 x86_64 x86_64 GNU/Linux
I copied ni-rk3.scm to $HOME/.config/librekontrol/init.scm
the uinput seems to part of kernel. ls -l /dev/uinput crw------- 1 root root 10, 223 Nov 28 15:05 /dev/uinput
/etc/udev/rules.d/99-librekontrol.rules KERNEL=="uinput", "GROUP="input", MODE="0660"
Starting librekontrol
from terminal returns to prompt with no error.
I have no clue on how i have ti setuo the system to get it run as input midi device fopr Reaper or on Carla.
Can you please advise to get it run with rigKontrol3 ?
Thank you Guido
It looks like you need to create a configuration file. Please read the documentation, which has an extensive tutorial.
Hi Raymond,
It should be sufficient to run autoreconf -fvi
in a fresh clone of the repository. If that doesn't work, please share the error messages here. Maybe an autoconf/automake version problem?
Hey Brandon,
Trying to get started here. Figured the first thing I would do is get your update. Tried to just grab the Git project, but it looks like I will have to do the install tar instead. I have been scouring the web, but no combination of mish mash advice will allow me to build from the project. autoconfig gives me errors. aclocal gives me errors. autoreconfig -i gives me errors. Just though I would mention it. Its not clear what the path to a Git build/install would look like. Will grab the new update from the website. I'll try not to bombard you with emails, but here I go... Weee!
Cheers,
Raymond Stewart
portfolio) link
LinkedIn) link
resume) link
cel) 678-362-4994
skype) rts324
Happens to the best of us. I'm a Python guy. I have produced many epic blunders in that language..
Cheers,
Raymond Stewart
portfolio) link
LinkedIn) link
resume) link
cel) 678-362-4994
skype) rts324
Configuring RK3 to toggle midi notes on switch presses, any switch configured to send note-b4 will exception. I have sent other notes from note-a4 to note-b5 with success. May be other failing notes outside that range. If I configure different switches to send note-b4, they will fail even though they otherwise succeed when configured to send different notes. Exception included in the image below.
Brandon Invergo (a2b42bb3) at 29 Jun 20:35
Update ChangeLog
Brandon Invergo (a2b42bb3) at 29 Jun 20:35
Update ChangeLog
Brandon Invergo (fbe748a8) at 29 Jun 20:30
Fix documentation references to midi-note symbols
This may well be the most embarrassing bug I have ever produced. I'm too embarrassed to talk about it!
Fixed in e88c8969
hangs head in shame
Brandon Invergo (e88c8969) at 29 Jun 20:28
Fix typo that omitted "b" notes!