Zrythm v2.0.0-DEV
a highly automated and intuitive digital audio workstation
Loading...
Searching...
No Matches
Tests

Testing helpers. More...

Data Structures

class  BootstrapTimelineFixture
 Bootstraps the test with test data. More...

Functions

PluginConfiguration test_plugin_manager_get_plugin_setting (const char *pl_bundle, const char *pl_uri, bool with_carla)
 Get a plugin setting clone from the given URI in the given bundle.
int test_plugin_manager_create_tracks_from_plugin (const char *pl_bundle, const char *pl_uri, bool is_instrument, bool with_carla, int num_tracks=1)
 Creates num_tracks tracks for the given plugin.
fs::path test_project_save ()
void test_project_reload (const fs::path &prj_file)
void test_project_save_and_reload ()
void test_project_stop_dummy_engine ()
 Stop dummy audio engine processing so we can process manually.
void test_project_check_vs_original_state (Position *p1, Position *p2, int check_selections)

Variables

constexpr int MN_VAL = 78
 MidiNote value to use.
constexpr int MN_VEL = 23
 MidiNote velocity to use.
constexpr float AP_VAL1 = 0.6f
 First AP value.
constexpr float AP_VAL2 = 0.9f
 Second AP value.
constexpr const char * MARKER_NAME = "Marker name"
 Marker name.
constexpr auto MUSICAL_SCALE_TYPE = MusicalScale::Type::Ionian
constexpr auto MUSICAL_SCALE_ROOT = MusicalNote::A
constexpr int MOVE_TICKS = 400
constexpr int TOTAL_TL_SELECTIONS = 6
constexpr const char * MIDI_REGION_NAME = "Midi region"
constexpr const char * AUDIO_REGION_NAME = "Audio region"
constexpr const char * MIDI_TRACK_NAME = "Midi track"
constexpr const char * AUDIO_TRACK_NAME = "Audio track"
constexpr int MIDI_REGION_LANE = 2
constexpr int AUDIO_REGION_LANE = 3
constexpr const char * TARGET_MIDI_TRACK_NAME = "Target midi tr"
constexpr const char * TARGET_AUDIO_TRACK_NAME = "Target audio tr"
constexpr int TARGET_MIDI_REGION_LANE = 0
constexpr int TARGET_AUDIO_REGION_LANE = 5

Detailed Description

Testing helpers.

Function Documentation

◆ test_plugin_manager_create_tracks_from_plugin()

int test_plugin_manager_create_tracks_from_plugin ( const char * pl_bundle,
const char * pl_uri,
bool is_instrument,
bool with_carla,
int num_tracks = 1 )

Creates num_tracks tracks for the given plugin.

Parameters
num_tracksNumber of tracks to create.
Returns
The index of the last track created.

Definition at line 162 of file plugin_manager.h.

◆ test_plugin_manager_get_plugin_setting()

PluginConfiguration test_plugin_manager_get_plugin_setting ( const char * pl_bundle,
const char * pl_uri,
bool with_carla )

Get a plugin setting clone from the given URI in the given bundle.

If non-LV2, the path should be passed to pl_bundle.

Definition at line 62 of file plugin_manager.h.

Variable Documentation

◆ AP_VAL1

float AP_VAL1 = 0.6f
constexpr

First AP value.

Definition at line 48 of file project_helper.h.

◆ AP_VAL2

float AP_VAL2 = 0.9f
constexpr

Second AP value.

Definition at line 50 of file project_helper.h.

◆ AUDIO_REGION_LANE

int AUDIO_REGION_LANE = 3
constexpr

Definition at line 69 of file project_helper.h.

◆ AUDIO_REGION_NAME

const char* AUDIO_REGION_NAME = "Audio region"
constexpr

Definition at line 63 of file project_helper.h.

◆ AUDIO_TRACK_NAME

const char* AUDIO_TRACK_NAME = "Audio track"
constexpr

Definition at line 65 of file project_helper.h.

◆ MARKER_NAME

const char* MARKER_NAME = "Marker name"
constexpr

Marker name.

Definition at line 53 of file project_helper.h.

◆ MIDI_REGION_LANE

int MIDI_REGION_LANE = 2
constexpr

Definition at line 68 of file project_helper.h.

◆ MIDI_REGION_NAME

const char* MIDI_REGION_NAME = "Midi region"
constexpr

Definition at line 62 of file project_helper.h.

◆ MIDI_TRACK_NAME

const char* MIDI_TRACK_NAME = "Midi track"
constexpr

Definition at line 64 of file project_helper.h.

◆ MN_VAL

int MN_VAL = 78
constexpr

MidiNote value to use.

Definition at line 43 of file project_helper.h.

◆ MN_VEL

int MN_VEL = 23
constexpr

MidiNote velocity to use.

Definition at line 45 of file project_helper.h.

◆ MOVE_TICKS

int MOVE_TICKS = 400
constexpr

Definition at line 58 of file project_helper.h.

◆ MUSICAL_SCALE_ROOT

auto MUSICAL_SCALE_ROOT = MusicalNote::A
constexpr

Definition at line 56 of file project_helper.h.

◆ MUSICAL_SCALE_TYPE

auto MUSICAL_SCALE_TYPE = MusicalScale::Type::Ionian
constexpr

Definition at line 55 of file project_helper.h.

◆ TARGET_AUDIO_REGION_LANE

int TARGET_AUDIO_REGION_LANE = 5
constexpr

Definition at line 77 of file project_helper.h.

◆ TARGET_AUDIO_TRACK_NAME

const char* TARGET_AUDIO_TRACK_NAME = "Target audio tr"
constexpr

Definition at line 73 of file project_helper.h.

◆ TARGET_MIDI_REGION_LANE

int TARGET_MIDI_REGION_LANE = 0
constexpr

Definition at line 76 of file project_helper.h.

◆ TARGET_MIDI_TRACK_NAME

const char* TARGET_MIDI_TRACK_NAME = "Target midi tr"
constexpr

Definition at line 72 of file project_helper.h.

◆ TOTAL_TL_SELECTIONS

int TOTAL_TL_SELECTIONS = 6
constexpr

Definition at line 60 of file project_helper.h.