Skip to content

Commit

Permalink
Merge pull request #2 from get-salt-AI/update-audioviz
Browse files Browse the repository at this point in the history
Update AudioViz
  • Loading branch information
WAS-PlaiLabs authored May 23, 2024
2 parents 436d648 + 687ad7f commit 2a1d902
Show file tree
Hide file tree
Showing 12 changed files with 3,563 additions and 236 deletions.
11 changes: 8 additions & 3 deletions __init__.py
Original file line number Diff line number Diff line change
@@ -1,16 +1,21 @@
import os

from SaltAI_AudioViz.modules.node_importer import ModuleLoader
# Create package logger
from .modules.log import create_logger
logger = create_logger()

ROOT = os.path.abspath(os.path.dirname(__file__))
NAME = "Salt.AI AudioViz"
PACKAGE = "SaltAI_AudioViz"
MENU_NAME = "SALT"
SUB_MENU_NAME = "AudioViz"
NODES_DIR = os.path.join(ROOT, 'nodes')
EXTENSION_WEB_DIRS = {}
NODE_CLASS_MAPPINGS = {}
NODE_DISPLAY_NAME_MAPPINGS = {}

# Load modules
from SaltAI_AudioViz.modules.node_importer import ModuleLoader
module_timings = {}
module_loader = ModuleLoader(PACKAGE)
module_loader.load_modules(NODES_DIR)
Expand All @@ -20,9 +25,9 @@
NODE_DISPLAY_NAME_MAPPINGS = module_loader.NODE_DISPLAY_NAME_MAPPINGS

# Timings and such
print("")
logger.info("")
module_loader.report(NAME)
print("")
logger.info("")

# Export nodes
__all__ = ['NODE_CLASS_MAPPINGS', 'NODE_DISPLAY_NAME_MAPPINGS']
Loading

0 comments on commit 2a1d902

Please sign in to comment.