Skip to content

New music analysis#8

Merged
yiyixuu merged 49 commits into
mainfrom
new-music-analysis
Jun 22, 2026
Merged

New music analysis#8
yiyixuu merged 49 commits into
mainfrom
new-music-analysis

Conversation

@yiyixuu

@yiyixuu yiyixuu commented Jun 19, 2026

Copy link
Copy Markdown
Collaborator

No description provided.

yiyixuu added 30 commits June 2, 2026 16:57
…changed folder structure), and system prompt changes for new music analysis
…pt + schema, and changed default model to 5.4-nano
…param, dropped dead wave params, fixed move_z clipping to arena bounds instead of hardcoded value, matched collision check to MPC envelope, updated prompt for beat drop guidance
@ratheron ratheron self-requested a review June 19, 2026 16:37

@ratheron ratheron left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We are getting there

Comment thread swarm_gpt/core/drone_swarm.py Outdated
Comment on lines +200 to +201
self._validate_known_uris("color_top", color_top.keys())
self._validate_known_uris("color_bot", color_bot.keys())

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why .keys()?

Comment thread swarm_gpt/core/backend.py Outdated
Comment on lines 32 to 39

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can be removed, right?

Comment thread tests/unit/test_frontend_setup.py Outdated
@@ -33,7 +33,7 @@ def test_frontend_install_skips_cleanly_when_web_package_is_missing(tmp_path: Pa
bin_dir = tmp_path / "bin"
bin_dir.mkdir()
npm = bin_dir / "npm"
npm.write_text(f"#!/usr/bin/env bash\necho \"$@\" >> {npm_log}\n")
npm.write_text(f'#!/usr/bin/env bash\necho "$@" >> {npm_log}\n')

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The new version is not in accordance to our style guides. This is not detected because it's in test. Please revert anyway.

Comment thread swarm_gpt/utils/music_analyzer.py Outdated
_ALLIN1_IMPORT_ERROR = e
logger.error(f"{e} - please use the music env to analyze songs")
else:
_ALLIN1_IMPORT_ERROR = None

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We don't need to define this. In case we can't import here, log the error. When the program crashes further down, because allin1 is not define, it should be clear why it failed in the first place.

Comment thread swarm_gpt/utils/music_analyzer.py Outdated
Comment on lines +28 to +35
try:
import allin1
except ImportError as e:
allin1 = None
_ALLIN1_IMPORT_ERROR = e
logger.error(f"{e} - please use the music env to analyze songs")
else:
_ALLIN1_IMPORT_ERROR = None

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
try:
import allin1
except ImportError as e:
allin1 = None
_ALLIN1_IMPORT_ERROR = e
logger.error(f"{e} - please use the music env to analyze songs")
else:
_ALLIN1_IMPORT_ERROR = None
try:
import allin1
except ImportError as e:
logger.error(f"{e} - please use the music env to analyze songs")

Comment thread swarm_gpt/utils/music_analyzer.py Outdated
Comment on lines +560 to +563
if allin1 is None:
raise ImportError("allin1 is required to analyze songs; please use the music env") from (
_ALLIN1_IMPORT_ERROR
)

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
if allin1 is None:
raise ImportError("allin1 is required to analyze songs; please use the music env") from (
_ALLIN1_IMPORT_ERROR
)

Comment thread swarm_gpt/utils/music_analyzer.py Outdated
Comment on lines +594 to +597
if allin1 is None:
raise ImportError("allin1 is required to analyze songs; please use the music env") from (
_ALLIN1_IMPORT_ERROR
)

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
if allin1 is None:
raise ImportError("allin1 is required to analyze songs; please use the music env") from (
_ALLIN1_IMPORT_ERROR
)

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Since you changed the drones.toml here. Please also add the radio channel to the toml.

@yiyixuu yiyixuu merged commit 0f42ecb into main Jun 22, 2026
5 checks passed
@yiyixuu yiyixuu deleted the new-music-analysis branch June 22, 2026 15:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants