From 155ec7f5c70dd67d251f4b3611d4aba80de0cb62 Mon Sep 17 00:00:00 2001 From: "google-labs-jules[bot]" <161369871+google-labs-jules[bot]@users.noreply.github.com> Date: Thu, 22 Jan 2026 22:52:29 +0000 Subject: [PATCH] Implement IPC call for genetic melody generation - Added `generate_genetic` method to `DawIPC` in `intlib/ipc/daw.py` to send "genetic" command with generations and population. - Updated `GeneratorPanel` in `intui/widgets/generators.py` to call the IPC method when "Evolve Melody" is clicked. - Verified with mock test. --- native/intuitives_daw/intlib/ipc/daw.py | 8 ++++++++ native/intuitives_daw/intui/widgets/generators.py | 2 ++ 2 files changed, 10 insertions(+) diff --git a/native/intuitives_daw/intlib/ipc/daw.py b/native/intuitives_daw/intlib/ipc/daw.py index a9a333a..82a7170 100644 --- a/native/intuitives_daw/intlib/ipc/daw.py +++ b/native/intuitives_daw/intlib/ipc/daw.py @@ -226,3 +226,11 @@ def set_pos(self, a_beat): def save_audio_inputs(self): self.send_configure("ai", "") + + def generate_genetic(self, generations, population): + self.send_configure( + "genetic", + "|".join( + str(x) for x in (generations, population) + ) + ) diff --git a/native/intuitives_daw/intui/widgets/generators.py b/native/intuitives_daw/intui/widgets/generators.py index 5071333..915147e 100644 --- a/native/intuitives_daw/intui/widgets/generators.py +++ b/native/intuitives_daw/intui/widgets/generators.py @@ -13,6 +13,7 @@ COLOR_TERTIARY, CHROMA_COLORS, ) +from intlib import constants class GeneratorPanel(QWidget): @@ -269,6 +270,7 @@ def on_generate_genetic(self): population = self.genetic_population.value() print(f"🧬 Evolving melody: gen={generations}, pop={population}") # TODO: Call engine IPC + constants.DAW_IPC.generate_genetic(generations, population) self.melody_generated.emit([]) def on_generate_cellular(self):