mirror of
https://codeberg.org/unspeaker/tek.git
synced 2025-12-06 19:56:42 +01:00
Phrase -> Clip in all remaining places
This commit is contained in:
parent
06b643e2b1
commit
bb52555183
15 changed files with 916 additions and 936 deletions
|
|
@ -13,7 +13,7 @@ render!(TuiOut: (self: ClipSelected) =>
|
|||
impl ClipSelected {
|
||||
|
||||
/// Shows currently playing clip with beats elapsed
|
||||
pub fn play_clip <T: HasPlayPhrase + HasClock> (state: &T) -> Self {
|
||||
pub fn play_clip <T: HasPlayClip + HasClock> (state: &T) -> Self {
|
||||
let (name, color) = if let Some((_, Some(clip))) = state.play_clip() {
|
||||
let MidiClip { ref name, color, .. } = *clip.read().unwrap();
|
||||
(name.clone().into(), color)
|
||||
|
|
@ -33,7 +33,7 @@ impl ClipSelected {
|
|||
}
|
||||
|
||||
/// Shows next clip with beats remaining until switchover
|
||||
pub fn next_clip <T: HasPlayPhrase> (state: &T) -> Self {
|
||||
pub fn next_clip <T: HasPlayClip> (state: &T) -> Self {
|
||||
let mut time: Arc<str> = String::from("--.-.--").into();
|
||||
let mut name: Arc<str> = String::from("").into();
|
||||
let mut color = ItemPalette::from(TuiTheme::g(64));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue