SaltProphet commited on
Commit
2629461
·
verified ·
1 Parent(s): ca86c2f

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +11 -2
app.py CHANGED
@@ -117,10 +117,10 @@ def package_and_export(track_folder_str, bpm, start_offset_sec, cover_art):
117
  make_loop(stems['Piano'], "PianoLoop")
118
  make_loop(stems['Vocals'], "VocalChop")
119
 
120
- # 3. Generate Video
121
  video_path = None
122
  if cover_art and created_loops['melody']:
123
- print("Rendering Dynamic Video...")
124
  vid_out = OUTPUT_DIR / "Promo_Video.mp4"
125
  audio_clip = AudioFileClip(str(created_loops['melody']))
126
  duration = audio_clip.duration
@@ -128,6 +128,15 @@ def package_and_export(track_folder_str, bpm, start_offset_sec, cover_art):
128
  # Load and Resize Image
129
  img = ImageClip(cover_art).resize(width=1080)
130
 
 
 
 
 
 
 
 
 
 
131
  # Simple Zoom Animation
132
  img = img.resize(lambda t : 1 + 0.02*t)
133
  img = img.set_position(('center', 'center'))
 
117
  make_loop(stems['Piano'], "PianoLoop")
118
  make_loop(stems['Vocals'], "VocalChop")
119
 
120
+ # 3. Generate Video
121
  video_path = None
122
  if cover_art and created_loops['melody']:
123
+ print("Rendering Dynamic Noir Video...")
124
  vid_out = OUTPUT_DIR / "Promo_Video.mp4"
125
  audio_clip = AudioFileClip(str(created_loops['melody']))
126
  duration = audio_clip.duration
 
128
  # Load and Resize Image
129
  img = ImageClip(cover_art).resize(width=1080)
130
 
131
+ # --- NIGHT PULSE AESTHETIC FILTER ---
132
+ # 1. Force Black & White
133
+ img = img.fx(blackwhite)
134
+ # 2. Boost Contrast (make the blacks deeper, whites brighter)
135
+ # 'lum' is luminosity (0 for no change), 'contrast' is the multiplier.
136
+ # 1.3 is a 30% contrast boost for that "gritty" look.
137
+ img = img.fx(lum_contrast, lum=0, contrast=1.3)
138
+ # ------------------------------------
139
+
140
  # Simple Zoom Animation
141
  img = img.resize(lambda t : 1 + 0.02*t)
142
  img = img.set_position(('center', 'center'))