you can play your song now :D

This commit is contained in:
2026-01-15 07:58:09 +11:00
parent 6350de7899
commit 6a96bdd86a
7 changed files with 135 additions and 8 deletions

View File

@@ -9,7 +9,7 @@ import mp3
if __name__ == "__main__":
print("Loading project...")
"""test_project = Project(song_length=2)
test_project = Project(song_length=8)
drum_channel = ProjectChannel(
test_project,
@@ -23,10 +23,16 @@ if __name__ == "__main__":
*librosa.load("120 bpm amen break.mp3", mono=False, sr=test_project.sample_rate),
name="120 bpm amen break.mp3"
))
drum_channel.chunks.append(AudioChannelChunk(
drum_channel,
position=1,
*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.write_to_file("test_project.tdp")
test_project = Project.from_file("test_project.tdp")
# start the ui