mirror of
https://codeberg.org/unspeaker/tek.git
synced 2025-12-06 03:36:41 +01:00
wip: load view/keys config from unified file
This commit is contained in:
parent
26baa8127d
commit
0efcb7f0fe
4 changed files with 50 additions and 14 deletions
|
|
@ -139,19 +139,14 @@ impl Cli {
|
|||
},
|
||||
scenes,
|
||||
selected: Selection::TrackClip { track: 0, scene: 0 },
|
||||
config: Configuration::from(match mode {
|
||||
LaunchMode::Clock =>
|
||||
include_str!("../../config/view_transport.edn"),
|
||||
LaunchMode::Sequencer =>
|
||||
include_str!("../../config/view_sequencer.edn"),
|
||||
LaunchMode::Groovebox =>
|
||||
include_str!("../../config/view_groovebox.edn"),
|
||||
LaunchMode::Arranger { .. } =>
|
||||
include_str!("../../config/view_arranger.edn"),
|
||||
LaunchMode::Sampler =>
|
||||
include_str!("../../config/view_sampler.edn"),
|
||||
config: Configuration::from_file(match mode {
|
||||
LaunchMode::Clock => &"config/config_transport.edn",
|
||||
LaunchMode::Sequencer => &"config/config_sequencer.edn",
|
||||
LaunchMode::Groovebox => &"config/config_groovebox.edn",
|
||||
LaunchMode::Arranger { .. } => &"config/config_arranger.edn",
|
||||
LaunchMode::Sampler => &"config/config_sampler.edn",
|
||||
_ => todo!("{mode:?}"),
|
||||
}),
|
||||
}, false)?,
|
||||
..Default::default()
|
||||
};
|
||||
if let &LaunchMode::Arranger { scenes, tracks, track_width, .. } = mode {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue