WE CAN HEAR THE AUDIO!!!! but uhh rendering to a file is cooked lmao

This commit is contained in:
2026-01-15 05:51:52 +11:00
parent 827f39afcc
commit 6350de7899
9 changed files with 151 additions and 48 deletions

View File

@@ -1,18 +1,33 @@
print("=== TerminalDAW - Version 0.0.1 ===\n")
from ui.app import AppUI
from project import Project, ProjectChannel, AudioChannelChunk
import librosa
import sounddevice
import mp3
if __name__ == "__main__":
print("Loading project...")
"""test_project = Project(channels=[
ProjectChannel(chunks=[
AudioChannelChunk(*librosa.load("120 bpm amen break.mp3", mono=False), position=0, name="120 bpm amen break.mp3"),
], name="drums"),
])
#test_project.write_to_file("test_project.tdp")"""
test_project = Project.from_file("test_project.tdp")
"""test_project = Project(song_length=2)
drum_channel = ProjectChannel(
test_project,
name="Drums",
volume=5,
)
drum_channel.chunks.append(AudioChannelChunk(
drum_channel,
position=0,
*librosa.load("120 bpm amen break.mp3", mono=False, sr=test_project.sample_rate),
name="120 bpm amen break.mp3"
))
test_project.channels.append(drum_channel)
test_project.write_to_file("test_project.tdp")"""
test_project = Project.from_file("test_project.tdp")
# start the ui
print("Starting UI...")