Go Back   Cockos Incorporated Forums > REAPER Forums > REAPER for Live Use

Reply
 
Thread Tools Display Modes
Old 09-24-2017, 02:34 AM   #1
mschnell
Human being with feelings
 
mschnell's Avatar
 
Join Date: Jun 2013
Location: Krefeld, Germany
Posts: 14,785
Default (Re)Connect USB midi interface on the fly

I just got a new keyboard to go with my Live setup. It is a Kawai VPC 1. Same features a "software"-power on pushbutton, and it can be programmed to power off automatically after a definable non-usage time (or never). But it can't be configured to power on automatically when the power (via USB) is applied, which IMHO is very silly.

Now for a Live situation I power of the setup by a main switch. Everything starts automatically (including the embedded PC running Reaper). Only the VPC 1 stays asleep.

If I am not quick enough pushing the power button of the keyboard, Reaper will start before the appropriate USB-Midi port appears in the OS (Windows).

Accordingly Reaper will not see it and will never receive any Midi from the keyboard.

Is there any way to configure Reaper (or add some script) to re-try attaching to the midi ports necessary for the setup ?

(I do know that this had been impossible with Win XP, but with Win greater than 7, the OSes USB handling is improved so that a program can re-try a device attached by USB.)

Thank a lot,
-Michael
mschnell is offline   Reply With Quote
Old 09-24-2017, 03:14 AM   #2
cfillion
Human being with feelings
 
cfillion's Avatar
 
Join Date: May 2015
Location: Québec, Canada
Posts: 4,968
Default

Action: Reset all MIDI devices? I have it assigned to a shortcut since it comes handy so often with USB devices...

You could make a script to run this action automatically after everything is up and running, or some amount of time.

Last edited by cfillion; 09-24-2017 at 03:20 AM.
cfillion is offline   Reply With Quote
Old 09-24-2017, 05:10 AM   #3
mschnell
Human being with feelings
 
mschnell's Avatar
 
Join Date: Jun 2013
Location: Krefeld, Germany
Posts: 14,785
Default

Thanks a lot !

This does work (for testing, I added the action to the file menu).

Now the next question is how to integrate it in my live setup.

While I already did write some thousand lines of JSFX code, I have no idea about ReaScript, so please pardon my ignorance

With m live setup I don't have any PC keyboard, mouse or monitor so no chance to use menus or shortcuts.

I supposedly would need to do a functionality that monitors the input from the midi device and if nothing is detected fire the action.

I could easily integrate the detection in my set of midi handling JSFXes and in case of danger e.g. send out a Midi event. Same could be routed towards the ReaScript engine by "MidiToReaControlPath". But I am lost thinking about how such a midi message would fire the action. In fact I could use LiveConfigs for this as I do know that same is able to detect midi events and fire actions, but this does not seem very appropriate...

Any ideas ?

Thanks again,
-Michael

Last edited by mschnell; 09-24-2017 at 05:27 AM.
mschnell is offline   Reply With Quote
Old 09-24-2017, 05:14 AM   #4
eliot
Human being with feelings
 
Join Date: Jun 2016
Location: Manchuria
Posts: 31
Default

I'm not OP, but I had the exact same problem. Thanks much.
eliot is offline   Reply With Quote
Reply

Thread Tools
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 -7. The time now is 12:10 AM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.