Old 04-13-2019, 11:37 AM   #1
Human being with feelings
Join Date: Nov 2016
Posts: 34
Default get_device_open_time

Hi there

I can't get "get_device_open_time" to work properly. Is there any examples for this that I have missed?

The idea is to check when Reaper is opened and if certain time has passed, do some stuff. I got it working when detecting my midi controller, but it seems it can't detect when Reaper is open. I tried this:

@input hw_input MIDI "mycontroller"
@input osc_input OSC "" // Reaper
@output hw_output MIDI "mycontroller"
@output osc_output OSC "" 1024 0 // Reaper


( ((get_device_open_time(hw_output)-start_time) > 0) && (lock==0) ) ? (
printf("\nDEVICE OPEN");


start_time = time;

But as I say, if I substitute "hw_input" with "osc_input" this code is not working. Any ideas what am I doing wrong?
Kaitain is offline   Reply With Quote

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 04:05 AM.

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