Can i make MIDI to wav with lua script

Hi guys. I am really newbie in daw.

I have a lot of midi data for research. I try to this midi files make to wav with using kontakt(have licence) or other vst plugins in script.

GPT and geminai said only lua script with ardour can render the midi to wav. So i paid for pre-bulid ardour and try it.

  1. if using lua script i can render the midi to wav with kontakt without open gui
  2. if it can i need batch

thank you

I’m pretty sure both GPT and Gemini are misleading you.

If you create a MIDI track in Ardour, and assign a VSTi instrument (like your Kontakt instruments) to that track, you should then be able to import your MIDI files to that track and play them, or export them to audio files.

Perhaps the LLMs are suggesting that you use Lua scripts because you might want to automate this process across dozens / scores / hundreds of MIDI files?

thank you for answer me

you means u i cannot automate process for bunch of midis?

You might be able to do this using LUA, but you would have to learn how to program in LUA and understand what you are doing. Nobody is going to do it for you. READ the DOCS!

No need for that type of answer. It’s perfectly reasonable to ask whether something is possible, it’s not the same as asking for it to be done for them.

1 Like

I didn’t mean to come across as harsh, but I can see now how my reply does seem that way. It was not intended. Apologies.

I have only recently started exploring the LUA world myself, so I have a lot to learn as well.

Just trying to understand what you’re trying to accomplish here. It sounds like you want to automate the following sequence of steps:

  1. Automatically import a whole a bunch MIDI files into Ardour.
  2. Have each of those MIDI files import onto their own track with Kontakt loaded on each track.
  3. Automatically export those MIDI files to WAV files so you can study them.

If that is what you’re looking for, this most likely doable with lua scripting for Ardour, however AI will only get you some of the way there.

Speaking from experience writing lua scripts for Ardour I recommend you do the following:

  1. Have some prior coding experience(Understand variables, arrays, loops, basc OOP) and learn lua (I can give you the youtube playlist I used if you want)
  2. Study the sample scripts from the Ardour github: ardour/share/scripts at master · Ardour/ardour · GitHub. You can also check out some of my scripts for ideas and inspiration: LogicalArdour/ardour8/scripts at main · jmantra/LogicalArdour · GitHub

3.Read the documentation: Here is the overview: The Ardour Manual - Lua Scripting and the class reference: The Ardour Manual - Lua Bindings Class Reference

  1. Use AI to tackle smaller tasks or problems, don’t rely on it to write the whole thing for you.

Hello, good morning, it is really not a good idea to use AI for complex things, if you do not know something about the topic you are asking, AIs are incomplete computer systems with information that in many cases is correct in general matters but in this case it seems that it has not been correct.

Out of curiosity, using ll studio on Linux, I asked the AI ​​if it knew the winboat program (which is a virtualization program (which I’m testing) that uses docker I think), and it told me that it is a maritime navigation program, indeed it is like that but the AI ​​had no idea of ​​the existence of the virtualization program… although it may well be because the AI ​​is installed in local mode.

I know that AIs are very useful and practical in programming, but you have to know well what you want it to build, and also in text translation. (I write this text in the crow translate program that uses AI), this is a use that I give to AI.

The other use is with the Synthesizer V program, which is used to use midi to make a synthesized human voice sing (real voices, recorded and licensed from real singers), I am still starting with the program so I am a newbie, and I only use it to be able to create the melody/intonation and create the score to be able to register copyright in my country (I am not a professional musician so when it comes to writing lyrics for possible songs and or putting vocals in my compositions, I need some help).

And speaking of copyright, a large part of the AIs have been trained with data, images, sounds, text and a long etc., without respecting in many cases the rights of the original creators, this is a problematic issue because they have basically trained their AIs with stolen data, in many cases.

Finally, I do not intend to bother anyone with this opinion, I have commented on it because I have already seen several colleagues on the forum say that they have asked chatgpt or similar, AIs can be very useful, but they are just tools, we should not put more into them than they can do, we must continue thinking for ourselves, not delegate everything to AIs.

And I apologize for diverting the issue from the main topic of the thread, I didn’t mean to, but AIs are invading a large part of services and it is causing problems.

Greetings

You mean I can’t ask ChatGPT to write me a new awesome plugin? :roll_eyes:

You can always ask. :wink:

Whether the result is usable is another matter,

Hello jmantra, of course you can ask, it is free to do what you want and in fact, I know that it is used intensively to speed up the creation of all types of software, including audio/midi software.

I have only said what I have said, because I have already seen and not only in this forum, people saying that they had asked some AI things that real people can take months or years to learn and those perhaps expected that AI to create something perfect and functional, and well, it is not that simple.

The result that is achieved using an AI is good with (promt, I don’t know if this is the correct term), the question or the order that you give to the AI, and you have to know what to do and how to use what the AI ​​has created, and for that you have to know what to ask and therefore have a minimum base of knowledge of what you are wanting to do.

There are ways to create software without knowing programming, using for example blocks of pre-programmed code that can be assembled, specifically I am trying HISE https://github.com/christophhart/HISE,the forum partner davidhealey has a free course to know how to create plugins without knowing programming, https://www.patreon.com/posts/audiodevschool-136160186, I recommend you look at it if you want to create a plugin, learning at the same time how and because, as you progress through the course.

Let’s remember AIs are just computers, complex but unfinished programs are just machines, which seem to learn, what they really do is collect data and join relational bases together to give a result, they are not humans, although they are programmed by humans.

Remember even if Skynet takes power, it will still not be human. :wink:

It seems like you missed the sarcasm in my reply.

Hello jmantra indeed in a first reading I did not realize the irony, I am Spanish and although I read English reasonably well, sometimes that at first I miss those details, as English is not my language of birth.

Different languages sometimes have particular linguistic turns and when I write in my language, so that it can then be translated as best as possible, I try to avoid those particular linguistic turns of Spanish, to avoid possible misunderstandings.

The case that when I was finishing writing I realized the irony and added the last sentence about skynet.

Best regards :wink:

Thx for reply

I am programming with python for web server, but really first time for lua, lua syntax is not diffcult.

so at first i just demonstrate it’s possible or not, so i did not dig the syntax and methods.
just give the link to gpt and gemini to load midi and render with kontakt.

but it is really small pie of programming area, so the ai is not work well.

so i try to from scratch with the docu and github samples

I successed with hise and dawdreamer but i need more high quality samplers

Thx!!

1 Like