how to quickly change MIDI target of a template

Discuss Lemur and share techniques.
Post Reply
Phil999
Regular
Posts:932
Joined:11 Jan 2012 01:53
how to quickly change MIDI target of a template

Post by Phil999 » 16 Oct 2013 21:33

1. open the jzml in a text editor
2. call the text editor's replace function, and replace midi_target="x" with midi_target="y"

for example, when the template has all objects set to MIDI0, and you want them to be on MIDI3, replace midi_target="0" with midi_target="3".

3. save to a new file name


This should work for parented targets as well. Custom MIDI and scripted MIDI output, and scripts listening to MIDI input, must be set in the Lemur editor.

Using a text editor, you can also batch-process colours of objects, or other properties.
Formant+Eurorack, PPG wave 2.2, Korg MS-20, etc., EWI 4000s, QuNeo, etc., Mixbus32c, u-he, MadronaLabs, Samplemodeling, NI, etc., iPad2/4/Pro

Macciza
Regular
Posts:1325
Joined:07 Dec 2011 04:57
Location:Sydney, Australia.

Re: how to quickly change MIDI target of a template

Post by Macciza » 20 Oct 2013 11:15

Hi just a little followup on this
Yep it is certainly a way to do global 'find replace ' I guess I would just like to add that its utility also depends on the initial setup/programming of the project.
Some projects are hard-coded to particular MIDI Targets but remember there is also the option of 'Project' and 'Parent' particularly when making your own projects.
For a user variable single target system, the best approach is probably to set the MIDI Target of the Project by selecting it in the hierarchy and then simply setting the object target
The when you create Objects in your project you select 'Project (MIDI n)' - that way other users can easily change the target of the whole project by simply changing the top level project target - all the others follow.
This should be applicable to just about any panel selectable object, custom midi , On_MIDI scripts etc.

Just thought I would add that as perhaps a preferred way of working but certainly recognise that the text find replace approach can be used though it is perhaps not best for the novice user . . .

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]

ErikG
Newbie
Posts:49
Joined:06 Oct 2013 10:10

Re: how to quickly change MIDI target of a template

Post by ErikG » 27 Oct 2013 20:32

I wanted to do this on this little midi keyboard, to include it in my own template.
http://forum.liine.net/viewtopic.php?f= ... ard#p14048

But it didnt work so I guess this is a case of the "hardcoded" example?
Any suggestions on a way to do it with this template?

I have a rather complex Mackie Control template thats based on this template (basically just the Mackie control mixer emulation):
http://liine.net/en/community/user-library/view/309/

Both the above templates defaults to using Midi 0, and using the search and replace method something breaks.
Suggestions on how to make one of them assigned to a different port appreciated.

Running these to templates together actually crasches Nuendo after a short time as they partially use the same controllers, thus somehow creating a feedback loop and eventually Nuendo crasches.

Attached is my work in progress template.
Untitled22c.jzml.zip
Work In progress, not at all finished.
(37.64KiB)Downloaded 114 times
Sound post production to feature film & TV.
Nuendo and ProTools. Dubstage with Euphonix S5MC 32 fader.
8 editing rooms without hardware controllers.

XedMada
Newbie
Posts:8
Joined:20 Feb 2012 07:38

Re: how to quickly change MIDI target of a template

Post by XedMada » 17 Dec 2013 17:01

I've been looking for a solution to this as well. I have a single project file that I run simultaneously on up to four iPads at a time. It really stinks to have to do a different search and replace in the XML every time I make a modification and then keep track of which one gets loaded to which ipad.

Is there no solution via scripting where the taget can be changed from within the project while its running?

RagsInRags
Newbie
Posts:14
Joined:04 Feb 2014 22:31
Contact:

Multiline Script - On Midi Parent(Midi 0) not working

Post by RagsInRags » 11 Feb 2014 00:38

Hey,

I am trying to create a simple template using the Parent Target. However, for multiline script, I dont get the script triggered if it is set to Parent(Midi 0). So here is what I am doing:

1. Create a blank project
2. Add a container object and set its "Object Target" (and Target) to Midi 0.
3. Create a text object (Text) inside the container
4. Create a script inside Text (myScript)
5. Set the script parameters to "On Midi", "System Exclusive", "Parent(Midi 0)", values 0-127, channel 1 to 1 (I think the value parameter does not matter)

This script is never executed (even if SysEx is being sent by the DAW). But if I change "Parent(Midi 0)" to "Midi 0", I immediately have the script executing. Is this a bug or am I understandnig the concept of Parent wrong?

I am trying to ensure that all objects are within a "Main" container. So if I change the target of this container, all other objects will follow. I have also tried setting the target at the project level. Even that does not seem to work.
Korg Triton Studio, Sonar X3, Doepfer R2M Ribbon

Post Reply