mirror of
https://codeberg.org/unspeaker/tek.git
synced 2025-12-08 12:46:42 +01:00
fix timer of horizontal sequencer
This commit is contained in:
parent
2601592d17
commit
1259176576
6 changed files with 293 additions and 254 deletions
13
src/view.rs
13
src/view.rs
|
|
@ -39,16 +39,17 @@ render!(App |self, buf, area| {
|
|||
}.draw()?.height;
|
||||
|
||||
if self.track_cursor > 0 {
|
||||
let track = self.tracks.get(self.track_cursor - 1);
|
||||
y = y + ChainView {
|
||||
focused: self.section == 1,
|
||||
chain: track,
|
||||
}.render(buf, Rect { x, y, width, height: height / 3 })?.height;
|
||||
|
||||
let track = self.tracks.get(self.track_cursor - 1).unwrap();
|
||||
|
||||
y = y + ChainView { focused: self.section == 1, track: Some(track) }
|
||||
.render(buf, Rect { x, y, width, height: height / 3 })?.height;
|
||||
|
||||
y = y + SequencerView {
|
||||
focused: self.section == 2,
|
||||
ppq: self.timebase.ppq() as usize,
|
||||
phrase: track.map(|t|&t.phrases[0]),
|
||||
now: self.timebase.frames_pulses(self.playhead as f64) as usize,
|
||||
phrase: track.phrases.get(0),
|
||||
time_cursor: self.time_cursor,
|
||||
time_start: self.time_start,
|
||||
time_zoom: self.time_zoom,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue