summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLeo Tenenbaum <pommicket@gmail.com>2020-06-01 16:29:02 -0400
committerLeo Tenenbaum <pommicket@gmail.com>2020-06-01 16:29:02 -0400
commit778cb1f42c4e09dc1bf5d916e85636c27f1a8530 (patch)
treeaf0a13ba490e665bf47450d307f6821e83aa7acf
parenta17db8fce5aba1ce2ae07ada81b8e9b4b2e4968b (diff)
parent9185bcf1767ae63abf6bf18fa06d86e50bb18c0a (diff)
...
-rw-r--r--README.md8
-rw-r--r--main.c27
2 files changed, 33 insertions, 2 deletions
diff --git a/README.md b/README.md
index db0691b..ec40c26 100644
--- a/README.md
+++ b/README.md
@@ -1,11 +1,11 @@
## sMIDI
-A simple program for using MIDI controllers on POSIX systems.
+A simple program for using MIDI controllers on Linux.
This is a replacement for programs like fluidsynth, because they're usually crazy and involve jack.
So here's an alternative that doesn't take over your system's audio!
-This requires a SoundFont file, like the one which can be found here: https://member.keymusician.com/Member/FluidR3\_GM/index.html. This can be installed on Debian/Ubuntu with
+This requires a SoundFont file, like the one which can be found here: https://member.keymusician.com/Member/FluidR3_GM/index.html. This can be installed on Debian/Ubuntu with
```
apt install fluid-soundfont-gm
@@ -35,3 +35,7 @@ smidi [soundfont file]
```
The sustain pedal should work (at least it works for me), and controller #48 (button 1 on my keyboard) will start/stop recording to a wav file.
+
+### License
+
+sMIDI is in the public domain (licensed under the [unlicense](https://unlicense.org)). This means you can do whatever you want with it.
diff --git a/main.c b/main.c
index 6df7acb..66dc26b 100644
--- a/main.c
+++ b/main.c
@@ -1,3 +1,30 @@
+/*
+This is free and unencumbered software released into the public domain.
+
+Anyone is free to copy, modify, publish, use, compile, sell, or
+distribute this software, either in source code form or as a compiled
+binary, for any purpose, commercial or non-commercial, and by any
+means.
+
+In jurisdictions that recognize copyright laws, the author or authors
+of this software dedicate any and all copyright interest in the
+software to the public domain. We make this dedication for the benefit
+of the public at large and to the detriment of our heirs and
+successors. We intend this dedication to be an overt act of
+relinquishment in perpetuity of all present and future rights to this
+software under copyright law.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
+EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
+MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
+IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR
+OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
+ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
+OTHER DEALINGS IN THE SOFTWARE.
+
+For more information, please refer to <http://unlicense.org/>
+*/
+
#ifdef DEBUG
#undef DEBUG
#define DEBUG 1