mirror of
https://codeberg.org/unspeaker/tek.git
synced 2025-12-07 04:06:45 +01:00
full block piano roll, pt.4
This commit is contained in:
parent
501e47cd85
commit
f2fdf3dd12
1 changed files with 10 additions and 5 deletions
|
|
@ -268,6 +268,10 @@ impl PhraseViewMode {
|
||||||
for (y, target_y) in (y0..y0+h).enumerate() {
|
for (y, target_y) in (y0..y0+h).enumerate() {
|
||||||
let source_x = time_start + x;
|
let source_x = time_start + x;
|
||||||
let source_y = note_hi - y;
|
let source_y = note_hi - y;
|
||||||
|
// TODO: enable loop rollover:
|
||||||
|
//let source_x = (time_start + x) % source.width.max(1);
|
||||||
|
//let source_y = (note_hi - y) % source.height.max(1);
|
||||||
|
if source_x < source.width && source_y < source.height {
|
||||||
let target_cell = target.get_mut(target_x, target_y);
|
let target_cell = target.get_mut(target_x, target_y);
|
||||||
target_cell.set_char('x');
|
target_cell.set_char('x');
|
||||||
if let Some(source_cell) = source.get(source_x, source_y) {
|
if let Some(source_cell) = source.get(source_x, source_y) {
|
||||||
|
|
@ -275,6 +279,7 @@ impl PhraseViewMode {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
},
|
},
|
||||||
_ => unimplemented!()
|
_ => unimplemented!()
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue