Merge examples over (#25)

* Merge from main (#16)

* Modified NormalizedAmplitudeToNumber and added FloatArrayToGraph (#8)

* added my 2 nodes

* fixed broken new node mod

got it working again

* modifications example

modified the normalized to float/int node to include an addative input, with ceiling control and threshold activation.

added float array to graph node

* Add Load VHS Audio node (#13)

Add a node to load audio from Video Helper Suite, which exports a lambda
for lazy loading.

Co-authored-by: Isaac Emesowum <isaac@emesowum.com>

* Return the limit of frames used rather than total if a limit is specificed in the AudioToFFTs

* Clean up duplicate function

* Updated basic example

---------

Co-authored-by: PhotoniX <master@ascendism.com>
Co-authored-by: iemesowum <isaac.emesowum@gmail.com>
Co-authored-by: Isaac Emesowum <isaac@emesowum.com>

* Updating the two amplitude example

* Updated full example

* Updated so that LoadAudio no longer name collison with ComfyUI's "LoadAudio":

- Removed "LoadAudio" as a node.  Instead use LoadVHSAudio or AudioToAudioData to either load from vhs node suite or from ComfyUI's LoadAudio
- Changed the "AUDIO" type to "AUDIO_DATA" type to not clash with ComfyUI's "AUDIO" type

* Removed LoadVHSAudio. No longer needed as "AudioToAudioData" can fulfill the role for both the VHS audio loading and the regular one

* Updating the examples

---------

Co-authored-by: PhotoniX <master@ascendism.com>
Co-authored-by: iemesowum <isaac.emesowum@gmail.com>
Co-authored-by: Isaac Emesowum <isaac@emesowum.com>
This commit is contained in:
a1lazydog
2024-08-05 22:37:11 -07:00
committed by GitHub
co-authored by PhotoniX iemesowum Isaac Emesowum
parent b0b9d172c8
commit adbc4b6fff
11 changed files with 19 additions and 10031 deletions
+19 -7
View File
@@ -13,15 +13,15 @@ Install using the ComfyUI Manager. Look for ComfyUI-AudioScheduler.
# Nodes
## LoadAudio
## AudioToAudioData
**Input Types:**
- `audio`: A list of audio file names to be loaded. Supported formats: mp3, wav.
- `audio`: Audio file from the LoadAudio node. Both regular ComfyUI and VHS node is supported.
**Output Types:**
- `AUDIO`: Loaded audio data.
- `AUDIO_DATA`: Loaded audio data.
**Description:**
@@ -264,18 +264,30 @@ Feel free to explore and use these nodes for your audio processing tasks. Detail
Takes an audio file, finds the amplitude within a frequency range, normalizes it and sends it off.
![Basic Example](./examples/basic_example.png)
![Basic Workflow](./examples/basic_example.png)
Result:
![Basic Example Output](./examples/basic_example.gif)
![Basic Output](./examples/basic_example.gif)
## Using multiple frequency ranges
We can use the amplitude to power one set of conditions. And the inverse to power another set.
![Two Amplitude Example](./examples/two_amplitude_example.png)
![Two Amplitude Workflow](./examples/two_amplitude_example.png)
You can use different frequencies bands to power different conditions both in the positive and negative prompts.
![Full Example](./examples/full_example.png)
Result:
![Two Amplitude Output](./examples/two_amplitude_example.gif)
## Using a driven string
You can use the Normalized Amplitude Driven String to more actively switch up the prompts
![Text Switching Workflow](./examples/text_switching_example.png)
Result:
![Text Switching Output](./examples/text_switching_example.gif)
Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.5 MiB

After

Width:  |  Height:  |  Size: 11 MiB

File diff suppressed because it is too large Load Diff
Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.3 MiB

After

Width:  |  Height:  |  Size: 1.1 MiB

File diff suppressed because it is too large Load Diff
Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.1 MiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 14 MiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.3 MiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 13 MiB

File diff suppressed because it is too large Load Diff
Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.5 MiB

After

Width:  |  Height:  |  Size: 1.5 MiB