mirror of
https://codeberg.org/unspeaker/tek.git
synced 2025-12-06 11:46:41 +01:00
instant crash
This commit is contained in:
parent
a6643ab990
commit
2401dc8fcd
5 changed files with 105 additions and 122 deletions
|
|
@ -1,11 +1,9 @@
|
|||
use crate::*;
|
||||
use super::*;
|
||||
|
||||
pub(crate) fn note_y_iter (note_lo: usize, note_hi: usize, y0: u16) -> impl Iterator<Item=(usize, u16, usize)> {
|
||||
(note_lo..=note_hi).rev().enumerate().map(move|(y, n)|(y, y0 + y as u16, n))
|
||||
}
|
||||
|
||||
render!(TuiOut: (self: PianoHorizontal) => Bsp::s(
|
||||
render!(TuiOut: (self: PianoHorizontal) => Bsp::s( // the freeze is in the piano
|
||||
Fixed::y(1, Bsp::e(
|
||||
Fixed::x(self.keys_width, ""),
|
||||
Fill::x(PianoHorizontalTimeline(self)),
|
||||
|
|
@ -18,7 +16,6 @@ render!(TuiOut: (self: PianoHorizontal) => Bsp::s(
|
|||
))),
|
||||
)),
|
||||
));
|
||||
|
||||
impl PianoHorizontal {
|
||||
/// Draw the piano roll foreground using full blocks on note on and half blocks on legato: █▄ █▄ █▄
|
||||
fn draw_bg (buf: &mut BigBuffer, phrase: &MidiClip, zoom: usize, note_len: usize) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue