Brick Groove Machine 0.9.3
Firmware embarqué pour contrôleur/synthé Brick
 
Chargement...
Recherche...
Aucune correspondance
seq_live_capture.h
Aller à la documentation de ce fichier.
1#ifndef BRICK_CORE_SEQ_SEQ_LIVE_CAPTURE_H_
2#define BRICK_CORE_SEQ_SEQ_LIVE_CAPTURE_H_
3
9#include <stdbool.h>
10#include <stddef.h>
11#include <stdint.h>
12
13#include "ch.h"
14
15#include "clock_manager.h"
16#include "seq_model.h"
17
18#ifdef __cplusplus
19extern "C" {
20#endif
21
28
36
47
64
88
96void seq_live_capture_set_recording(seq_live_capture_t *capture, bool enabled);
103 const seq_live_capture_input_t *input,
104 seq_live_capture_plan_t *out_plan);
107 const seq_live_capture_plan_t *plan);
108
109#ifdef __cplusplus
110}
111#endif
112
113#endif /* BRICK_CORE_SEQ_SEQ_LIVE_CAPTURE_H_ */
uint32_t systime_t
Definition ch.h:12
Gestionnaire central d’horloge et de synchronisation tempo / MIDI.
void seq_live_capture_attach_pattern(seq_live_capture_t *capture, seq_model_pattern_t *pattern)
Definition seq_live_capture.c:47
void seq_live_capture_init(seq_live_capture_t *capture, const seq_live_capture_config_t *config)
Definition seq_live_capture.c:37
void seq_live_capture_set_recording(seq_live_capture_t *capture, bool enabled)
Definition seq_live_capture.c:61
bool seq_live_capture_commit_plan(seq_live_capture_t *capture, const seq_live_capture_plan_t *plan)
Definition seq_live_capture.c:168
void seq_live_capture_override_quantize(seq_live_capture_t *capture, const seq_model_quantize_config_t *config)
Definition seq_live_capture.c:53
void seq_live_capture_update_clock(seq_live_capture_t *capture, const clock_step_info_t *info)
Definition seq_live_capture.c:75
seq_live_capture_event_type_t
Event type emitted by UI-facing inputs.
Definition seq_live_capture.h:32
@ SEQ_LIVE_CAPTURE_EVENT_NOTE_OFF
Definition seq_live_capture.h:34
@ SEQ_LIVE_CAPTURE_EVENT_NOTE_ON
Definition seq_live_capture.h:33
bool seq_live_capture_plan_event(seq_live_capture_t *capture, const seq_live_capture_input_t *input, seq_live_capture_plan_t *out_plan)
Definition seq_live_capture.c:86
bool seq_live_capture_is_recording(const seq_live_capture_t *capture)
Definition seq_live_capture.c:67
Brick sequencer data model definitions and helpers.
#define SEQ_MODEL_VOICES_PER_STEP
Definition seq_model.h:20
Informations complètes passées au callback à chaque “step” (1/16).
Definition clock_manager.h:52
Configuration provided at initialisation.
Definition seq_live_capture.h:25
seq_model_pattern_t * pattern
Definition seq_live_capture.h:26
UI input translated into the capture façade.
Definition seq_live_capture.h:40
seq_live_capture_event_type_t type
Definition seq_live_capture.h:41
uint8_t voice_index
Definition seq_live_capture.h:44
uint8_t velocity
Definition seq_live_capture.h:43
systime_t timestamp
Definition seq_live_capture.h:45
uint8_t note
Definition seq_live_capture.h:42
Planned mutation returned to the caller.
Definition seq_live_capture.h:51
seq_live_capture_event_type_t type
Definition seq_live_capture.h:52
systime_t input_time
Definition seq_live_capture.h:61
int32_t step_delta
Definition seq_live_capture.h:54
bool quantized
Definition seq_live_capture.h:60
uint8_t note
Definition seq_live_capture.h:56
size_t step_index
Definition seq_live_capture.h:53
uint8_t voice_index
Definition seq_live_capture.h:55
int8_t micro_adjust
Definition seq_live_capture.h:59
systime_t scheduled_time
Definition seq_live_capture.h:62
uint8_t velocity
Definition seq_live_capture.h:57
int8_t micro_offset
Definition seq_live_capture.h:58
Live capture façade context.
Definition seq_live_capture.h:68
bool recording
Definition seq_live_capture.h:71
seq_model_quantize_config_t quantize
Definition seq_live_capture.h:70
uint32_t clock_step_index
Definition seq_live_capture.h:76
uint8_t note
Definition seq_live_capture.h:85
systime_t clock_step_time
Definition seq_live_capture.h:73
seq_model_pattern_t * pattern
Definition seq_live_capture.h:69
uint8_t voice_slot
Definition seq_live_capture.h:84
size_t clock_pattern_step
Definition seq_live_capture.h:77
systime_t start_time_raw
Definition seq_live_capture.h:82
systime_t clock_tick_duration
Definition seq_live_capture.h:75
systime_t clock_step_duration
Definition seq_live_capture.h:74
systime_t step_duration
Definition seq_live_capture.h:83
systime_t start_time
Definition seq_live_capture.h:81
bool active
Definition seq_live_capture.h:79
size_t step_index
Definition seq_live_capture.h:80
bool clock_valid
Definition seq_live_capture.h:72
Definition seq_model.h:150
Definition seq_model.h:123