Zrythm
a highly automated and intuitive digital audio workstation
Loading...
Searching...
No Matches
midi_modifier_arranger.h
1/*
2 * Copyright (C) 2019-2021 Alexandros Theodotou <alex at zrythm dot org>
3 *
4 * This file is part of Zrythm
5 *
6 * Zrythm is free software: you can redistribute it and/or modify
7 * it under the terms of the GNU Affero General Public License as published by
8 * the Free Software Foundation, either version 3 of the License, or
9 * (at your option) any later version.
10 *
11 * Zrythm is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 * GNU Affero General Public License for more details.
15 *
16 * You should have received a copy of the GNU Affero General Public License
17 * along with this program. If not, see <https://www.gnu.org/licenses/>.
18 */
19
20#ifndef __GUI_WIDGETS_MIDI_MODIFIER_ARRANGER_H__
21#define __GUI_WIDGETS_MIDI_MODIFIER_ARRANGER_H__
22
23#include "gui/backend/tool.h"
25
26#include <gtk/gtk.h>
27
28#define MW_MIDI_MODIFIER_ARRANGER \
29 (MW_MIDI_EDITOR_SPACE->modifier_arranger)
30
31typedef struct Velocity Velocity;
32typedef struct _VelocityWidget VelocityWidget;
33typedef struct _ArrangerWidget ArrangerWidget;
34
45void
47 ArrangerWidget * self);
48
49void
50midi_modifier_arranger_widget_select_vels_in_range (
51 ArrangerWidget * self,
52 double offset_x);
53
54void
55midi_modifier_arranger_widget_resize_velocities (
56 ArrangerWidget * self,
57 double offset_y);
58
68void
70 ArrangerWidget * self,
71 double x,
72 double y,
73 bool append_to_selections);
74
79void
81 ArrangerWidget * self,
82 double offset_x,
83 double offset_y);
84
89#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:113
The MidiNote velocity.
Definition velocity.h:45