• Welcome to ASR. There are many reviews of audio hardware and expert members to help answer your questions. Click here to have your audio equipment measured for free!

GEMINI AI: Practical Case Study of Generating an "Octave" GUI

FrenchFan

Active Member
Joined
Mar 12, 2024
Messages
192
Likes
103
Location
France
Hello Everyone

There's a lot of discussion about AI,
here's an example of working with GEMINI to generate an interface.

I wanted to create a GUI from a sine wave generator script
that I had written, but all the input parameters
were on the command line, no GUI.

I fed my script to GEMINI and after
2-3 hours of Gemini processing and a few adjustments, here's
the result.

I'm leaving the script for you to try on your PC. I don't
know if it will be clean, because Octave's GUI
is a bit temperamental.

GUI_gemini.png


Result

Result.png
 

Attachments

That's about the cleanest possible application for generative code, so fair enough!

My personal experience of these things is woeful, because business logic is heinously complex and it's extremely difficult to articulate.
 
That's about the cleanest possible application for generative code, so fair enough!

My personal experience of these things is woeful, because business logic is heinously complex and it's extremely difficult to articulate.
I understand your frustration; in large, complex programs,
expressing all the subtleties of the logic is certainly
more complex than writing the program yourself.

But applying this to simpler pieces of code,
where the specifications are relatively simple,
and especially for a GUI, is still tedious to code.
It's a very significant time saver, especially for small tools.

In my case, I asked Gemini to read my code,
whose inputs are in command lines, and generate a target GUI.

My code served as the "specifications"
for generating the GUI interface.

It worked from the very first version of Gemini.

Gemini understood how to integrate all the
functionalities of my script and generate
a working script with a GUI.

I refined a few defaults with Gemini, and that's all.

I'm impressed by the efficiency and the result, even if
other things are much more impressive with AI.
 
I'm attaching this new version.

It contains a visualization of the generated signal data.
The right-hand window was generated entirely by Gemini;
I only intervened to change the initially generated titles
and labels to French.

I integrated this window, which worked perfectly on the first try.

By the way, the FFT uses a square window.

When will we see a complete signal analysis
will it be done directly by AI?

nothing.png
 

Attachments

Back
Top Bottom