Generated Music
Makes a new instrumental track for your Lens and plays it. Say the mood you want, for example calm lofi for a rainy day. There are no words or singing.
Describe it and watch AI generate video, props, animations, or a whole new scene.
Made with this blockInputs
volumefloatVolume level. Hard limits: 0-1. Recommended range: 0.3-1.0. Values below 0.1 are nearly inaudible.
loopsintLoop count. 0 = play once. -1 = loop forever. Any positive integer = that many extra repeats. Hard limit: -1 minimum. For background music, use -1.
audioTrackmp3The audio file to play.
Functions
playvoidStarts playback with the configured loop count. No-op if audioTrack is not set
pausevoidPauses the currently playing audio.
resumevoidResumes playback from where it was paused.
stopvoidStops playback immediately (no fade)
isPlayingbooleanReturns true if audio is currently playing.
isPausedbooleanReturns true if audio is currently paused.
getPositionfloatReturns current playback position in seconds.
getDurationfloatReturns total duration of the audio track in seconds
setPositionvoidmoves (seeks) the audio to a specific time in seconds
onFinishvoidregisters a function that runs when the audio finishes playing
More in AI & Generative
- AI ClipsMakes a short AI video from a frame of your camera. Describe what happens on screen, for example you ride a dragon over a city.
- AI Clips AudioMakes a short AI video with sound from a frame of your camera. Describe what happens on screen and what you hear, for example rain on a tin roof.
- AI Video TransformRestyles the video you record, and keeps your original motion and timing. Say what to change, for example make me a zombie or put me on a beach.
- GenAI Head PropsPuts a 3D object on your head: a hat, a crown, a helmet or animal ears. Say what you want, for example a viking helmet.
- HyperGenPaints the whole camera view in a style you describe. Ask for the style, for example an oil painting, a comic or neon colors.
- HyperGen Face MLPaints a style over your face and head only. Ask for the look you want, for example a grey alien, a neon skull or a chrome face.
- SnapGenMakes a new image of you in a style you describe, then shows it over the camera view. Say the look you want, for example a bee costume or a comic book scene.
