Setting OSC/MIDI Targets in Scripts

Discuss problems and solutions.
Post Reply
brianc
Regular
Posts: 87
Joined: 10 Jan 2012 02:16

Setting OSC/MIDI Targets in Scripts

Post by brianc »

Is it possible to set an object's OSC/MIDI targets from scripts? I have an OnMIDI script that I'd like to be able to listen for messages on a configurable MIDI target.

I know I can have scripts do the message sending on whichever targets I choose, but I'd like to actually change the objects.
Softcore
Regular
Posts: 1613
Joined: 04 Nov 2012 08:34

Re: Setting OSC/MIDI Targets in Scripts

Post by Softcore »

I think the targets specified for the objects cannot be set via scripting.

You can however either set custom midi outs or scripted "ctlout" - you can set the target one these via scripts OR you can just use scripts to enable-disable (show, hide) different objects with different targets pre-defined.
Macciza
Regular
Posts: 1315
Joined: 07 Dec 2011 04:57
Location: Sydney, Australia.

Re: Setting OSC/MIDI Targets in Scripts

Post by Macciza »

Hi
Unfortunately changing the Targets there is simply not possible . .

I suppose you could set up 'listeners' on every Target that would then call your function with appropriate arguments.
Thats the only way I can think of off the top of my head

Cheers
MM
iMac 2.8G i7 12G 10.6.8/10.7.2, Legacy Dexter/Lemur, Liine Lemur/iPad2, KMI SoftStep, 12Step & QuNeo , B-Controls, Mackie C4 etc
MaxMSP, Live Suite, Native Instrument stuff, etc Modified Virtual Guitar System etc All Projects/Modules © CC-BY-NC-SA[*][/b]
Post Reply