Constituent loader ❈

Missing a feature, or prefer a different user interface that is not part of Diffuse? Add it here. This tool allows you to load a custom constituent besides the existing ones.

Yours

Generate

On the todo list, the idea is to have AI generate a piece of UI for you; building on the logical blocks provided by Diffuse.

Community

Nothing here yet, too early.

Build

If you know a bit of HTML & Javascript, you can write your own or plug in some code you found elsewhere:

Your code here builds on the foundation listed below, it'll be injected into a <div id="container"> element in the body.

Browse examples:

Foundation

Diffuse comes with a foundation that preconfigures all elements so you don't have to set them up yourself, along with an assemblage of elements for certain activities. It internally tracks the DOM addition of the custom elements, so no need to worry about setting up an element multiple times.

Refer to the elements index to find out what each element does.

import foundation from "common/constituents/foundation.js" foundation.engine.audio() foundation.engine.queue() foundation.orchestrator.input() foundation.orchestrator.output() foundation.orchestrator.queueAudio() foundation.orchestrator.queueTracks() foundation.orchestrator.processTracks() foundation.orchestrator.repeatShuffle() foundation.orchestrator.searchTracks() foundation.orchestrator.sources() foundation.processor.artwork() foundation.processor.metadata() foundation.processor.search()

Assemblages:

  • Play audio from the queue
    foundation.assemblage.playAudioFromQueue()
  • Queue management
    foundation.assemblage.queueManagement()
  • Search through your collection
    foundation.assemblage.searchThroughCollection()