WE CAN HEAR THE AUDIO!!!! but uhh rendering to a file is cooked lmao
This commit is contained in:
29
src/main.py
29
src/main.py
@@ -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...")
|
||||
|
||||
Reference in New Issue
Block a user