Interface LiveMusicGenerationConfig

Configuration for music generation.

interface LiveMusicGenerationConfig {
    bpm?: number;
    brightness?: number;
    density?: number;
    guidance?: number;
    musicGenerationMode?: MusicGenerationMode;
    muteBass?: boolean;
    muteDrums?: boolean;
    onlyBassAndDrums?: boolean;
    scale?: Scale;
    seed?: number;
    temperature?: number;
    topK?: number;
}

Properties

bpm?: number

Beats per minute. Range is [60, 200].

brightness?: number

Brightness of the music. Range is [0.0, 1.0].

density?: number

Density of sounds. Range is [0.0, 1.0].

guidance?: number

Controls how closely the model follows prompts. Higher guidance follows more closely, but will make transitions more abrupt. Range is [0.0, 6.0].

musicGenerationMode?: MusicGenerationMode

The mode of music generation. Default mode is QUALITY.

muteBass?: boolean

Whether the audio output should contain bass.

muteDrums?: boolean

Whether the audio output should contain drums.

onlyBassAndDrums?: boolean

Whether the audio output should contain only bass and drums.

scale?: Scale

Scale of the generated music.

seed?: number

Seeds audio generation. If not set, the request uses a randomly generated seed.

temperature?: number

Controls the variance in audio generation. Higher values produce higher variance. Range is [0.0, 3.0].

topK?: number

Controls how the model selects tokens for output. Samples the topK tokens with the highest probabilities. Range is [1, 1000].