Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions native/intuitives_daw/intlib/ipc/daw.py
Original file line number Diff line number Diff line change
Expand Up @@ -226,3 +226,11 @@

def save_audio_inputs(self):
self.send_configure("ai", "")

def generate_genetic(self, generations, population):

Check notice on line 230 in native/intuitives_daw/intlib/ipc/daw.py

View check run for this annotation

Codacy Production / Codacy Static Code Analysis

native/intuitives_daw/intlib/ipc/daw.py#L230

Missing function or method docstring
self.send_configure(
"genetic",
"|".join(
str(x) for x in (generations, population)
)
)
2 changes: 2 additions & 0 deletions native/intuitives_daw/intui/widgets/generators.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
COLOR_TERTIARY,
CHROMA_COLORS,
)
from intlib import constants


class GeneratorPanel(QWidget):
Expand Down Expand Up @@ -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):
Expand Down