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 EditsTakes a photo when you tap, then shows it back edited by AI. Say what to change, for example an anime style, a new outfit or a cyberpunk city behind you.
- AI Photo DuoMakes an AI image of you together with a second person, from a frame of your camera. Describe the idea for the two of you, for example astronauts on the moon.
- 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.
- Dreams AnimatedMakes an image of you in a style from one camera frame, then animates it into a short video. Say how it looks and how it moves, for example a watercolor portrait that smiles.
- Dreams Animated 2PMakes an image of you with a second person from one camera frame, then animates it into a short video. Say how the pair looks and moves, for example two knights raising swords.
- 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.
- Generative 3D Character AnimationMakes a 3D character with AI and animates it. Describe the character or give a picture, then describe the motion or give a video to copy, for example a dancing robot.
- 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.
