Browse Source

Added more detailed help, and added SnoizeMIDI to LICENSE.md

Douglas Heriot 6 years ago
parent
commit
3dc6a41dd2
3 changed files with 59 additions and 2 deletions
  1. 24 1
      DHSendMIDI/main.m
  2. 24 1
      LICENSE.md
  3. 11 0
      README.md

+ 24 - 1
DHSendMIDI/main.m

@@ -195,7 +195,30 @@ void printVersion(void)
 
 void printHelp(void)
 {
-	printf("DHSendMIDI");
+	printf("\n"
+		   "Usage:	DHSendMIDI [options] byte1 [byte2]\n\n"
+		   "Options:\n"
+		   "	--note-on, -n               Note On\n"
+		   "	--note-off, -m              Note Off\n"
+		   "	--aftertouch, -a            Aftertouch\n"
+		   "	--control-change, --cc, -c  Control Change\n"
+		   "	--program-change, --pc, p   Program Change (only 1 byte of data)\n"
+		   "	--channel-pressure, --pressure, -s     Channel Pressure (only 1 byte of data)\n"
+		   "	--pitch-wheel, --pitch, -w  Pitch Wheel (2 bytes, making a 14-bit value)\n"
+		   "\n"
+		   "	--channel, -c               Channel 1-16\n"
+		   "	--destination, -d           Destination device\n"
+		   "	                            Example: to send to IAC Driver, Bus 1, use\n"
+		   "	                            --destination \"Bus 1\"\n"
+		   "	                            Defaults to all destinations\n"
+		   "\n"
+		   "	--verbose, -v               Prints message being sent\n"
+		   "\n"
+		   "	--version, -V               Displays version\n"
+		   "	--help, -h                  Displays this help\n"
+		   "\n"
+		   "Without any options, DHSendMIDI defaults to control change messages, on channel 1, to all destinations.\n"
+		   "\n");
 }
 
 

File diff suppressed because it is too large
+ 24 - 1
LICENSE.md


+ 11 - 0
README.md

@@ -16,4 +16,15 @@ Note it uses SnoizeMIDI from a submodule, so clone recursively:
 
 DHSendMIDI has a BSD-style license. See the file LICENSE.md
 
+Also includes SnoizeMIDI
+
+### SnoizeMIDI
+
+Copyright © 2001-2010, Kurt Revis.  All rights reserved.
+
+Small modifications by Douglas Heriot, 2011.
+http://github.com/krevis/MIDIApps/
+http://github.com/DouglasHeriot/MIDIApps/
+
+See LICENSE.md for more details