Old 02-09-2015, 02:07 AM   #1
caboose1408
Human being with feelings
 
Join Date: Feb 2015
Posts: 6
Default OSC with Virtual Keyboard?

I've been spending a few hours attempting to make my iPad into a keyboard using touchosc. I finally have the connection running but now I can't seem to find a way for OSC to be activated for the keyboard. I checked .reaperosc files and searched google long enough.
caboose1408 is offline   Reply With Quote
Old 02-09-2015, 03:18 AM   #2
Banned
Human being with feelings
 
Banned's Avatar
 
Join Date: Mar 2008
Location: Unwired (probably in the proximity of Amsterdam)
Posts: 4,868
Default

Hi caboose1408, welcome on this forum!

Did you already enable an OSC Control Surface in Preferences?
__________________
˙lɐd 'ʎɐʍ ƃuoɹʍ ǝɥʇ ǝɔıʌǝp ʇɐɥʇ ƃuıploɥ ǝɹ,noʎ
Banned is offline   Reply With Quote
Old 02-09-2015, 04:28 PM   #3
caboose1408
Human being with feelings
 
Join Date: Feb 2015
Posts: 6
Default

Thank you. It's good to be here.
Yes I already have my iPad enabled through Control Surface with the OSC settings.

Everything works. Input and output with LogicPad. But I want to play the virtual keyboard with OSC commands. If possible.
caboose1408 is offline   Reply With Quote
Old 02-10-2015, 01:26 AM   #4
Banned
Human being with feelings
 
Banned's Avatar
 
Join Date: Mar 2008
Location: Unwired (probably in the proximity of Amsterdam)
Posts: 4,868
Default

Oh yes, it's possible for sure. I'm away from computer atm, but I can show you more in a day or two.
__________________
˙lɐd 'ʎɐʍ ƃuoɹʍ ǝɥʇ ǝɔıʌǝp ʇɐɥʇ ƃuıploɥ ǝɹ,noʎ
Banned is offline   Reply With Quote
Old 02-10-2015, 01:56 AM   #5
caboose1408
Human being with feelings
 
Join Date: Feb 2015
Posts: 6
Default

Thank you for your help. This is greatly appreciated.
caboose1408 is offline   Reply With Quote
Old 02-16-2015, 06:28 PM   #6
Banned
Human being with feelings
 
Banned's Avatar
 
Join Date: Mar 2008
Location: Unwired (probably in the proximity of Amsterdam)
Posts: 4,868
Default

Still not at studio, but perhaps it is helpful to take a look at the script I posted here: http://forum.cockos.com/showpost.php...2&postcount=99
__________________
˙lɐd 'ʎɐʍ ƃuoɹʍ ǝɥʇ ǝɔıʌǝp ʇɐɥʇ ƃuıploɥ ǝɹ,noʎ
Banned is offline   Reply With Quote
Old 02-17-2015, 06:28 PM   #7
caboose1408
Human being with feelings
 
Join Date: Feb 2015
Posts: 6
Default

That is alright. I have patience. But I will check out the Script. Thank you.
caboose1408 is offline   Reply With Quote
Old 02-26-2015, 02:44 AM   #8
caboose1408
Human being with feelings
 
Join Date: Feb 2015
Posts: 6
Default

I haven't quite figured out the script can someone explain this?
caboose1408 is offline   Reply With Quote
Old 02-26-2015, 08:59 AM   #9
Banned
Human being with feelings
 
Banned's Avatar
 
Join Date: Mar 2008
Location: Unwired (probably in the proximity of Amsterdam)
Posts: 4,868
Default

The script simply converts MIDI input to OSC output, in the format expected by REAPER's 'virtual keyboard' when using the Default.ReaperOSC configuration; cf. these comments in Default.ReaperOSC configuration file:

Code:
# these send MIDI to the vkb MIDI input. parameters are raw MIDI.

# for notes, if two, first wildcard is channel (0-15). MIDI note number is required (as decimal integer only!)
# if parameter value is 0, note-off, otherwise note-on
VKB_MIDI_NOTE i/vkb_midi/@/note/@ f/vkb_midi/@/note/@ i/vkb_midi/note/@ f/vkb_midi/note/@
	
# similar, but for 0xA0 (poly aftertouch)
VKB_MIDI_POLYAFTERTOUCH i/vkb_midi/@/polyaftertouch/@ f/vkb_midi/@/polyaftertouch/@ i/vkb_midi/polyaftertouch/@ f/vkb_midi/polyaftertouch/@
	
# for CCs, if two, first wildcard is channel (0-15). MIDI CC number is required (as decimal integer only!)
VKB_MIDI_CC i/vkb_midi/@/cc/@ f/vkb_midi/@/cc/@ i/vkb_midi/cc/@ f/vkb_midi/cc/@ 
	
# program change (0xC0) can take channel as wildcard, or value only
VKB_MIDI_PROGRAM i/vkb_midi/@/program f/vkb_midi/@/program i/vkb_midi/program f/vkb_midi/program
	
# channel pressure (aftertouch) (0xD0) can take channel as wildcard, or value only
VKB_MIDI_CHANNELPRESSURE i/vkb_midi/@/channelpressure f/vkb_midi/@/channelpressure i/vkb_midi/channelpressure f/vkb_midi/channelpressure
	
# pitch can take channel as wildcard, or value only
VKB_MIDI_PITCH i/vkb_midi/@/pitch f/vkb_midi/@/pitch i/vkb_midi/pitch f/vkb_midi/pitch
If you have configured a MIDI input to OSCII-bot, and have enabled MIDI input for the virtual keyboard on a track in REAPER, this allows you to play MIDI notes on the virtual keyboard in REAPER using OSC messages.

For example:

[MIDI input] Ch. 1 Note C 4 ON, velocity: 100
[OSC output] /vkb_midi/0/note/60 [i] 100

[MIDI input] Ch. 1 Note C 4 OFF
[OSC output] /vkb_midi/0/note/60 [i] 0

You could simply deduce the message format used, and use it in your TouchOSC layout as appropriate.

It may be much more straightforward to make your TouchOSC layout send MIDI rather than OSC, though.
__________________
˙lɐd 'ʎɐʍ ƃuoɹʍ ǝɥʇ ǝɔıʌǝp ʇɐɥʇ ƃuıploɥ ǝɹ,noʎ
Banned is offline   Reply With Quote
Old 10-28-2020, 08:48 AM   #10
simplecarnival
Human being with feelings
 
simplecarnival's Avatar
 
Join Date: Feb 2007
Posts: 375
Default

Sorry for the old thread bump, but Banned or caboose1408 -- do either of you have the script that was posted at this link?

Quote:
Originally Posted by Banned View Post
Still not at studio, but perhaps it is helpful to take a look at the script I posted here: http://forum.cockos.com/showpost.php...2&postcount=99
I am trying to figure out something similar to what this script does, but the Dropbox link is no longer valid. Being able to see this script might go a long way toward figuring out what I'm trying to do.

Thanks!
__________________
Jeff Boller
Sundrift Productions
simplecarnival 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 06:44 PM.


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