aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorcbdev <cb@cbcdn.com>2020-01-06 02:53:36 +0100
committercbdev <cb@cbcdn.com>2020-01-06 02:53:36 +0100
commitd79adcabbfee009c65a6664ca245e17ba6da83bd (patch)
tree254fac324092ec815201adc4bfe14de7cfdcf34b
parente08b473d0eeb467ad358ba5314157753b4f37c18 (diff)
downloadmidimonster-d79adcabbfee009c65a6664ca245e17ba6da83bd.tar.gz
midimonster-d79adcabbfee009c65a6664ca245e17ba6da83bd.tar.bz2
midimonster-d79adcabbfee009c65a6664ca245e17ba6da83bd.zip
Fix winmidi detect value output
-rw-r--r--README.md2
-rw-r--r--backends/winmidi.c8
2 files changed, 5 insertions, 5 deletions
diff --git a/README.md b/README.md
index 2496dfa..31493e7 100644
--- a/README.md
+++ b/README.md
@@ -78,7 +78,7 @@ To make an instance available for mapping channels, it requires at least the
`[<backend-name> <instance-name>]` configuration stanza. Most backends require
additional configuration for their instances.
-Backend and instance configuration options can also be overriden via command line
+Backend and instance configuration options can also be overridden via command line
arguments using the syntax `-b <backend>.<option>=<value>` for backend options
and `-i <instance>.<option>=<value>` for instance options. These overrides
are applied when the backend/instance is first mentioned in the configuration file.
diff --git a/backends/winmidi.c b/backends/winmidi.c
index 0722ca2..c2aee2f 100644
--- a/backends/winmidi.c
+++ b/backends/winmidi.c
@@ -263,7 +263,7 @@ static int winmidi_handle(size_t num, managed_fd* fds){
backend_config.event[u].inst->name,
backend_config.event[u].channel.fields.channel,
winmidi_type_name(backend_config.event[u].channel.fields.type),
- backend_config.event[u].value);
+ backend_config.event[u].value.normalised);
}
else{
LOGPF("Incoming data on channel %s.ch%d.%s%d, value %f",
@@ -271,7 +271,7 @@ static int winmidi_handle(size_t num, managed_fd* fds){
backend_config.event[u].channel.fields.channel,
winmidi_type_name(backend_config.event[u].channel.fields.type),
backend_config.event[u].channel.fields.control,
- backend_config.event[u].value);
+ backend_config.event[u].value.normalised);
}
}
chan = mm_channel(backend_config.event[u].inst, backend_config.event[u].channel.label, 0);
@@ -396,7 +396,7 @@ static int winmidi_match_input(char* prefix){
for(n = 0; n < inputs; n++){
midiInGetDevCaps(n, &input_caps, sizeof(MIDIINCAPS));
if(!prefix){
- printf("\tID %d: %s", n, input_caps.szPname);
+ LOGPF("\tID %d: %s", n, input_caps.szPname);
}
else if(!strncmp(input_caps.szPname, prefix, strlen(prefix))){
LOGPF("Selected input device %s (ID %" PRIsize_t ") for name %s", input_caps.szPname, n, prefix);
@@ -429,7 +429,7 @@ static int winmidi_match_output(char* prefix){
for(n = 0; n < outputs; n++){
midiOutGetDevCaps(n, &output_caps, sizeof(MIDIOUTCAPS));
if(!prefix){
- printf("\tID %d: %s", n, output_caps.szPname);
+ LOGPF("\tID %d: %s", n, output_caps.szPname);
}
else if(!strncmp(output_caps.szPname, prefix, strlen(prefix))){
LOGPF("Selected output device %s (ID %" PRIsize_t " for name %s", output_caps.szPname, n, prefix);