@kinetune/cli 0.1.2 → 0.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/kinetune.mjs +534 -27
- package/package.json +1 -1
package/dist/kinetune.mjs
CHANGED
|
@@ -29,7 +29,12 @@ var CATEGORY_IDS = [
|
|
|
29
29
|
"abstract",
|
|
30
30
|
"minimal",
|
|
31
31
|
"neon",
|
|
32
|
-
"pop-art"
|
|
32
|
+
"pop-art",
|
|
33
|
+
"lo-fi",
|
|
34
|
+
"grunge",
|
|
35
|
+
"cosmic",
|
|
36
|
+
"cyber",
|
|
37
|
+
"dreamy"
|
|
33
38
|
];
|
|
34
39
|
var CATEGORIES = {
|
|
35
40
|
release: { label: "Release", description: "Bold announcement looks for a new single.", background: "image" },
|
|
@@ -47,7 +52,12 @@ var CATEGORIES = {
|
|
|
47
52
|
abstract: { label: "Abstract", description: "Flowing color fields and gradients.", background: "gradient" },
|
|
48
53
|
minimal: { label: "Minimal", description: "Quiet color and clean type.", background: "gradient" },
|
|
49
54
|
neon: { label: "Neon", description: "Glowing color in the dark.", background: "gradient" },
|
|
50
|
-
"pop-art": { label: "Pop art", description: "Loud patterns and graphic color.", background: "pattern" }
|
|
55
|
+
"pop-art": { label: "Pop art", description: "Loud patterns and graphic color.", background: "pattern" },
|
|
56
|
+
"lo-fi": { label: "Lo-fi", description: "Cozy illustrated rooms, rainy windows and soft grain.", background: "image" },
|
|
57
|
+
grunge: { label: "Grunge", description: "Torn paper, concrete and raw black-and-white grit.", background: "image" },
|
|
58
|
+
cosmic: { label: "Cosmic", description: "Nebulae, planets and deep-space light.", background: "image" },
|
|
59
|
+
cyber: { label: "Cyber", description: "Cyberpunk streets, screens and digital glitches.", background: "image" },
|
|
60
|
+
dreamy: { label: "Dreamy", description: "Clouds, soft skies and hazy golden light.", background: "image" }
|
|
51
61
|
};
|
|
52
62
|
var categoryUsesImages = (id2) => CATEGORIES[id2].background === "image";
|
|
53
63
|
|
|
@@ -19762,7 +19772,7 @@ var FONTS = {
|
|
|
19762
19772
|
"space-mono": { family: "Space Mono", kind: "mono", weights: [400, 700] }
|
|
19763
19773
|
};
|
|
19764
19774
|
var FONT_IDS = Object.keys(FONTS);
|
|
19765
|
-
var LYRIC_FONT_IDS = FONT_IDS.filter((id2) => ["sans", "condensed", "serif"].includes(FONTS[id2].kind) &&
|
|
19775
|
+
var LYRIC_FONT_IDS = FONT_IDS.filter((id2) => ["sans", "condensed", "serif", "mono"].includes(FONTS[id2].kind) && id2 !== "abril-fatface");
|
|
19766
19776
|
|
|
19767
19777
|
// ../composition/src/song.ts
|
|
19768
19778
|
var SPECTRUM_BANDS = 32;
|
|
@@ -19784,8 +19794,422 @@ var VIZZ_ENGINE_IDS = [
|
|
|
19784
19794
|
"classic-spectrum"
|
|
19785
19795
|
];
|
|
19786
19796
|
|
|
19797
|
+
// ../composition/src/lyric-styles.ts
|
|
19798
|
+
var LYRIC_STAGES = ["showcase", "kinetic"];
|
|
19799
|
+
var LYRIC_LAYOUTS = ["line", "stack", "word", "scatter", "typewriter", "cascade", "subtitle", "chat"];
|
|
19800
|
+
var SHADER_REVEALS = ["burn", "ink", "smoke", "particles", "drip"];
|
|
19801
|
+
var LYRIC_REVEALS = ["fade", "rise", "pop", "blur", "slide", "drop", "flip", "glitch", "wipe", "type", ...SHADER_REVEALS];
|
|
19802
|
+
var LYRIC_EXITS = ["fade", "blur", "rise", "scale", "glitch", "cut", ...SHADER_REVEALS];
|
|
19803
|
+
var LYRIC_EFFECTS = ["fill", "glow", "scale", "lift", "color", "none"];
|
|
19804
|
+
var LYRIC_EMPHASES = ["none", "accent", "box", "underline", "size", "font"];
|
|
19805
|
+
var LYRIC_MATERIALS = ["solid", "glow", "outline", "shadow", "extrude", "chrome", "gradient", "grunge"];
|
|
19806
|
+
var LYRIC_POSITIONS = ["center", "upper", "lower"];
|
|
19807
|
+
var LYRIC_PLACES = ["front", "behind", "screen"];
|
|
19808
|
+
var SPECTRUM_STYLES = ["none", "bars", "mirror", "line", "wave", "dots", "circle"];
|
|
19809
|
+
var SPECTRUM_PLACEMENTS = ["bottom", "center", "top"];
|
|
19810
|
+
var PLAYER_STYLES = ["none", "bar", "card", "minimal"];
|
|
19811
|
+
var HERO_KINDS = ["none", "vinyl", "album", "tv", "cube", "cassette", "phone", "glass"];
|
|
19812
|
+
var amount = external_exports.number().min(0).max(1);
|
|
19813
|
+
var LyricsSchema = external_exports.object({
|
|
19814
|
+
stage: external_exports.enum(LYRIC_STAGES),
|
|
19815
|
+
layout: external_exports.enum(LYRIC_LAYOUTS),
|
|
19816
|
+
reveal: external_exports.enum(LYRIC_REVEALS),
|
|
19817
|
+
exit: external_exports.enum(LYRIC_EXITS),
|
|
19818
|
+
effect: external_exports.enum(LYRIC_EFFECTS),
|
|
19819
|
+
emphasis: external_exports.enum(LYRIC_EMPHASES),
|
|
19820
|
+
material: external_exports.enum(LYRIC_MATERIALS),
|
|
19821
|
+
panel: external_exports.enum(["none", "soft", "solid"]),
|
|
19822
|
+
size: external_exports.number().min(0.7).max(1.5),
|
|
19823
|
+
// × the layout's own size
|
|
19824
|
+
position: external_exports.enum(LYRIC_POSITIONS),
|
|
19825
|
+
// Where the lyrics sit: in front of everything; behind the photo's subject (a cut-out of the
|
|
19826
|
+
// plate is drawn over them); or on a screen inside the generated scene (corner-pinned onto it).
|
|
19827
|
+
// Without the cut-out or the screen they stay in front.
|
|
19828
|
+
place: external_exports.enum(LYRIC_PLACES)
|
|
19829
|
+
}).strict();
|
|
19830
|
+
var FxSchema = external_exports.object({
|
|
19831
|
+
shake: amount,
|
|
19832
|
+
// the frame jolts on hits
|
|
19833
|
+
zoom: amount,
|
|
19834
|
+
// the frame punches in on hits
|
|
19835
|
+
flash: amount,
|
|
19836
|
+
// an exposure flash on the strongest hits
|
|
19837
|
+
rgb: amount,
|
|
19838
|
+
// the lyrics split into red and cyan on hits
|
|
19839
|
+
glitch: amount
|
|
19840
|
+
// the lyrics slice and jump on the strongest hits
|
|
19841
|
+
}).strict();
|
|
19842
|
+
var SpectrumSchema = external_exports.object({
|
|
19843
|
+
style: external_exports.enum(SPECTRUM_STYLES),
|
|
19844
|
+
placement: external_exports.enum(SPECTRUM_PLACEMENTS),
|
|
19845
|
+
// circle is always centred
|
|
19846
|
+
size: external_exports.number().min(0.5).max(1.5),
|
|
19847
|
+
opacity: external_exports.number().min(0.2).max(1)
|
|
19848
|
+
}).strict();
|
|
19849
|
+
var FinishSchema = external_exports.object({
|
|
19850
|
+
grain: amount,
|
|
19851
|
+
vignette: amount,
|
|
19852
|
+
leak: amount,
|
|
19853
|
+
// drifting warm light leaks
|
|
19854
|
+
dust: amount,
|
|
19855
|
+
// specks and scratches
|
|
19856
|
+
droplets: amount,
|
|
19857
|
+
// rain on the glass in front of the frame, drops running down
|
|
19858
|
+
scanlines: external_exports.boolean(),
|
|
19859
|
+
// CRT lines and a faint flicker
|
|
19860
|
+
letterbox: external_exports.boolean()
|
|
19861
|
+
// cinema bars
|
|
19862
|
+
}).strict();
|
|
19863
|
+
var L = (lyrics) => ({
|
|
19864
|
+
stage: "kinetic",
|
|
19865
|
+
layout: "line",
|
|
19866
|
+
reveal: "rise",
|
|
19867
|
+
exit: "fade",
|
|
19868
|
+
effect: "none",
|
|
19869
|
+
emphasis: "none",
|
|
19870
|
+
material: "solid",
|
|
19871
|
+
panel: "none",
|
|
19872
|
+
size: 1,
|
|
19873
|
+
position: "center",
|
|
19874
|
+
place: "front",
|
|
19875
|
+
...lyrics
|
|
19876
|
+
});
|
|
19877
|
+
var FX = (fx = {}) => ({ shake: 0, zoom: 0, flash: 0, rgb: 0, glitch: 0, ...fx });
|
|
19878
|
+
var SP = (style = "none", spectrum = {}) => ({ style, placement: "bottom", size: 1, opacity: 0.8, ...spectrum });
|
|
19879
|
+
var FIN = (finish = {}) => ({ grain: 0, vignette: 0.3, leak: 0, dust: 0, droplets: 0, scanlines: false, letterbox: false, ...finish });
|
|
19880
|
+
var CONDENSED = ["bebas-neue", "anton", "oswald", "barlow-condensed", "big-shoulders-display", "archivo-black", "league-spartan"];
|
|
19881
|
+
var LYRIC_STYLES = {
|
|
19882
|
+
showcase: {
|
|
19883
|
+
label: "Showcase",
|
|
19884
|
+
description: "The release is the hero: cover, title and artist, with a karaoke line under them.",
|
|
19885
|
+
lyrics: L({ stage: "showcase", effect: "fill" }),
|
|
19886
|
+
fx: FX(),
|
|
19887
|
+
spectrum: SP(),
|
|
19888
|
+
finish: FIN({ vignette: 0 }),
|
|
19889
|
+
player: "none"
|
|
19890
|
+
},
|
|
19891
|
+
"block-stack": {
|
|
19892
|
+
label: "Block stack",
|
|
19893
|
+
description: "Words build into a bold justified block; short words grow huge.",
|
|
19894
|
+
lyrics: L({ layout: "stack", reveal: "pop", exit: "blur", effect: "none", emphasis: "accent", size: 1 }),
|
|
19895
|
+
fx: FX({ zoom: 0.35, shake: 0.15 }),
|
|
19896
|
+
spectrum: SP(),
|
|
19897
|
+
finish: FIN({ grain: 0.25, vignette: 0.45 }),
|
|
19898
|
+
player: "none",
|
|
19899
|
+
fonts: CONDENSED
|
|
19900
|
+
},
|
|
19901
|
+
punch: {
|
|
19902
|
+
label: "Punch",
|
|
19903
|
+
description: "One huge word at a time, hitting on the beat, with the line underneath.",
|
|
19904
|
+
lyrics: L({ layout: "word", reveal: "pop", exit: "cut", emphasis: "box", size: 1.1 }),
|
|
19905
|
+
fx: FX({ shake: 0.45, zoom: 0.5, flash: 0.2 }),
|
|
19906
|
+
spectrum: SP(),
|
|
19907
|
+
finish: FIN({ grain: 0.3, vignette: 0.5 }),
|
|
19908
|
+
player: "none",
|
|
19909
|
+
fonts: CONDENSED
|
|
19910
|
+
},
|
|
19911
|
+
"depth-scatter": {
|
|
19912
|
+
label: "Depth scatter",
|
|
19913
|
+
description: "Words float in at different depths and sharpen into focus.",
|
|
19914
|
+
lyrics: L({ layout: "scatter", reveal: "blur", exit: "blur", emphasis: "size", material: "glow" }),
|
|
19915
|
+
fx: FX({ zoom: 0.25, rgb: 0.25 }),
|
|
19916
|
+
spectrum: SP(),
|
|
19917
|
+
finish: FIN({ grain: 0.2, vignette: 0.5, dust: 0.2 }),
|
|
19918
|
+
player: "none"
|
|
19919
|
+
},
|
|
19920
|
+
neon: {
|
|
19921
|
+
label: "Neon",
|
|
19922
|
+
description: "Glowing tube-light lyrics with a spectrum glowing below.",
|
|
19923
|
+
lyrics: L({ layout: "line", reveal: "fade", exit: "fade", effect: "glow", material: "glow" }),
|
|
19924
|
+
fx: FX({ zoom: 0.2, flash: 0.15 }),
|
|
19925
|
+
spectrum: SP("mirror", { opacity: 0.7 }),
|
|
19926
|
+
finish: FIN({ vignette: 0.5 }),
|
|
19927
|
+
player: "none"
|
|
19928
|
+
},
|
|
19929
|
+
terminal: {
|
|
19930
|
+
label: "Terminal",
|
|
19931
|
+
description: "Lyrics typed out line by line on a glowing screen, with a cursor.",
|
|
19932
|
+
lyrics: L({ layout: "typewriter", reveal: "type", exit: "cut", effect: "color", material: "glow" }),
|
|
19933
|
+
fx: FX({ rgb: 0.2, glitch: 0.15 }),
|
|
19934
|
+
spectrum: SP("bars", { size: 0.8, opacity: 0.75 }),
|
|
19935
|
+
finish: FIN({ scanlines: true, grain: 0.15, vignette: 0.55 }),
|
|
19936
|
+
player: "minimal",
|
|
19937
|
+
fonts: ["space-mono"]
|
|
19938
|
+
},
|
|
19939
|
+
cinematic: {
|
|
19940
|
+
label: "Cinematic",
|
|
19941
|
+
description: "Elegant titles that breathe in and out of focus between cinema bars.",
|
|
19942
|
+
lyrics: L({ layout: "line", reveal: "blur", exit: "blur", effect: "none", emphasis: "font", size: 0.95 }),
|
|
19943
|
+
fx: FX(),
|
|
19944
|
+
spectrum: SP(),
|
|
19945
|
+
finish: FIN({ letterbox: true, grain: 0.3, vignette: 0.55, leak: 0.35 }),
|
|
19946
|
+
player: "none"
|
|
19947
|
+
},
|
|
19948
|
+
player: {
|
|
19949
|
+
label: "Player",
|
|
19950
|
+
description: "A music-app lyric sheet that scrolls with the song, with cover and progress bar.",
|
|
19951
|
+
lyrics: L({ layout: "cascade", reveal: "fade", exit: "fade", effect: "fill", size: 0.95 }),
|
|
19952
|
+
fx: FX(),
|
|
19953
|
+
spectrum: SP(),
|
|
19954
|
+
finish: FIN({ vignette: 0.25 }),
|
|
19955
|
+
player: "card"
|
|
19956
|
+
},
|
|
19957
|
+
"lo-fi": {
|
|
19958
|
+
label: "Lo-fi",
|
|
19959
|
+
description: "Soft words drifting up over grain and dust, with a quiet progress bar.",
|
|
19960
|
+
lyrics: L({ layout: "line", reveal: "rise", exit: "rise", effect: "color", size: 0.95 }),
|
|
19961
|
+
fx: FX({ zoom: 0.1 }),
|
|
19962
|
+
spectrum: SP(),
|
|
19963
|
+
finish: FIN({ grain: 0.45, dust: 0.35, vignette: 0.4, leak: 0.2 }),
|
|
19964
|
+
player: "bar"
|
|
19965
|
+
},
|
|
19966
|
+
zine: {
|
|
19967
|
+
label: "Zine",
|
|
19968
|
+
description: "Raw stacked type with grit, RGB hits and scratches.",
|
|
19969
|
+
lyrics: L({ layout: "stack", reveal: "slide", exit: "glitch", emphasis: "box", material: "grunge" }),
|
|
19970
|
+
fx: FX({ shake: 0.35, rgb: 0.5, glitch: 0.35, zoom: 0.25 }),
|
|
19971
|
+
spectrum: SP(),
|
|
19972
|
+
finish: FIN({ grain: 0.5, dust: 0.5, vignette: 0.45 }),
|
|
19973
|
+
player: "none",
|
|
19974
|
+
fonts: CONDENSED
|
|
19975
|
+
},
|
|
19976
|
+
glitch: {
|
|
19977
|
+
label: "Glitch",
|
|
19978
|
+
description: "Digital lyrics that tear, split and flicker with the beat.",
|
|
19979
|
+
lyrics: L({ layout: "line", reveal: "glitch", exit: "glitch", effect: "color", material: "solid" }),
|
|
19980
|
+
fx: FX({ rgb: 0.75, glitch: 0.7, shake: 0.25, flash: 0.15 }),
|
|
19981
|
+
spectrum: SP("line", { opacity: 0.6 }),
|
|
19982
|
+
finish: FIN({ scanlines: true, grain: 0.25, vignette: 0.4 }),
|
|
19983
|
+
player: "none"
|
|
19984
|
+
},
|
|
19985
|
+
"pop-art": {
|
|
19986
|
+
label: "Pop art",
|
|
19987
|
+
description: "Chunky words that bounce in with hard shadows and highlighter boxes.",
|
|
19988
|
+
lyrics: L({ layout: "stack", reveal: "drop", exit: "scale", emphasis: "box", material: "shadow" }),
|
|
19989
|
+
fx: FX({ zoom: 0.3, shake: 0.1 }),
|
|
19990
|
+
spectrum: SP(),
|
|
19991
|
+
finish: FIN({ vignette: 0.1 }),
|
|
19992
|
+
player: "none"
|
|
19993
|
+
},
|
|
19994
|
+
dreamy: {
|
|
19995
|
+
label: "Dreamy",
|
|
19996
|
+
description: "A soft lyric sheet that drifts through haze and light leaks.",
|
|
19997
|
+
lyrics: L({ layout: "cascade", reveal: "blur", exit: "blur", effect: "glow", material: "glow", size: 1.05 }),
|
|
19998
|
+
fx: FX({ zoom: 0.1 }),
|
|
19999
|
+
spectrum: SP(),
|
|
20000
|
+
finish: FIN({ leak: 0.5, grain: 0.2, vignette: 0.35 }),
|
|
20001
|
+
player: "none"
|
|
20002
|
+
},
|
|
20003
|
+
chrome: {
|
|
20004
|
+
label: "Chrome",
|
|
20005
|
+
description: "Polished metal lyrics that flip into place.",
|
|
20006
|
+
lyrics: L({ layout: "stack", reveal: "flip", exit: "scale", emphasis: "size", material: "chrome", size: 1.05 }),
|
|
20007
|
+
fx: FX({ zoom: 0.3, flash: 0.25 }),
|
|
20008
|
+
spectrum: SP(),
|
|
20009
|
+
finish: FIN({ vignette: 0.5, grain: 0.15 }),
|
|
20010
|
+
player: "none",
|
|
20011
|
+
fonts: CONDENSED
|
|
20012
|
+
},
|
|
20013
|
+
visualizer: {
|
|
20014
|
+
label: "Visualizer",
|
|
20015
|
+
description: "The cover inside a circular spectrum, lyrics beneath it.",
|
|
20016
|
+
lyrics: L({ layout: "subtitle", reveal: "rise", exit: "fade", effect: "fill", position: "lower", size: 0.9 }),
|
|
20017
|
+
fx: FX({ zoom: 0.3, shake: 0.1 }),
|
|
20018
|
+
spectrum: SP("circle", { opacity: 0.9 }),
|
|
20019
|
+
finish: FIN({ vignette: 0.45, grain: 0.1 }),
|
|
20020
|
+
player: "none"
|
|
20021
|
+
},
|
|
20022
|
+
minimal: {
|
|
20023
|
+
label: "Minimal",
|
|
20024
|
+
description: "Clean centred lines; the sung word lights up.",
|
|
20025
|
+
lyrics: L({ layout: "line", reveal: "rise", exit: "fade", effect: "color" }),
|
|
20026
|
+
fx: FX(),
|
|
20027
|
+
spectrum: SP(),
|
|
20028
|
+
finish: FIN({ vignette: 0.2 }),
|
|
20029
|
+
player: "none"
|
|
20030
|
+
},
|
|
20031
|
+
outline: {
|
|
20032
|
+
label: "Outline",
|
|
20033
|
+
description: "Hollow letters that fill in as each word is sung.",
|
|
20034
|
+
lyrics: L({ layout: "line", reveal: "wipe", exit: "fade", effect: "fill", material: "outline", size: 1.1 }),
|
|
20035
|
+
fx: FX({ zoom: 0.2 }),
|
|
20036
|
+
spectrum: SP("wave", { opacity: 0.5 }),
|
|
20037
|
+
finish: FIN({ vignette: 0.35, grain: 0.15 }),
|
|
20038
|
+
player: "none",
|
|
20039
|
+
fonts: CONDENSED
|
|
20040
|
+
},
|
|
20041
|
+
messages: {
|
|
20042
|
+
label: "Messages",
|
|
20043
|
+
description: "Each line arrives as a chat message, typed as it is sung.",
|
|
20044
|
+
lyrics: L({ layout: "chat", reveal: "pop", exit: "fade", effect: "none", position: "lower", size: 0.9 }),
|
|
20045
|
+
fx: FX(),
|
|
20046
|
+
spectrum: SP(),
|
|
20047
|
+
finish: FIN({ vignette: 0.25 }),
|
|
20048
|
+
player: "none"
|
|
20049
|
+
},
|
|
20050
|
+
vinyl: {
|
|
20051
|
+
label: "Vinyl",
|
|
20052
|
+
description: "Your cover spinning on a 3D turntable, the lyrics beside it.",
|
|
20053
|
+
lyrics: L({ layout: "line", reveal: "rise", exit: "fade", effect: "fill", size: 0.9 }),
|
|
20054
|
+
fx: FX({ zoom: 0.1 }),
|
|
20055
|
+
spectrum: SP(),
|
|
20056
|
+
finish: FIN({ grain: 0.25, vignette: 0.45, leak: 0.25 }),
|
|
20057
|
+
player: "none",
|
|
20058
|
+
hero: "vinyl"
|
|
20059
|
+
},
|
|
20060
|
+
album: {
|
|
20061
|
+
label: "Album",
|
|
20062
|
+
description: "Your cover floating in 3D over its reflection, lyrics beneath.",
|
|
20063
|
+
lyrics: L({ layout: "subtitle", reveal: "blur", exit: "blur", effect: "color", size: 0.95 }),
|
|
20064
|
+
fx: FX({ zoom: 0.15 }),
|
|
20065
|
+
spectrum: SP("line", { opacity: 0.55 }),
|
|
20066
|
+
finish: FIN({ vignette: 0.45, grain: 0.12 }),
|
|
20067
|
+
player: "none",
|
|
20068
|
+
hero: "album"
|
|
20069
|
+
},
|
|
20070
|
+
tv: {
|
|
20071
|
+
label: "Retro TV",
|
|
20072
|
+
description: "A 3D CRT television typing your lyrics on its glowing screen.",
|
|
20073
|
+
lyrics: L({ layout: "typewriter", reveal: "type", exit: "cut", effect: "color", material: "glow" }),
|
|
20074
|
+
fx: FX({ rgb: 0.15 }),
|
|
20075
|
+
spectrum: SP(),
|
|
20076
|
+
finish: FIN({ grain: 0.3, vignette: 0.5, dust: 0.2 }),
|
|
20077
|
+
player: "none",
|
|
20078
|
+
hero: "tv",
|
|
20079
|
+
fonts: ["space-mono"]
|
|
20080
|
+
},
|
|
20081
|
+
cube: {
|
|
20082
|
+
label: "Cube",
|
|
20083
|
+
description: "Each line printed on a face of a 3D cube that turns with the song.",
|
|
20084
|
+
lyrics: L({ layout: "line", reveal: "fade", exit: "cut", effect: "color", emphasis: "accent" }),
|
|
20085
|
+
fx: FX({ zoom: 0.2, shake: 0.1 }),
|
|
20086
|
+
spectrum: SP(),
|
|
20087
|
+
finish: FIN({ grain: 0.2, vignette: 0.5 }),
|
|
20088
|
+
player: "none",
|
|
20089
|
+
hero: "cube",
|
|
20090
|
+
fonts: CONDENSED
|
|
20091
|
+
},
|
|
20092
|
+
cassette: {
|
|
20093
|
+
label: "Boombox",
|
|
20094
|
+
description: "A 3D boombox whose display scrolls your lyrics while the tape turns.",
|
|
20095
|
+
lyrics: L({ layout: "typewriter", reveal: "type", exit: "cut", effect: "color", material: "glow" }),
|
|
20096
|
+
fx: FX({ zoom: 0.15 }),
|
|
20097
|
+
spectrum: SP(),
|
|
20098
|
+
finish: FIN({ grain: 0.3, vignette: 0.5, leak: 0.2 }),
|
|
20099
|
+
player: "none",
|
|
20100
|
+
hero: "cassette",
|
|
20101
|
+
fonts: ["space-mono"]
|
|
20102
|
+
},
|
|
20103
|
+
phone: {
|
|
20104
|
+
label: "Phone",
|
|
20105
|
+
description: "Your lyrics arriving as messages on a 3D phone.",
|
|
20106
|
+
lyrics: L({ layout: "chat", reveal: "pop", exit: "fade", effect: "none" }),
|
|
20107
|
+
fx: FX({ zoom: 0.1 }),
|
|
20108
|
+
spectrum: SP(),
|
|
20109
|
+
finish: FIN({ vignette: 0.45, grain: 0.1 }),
|
|
20110
|
+
player: "none",
|
|
20111
|
+
hero: "phone"
|
|
20112
|
+
},
|
|
20113
|
+
glass: {
|
|
20114
|
+
label: "Glass",
|
|
20115
|
+
description: "Iridescent glass shapes drifting over your lyrics and bending them.",
|
|
20116
|
+
lyrics: L({ layout: "line", reveal: "blur", exit: "blur", effect: "color", size: 1.1 }),
|
|
20117
|
+
fx: FX({ zoom: 0.15 }),
|
|
20118
|
+
spectrum: SP(),
|
|
20119
|
+
finish: FIN({ vignette: 0.45, grain: 0.12 }),
|
|
20120
|
+
player: "none",
|
|
20121
|
+
hero: "glass",
|
|
20122
|
+
fonts: CONDENSED
|
|
20123
|
+
},
|
|
20124
|
+
embers: {
|
|
20125
|
+
label: "Embers",
|
|
20126
|
+
description: "Lines burn in from glowing edges and burn away to ash.",
|
|
20127
|
+
lyrics: L({ layout: "line", reveal: "burn", exit: "burn", effect: "color", size: 1.05 }),
|
|
20128
|
+
fx: FX({ zoom: 0.2, flash: 0.1 }),
|
|
20129
|
+
spectrum: SP(),
|
|
20130
|
+
finish: FIN({ grain: 0.3, vignette: 0.55 }),
|
|
20131
|
+
player: "none"
|
|
20132
|
+
},
|
|
20133
|
+
ink: {
|
|
20134
|
+
label: "Ink",
|
|
20135
|
+
description: "Words bleed in like ink in water, then wash away.",
|
|
20136
|
+
lyrics: L({ layout: "line", reveal: "ink", exit: "ink", effect: "fill", size: 1.05 }),
|
|
20137
|
+
fx: FX(),
|
|
20138
|
+
spectrum: SP(),
|
|
20139
|
+
finish: FIN({ grain: 0.2, vignette: 0.35 }),
|
|
20140
|
+
player: "none"
|
|
20141
|
+
},
|
|
20142
|
+
smoke: {
|
|
20143
|
+
label: "Smoke",
|
|
20144
|
+
description: "Lyrics form out of smoke and drift away.",
|
|
20145
|
+
lyrics: L({ layout: "line", reveal: "smoke", exit: "smoke", effect: "glow", material: "glow" }),
|
|
20146
|
+
fx: FX({ zoom: 0.1 }),
|
|
20147
|
+
spectrum: SP(),
|
|
20148
|
+
finish: FIN({ leak: 0.2, grain: 0.2, vignette: 0.5 }),
|
|
20149
|
+
player: "none"
|
|
20150
|
+
},
|
|
20151
|
+
stardust: {
|
|
20152
|
+
label: "Stardust",
|
|
20153
|
+
description: "Each line swarms together out of glowing particles and blows away.",
|
|
20154
|
+
lyrics: L({ layout: "line", reveal: "particles", exit: "particles", effect: "color", material: "glow" }),
|
|
20155
|
+
fx: FX({ zoom: 0.15 }),
|
|
20156
|
+
spectrum: SP(),
|
|
20157
|
+
finish: FIN({ vignette: 0.5, grain: 0.1 }),
|
|
20158
|
+
player: "none"
|
|
20159
|
+
},
|
|
20160
|
+
drip: {
|
|
20161
|
+
label: "Drip",
|
|
20162
|
+
description: "Chromatic letters that smear and drip down, splitting on the beat.",
|
|
20163
|
+
lyrics: L({ layout: "line", reveal: "drip", exit: "drip", effect: "color", size: 1.1 }),
|
|
20164
|
+
fx: FX({ rgb: 0.45, glitch: 0.15, zoom: 0.2 }),
|
|
20165
|
+
spectrum: SP(),
|
|
20166
|
+
finish: FIN({ grain: 0.25, vignette: 0.45 }),
|
|
20167
|
+
player: "none",
|
|
20168
|
+
fonts: CONDENSED
|
|
20169
|
+
},
|
|
20170
|
+
rain: {
|
|
20171
|
+
label: "Rainy window",
|
|
20172
|
+
description: "Lyrics behind a window streaked with rain.",
|
|
20173
|
+
lyrics: L({ layout: "line", reveal: "blur", exit: "blur", effect: "color" }),
|
|
20174
|
+
fx: FX(),
|
|
20175
|
+
spectrum: SP(),
|
|
20176
|
+
finish: FIN({ droplets: 0.8, vignette: 0.45, grain: 0.15 }),
|
|
20177
|
+
player: "none"
|
|
20178
|
+
},
|
|
20179
|
+
screen: {
|
|
20180
|
+
label: "On screen",
|
|
20181
|
+
description: "Your lyrics typed on a screen inside the scene: a phone, a monitor, a billboard.",
|
|
20182
|
+
lyrics: L({ layout: "typewriter", reveal: "type", exit: "cut", effect: "color", material: "glow", place: "screen" }),
|
|
20183
|
+
fx: FX({ rgb: 0.1 }),
|
|
20184
|
+
spectrum: SP(),
|
|
20185
|
+
finish: FIN({ grain: 0.2, vignette: 0.4 }),
|
|
20186
|
+
player: "none"
|
|
20187
|
+
},
|
|
20188
|
+
behind: {
|
|
20189
|
+
label: "Behind",
|
|
20190
|
+
description: "Giant words stacked behind the subject of your photo, the subject standing in front of them.",
|
|
20191
|
+
lyrics: L({ layout: "stack", reveal: "rise", exit: "fade", emphasis: "accent", size: 1.3, position: "upper", place: "behind" }),
|
|
20192
|
+
fx: FX({ zoom: 0.15 }),
|
|
20193
|
+
spectrum: SP(),
|
|
20194
|
+
finish: FIN({ grain: 0.15, vignette: 0.35 }),
|
|
20195
|
+
player: "none",
|
|
20196
|
+
fonts: CONDENSED
|
|
20197
|
+
},
|
|
20198
|
+
"big-type": {
|
|
20199
|
+
label: "Big type",
|
|
20200
|
+
description: "Giant gradient words stacking up, with a spectrum along the floor.",
|
|
20201
|
+
lyrics: L({ layout: "stack", reveal: "rise", exit: "rise", emphasis: "underline", material: "gradient" }),
|
|
20202
|
+
fx: FX({ zoom: 0.35, flash: 0.1 }),
|
|
20203
|
+
spectrum: SP("bars", { opacity: 0.6 }),
|
|
20204
|
+
finish: FIN({ vignette: 0.4 }),
|
|
20205
|
+
player: "none",
|
|
20206
|
+
fonts: CONDENSED
|
|
20207
|
+
}
|
|
20208
|
+
};
|
|
20209
|
+
var LYRIC_STYLE_IDS = Object.keys(LYRIC_STYLES);
|
|
20210
|
+
|
|
19787
20211
|
// ../composition/src/look.ts
|
|
19788
|
-
var LOOK_VERSION =
|
|
20212
|
+
var LOOK_VERSION = 3;
|
|
19789
20213
|
var ASPECT_RATIOS = ["9:16", "16:9", "1:1"];
|
|
19790
20214
|
var AspectRatioSchema = external_exports.enum(ASPECT_RATIOS);
|
|
19791
20215
|
var hex3 = external_exports.string().regex(/^#[0-9a-fA-F]{6}$/, "6-digit hex color");
|
|
@@ -19816,9 +20240,9 @@ var ShotSchema = external_exports.object({
|
|
|
19816
20240
|
}).strict();
|
|
19817
20241
|
var OVERLAYS = ["none", "snow", "leaves", "petals", "embers", "sparkles", "rain", "confetti", "hearts", "dust"];
|
|
19818
20242
|
var PATTERNS = ["stripes", "dots", "grid", "waves", "checker", "sunburst", "halftone", "zigzag"];
|
|
19819
|
-
var BACKGROUND_MOTIONS = ["still", "zoom-in", "zoom-out", "ken-burns", "tilt"];
|
|
20243
|
+
var BACKGROUND_MOTIONS = ["still", "zoom-in", "zoom-out", "ken-burns", "tilt", "parallax"];
|
|
19820
20244
|
var MOTION_DIRECTIONS = ["center", "up", "down", "left", "right", "up-left", "up-right", "down-left", "down-right"];
|
|
19821
|
-
var BACKGROUND_SOURCES = ["generated", "stock"];
|
|
20245
|
+
var BACKGROUND_SOURCES = ["generated", "stock", "upload"];
|
|
19822
20246
|
var backgroundMedia = {
|
|
19823
20247
|
source: external_exports.enum(BACKGROUND_SOURCES),
|
|
19824
20248
|
prompt: external_exports.string().min(10).max(2e3),
|
|
@@ -19835,7 +20259,10 @@ var BackgroundSchema = external_exports.discriminatedUnion("kind", [
|
|
|
19835
20259
|
kind: external_exports.literal("image"),
|
|
19836
20260
|
...backgroundMedia,
|
|
19837
20261
|
motion: external_exports.enum(BACKGROUND_MOTIONS),
|
|
19838
|
-
direction: external_exports.enum(MOTION_DIRECTIONS)
|
|
20262
|
+
direction: external_exports.enum(MOTION_DIRECTIONS),
|
|
20263
|
+
// Scene sequences (generated): the prompts of the shots after the first, which cut on the song's
|
|
20264
|
+
// sections (see sceneAt).
|
|
20265
|
+
scenes: external_exports.array(external_exports.string().min(10).max(1e3)).min(1).max(3).optional()
|
|
19839
20266
|
}).strict(),
|
|
19840
20267
|
// A seamless loop (its still is the first and last frame) that repeats under the whole song. It
|
|
19841
20268
|
// only pulses with the beat; the blur is baked into the stored loop.
|
|
@@ -19878,10 +20305,14 @@ var LookSpecSchema = external_exports.object({
|
|
|
19878
20305
|
}).strict(),
|
|
19879
20306
|
headline: external_exports.object({ style: external_exports.enum(["pill", "plain", "underline", "outline", "ribbon"]), default: external_exports.enum(HEADLINES) }).strict(),
|
|
19880
20307
|
badges: external_exports.object({ style: external_exports.enum(["light", "dark", "glass", "outline"]) }).strict(),
|
|
19881
|
-
|
|
19882
|
-
|
|
19883
|
-
|
|
19884
|
-
|
|
20308
|
+
// The lyric style the motion below came from (see lyric-styles.ts) and its expanded settings.
|
|
20309
|
+
style: external_exports.enum(LYRIC_STYLE_IDS),
|
|
20310
|
+
lyrics: LyricsSchema,
|
|
20311
|
+
fx: FxSchema,
|
|
20312
|
+
spectrum: SpectrumSchema,
|
|
20313
|
+
finish: FinishSchema,
|
|
20314
|
+
player: external_exports.enum(PLAYER_STYLES),
|
|
20315
|
+
hero: external_exports.enum(HERO_KINDS),
|
|
19885
20316
|
background: BackgroundSchema,
|
|
19886
20317
|
overlay: external_exports.object({ kind: external_exports.enum(OVERLAYS), density: external_exports.number().min(0).max(1) }).strict(),
|
|
19887
20318
|
visualizer: external_exports.object({
|
|
@@ -19934,19 +20365,35 @@ var TrimSchema = external_exports.object({
|
|
|
19934
20365
|
start_seconds: external_exports.number().min(0),
|
|
19935
20366
|
end_seconds: external_exports.number().positive()
|
|
19936
20367
|
}).strict().refine((v) => v.end_seconds > v.start_seconds, { message: "end_seconds must be greater than start_seconds" }).refine((v) => v.end_seconds - v.start_seconds >= MIN_TRIM_SECONDS - 1e-6, { message: `The trimmed section must be at least ${MIN_TRIM_SECONDS} seconds` });
|
|
19937
|
-
var BACKGROUND_SOURCE_IDS = ["ai-image", "ai-video", "stock-photo", "stock-video", "designed"];
|
|
19938
|
-
var MEDIA_BACKGROUND_SOURCES = ["ai-image", "ai-video", "stock-photo", "stock-video"];
|
|
20368
|
+
var BACKGROUND_SOURCE_IDS = ["ai-image", "ai-video", "stock-photo", "stock-video", "upload-photo", "upload-video", "designed"];
|
|
20369
|
+
var MEDIA_BACKGROUND_SOURCES = ["ai-image", "ai-video", "stock-photo", "stock-video", "upload-photo", "upload-video"];
|
|
19939
20370
|
var BACKGROUND_SOURCES2 = {
|
|
19940
20371
|
"ai-image": { label: "AI image", description: "An image made for this Look, moving slowly across the song.", kind: "image", source: "generated" },
|
|
19941
20372
|
"ai-video": { label: "AI video loop", description: "An AI image brought to life as a seamless loop.", kind: "video", source: "generated" },
|
|
19942
|
-
"stock-photo": { label: "Stock photo", description: "A photo picked
|
|
20373
|
+
"stock-photo": { label: "Stock photo", description: "A Pexels photo, picked by the director or by you.", kind: "image", source: "stock" },
|
|
19943
20374
|
"stock-video": { label: "Stock video", description: "A Pexels clip made into a seamless loop.", kind: "video", source: "stock" },
|
|
20375
|
+
"upload-photo": { label: "Your photo", description: "A photo you upload, moving slowly across the song.", kind: "image", source: "upload" },
|
|
20376
|
+
"upload-video": { label: "Your video", description: "A clip you upload, made into a seamless loop.", kind: "video", source: "upload" },
|
|
19944
20377
|
designed: { label: "Designed", description: "A drawn gradient or pattern.", kind: null, source: null }
|
|
19945
20378
|
};
|
|
20379
|
+
var MAX_BACKGROUND_SCENES = 4;
|
|
20380
|
+
var SINGLE_SCENE_STYLES = ["behind", "screen"];
|
|
20381
|
+
var StockIdSchema = external_exports.string().regex(/^\d{1,20}$/, "A Pexels photo or video id (digits)");
|
|
19946
20382
|
var BackgroundRequestSchema = external_exports.object({
|
|
19947
20383
|
source: external_exports.enum(BACKGROUND_SOURCE_IDS).optional(),
|
|
19948
|
-
quality: external_exports.enum(BACKGROUND_TIERS).default("high")
|
|
20384
|
+
quality: external_exports.enum(BACKGROUND_TIERS).default("high"),
|
|
20385
|
+
/** The uploaded photo or video (POST /backgrounds) for the upload-photo and upload-video sources. */
|
|
20386
|
+
upload_id: external_exports.string().min(1).max(120).optional(),
|
|
20387
|
+
/** How many scenes an AI image background has (1 by default). */
|
|
20388
|
+
scenes: external_exports.number().int().min(1).max(MAX_BACKGROUND_SCENES).optional(),
|
|
20389
|
+
/** The Pexels photo or video (GET /stock) for the stock-photo and stock-video sources; omitted, the director searches and picks. */
|
|
20390
|
+
stock_id: StockIdSchema.optional()
|
|
19949
20391
|
}).strict();
|
|
20392
|
+
var BACKGROUND_UPLOAD_LIMITS = {
|
|
20393
|
+
image: { maxBytes: 25 * 1024 * 1024, minShortSide: 720, types: ["image/jpeg", "image/png", "image/webp"] },
|
|
20394
|
+
video: { maxBytes: 300 * 1024 * 1024, minShortSide: 720, minSeconds: 4, maxSeconds: 180, types: ["video/mp4", "video/quicktime", "video/webm"] }
|
|
20395
|
+
};
|
|
20396
|
+
var isUploadSource = (source) => BACKGROUND_SOURCES2[source].source === "upload";
|
|
19950
20397
|
var backgroundSourcesFor = (category) => categoryUsesImages(category) ? MEDIA_BACKGROUND_SOURCES : ["designed"];
|
|
19951
20398
|
var backgroundSourceFor = (category, background) => background.source ?? backgroundSourcesFor(category)[0];
|
|
19952
20399
|
var FEATURE_ARTIST_MODES = ["auto", "always", "never"];
|
|
@@ -19958,9 +20405,10 @@ var LookRequestSchema = external_exports.discriminatedUnion("mode", [
|
|
|
19958
20405
|
background: BackgroundRequestSchema.default({ quality: "high" }),
|
|
19959
20406
|
visibility: external_exports.enum(["private", "public"]).default("private"),
|
|
19960
20407
|
direction: external_exports.string().trim().max(2e3).optional(),
|
|
19961
|
-
feature_artist: featureArtist
|
|
20408
|
+
feature_artist: featureArtist,
|
|
20409
|
+
lyric_style: external_exports.enum(LYRIC_STYLE_IDS).optional()
|
|
19962
20410
|
}).strict(),
|
|
19963
|
-
external_exports.object({ mode: external_exports.literal("existing"), id: external_exports.string().min(1).max(120) }).strict()
|
|
20411
|
+
external_exports.object({ mode: external_exports.literal("existing"), id: external_exports.string().min(1).max(120), lyric_style: external_exports.enum(LYRIC_STYLE_IDS).optional() }).strict()
|
|
19964
20412
|
]);
|
|
19965
20413
|
var common = {
|
|
19966
20414
|
song_id: external_exports.string().min(1).max(120),
|
|
@@ -19986,6 +20434,18 @@ var LyricVideoRequestSchema = external_exports.object({
|
|
|
19986
20434
|
message: `The ${value.look.category} category takes ${allowed.map((s) => `"${s}"`).join(", ")}`
|
|
19987
20435
|
});
|
|
19988
20436
|
}
|
|
20437
|
+
if (value.look.mode === "new") {
|
|
20438
|
+
const upload = value.look.background.source ? isUploadSource(value.look.background.source) : false;
|
|
20439
|
+
if (upload && !value.look.background.upload_id) ctx.addIssue({ code: "custom", path: ["look", "background", "upload_id"], message: "Upload the photo or video first (POST /backgrounds) and pass its id" });
|
|
20440
|
+
if (!upload && value.look.background.upload_id) ctx.addIssue({ code: "custom", path: ["look", "background", "upload_id"], message: "upload_id goes with the upload-photo and upload-video sources" });
|
|
20441
|
+
if (value.look.background.stock_id && BACKGROUND_SOURCES2[backgroundSourceFor(value.look.category, value.look.background)].source !== "stock")
|
|
20442
|
+
ctx.addIssue({ code: "custom", path: ["look", "background", "stock_id"], message: "stock_id goes with the stock-photo and stock-video sources" });
|
|
20443
|
+
if (upload && value.look.visibility === "public") ctx.addIssue({ code: "custom", path: ["look", "visibility"], message: "A Look with your own background stays private" });
|
|
20444
|
+
if ((value.look.background.scenes ?? 1) > 1 && backgroundSourceFor(value.look.category, value.look.background) !== "ai-image")
|
|
20445
|
+
ctx.addIssue({ code: "custom", path: ["look", "background", "scenes"], message: "More than one scene is only available with an AI image background" });
|
|
20446
|
+
if ((value.look.background.scenes ?? 1) > 1 && SINGLE_SCENE_STYLES.includes(value.look.lyric_style ?? ""))
|
|
20447
|
+
ctx.addIssue({ code: "custom", path: ["look", "background", "scenes"], message: `The ${value.look.lyric_style} lyric style takes a single scene` });
|
|
20448
|
+
}
|
|
19989
20449
|
if (value.look.mode === "new" && value.look.feature_artist === "always") {
|
|
19990
20450
|
if (BACKGROUND_SOURCES2[backgroundSourceFor(value.look.category, value.look.background)].source !== "generated")
|
|
19991
20451
|
ctx.addIssue({ code: "custom", path: ["look", "feature_artist"], message: "Only an AI image or AI video background can show the artist" });
|
|
@@ -20013,10 +20473,14 @@ var CanvasRequestSchema = external_exports.object({
|
|
|
20013
20473
|
style: external_exports.enum(CANVAS_STYLES).optional(),
|
|
20014
20474
|
direction: external_exports.string().trim().max(2e3).optional(),
|
|
20015
20475
|
feature_artist: featureArtist,
|
|
20016
|
-
seconds: external_exports.number().int().min(CANVAS_MIN_SECONDS).max(CANVAS_MAX_SECONDS).default(CANVAS_MAX_SECONDS)
|
|
20476
|
+
seconds: external_exports.number().int().min(CANVAS_MIN_SECONDS).max(CANVAS_MAX_SECONDS).default(CANVAS_MAX_SECONDS),
|
|
20477
|
+
/** The Pexels photo or video (GET /stock) for the stock sources; omitted, the director searches and picks. */
|
|
20478
|
+
stock_id: StockIdSchema.optional()
|
|
20017
20479
|
}).strict().superRefine((value, ctx) => {
|
|
20018
20480
|
if (value.feature_artist === "always" && CANVAS_SOURCES[value.source].source === "stock")
|
|
20019
20481
|
ctx.addIssue({ code: "custom", path: ["feature_artist"], message: "Only an AI image or AI video Canvas can show the artist" });
|
|
20482
|
+
if (value.stock_id && CANVAS_SOURCES[value.source].source !== "stock")
|
|
20483
|
+
ctx.addIssue({ code: "custom", path: ["stock_id"], message: "stock_id goes with the stock-photo and stock-video sources" });
|
|
20020
20484
|
});
|
|
20021
20485
|
var VideoRequestSchema = external_exports.discriminatedUnion("type", [LyricVideoRequestSchema, CanvasRequestSchema]);
|
|
20022
20486
|
|
|
@@ -20041,6 +20505,7 @@ var search = (q) => ({
|
|
|
20041
20505
|
offset: external_exports.number().int().min(0).optional().describe("How many results to skip")
|
|
20042
20506
|
});
|
|
20043
20507
|
var httpsUrl = (what) => external_exports.string().url().max(2e3).describe(`A public https URL of ${what}`);
|
|
20508
|
+
var COVER_SIZES = "cover_art.url is the cover at up to 1536 px (JPEG; width and height describe it), preview_url a 640 px and thumbnail_url a 160 px WebP. Image links are signed for 7 days and stay the same all day, so they can be cached.";
|
|
20044
20509
|
var { type: _lyricType, quote_id: _lyricQuote, ...lyricShape } = LyricVideoRequestSchema.shape;
|
|
20045
20510
|
var { type: _canvasType, quote_id: _canvasQuote, ...canvasShape } = CanvasRequestSchema.shape;
|
|
20046
20511
|
var QUOTE_ID = external_exports.string().uuid().describe("The quote_id from the matching quote: the request must be identical");
|
|
@@ -20051,7 +20516,7 @@ var lyricInput = external_exports.object({
|
|
|
20051
20516
|
song_id: songId,
|
|
20052
20517
|
callback_url: CALLBACK,
|
|
20053
20518
|
metadata: METADATA,
|
|
20054
|
-
look: lyricShape.look.describe(
|
|
20519
|
+
look: lyricShape.look.describe(`{"mode":"existing","id":"look_\u2026"} to reuse a saved Look (add "lyric_style" to render it in another lyric style, at no extra cost), or {"mode":"new","category":"\u2026","lyric_style":"\u2026","background":{"source":"ai-image","quality":"high"},"visibility":"private","direction":"\u2026","feature_artist":"auto"} to have one designed (background.source "upload-photo"/"upload-video" with background.upload_id from upload_background designs it around your own media; such a Look stays private. "stock-photo"/"stock-video" with background.stock_id from search_stock uses that Pexels item instead of the director's pick). lyric_style (optional, from get_options) sets how the lyrics are presented and animated: block-stack, punch, player, neon, terminal, cinematic\u2026 Omit it and the director picks one. background.scenes (2\u20134, AI image only) makes that many shots of the same world that cut on the song's sections, each priced like the first`),
|
|
20055
20520
|
aspect_ratios: lyricShape.aspect_ratios.describe('Formats to render, each its own file: "9:16" (vertical), "16:9" (wide), "1:1" (square)'),
|
|
20056
20521
|
display: lyricShape.display.describe("Which elements show (title, artist, cover, lyrics, badges, headline) and their sizes"),
|
|
20057
20522
|
trim: lyricShape.trim.describe("Render only this section of the song (at least 8 seconds)"),
|
|
@@ -20063,6 +20528,7 @@ var canvasInput = external_exports.object({
|
|
|
20063
20528
|
callback_url: CALLBACK,
|
|
20064
20529
|
metadata: METADATA,
|
|
20065
20530
|
source: canvasShape.source.describe("ai-video (default), ai-image, stock-photo or stock-video"),
|
|
20531
|
+
stock_id: canvasShape.stock_id.describe("With a stock source: the Pexels photo or video (search_stock with seconds) to use instead of the director's pick"),
|
|
20066
20532
|
quality: canvasShape.quality.describe("AI video model tier: standard or high"),
|
|
20067
20533
|
resolution: canvasShape.resolution.describe("1080p (1080\xD71920) or 720p"),
|
|
20068
20534
|
style: canvasShape.style.describe("Optional visual style"),
|
|
@@ -20193,7 +20659,7 @@ var OPERATIONS = [
|
|
|
20193
20659
|
group: "artists",
|
|
20194
20660
|
title: "Set the artist picture",
|
|
20195
20661
|
summary: "Choose which photo is the artist\u2019s picture, and how it is cropped to a square",
|
|
20196
|
-
description: "The picture
|
|
20662
|
+
description: "The picture (image_url on the artist, a 512 px square) is cut from one of the artist\u2019s photos; the photo itself is unchanged. The first photo becomes the picture automatically, centered. crop is in fractions of the photo (its url): x/y the top-left corner, size the side relative to the photo\u2019s short side; leave it out to center.",
|
|
20197
20663
|
method: "POST",
|
|
20198
20664
|
path: "/api/v1/artists/{artist_id}/picture",
|
|
20199
20665
|
scopes: ["music:write", "videos:write"],
|
|
@@ -20215,7 +20681,7 @@ var OPERATIONS = [
|
|
|
20215
20681
|
group: "artists",
|
|
20216
20682
|
title: "List artist photos",
|
|
20217
20683
|
summary: "The artist\u2019s photos (identity references, up to 6)",
|
|
20218
|
-
description: "Photos keep the artist recognizable when a Look or Canvas shows them; the cover art stays the creative source.",
|
|
20684
|
+
description: "Photos keep the artist recognizable when a Look or Canvas shows them; the cover art stays the creative source. url is the photo upright at up to 1536 px (what the AI receives; width and height describe it), thumbnail_url a copy 320 px on its short side for grids.",
|
|
20219
20685
|
method: "GET",
|
|
20220
20686
|
path: "/api/v1/artists/{artist_id}/photos",
|
|
20221
20687
|
scopes: ["music:read", "videos:read"],
|
|
@@ -20231,7 +20697,7 @@ var OPERATIONS = [
|
|
|
20231
20697
|
group: "artists",
|
|
20232
20698
|
title: "Add artist photos",
|
|
20233
20699
|
summary: "Upload one or more photos of the artist (JPEG, PNG or WebP)",
|
|
20234
|
-
description: "Up to 6 per artist, at least 512 px on the short side, up to 15 MB each. Only with the rights to use them (rights_confirmed). They are identity references only: never shown publicly or used as they are.",
|
|
20700
|
+
description: "Up to 6 per artist, at least 512 px on the short side, up to 15 MB each. Only with the rights to use them (rights_confirmed). They are identity references only: never shown publicly or used as they are. Each is kept upright at up to 1536 px, with a small thumbnail; the uploaded file itself is not kept.",
|
|
20235
20701
|
method: "POST",
|
|
20236
20702
|
path: "/api/v1/artists/{artist_id}/photos",
|
|
20237
20703
|
scopes: ["music:write", "videos:write"],
|
|
@@ -20269,7 +20735,7 @@ var OPERATIONS = [
|
|
|
20269
20735
|
group: "songs",
|
|
20270
20736
|
title: "List songs",
|
|
20271
20737
|
summary: "Songs with their cover, duration and analysis status",
|
|
20272
|
-
description:
|
|
20738
|
+
description: `A song must be analyzed (analysis.status "ready") before videos can be made. 50 per page by default: pass q to search, and limit/offset to page. ${COVER_SIZES}`,
|
|
20273
20739
|
method: "GET",
|
|
20274
20740
|
path: "/api/v1/songs",
|
|
20275
20741
|
scopes: ["music:read", "videos:read"],
|
|
@@ -20290,7 +20756,7 @@ var OPERATIONS = [
|
|
|
20290
20756
|
group: "songs",
|
|
20291
20757
|
title: "Upload a song",
|
|
20292
20758
|
summary: "Add a song: master audio and square cover art",
|
|
20293
|
-
description: 'Audio: MP3, WAV or M4A up to 250 MB. Cover: a square JPEG or PNG, 1000\u20136000 px (3000\xD73000 recommended), up to 20 MB. The song is analyzed next (lyrics, beats, sections): poll get_song until analysis.status is "ready", usually about a minute.',
|
|
20759
|
+
description: 'Audio: MP3, WAV or M4A up to 250 MB. Cover: a square JPEG or PNG, 1000\u20136000 px (3000\xD73000 recommended), up to 20 MB; it is kept at 1536, 640 and 160 px, not as uploaded. The song is analyzed next (lyrics, beats, sections): poll get_song until analysis.status is "ready", usually about a minute.',
|
|
20294
20760
|
method: "POST",
|
|
20295
20761
|
path: "/api/v1/songs",
|
|
20296
20762
|
scopes: ["music:write", "videos:write"],
|
|
@@ -20316,7 +20782,7 @@ var OPERATIONS = [
|
|
|
20316
20782
|
group: "songs",
|
|
20317
20783
|
title: "Get a song",
|
|
20318
20784
|
summary: "One song and its analysis status",
|
|
20319
|
-
description:
|
|
20785
|
+
description: COVER_SIZES,
|
|
20320
20786
|
method: "GET",
|
|
20321
20787
|
path: "/api/v1/songs/{song_id}",
|
|
20322
20788
|
scopes: ["music:read", "videos:read"],
|
|
@@ -20404,6 +20870,7 @@ var OPERATIONS = [
|
|
|
20404
20870
|
input: external_exports.object({
|
|
20405
20871
|
scope: external_exports.enum(["all", "official", "community", "mine"]).optional().describe("Which library; default all"),
|
|
20406
20872
|
category: external_exports.string().max(40).optional().describe("A category id from get_options"),
|
|
20873
|
+
lyric_style: external_exports.string().max(40).optional().describe("A lyric style id from get_options (how the lyrics move)"),
|
|
20407
20874
|
q: external_exports.string().max(100).optional().describe("Search words"),
|
|
20408
20875
|
sort: external_exports.enum(["newest", "popular"]).optional(),
|
|
20409
20876
|
limit: external_exports.number().int().min(1).max(100).optional(),
|
|
@@ -20420,7 +20887,7 @@ var OPERATIONS = [
|
|
|
20420
20887
|
group: "looks",
|
|
20421
20888
|
title: "Get a Look",
|
|
20422
20889
|
summary: "One Look with its design and preview images",
|
|
20423
|
-
description: "",
|
|
20890
|
+
description: "backgrounds.portrait and backgrounds.landscape are the background plates the video uses; backgrounds.previews has 480 px wide copies of them for thumbnails (null for a Look without a photo or video background).",
|
|
20424
20891
|
method: "GET",
|
|
20425
20892
|
path: "/api/v1/looks/{look_id}",
|
|
20426
20893
|
scopes: ["library:read", "videos:read"],
|
|
@@ -20479,6 +20946,46 @@ var OPERATIONS = [
|
|
|
20479
20946
|
cli: ["looks", "visibility"],
|
|
20480
20947
|
mcp: "set_look_visibility"
|
|
20481
20948
|
},
|
|
20949
|
+
{
|
|
20950
|
+
id: "backgrounds.upload",
|
|
20951
|
+
group: "looks",
|
|
20952
|
+
title: "Upload a background",
|
|
20953
|
+
summary: "Upload your own photo or video to design a New Look around",
|
|
20954
|
+
description: 'Photo: JPEG, PNG or WebP, at least 720 px on the short side, up to 25 MB. Video: MP4, MOV or WebM, 4\u2013180 seconds, at least 720 px on the short side, up to 300 MB; it becomes a seamless loop of up to 20 s. Only with the rights to use it. Then quote a lyric video with look {"mode":"new","category":"\u2026","background":{"source":"upload-photo" or "upload-video","upload_id":"\u2026"},"visibility":"private"}.',
|
|
20955
|
+
method: "POST",
|
|
20956
|
+
path: "/api/v1/backgrounds",
|
|
20957
|
+
scopes: ["library:write", "videos:write"],
|
|
20958
|
+
input: external_exports.object({ file_url: httpsUrl("the photo or video").optional(), rights_confirmed: external_exports.literal(true).describe("You have the rights to use this photo or video") }),
|
|
20959
|
+
files: [{ field: "file", urlField: "file_url", accept: ["image/jpeg", "image/png", "image/webp", "video/mp4", "video/quicktime", "video/webm"], description: "Your photo or video" }],
|
|
20960
|
+
readOnly: false,
|
|
20961
|
+
destructive: false,
|
|
20962
|
+
idempotent: false,
|
|
20963
|
+
cli: ["backgrounds", "upload"],
|
|
20964
|
+
mcp: "upload_background"
|
|
20965
|
+
},
|
|
20966
|
+
{
|
|
20967
|
+
id: "stock.search",
|
|
20968
|
+
group: "looks",
|
|
20969
|
+
title: "Search stock media",
|
|
20970
|
+
summary: "Find Pexels photos or clips to use as a stock background",
|
|
20971
|
+
description: `24 results a page. Pass an item's id as look.background.stock_id (source "stock-photo" or "stock-video") or as a Canvas's stock_id to use it instead of the director's pick, and credit the photographer (credit) wherever you show it. orientation: portrait for 9:16 and 1:1, landscape when 16:9 is among the formats (a Canvas is portrait). Clips too short for the loop are left out: pass seconds for a Canvas. thumbnail_url is a 480 px still, preview_url a 1280 px one (the photo, or the clip's poster), preview_video_url a small MP4 of a clip.`,
|
|
20972
|
+
method: "GET",
|
|
20973
|
+
path: "/api/v1/stock",
|
|
20974
|
+
scopes: ["videos:read", "videos:write", "library:read"],
|
|
20975
|
+
input: external_exports.object({
|
|
20976
|
+
kind: external_exports.enum(["photo", "video"]).describe("photo for stock-photo, video for stock-video"),
|
|
20977
|
+
q: external_exports.string().trim().min(1).max(100).describe('Search words, e.g. "foggy pine forest"'),
|
|
20978
|
+
orientation: external_exports.enum(["portrait", "landscape"]).optional().describe("Default portrait"),
|
|
20979
|
+
page: external_exports.number().int().min(1).max(50).optional().describe("Default 1; next_page says whether there are more"),
|
|
20980
|
+
seconds: external_exports.number().int().min(5).max(8).optional().describe("Clips for a Canvas of this length (5\u20138); omit for a Look's loop")
|
|
20981
|
+
}),
|
|
20982
|
+
readOnly: true,
|
|
20983
|
+
destructive: false,
|
|
20984
|
+
idempotent: true,
|
|
20985
|
+
cli: ["stock", "search"],
|
|
20986
|
+
mcp: "search_stock",
|
|
20987
|
+
example: { kind: "photo", q: "foggy pine forest", orientation: "portrait" }
|
|
20988
|
+
},
|
|
20482
20989
|
/* Quotes and videos */
|
|
20483
20990
|
{
|
|
20484
20991
|
id: "quotes.lyric_video",
|
|
@@ -24250,7 +24757,7 @@ async function revoke(config2) {
|
|
|
24250
24757
|
// package.json
|
|
24251
24758
|
var package_default = {
|
|
24252
24759
|
name: "@kinetune/cli",
|
|
24253
|
-
version: "0.
|
|
24760
|
+
version: "0.3.0",
|
|
24254
24761
|
description: "Command line for Kinetune: lyric videos and Spotify Canvas loops from your songs, for people and AI agents.",
|
|
24255
24762
|
license: "MIT",
|
|
24256
24763
|
homepage: "https://kinetune.com/developers#cli",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kinetune/cli",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.3.0",
|
|
4
4
|
"description": "Command line for Kinetune: lyric videos and Spotify Canvas loops from your songs, for people and AI agents.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"homepage": "https://kinetune.com/developers#cli",
|