Old 05-03-2008, 10:11 AM   #1
xackley
Human being with feelings
 
Join Date: Feb 2007
Location: Kitchen table, next to frig
Posts: 1,179
Default Audio Vol to CC

Edit: Updated with cute stuff in post #5


This script converts audio from selected channel 1 thru 4 and converts the input to a CC.

It can also Invert, Compress, Smooth.

I have been trying it out with drums (audio) controlling expression in the B4 organ, I think I got some nice results.

I also tried it out with MIDI Yoke and a CC keyboard mapping to a Track Volume control, and successfully recorded automation.

For this to be really useful, you should have MIDI Yoke install. Otherwise there is a puzzle of how to record the JS MIDI output and the keyboard input at the same time.
It can be done without yoke, I found if I put this js on the input Audio track, I could record the JS MIDI output, then copy the Item that contain the CC recording to the VSTi MIDI input Track. Without the Yoke, you have to create a midi send to the VSTi track to here the results While recording.

The midisend code was taken from IX/MIDI_CCRider.

Let me know if you have any thoughts or find any problems.
Also let me know if I re-invented the wheel, again.

Thank you
Don
Attached Files
File Type: txt MIDI_Audio_Vol_to_CC_v1.0.txt (7.6 KB, 545 views)
__________________
^^^^^^^^^^
https://soundcloud.com/user-463176271

Last edited by xackley; 05-04-2008 at 09:09 AM.
xackley is offline   Reply With Quote
Old 05-03-2008, 01:25 PM   #2
plamuk
Human being with feelings
 
Join Date: Feb 2007
Posts: 3,221
Default

nice work.
i find this VERY useful for "stacking" instruments

say i have a guitar track and i then compose the same melody as MIDI. same timing, so it's basically just a layer
apply an appropriate vsti, and then use this JS cc plugin set to cc 7, Volume

assuming the samples/synth from your VST are fairly "solid" shaped, you now are able to seize an aspect of the dynamics of your recorded guitar and apply to your vst...

thanks for this.
plamuk is offline   Reply With Quote
Old 05-03-2008, 03:23 PM   #3
aldi
Human being with feelings
 
aldi's Avatar
 
Join Date: Jun 2006
Posts: 970
Default

cool, this is just what i searched for yesterday thx
__________________
REAPER is FANTASTIC

pending fr's: NONE ! :D
aldi is offline   Reply With Quote
Old 05-03-2008, 04:24 PM   #4
xackley
Human being with feelings
 
Join Date: Feb 2007
Location: Kitchen table, next to frig
Posts: 1,179
Default

Thanks
I have been trapped in testing this. I had a real mind boggler. When I send the CC data to Keybinding, the Volume slider I was controling is always wrong.
I sure the data is good. MIDI devices are seeing a linear 0-127, just as expect for changes in the triggering source audio. Knobs turn from all the way off to all the way on with no unexpect jumps or rate changes.

But when controling the Volume slider thru a Keybinding, the ratio is not right.
I finally changed reaper's "Volume fader range" to -127 to 0, ratio 1, and the automation works correctly.
OR -121 to 6 in the reaper volume range, and set -6 to the Gain in MIDI_Audio_Vol_to_CC to get an accurate Volume envelope on an Audio Track.

Something seems screwy with the way reaper is handling the CC keybinding, seems it should at least have an option to keep it 1 to 1 for DB = CC
__________________
^^^^^^^^^^
https://soundcloud.com/user-463176271

Last edited by xackley; 05-03-2008 at 07:19 PM.
xackley is offline   Reply With Quote
Old 05-04-2008, 09:04 AM   #5
xackley
Human being with feelings
 
Join Date: Feb 2007
Location: Kitchen table, next to frig
Posts: 1,179
Default Added Limit Max/min and Control Current

Added option to use three meters for Current, Max, Min as controls for the range of CC output.
Attached Files
File Type: txt MIDI_Audio_Vol_to_CC_v1.1.txt (8.2 KB, 568 views)
__________________
^^^^^^^^^^
https://soundcloud.com/user-463176271
xackley is offline   Reply With Quote
Old 05-05-2008, 03:05 PM   #6
robg
Human being with feelings
 
