testing multiple tracks
This commit is contained in:
@@ -80,6 +80,11 @@ class Timeline(Vertical):
|
||||
for bar_line in self.query(Rule):
|
||||
if not isinstance(bar_line, PlayHead):
|
||||
bar_line.offset = (self.bar_offset * bar_line.index, 0)
|
||||
|
||||
if self.app.zoom_level >= 0.09 and bar_line.has_class("beat-line"):
|
||||
bar_line.display = False
|
||||
else:
|
||||
bar_line.display = True
|
||||
|
||||
def compose(self) -> ComposeResult:
|
||||
|
||||
@@ -98,7 +103,7 @@ class Timeline(Vertical):
|
||||
yield Chunk(chunk_name=chunk.name, bar_pos=chunk.position)
|
||||
elif chunk.chunk_type == ChunkType.AUDIO:
|
||||
yield AudioChunk(chunk.audio_data, chunk.sample_rate, chunk.name, chunk.position)
|
||||
|
||||
|
||||
for i in range(1, 17):
|
||||
bar = None
|
||||
if i % 4 == 0:
|
||||
@@ -113,4 +118,4 @@ class Timeline(Vertical):
|
||||
|
||||
|
||||
|
||||
#yield PlayHead()
|
||||
yield PlayHead()
|
||||
Reference in New Issue
Block a user