For logic pro x users, MIDI FX plugin for string selection

Discussions about MODO DRUM physically modeled drums and MODO BASS - the first physically modeled electric bass virtual instrument

For logic pro x users, MIDI FX plugin for string selection

Postby amuckrunner » Thu Apr 19, 2018 4:10 am

Hi.
Current ver. of Modo base allows 'force * string" by MIDI note or CC.
I think it is very tedious job and unintuitive way of string selection, especially for non-keyboardist like me.

So, I wrote a simple code for Logic Pro X's Scripter MIDI FX plugin to detour.

Steps of applying this plugin is as follows.

1. Score > clef style should contain a TABLATURE with setting "Inv. Ch".

2. Then, string in the tab corresponds to MIDI ch.

3. Make a 'Scripter' plugin(MIDI FX > Scripter)

4. Copy and paste the following code to the 'Scripter Editor'

Code: Select all
var nStrings = 6

var defaultKS = ["C-1", "G0", "D0", "A-1", "E0", "B-1"];

function HandleMIDI(event)
{
   var origPitch = event.pitch;
   for( i = 1 ; i <= nStrings; i++ )
   {
      if(event.channel == GetParameter(("string "+ i + " MIDI ch.")))
      {
         event.pitch = GetParameter(("string "+i+" KS"))
         break;
      }
   }   
   event.send();
   event.pitch = origPitch;
   event.send();
}

var PluginParameters = [];

for(i = 1; i <= nStrings; i++)
{
   PluginParameters.push(
      {name:("string "+ i + " MIDI ch."),
       type:"linear",
       minValue:1, maxValue:16,
       numberOfSteps:15,
       defaultValue: i}
   );
   PluginParameters.push(
      {name:("string "+ i + " KS"),
       type:"menu",
       valueStrings:MIDI._noteNames,
       defaultValue:MIDI.noteNumber(defaultKS[i-1])},
   );
}


5. 'Save as' the script with favorable name(e.g. "modoBassStringSelector")

6. enjoy

p.s.
* I think this is also possible with 'Plug'n Script' by Blue cat audio, but not tried.
* I hope a feature to choose string by midi ch included in the next version of modo bass.
* More tuning option.....like F#-B-E-A-D-G is needed also.
amuckrunner
 
Posts: 1
Joined: Fri Jan 15, 2016 10:17 am

Return to MODO DRUM & MODO BASS