Join Date: Sep 2007
Location: Paso Robles, CA
Posts: 305
Default

Nice work!

Thanks!
robg is offline   Reply With Quote
Old 05-22-2008, 02:01 AM   #7
Komuso
Human being with feelings
 
Join Date: Jan 2007
Posts: 61
Default

Thanks for this, very useful. I've been using an envelope controller patch in bidule to do the same.

How can I use this to control the volume of another track in real time? I can't quite figure out the sequence.

I'm not sure how reaper works with regards to midi learn of controls...any tips would be useful.

I use midi yoke for routing.

ty!
Komuso is offline   Reply With Quote
Old 05-22-2008, 05:55 AM   #8
xackley
Human being with feelings
 
Join Date: Feb 2007
Location: Kitchen table, next to frig
Posts: 1,179
Default

In Preferences MIDI assign Yoke1 as Control Only for Input.
In Preferences MIDI assign Yoke1 as Output.
In the Sending Track's I/O set the MIDI HW Output to Yoke1.

In Keybindings, find Track X Volume Control (CC Only).
If I remember correctly, I just moved the slider in the Audio to CC Plugin, and the Keybinding Dialog displayed the CC.

I would recommend setting the plugin to output in a high unused channel, just for good house keeping.
__________________
^^^^^^^^^^
https://soundcloud.com/user-463176271

Last edited by xackley; 05-22-2008 at 06:00 AM.
xackley is offline   Reply With Quote
Old 05-22-2008, 08:29 AM   #9
Komuso
Human being with feelings
 
Join Date: Jan 2007
Posts: 61
Default

A1, works fine now - though I have to fiddle with the response/velocity curve a bit. TY for the tutorial!

edit: well, it was working fine, except I get inconsistent midi feedback due to input and output being the same.

Last edited by Komuso; 05-22-2008 at 08:49 AM.
Komuso is offline   Reply With Quote
Old 05-22-2008, 11:54 AM   #10
xackley
Human being with feelings
 
Join Date: Feb 2007
Location: Kitchen table, next to frig
Posts: 1,179
Default

Quote:
Originally Posted by Komuso View Post
A1, works fine now - though I have to fiddle with the response/velocity curve a bit. TY for the tutorial!

edit: well, it was working fine, except I get inconsistent midi feedback due to input and output being the same.
Can you explain.

There should be no MIDI feedback with Input->Control only. The MIDI signal from Yoke1 Input should be used and blocked at the keyboard Binding, never reaching any track.
__________________
^^^^^^^^^^
https://soundcloud.com/user-463176271
xackley is offline   Reply With Quote
Old 01-07-2011, 01:56 PM   #11
sinkmusic
Human being with feelings
 
sinkmusic's Avatar
 
Join Date: Feb 2006
Location: decepticon mothership in a hidden place inside a mountain
Posts: 3,754
Default

Hi
I never noticed this plugin, thank you very much for creating it.
Do you think it coudl be modified so that it would send only one specified CC, when the audio is above a specified threshold ?

(or have a "restrict output to CC xx" option ?)

This is related to this thread i created :
http://forum.cockos.com/showthread.p...366#post655366
and this one :
http://forum.cockos.com/showthread.php?p=655350

Thank you
sinkmusic is offline   Reply With Quote
Old 01-09-2011, 02:42 AM   #12
DarkStar
Human being with feelings
 
DarkStar's Avatar
 
Join Date: May 2006
Location: Surrey, UK
Posts: 19,677
Default

No need for MIDI Yoke any more.

Jeffos' MIDItoReaControlPath will use the incoming MIDI CC to create an envelope for a VSTi parameter (e.g. Sonalksis's FreeG)



http://forum.cockos.com/showthread.php?t=43741
__________________
DarkStar ... interesting, if true. . . . Inspired by ...
DarkStar 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 03:52 AM.


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