Go Back   Cockos Incorporated Forums > REAPER Forums > REAPER Developer Forum

Reply
 
Thread Tools Display Modes
Old 12-02-2015, 04:35 AM   #281
maranite
Human being with feelings
 
Join Date: Apr 2015
Posts: 8
Default Thanks Xenakios

Xenakios - thanks for your response. Over the past few months, I've studied the SWS source code and managed to produce an extension of my own, but right now I'm stumped...

Is there any way for a reaper extension to:

1) Enumerate the bindings of MIDI CC's to FX parameters for a track?
and/or
2) Intercept in-bound MIDI messages on an open MidiInput, and transmit messages on an in-use MidiOutput?


My use case:
============

Like most MIDI controllers, the Arturia Keylab's driver presents a MIDI in & out port, which reapers uses to communicate with the board.

I want my extension to detect that a knob movement (MIDI CC) is affecting an FX Parameter, so that when automation events / track selection changes occur, that my extension can transmit back to the keyboard what the new "positions" (CC values) for each knob are.

To achieve this, the extension needs:

1) To know what FX parameter is bound to a given Midi CC, for each track.
2) To be able to transmit Midi messages back to the keyboard when an appropriate OSC event occurs.


If there's a different / better way to achieve the desired outcome (i.e. communicating with the board as if it was a bi-directional control surface), I'd love to hear the suggestions.
maranite is offline   Reply With Quote
Old 04-25-2016, 01:38 PM   #282
Renoized
Human being with feelings
 
Join Date: Apr 2016
Posts: 15
Default

Is there any way to ignore play/pause commands?
Renoized is offline   Reply With Quote
Old 09-01-2016, 06:26 PM   #283
trigger303
Human being with feelings
 
Join Date: Nov 2015
Posts: 13
Default Can I send / receive on Fx?

Hi.

I'd like to exchange audio / MIDI between Fx and Tracks.


So, is Fx able to -

- send audio / MIDI to other track?

- fetch audio / MIDI from other track's output channel?


Best regards,

--
trigger303
trigger303 is offline   Reply With Quote
Old 01-18-2017, 05:06 PM   #284
SpiderFox
Human being with feelings
 
Join Date: Jan 2017
Posts: 29
Default

How can I execute a function directly after Reaper was fully loaded?
SpiderFox is offline   Reply With Quote
Old 01-18-2017, 07:09 PM   #285
Xenakios
Human being with feelings
 
Xenakios's Avatar
 
Join Date: Feb 2007
Location: Oulu, Finland
Posts: 6,556
Default

Quote:
Originally Posted by SpiderFox View Post
How can I execute a function directly after Reaper was fully loaded?
That will probably involve some hack with a timer and hoping it will work correctly most of the time. (There is no timer in the Reaper API, you will have to use the operating system API for that.)
__________________
For info on SWS Reaper extension plugin (including Xenakios' previous extension/actions) :
http://www.sws-extension.org/
https://github.com/Jeff0S/sws
--
Xenakios blog (about HourGlass and λ) :
http://xenakios.wordpress.com/
Xenakios is online now   Reply With Quote
Old 01-18-2017, 08:25 PM   #286
karbomusic
Human being with feelings
 
karbomusic's Avatar
 
Join Date: May 2009
Posts: 18,797
Default

Typically in windows GUIs there is a 'loaded' event. I'm assuming the API doesn't expose it but to call a function as soon as fully loaded, that's the way to do it.
__________________
Your whole life people will tell you what you can't do. Getting past them is the first step to actually getting things done.
karbomusic is online now   Reply With Quote
Old 01-18-2017, 08:56 PM   #287
Xenakios
Human being with feelings
 
Xenakios's Avatar
 
Join Date: Feb 2007
Location: Oulu, Finland
Posts: 6,556
Default

Quote:
Originally Posted by karbomusic View Post
Typically in windows GUIs there is a 'loaded' event. I'm assuming the API doesn't expose it but to call a function as soon as fully loaded, that's the way to do it.
The API does expose the Reaper main window HWND, so maybe something can be done with that, but argh...What a pain. Also there's no guarantee what works on Windows can easily be made to work on macOS too.

IMHO the Reaper API overall should get more callback/event style functionality. (Also for ReaScript.)
__________________
For info on SWS Reaper extension plugin (including Xenakios' previous extension/actions) :
http://www.sws-extension.org/
https://github.com/Jeff0S/sws
--
Xenakios blog (about HourGlass and λ) :
http://xenakios.wordpress.com/
Xenakios is online now   Reply With Quote
Old 08-13-2017, 12:29 PM   #288
millitone
Human being with feelings
 
Join Date: Nov 2011
Posts: 8
Default

TL;DR. The name of the extension matters. Call your extension "reaper_YourNameHere.dll", or it won't run.

I tried to create my own extension from scratch based on the "ninjamloop" code, and spent hours trying to make it just do *something* - so I changed every bit of the code and every setting in VS to match the ninjamloop code, which ran perfectly btw, and my own project seemingly did not run at all.

So I tried to copy the structure of Xenakios reaper_juce_extension project, which also ran perfectly - and my dll still did not. Very strange.

When I FINALLY understood that reaper only loads dll's with "reaper_" as prefix I think I wanted to throw the computer out the window.. <- (that's a forced smiley!)
millitone 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 07:28 AM.


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