K1Guitar/midi/midi_send.h

26 lines
1020 B
C
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

#ifndef __MIDI_SEND_H__
#define __MIDI_SEND_H__
/* Dream 音色库 Bank:0=自动伴奏,1=主音色/弦 */
#define MIDI_BANK_ACCOMP 0
#define MIDI_BANK_STRING 1
/* MIDI 发送函数 */
void SendNoteOnMidiEvent(uint8_t Key, uint8_t OnVal);
void SendNoteOffMidiEvent(uint8_t Key, uint8_t OffVal);
void SendProgramChangeMidiEvent(uint8_t channel, uint8_t CC);
void SendBankChangeMidiEvent(uint8_t channel, uint8_t bank);
void SendProgramWithBankMidiEvent(uint8_t channel, uint8_t bank, uint8_t program);
void SendVolumeChangeMidiEvent(uint8_t channel, uint8_t CC);
void SendMidiDataToDreamDSP(uint8_t* buff, uint16_t cnt);
/* 开机/进模式:音师照片中的 Hall2 混响和 Normal 四段 PEQ */
void Dream_ApplyEditorParams(void);
void DefaultTask_SendMsg(uint16_t Data1, uint16_t Data2, uint16_t Data3, uint16_t Data4);
/* Unique BLE/BT name from AT32 UID: "PHON_" + 6 hex (last 3 UID bytes). out >= 12. */
#define BLE_DEVICE_NAME_LEN 11
void BleBuildDeviceName(char *out);
#endif /* __MIDI_SEND_H__ */