you can play your song now :D
This commit is contained in:
10
src/main.py
10
src/main.py
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user