Table of Contents

Class LiveMusicGenerationConfig

Namespace
GenerativeAI.Types
Assembly
GenerativeAI.dll

Configuration for music generation.

public class LiveMusicGenerationConfig
Inheritance
LiveMusicGenerationConfig
Inherited Members
Extension Methods

Properties

Bpm

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

[JsonPropertyName("bpm")]
public int? Bpm { get; set; }

Property Value

int?

Brightness

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

[JsonPropertyName("brightness")]
public double? Brightness { get; set; }

Property Value

double?

Density

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

[JsonPropertyName("density")]
public double? Density { get; set; }

Property Value

double?

Guidance

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

[JsonPropertyName("guidance")]
public double? Guidance { get; set; }

Property Value

double?

MusicGenerationMode

The mode of music generation. Default mode is QUALITY.

[JsonPropertyName("musicGenerationMode")]
public MusicGenerationMode? MusicGenerationMode { get; set; }

Property Value

MusicGenerationMode?

MuteBass

Whether the audio output should contain bass.

[JsonPropertyName("muteBass")]
public bool? MuteBass { get; set; }

Property Value

bool?

MuteDrums

Whether the audio output should contain drums.

[JsonPropertyName("muteDrums")]
public bool? MuteDrums { get; set; }

Property Value

bool?

OnlyBassAndDrums

Whether the audio output should contain only bass and drums.

[JsonPropertyName("onlyBassAndDrums")]
public bool? OnlyBassAndDrums { get; set; }

Property Value

bool?

Scale

Scale of the generated music.

[JsonPropertyName("scale")]
public Scale? Scale { get; set; }

Property Value

Scale?

Seed

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

[JsonPropertyName("seed")]
public int? Seed { get; set; }

Property Value

int?

Temperature

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

[JsonPropertyName("temperature")]
public double? Temperature { get; set; }

Property Value

double?

TopK

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

[JsonPropertyName("topK")]
public int? TopK { get; set; }

Property Value

int?