Command line for Render MIDI from Kontakt patch

I have a bunch of MIDI files to render with the same Kontakt patch. I would like to be able to automatically display these MIDI files using the command line, without having to load any program manually or manually assign a kontakt patch to a midi track. I want to write my own program "MyProgram" and use it like this: For example

MyProgram.exe -MIDI myMidiFile.mid -kontakt myPatch.nki -out myWav.wav,

      

which will display the MIDI file as a Wav file with a specific Kontakt I fix. I don't have any format limitations, however Windows will be best I think because of the VST context. I have no idea how to achieve this if anyone has an idea? Greetings

+3


source to share


2 answers


Impossible, as stated, unless NI has released something that I am not aware of.

Instead, it is possible to generally save the state of the VSTi plugin. (See http://vstdev.richackard.com/doc/vstsdk/faq.html ). You need a command line VST host that will export / import the state as a file so you can load it again. This is useful because Kontakt is a VST plugin, so you can automate whatever you want by controlling Kontakt via VST. Once configured, it would conceptually be possible to load and apply this state using a fully automated command line tool. This can be implemented with the SDK, http://www.steinberg.net/en/company/developers.html More help for VST host development: http://teragonaudio.com/article/How-to-make-your- own-VST-host.html



I can only find one similar tool that already exists; I don't know exactly if this will work for you, but the forum posts I read show that it supports VST save states. http://teragonaudio.com/MrsWatson.html

Mrs Watson is open source, so you can renew it to meet your needs if needed.

+1


source


I don't think you will be able to do this directly from the .nki file because it is Kontakt's own format and there is no function in the VST spec that will allow you to load it in that form.



What you can do is load Kontakt into the sequencer / DAW, load the nki file, and then save the plugin state to an fxp file and then load it into the application. Please note that Kontakt is currently not VST3, so you need to use the VST2.x SDK.

0


source







All Articles