Zrythm
a highly automated and intuitive digital audio workstation
Loading...
Searching...
No Matches
midi_modifier_arranger.h
1/*
2 * SPDX-FileCopyrightText: © 2019-2021 Alexandros Theodotou <alex@zrythm.org>
3 *
4 * SPDX-License-Identifier: LicenseRef-ZrythmLicense
5 */
6
7#ifndef __GUI_WIDGETS_MIDI_MODIFIER_ARRANGER_H__
8#define __GUI_WIDGETS_MIDI_MODIFIER_ARRANGER_H__
9
10#include "gui/backend/tool.h"
12
13#include <gtk/gtk.h>
14
15#define MW_MIDI_MODIFIER_ARRANGER (MW_MIDI_EDITOR_SPACE->modifier_arranger)
16
17typedef struct Velocity Velocity;
18typedef struct _VelocityWidget VelocityWidget;
19typedef struct _ArrangerWidget ArrangerWidget;
20
31void
33
34void
35midi_modifier_arranger_widget_select_vels_in_range (
36 ArrangerWidget * self,
37 double offset_x);
38
39void
40midi_modifier_arranger_widget_resize_velocities (
41 ArrangerWidget * self,
42 double offset_y);
43
53void
55 ArrangerWidget * self,
56 double x,
57 double y,
58 bool append_to_selections);
59
64void
66 ArrangerWidget * self,
67 double offset_x,
68 double offset_y);
69
74#endif
Arranger base widget.
void midi_modifier_arranger_widget_set_start_vel(ArrangerWidget *self)
Sets the start velocities of all velocities in the current region.
void midi_modifier_arranger_set_hit_velocity_vals(ArrangerWidget *self, double x, double y, bool append_to_selections)
Sets the value of each velocity hit at x to the value corresponding to y.
void midi_modifier_arranger_widget_ramp(ArrangerWidget *self, double offset_x, double offset_y)
Draws a ramp from the start coordinates to the given coordinates.
The arranger widget is a canvas that draws all the arranger objects it contains.
Definition arranger.h:108
The MidiNote velocity.
Definition velocity.h:41