From d0c9a727822fbed065a368a54caeffa4773b7dfa Mon Sep 17 00:00:00 2001 From: Ethanfel Date: Sat, 28 Mar 2026 11:05:03 +0100 Subject: [PATCH] feat: add fps INT output to PrismAudioFeatureExtractor Co-Authored-By: Claude Sonnet 4.6 --- nodes/feature_extractor.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/nodes/feature_extractor.py b/nodes/feature_extractor.py index 8f3a840..0fe32ae 100644 --- a/nodes/feature_extractor.py +++ b/nodes/feature_extractor.py @@ -105,8 +105,8 @@ class PrismAudioFeatureExtractor: }, } - RETURN_TYPES = ("PRISMAUDIO_FEATURES",) - RETURN_NAMES = ("features",) + RETURN_TYPES = ("PRISMAUDIO_FEATURES", "INT") + RETURN_NAMES = ("features", "fps") FUNCTION = "extract_features" CATEGORY = PRISMAUDIO_CATEGORY @@ -134,7 +134,8 @@ class PrismAudioFeatureExtractor: if os.path.exists(cached_path): print(f"[PrismAudio] Using cached features: {cached_path}") loader = PrismAudioFeatureLoader() - return loader.load_features(cached_path) + features, = loader.load_features(cached_path) + return (features, round(fps)) # Save frames to temp file (lossless .npy, no codec roundtrip) import time