Old 10-09-2021, 02:47 PM   #1
Zelmoghazy
Human being with feelings
 
Join Date: Feb 2020
Posts: 23
Default MIDI CC to after touch ?

is there a way to control aftertouch with cc messages ? I have many vst plugins that support aftertouch which adds a whole dimension of expression but I cant use it because my old midi controller doesnt support after touch , "reks effeks" made a midi cc to pitch bend so I was wondering if it possible to make one for aftertouch ?
Zelmoghazy is offline   Reply With Quote
Old 10-09-2021, 10:30 PM   #2
mschnell
Human being with feelings
 
mschnell's Avatar
 
Join Date: Jun 2013
Location: Krefeld, Germany
Posts: 14,687
Default

ReaPack -> Midi Mapper X should be able to do that.
-Michael
mschnell is offline   Reply With Quote
Old 10-09-2021, 10:43 PM   #3
sockmonkey72
Human being with feelings
 
sockmonkey72's Avatar
 
Join Date: Sep 2021
Location: Berlin
Posts: 1,935
Default

Or here's a dead-simple JSFX to map CC#1 to channel AT:

Code:
desc:CC#ToChannelPressure

@init
CCno = 1; // change me to change the CC#

@block
while (midirecv(offset,msg1,msg2,msg3)) (
  (msg1 & 0xF0) == 0xB0 && msg2 == CCno ? (
    msg1 = 0xD0 + (msg1 & 0xF);
    midisend(offset,msg1,msg3);
  ) : (
    midisend(offset, msg1, msg2, msg3);
  );
);

Last edited by sockmonkey72; 12-05-2021 at 03:22 PM. Reason: edited script (fixed CC message matching)
sockmonkey72 is offline   Reply With Quote
Old 10-10-2021, 02:57 AM   #4
Zelmoghazy
Human being with feelings
 
Join Date: Feb 2020
Posts: 23
Default

Quote:
Originally Posted by mschnell View Post
ReaPack -> Midi Mapper X should be able to do that.
-Michael
Thank you michael this plugin is amazing @Talagan did a great job

Quote:
Originally Posted by sockmonkey72 View Post
Or here's a dead-simple JSFX to map CC#1 to channel AT:
[/CODE]
Thank you sockmonkey this is exactly what I wanted it works perfectly
Zelmoghazy is offline   Reply With Quote
Old 12-04-2021, 04:10 PM   #5
fsynth
Human being with feelings
 
Join Date: Sep 2020
Posts: 119
Default

Quote:
Originally Posted by sockmonkey72 View Post
Or here's a dead-simple JSFX to map CC#1 to channel AT:

Code:
desc:CC#ToChannelPressure

@init
CCno = 1; // change me to change the CC#

@block
while (midirecv(offset,msg1,msg2,msg3)) (
  msg1 & 0xB0 && msg2 == CCno ? (
    msg1 = 0xD0 + (msg1 & 0xF);
    midisend(offset,msg1,msg3);
  ) : (
    midisend(offset, msg1, msg2, msg3);
  );
);

Any way to make that work the other way around?
Aftertouch to cc1
fsynth is offline   Reply With Quote
Old 12-04-2021, 11:12 PM   #6
mschnell
Human being with feelings
 
mschnell's Avatar
 
Join Date: Jun 2013
Location: Krefeld, Germany
Posts: 14,687
Default

ReaPack -> Midi Convert to CC
-Michael
mschnell is offline   Reply With Quote
Old 12-05-2021, 03:58 AM   #7
sockmonkey72
Human being with feelings
 
sockmonkey72's Avatar
 
Join Date: Sep 2021
Location: Berlin
Posts: 1,935
Default

Or:

Code:
desc:ChannelPressureToCC

@init
CCno = 1; // change me to change the CC#

@block
while (midirecv(offset,msg1,msg2,msg3)) (
  (msg1 & 0xF0) == 0xD0 ? (
    msg1 = 0xB0 + (msg1 & 0xF);
    msg3 = msg2;
    msg2 = CCno;
    midisend(offset, msg1, msg2, msg3);
  ) : (
    midisend(offset, msg1, msg2, msg3);
  );
);

Last edited by sockmonkey72; 12-05-2021 at 03:21 PM.
sockmonkey72 is offline   Reply With Quote
Old 12-05-2021, 07:52 AM   #8
DarkStar
Human being with feelings
 
DarkStar's Avatar
 
Join Date: May 2006
Location: Surrey, UK
Posts: 19,677
Default

If you want Poly Aftertouch (not Channel Pressure) try post #62 here:
https://forum.cockos.com/showthread.php?t=189161
__________________
DarkStar ... interesting, if true. . . . Inspired by ...
DarkStar is online now   Reply With Quote
Old 12-05-2021, 09:15 AM   #9
fsynth
Human being with feelings
 
Join Date: Sep 2020
Posts: 119
Default

The people on this forum are awesome, where else do you ask for help and have an answer the next morning :-).

Thanks Sockmonnkey, it works.
One problem! When I first play a note AT is sent for a brief second even if careful to not press to engage. After that AT works as it should. Would it also be possible to add a MIDI thru so the plugin can be placed on the same track as the synth vsti?

Darkstar, thank you! Using channel pressure but good to know what's out there.
fsynth is offline   Reply With Quote
Old 12-05-2021, 09:23 AM   #10
sockmonkey72
Human being with feelings
 
sockmonkey72's Avatar
 
Join Date: Sep 2021
Location: Berlin
Posts: 1,935
Default

Quote:
Originally Posted by fsynth View Post
The people on this forum are awesome, where else do you ask for help and have an answer the next morning :-).

Thanks Sockmonnkey, it works.
One problem! When I first play a note AT is sent for a brief second even if careful to not press to engage. After that AT works as it should. Would it also be possible to add a MIDI thru so the plugin can be placed on the same track as the synth vsti?

Darkstar, thank you! Using channel pressure but good to know what's out there.
Hi, not sure I follow. This JSFX should pass any non-AT message directly through, processing only AT messages. Can you explain what you're trying to do, and what's going wrong in more detail?
sockmonkey72 is offline   Reply With Quote
Old 12-05-2021, 09:44 AM   #11
fsynth
Human being with feelings
 
Join Date: Sep 2020
Posts: 119
Default

Using for live playing just want to be able to control modulation using AT.
When I place AT to CC.jsfx on the same track before the vsti there is no sound, although the track midi monitor still shows activity?
If I setup a second track with AT to CC and send to the vsti track it works.

Although like I said in the last post AT\CC is triggered when I first play a note for just a brief second. It stops and then works as it should sends CC1 from AT.
Would be really cool if the range of the cc could be adjusted to limit the cc value sent.

Hope that makes some sense, lol just waking up.
fsynth is offline   Reply With Quote
Old 12-05-2021, 10:10 AM   #12
fsynth
Human being with feelings
 
Join Date: Sep 2020
Posts: 119
Default

Quote:
Originally Posted by mschnell View Post
ReaPack -> Midi Convert to CC
-Michael
Just saw this, none of my audio machines are on the net so can't use reapack.
Although it does sound nice, thanks for the suggestion.

For the At to CC I have a VST that I have been using for years.
The reason I would like a jsfx is for a RPi, so no chance of using a winvst.
fsynth is offline   Reply With Quote
Old 12-05-2021, 03:07 PM   #13
mschnell
Human being with feelings
 
mschnell's Avatar
 
Join Date: Jun 2013
Location: Krefeld, Germany
Posts: 14,687
Default

Quote:
Originally Posted by fsynth View Post
Just saw this, none of my audio machines are on the net so can't use reapack.
You can easily install Reaper and ReaPack on some "office" machine, install the pluigin and then copy the appropriate file by any means of your choice.
-Michael

Last edited by mschnell; 12-05-2021 at 11:44 PM.
mschnell is offline   Reply With Quote
Old 12-05-2021, 03:22 PM   #14
sockmonkey72
Human being with feelings
 
sockmonkey72's Avatar
 
Join Date: Sep 2021
Location: Berlin
Posts: 1,935
Default

Quote:
Originally Posted by fsynth View Post
Using for live playing just want to be able to control modulation using AT.
When I place AT to CC.jsfx on the same track before the vsti there is no sound, although the track midi monitor still shows activity?
If I setup a second track with AT to CC and send to the vsti track it works.

Although like I said in the last post AT\CC is triggered when I first play a note for just a brief second. It stops and then works as it should sends CC1 from AT.
Would be really cool if the range of the cc could be adjusted to limit the cc value sent.

Hope that makes some sense, lol just waking up.
Try the edited version above, it should work better now.
sockmonkey72 is offline   Reply With Quote
Old 12-06-2021, 08:16 AM   #15
fsynth
Human being with feelings
 
Join Date: Sep 2020
Posts: 119
Default

Quote:
Originally Posted by sockmonkey72 View Post
Try the edited version above, it should work better now.
Thank you Sir! at work now will test after and let you know.
fsynth is offline   Reply With Quote
Old 12-06-2021, 07:47 PM   #16
fsynth
Human being with feelings
 
Join Date: Sep 2020
Posts: 119
Default

Outstanding job :-) works perfect.
Thank you so much for taking the time it is appreciated.
fsynth 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 02:04 PM.


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