remove edn_ prefix from a couple macros

This commit is contained in:
🪞👃🪞 2025-01-18 00:14:46 +01:00
parent 798de37172
commit 34b35d08be
8 changed files with 25 additions and 25 deletions

View file

@ -49,13 +49,13 @@ from!(|clip: Option<Arc<RwLock<MidiClip>>>|MidiEditor = {
model.redraw();
model
});
edn_provide!(bool: |self: MidiEditor| {
provide!(bool: |self: MidiEditor| {
":true" => true,
":false" => false,
":time-lock" => self.time_lock().get(),
":time-lock-toggle" => !self.time_lock().get(),
});
edn_provide!(usize: |self: MidiEditor| {
provide!(usize: |self: MidiEditor| {
":note-length" => self.note_len(),
":note-pos" => self.note_pos(),

View file

@ -220,7 +220,7 @@ handle!(TuiIn: |self: MidiPool, input|{
None
})
});
edn_provide!(bool: |self: MidiPool| {});
provide!(bool: |self: MidiPool| {});
impl MidiPool {
pub fn new_clip (&self) -> MidiClip {
MidiClip::new("Clip", true, 4 * PPQ, None, Some(ItemPalette::random()))
@ -242,19 +242,19 @@ impl MidiPool {
(index, clip)
}
}
edn_provide!(MidiClip: |self: MidiPool| {
provide!(MidiClip: |self: MidiPool| {
":new-clip" => self.new_clip(),
":cloned-clip" => self.cloned_clip(),
});
edn_provide!(PathBuf: |self: MidiPool| {});
edn_provide!(Arc<str>: |self: MidiPool| {});
edn_provide!(usize: |self: MidiPool| {
provide!(PathBuf: |self: MidiPool| {});
provide!(Arc<str>: |self: MidiPool| {});
provide!(usize: |self: MidiPool| {
":current" => 0,
":after" => 0,
":previous" => 0,
":next" => 0
});
edn_provide!(ItemColor: |self: MidiPool| {
provide!(ItemColor: |self: MidiPool| {
":random-color" => ItemColor::random()
});
#[derive(Clone, PartialEq, Debug)] pub enum PoolCommand {