Old 02-02-2018, 04:52 PM   #1
pipelineaudio
Mortal
 
pipelineaudio's Avatar
 
Join Date: Jan 2006
Location: Wickenburg, Arizona
Posts: 13,170
Default Action to send MIDI CC# + Value?

Is there any way to make an action to send a MIDI CC# and value?
__________________
REAPER Shirts are Back! - https://shop.spreadshirt.com/pipelineaudio/
pipelineaudio is offline   Reply With Quote
Old 02-03-2018, 08:06 AM   #2
Allspice
Human being with feelings
 
Allspice's Avatar
 
Join Date: Apr 2017
Posts: 151
Default

Well there is a function in the ReaScript API called StuffMidiMessage. What are you trying to do?

From ExtremRaym’s site
Code:
void StuffMIDIMessage(int mode, int msg1, int msg2, int msg3)
StuffMIDIMessage(int mode, int msg1, int msg2, int msg3)
reaper.StuffMIDIMessage(integer mode, integer msg1, integer msg2, integer msg3)
RPR_StuffMIDIMessage(Int mode, Int msg1, Int msg2, Int msg3)
Description:

Stuffs a 3 byte MIDI message into either the Virtual MIDI Keyboard queue, or the MIDI-as-control input queue. mode=0 for VKB, 1 for control (actions map etc), 2 for VKB-on-current-channel; 16 for external MIDI device 0, 17 for external MIDI device 1, etc; see GetNumMIDIOutputs, GetMIDIOutputName.
Allspice is offline   Reply With Quote
Old 02-03-2018, 08:40 PM   #3
pipelineaudio
Mortal
 
pipelineaudio's Avatar
 
Join Date: Jan 2006
Location: Wickenburg, Arizona
Posts: 13,170
Default

For one thing Id like to send Channel 1 CC10 value 0 from an action
__________________
REAPER Shirts are Back! - https://shop.spreadshirt.com/pipelineaudio/
pipelineaudio is offline   Reply With Quote
Old 05-24-2018, 08:32 AM   #4
jimosity
Human being with feelings
 
Join Date: Jul 2007
Location: Cincinnati, Ohio
Posts: 21
Default

I'm looking for an answer for this as well...anybody find a way yet?
jimosity is offline   Reply With Quote
Old 05-24-2018, 08:54 AM   #5
mpl
Human being with feelings
 
mpl's Avatar
 
Join Date: Oct 2013
Location: Moscow, Russia
Posts: 2,467
Default

Code:
MIDIChannel = 0
CC= 0
CC_value= 100
reaper.StuffMIDIMessage( 0, 0xB0 + string.format("%x", MIDIChannel ), CC, CC_value)
__________________
SoundCloud | MPL Scripts discussion | ReaPack | Donate
mpl is offline   Reply With Quote
Old 06-07-2018, 11:54 PM   #6
Smokehead
Human being with feelings
 
Join Date: Sep 2016
Posts: 7
Default

Could this be the way how i could start controlling for example the Allen & Heath QU-16?

Is it possible to trigger these custom actions on standard DAW-Controls/Buttons/Menus/and so on..?

I'd like to synchronize the QU-16 with Reaper without having the need of the DAW-Control-Mode on the QU-16. Therefore i need to map all actions on the custom MIDI-Messages A&H provides for controlling the console.

I'd like to synchronize it the other way around too.. Including transmission of the channel name, etc.

Is it possible to script the whole MIDI-Actions and Mapping like OSC actions? Would be nice to have a channel setup in Reaper with Compressor, LowPass, 4-Band PEQ, Gate which matches all actions on the console including bypassing and fader-movement.

For all these actions there is an additional message sent from the QU-16. I want to map these actions bidirectionally.

Thanks for your answer.

Best regards,

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


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