This website works better with JavaScript.
首頁
探索
說明
登入
TheoryOfNekomata
/
midi-utils
關註
1
收藏
0
複製
0
程式碼
問題管理
0
合併請求
0
版本發佈
0
Wiki
Activity
瀏覽代碼
Add C++ support
Add extern statement. Also fix the strlwr definition on Windows.
master
TheoryOfNekomata
1 年之前
父節點
04b34ae8ff
當前提交
c41eb2823f
共有
3 個文件被更改
,包括
12 次插入
和
4 次删除
分割檢視
Diff Options
Show Stats
Download Patch File
Download Diff File
+1
-1
CMakeLists.txt
+1
-1
midi-utils.c
+10
-2
midi-utils.h
+ 1
- 1
CMakeLists.txt
查看文件
@@ -1,5 +1,5 @@
cmake_minimum_required(VERSION 3.24)
project(midi_
note_id_
utils C)
project(midi_utils C)
set(CMAKE_C_STANDARD 11)
+ 1
- 1
midi-utils.c
查看文件
@@ -1,6 +1,6 @@
#include "midi-utils.h"
#if !defined _
_
WIN32
#if !defined _WIN32
void _strlwr(char* dest) {
for (unsigned int i = 0; i < strlen(dest); i += 1) {
if ('A' <= dest[i] && dest[i] <= 'Z') {
+ 10
- 2
midi-utils.h
查看文件
@@ -11,8 +11,16 @@
#define MIDI_CC_SOSTENUTO 0x42u
#define MIDI_CC_UNACORDA 0x43u
char* MIDI_GetNoteName(unsigned char);
#if defined __cplusplus
extern "C" {
#endif
char *MIDI_GetNoteName(unsigned char);
unsigned char MIDI_GetNoteFromName(const char*);
unsigned char MIDI_GetNoteFromName(const char *);
#if defined __cplusplus
}
#endif
#endif
Write
Preview
Loading…
取消
儲存