ComfyUI > Nodes > VLM_nodes > PlayMusic Node

ComfyUI Node: PlayMusic Node

Class Name

PlayMusic

Category
VLM Nodes/Audio
Author
gokayfem (Account age: 1058days)
Extension
VLM_nodes
Latest Updated
2024-06-02
Github Stars
0.28K

How to Install VLM_nodes

Install this extension via the ComfyUI Manager by searching for VLM_nodes
  • 1. Click the Manager button in the main menu
  • 2. Select Custom Nodes Manager button
  • 3. Enter VLM_nodes in the search bar
After installation, click the Restart button to restart ComfyUI. Then, manually refresh your browser to clear the cache and access the updated list of nodes.

Visit ComfyUI Online for ready-to-use ComfyUI environment

  • Free trial available
  • High-speed GPU machines
  • 200+ preloaded models/nodes
  • Freedom to upload custom models/nodes
  • 50+ ready-to-run workflows
  • 100% private workspace with up to 200GB storage
  • Dedicated Support

Run ComfyUI Online

PlayMusic Node Description

Facilitates audio playback control in node-based workflows for AI artists, enhancing interactivity and dynamism.

PlayMusic Node:

The PlayMusic node is designed to facilitate the playback of audio within a node-based workflow. It allows you to control when and how audio is played, providing options to adjust the volume and specify the waveform and sample rate. This node is particularly useful for AI artists who want to integrate audio elements into their projects seamlessly. By using this node, you can ensure that audio playback is triggered under specific conditions, enhancing the interactivity and dynamism of your creative work.

PlayMusic Node Input Parameters:

mode

The mode parameter determines when the audio should be played. It has two options: "always" and "on empty queue". Selecting "always" will play the audio every time the node is executed, while "on empty queue" will only play the audio if the queue is empty. This allows you to control the conditions under which the audio is triggered, ensuring it fits seamlessly into your workflow.

volume

The volume parameter controls the playback volume of the audio. It is a floating-point value ranging from 0 to 1, with a default value of 0.5. Adjusting this parameter allows you to set the desired loudness of the audio, ensuring it is neither too loud nor too soft for your project.

wave_form

The wave_form parameter is a required input that specifies the waveform of the audio to be played. This parameter must be provided as an input, ensuring that the node has the necessary audio data to function correctly.

sample_rate

The sample_rate parameter is a required input that specifies the sample rate of the audio. This parameter must be provided as an input, ensuring that the audio is played back at the correct quality and speed.

PlayMusic Node Output Parameters:

any

The any output parameter is a wildcard string that can be used to trigger other nodes or actions within your workflow. It ensures that the PlayMusic node can integrate smoothly with other nodes, providing a flexible and dynamic way to manage audio playback.

PlayMusic Node Usage Tips:

  • To ensure smooth audio playback, always provide valid wave_form and sample_rate inputs.
  • Use the mode parameter to control when the audio is played, allowing you to create more dynamic and interactive projects.
  • Adjust the volume parameter to set the desired loudness of the audio, ensuring it fits well within your project's overall sound design.

PlayMusic Node Common Errors and Solutions:

Invalid wave_form input

  • Explanation: The wave_form parameter is required and must be provided as an input.
  • Solution: Ensure that you provide a valid waveform input to the node.

Invalid sample_rate input

  • Explanation: The sample_rate parameter is required and must be provided as an input.
  • Solution: Ensure that you provide a valid sample rate input to the node.

Audio not playing in "on empty queue" mode

  • Explanation: The audio will only play if the queue is empty when the mode is set to "on empty queue".
  • Solution: Ensure that the queue is empty or change the mode to "always" if you want the audio to play every time the node is executed.

PlayMusic Node Related Nodes

Go back to the extension to check out more related nodes.
VLM_nodes
RunComfy

© Copyright 2024 RunComfy. All Rights Reserved.

RunComfy is the premier ComfyUI platform, offering ComfyUI online environment and services, along with ComfyUI workflows featuring stunning visuals.