Commit d77229c0 authored by Jacob Vosmaer's avatar Jacob Vosmaer

Remove mono2 which is now part of mono

parent bf7b3934
PRG = crowbx
OBJ = crowbx.o midi.o dac.o gate.o poly.o mono.o list.o vibrato.o poly2.o clamp_add.o pitch.o pitch_env.o vibrato_rate.o mono2.o voice.o
OBJ = crowbx.o midi.o dac.o gate.o poly.o mono.o list.o vibrato.o poly2.o clamp_add.o pitch.o pitch_env.o vibrato_rate.o voice.o
MCU_TARGET = atmega328p
OPTIMIZE = -O3
......
......@@ -7,7 +7,6 @@
#include "gate.h"
#include "midi.h"
#include "mono.h"
#include "mono2.h"
#include "pitch.h"
#include "pitch_env.h"
#include "poly.h"
......@@ -73,7 +72,6 @@ struct {
{poly_init, poly_note_on, poly_note_off, poly_control_change},
{poly2_init, poly2_note_on, poly2_note_off, poly2_control_change},
{mono_init, mono_note_on, mono_note_off, mono_control_change},
{mono2_init, mono2_note_on, mono2_note_off, mono2_control_change},
};
// Make sure current_program is not 0, so program_change(0) below is not a
......
#include "mono2.h"
#include "gate.h"
#include "mono.h"
#include "voice.h"
void mono2_allow_only_one_voice(void) {
for_each_voice (v) {
if (v > 0) {
gate_off(v);
}
}
}
void mono2_init(void) { mono_init(); }
void mono2_note_on(uint8_t n) {
mono_note_on(n);
mono2_allow_only_one_voice();
}
void mono2_note_off(uint8_t n) {
mono_note_off(n);
mono2_allow_only_one_voice();
}
void mono2_control_change(uint8_t ctl, uint8_t val) {
(void)ctl;
(void)val;
}
#ifndef MONO2_H
#define MONO2_H
#include <stdint.h>
void mono2_init(void);
void mono2_note_on(uint8_t note);
void mono2_note_off(uint8_t note);
void mono2_control_change(uint8_t ctl, uint8_t val);
#endif
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment