scale

Generates the 7 notes of the selected scale relative to a root pitch
Author: Sputnki
License: BSD
Github: sptnk/misc/scale.axo

Inlets

frac32 root

Outlets

frac32 I

frac32 II

frac32 III

frac32 IV

frac32 V

frac32 VI

frac32 VII

Attributes

combo mode

Declaration
#if (attr_mode == 0)
int32_t notes[6] = {2 << 21, 4 << 21, 5 << 21, 7 << 21, 9 << 21, 11 << 21};
#elif (attr_mode == 1)
int32_t notes[6] = {2 << 21, 3 << 21, 5 << 21, 7 << 21, 9 << 21, 10 << 21};
#elif (attr_mode == 2)
int32_t notes[6] = {1 << 21, 3 << 21, 5 << 21, 7 << 21, 8 << 21, 10 << 21};
#elif (attr_mode == 3)
int32_t notes[6] = {2 << 21, 4 << 21, 6 << 21, 7 << 21, 9 << 21, 11 << 21};
#elif (attr_mode == 4)
int32_t notes[6] = {2 << 21, 4 << 21, 5 << 21, 7 << 21, 9 << 21, 10 << 21};
#elif (attr_mode == 5)
int32_t notes[6] = {2 << 21, 3 << 21, 5 << 21, 7 << 21, 8 << 21, 10 << 21};
#elif (attr_mode == 6)
int32_t notes[6] = {1 << 21, 3 << 21, 5 << 21, 6 << 21, 8 << 21, 10 << 21};
#endif
Control Rate
outlet_I = inlet_root;
outlet_II = inlet_root + notes[0];
outlet_III = inlet_root + notes[1];
outlet_IV = inlet_root + notes[2];
outlet_V = inlet_root + notes[3];
outlet_VI = inlet_root + notes[4];
outlet_VII = inlet_root + notes[5];

Privacy

© 2024 Zrna Research