Skip to content

Created a Scene page when holding the Scene button#460

Open
ArthurGibert wants to merge 1 commit intomainfrom
feat/scene-page
Open

Created a Scene page when holding the Scene button#460
ArthurGibert wants to merge 1 commit intomainfrom
feat/scene-page

Conversation

@ArthurGibert
Copy link
Contributor

Scene button now flashed to the tempo

When holding the Scene button:

the last recalled scene is displayed
The tempo is displayed on fader 15 top LED
The scale and tonic color are displayed on the top fader LEDs
The scale is represented as a musical keyboard on channels 3-14 bottom LEDs (Dimmed out of scale, highlighted in the scale)

feat(led): display scales as a keyboard

fix(led): improve visual feedback when holding scene - display last scene - display tempo - display quantizer colors
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In #459 I added a new file: https://github.com/ATOVproject/faderpunk/pull/459/changes#diff-5f52040753f2894d83c63329137f0bd1b7ccd59613bf5ad1355ef29f7566f624

Let's do all of these visual feedback things over there once it's merged

spawner.spawn(global_config_change()).unwrap();
}

pub async fn show_scale_keyboard(key: Key, tonic: Note) {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We can also move these to the new file

use ws2812_async::{Grb, Ws2812};

use crate::tasks::buttons::{is_scene_button_pressed, LAST_SCENE_INDEX, NO_SCENE_INDEX};
use crate::tasks::clock::{ClockEvent, CLOCK_PUBSUB};
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm not a big fan of coupling the clock with the LEDs so tightly. Honestly I would probably not do any of the changes here. This really seems unnecessarily complicated. Maybe I'll take a stab at the clock LED.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants