This website works better with JavaScript.
Home
Explore
Help
Sign In
TheoryOfNekomata
/
midi-utils
Watch
1
Star
0
Fork
0
Code
Issues
0
Pull Requests
0
Releases
0
Wiki
Activity
Browse Source
Implement _strlwr for non-Windows platforms
_strlwr is not present on non-Windows platforms.
master
TheoryOfNekomata
1 year ago
parent
dc3396c806
commit
04b34ae8ff
1 changed files
with
10 additions
and
0 deletions
Split View
Diff Options
Show Stats
Download Patch File
Download Diff File
+10
-0
midi-utils.c
+ 10
- 0
midi-utils.c
View File
@@ -1,5 +1,15 @@
#include "midi-utils.h"
#if !defined __WIN32
void _strlwr(char* dest) {
for (unsigned int i = 0; i < strlen(dest); i += 1) {
if ('A' <= dest[i] && dest[i] <= 'Z') {
dest[i] += 0x20;
}
}
}
#endif
char* MIDI_GetNoteName(unsigned char midi_note) {
static const char* pitch_names[] = {
"C",
Write
Preview
Loading…
Cancel
Save