auto generating bar lines, still buggy tho :/
This commit is contained in:
15
src/main.py
15
src/main.py
@@ -1,19 +1,12 @@
|
||||
from ui.app import AppUI
|
||||
from project import Project, ProjectChannel, ChannelChunk, AudioChannelChunk
|
||||
from ui.widgets.chunk_types.audio import AudioChunk
|
||||
import librosa
|
||||
from project import Project
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
test_project = Project(
|
||||
[
|
||||
ProjectChannel("my channel", chunks=[
|
||||
ChannelChunk(name="hi"),
|
||||
AudioChannelChunk(librosa.load("cool sample.mp3", sr=None, mono=False))
|
||||
])
|
||||
]
|
||||
)
|
||||
print("Loading project...")
|
||||
test_project = Project.from_file("test_project.tdp")
|
||||
|
||||
# start the ui
|
||||
print("Starting UI...")
|
||||
app = AppUI(test_project)
|
||||
app.run()
|
||||
Reference in New Issue
Block a user