Skip to content

Commit f70e13e

Browse files
committed
-c option to modify reclaim period
1 parent 17c99ff commit f70e13e

7 files changed

Lines changed: 28 additions & 2021 deletions

File tree

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
steamcontrollersinger

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
steamcontrollersinger : main.cpp midifile/midifile.c
2-
g++ -o steamcontrollersinger main.cpp midifile/midifile.c -lusb-1.0 -fpermissive -std=c++11
2+
g++ -o steamcontrollersinger main.cpp midifile/midifile.c -fpermissive `pkg-config --libs --cflags libusb-1.0`

README.md

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,13 +16,15 @@ This project is a fork of [Pila's SteamControllerSinger](https://gitlab.com/Pila
1616
You can find midi songs ready to be played with Steam Controller Singer in my [Personal Collection](https://mega.nz/#F!BWpEWKzB!r7WPw5bZ_domN4pk-FJsjg) (I'll keep updating it with more songs). You can also download midi songs from various websites such [musescore.com](https://musescore.com/), but they may or may not be ready to be played with Steam Controller Singer (see Midi files tips in that case).
1717

1818
### Usage from command prompt:
19-
steamcontrollersinger [-r][-l DEBUG_LEVEL] [-i INTERVAL] MIDI_FILE
19+
steamcontrollersinger [-r][-l DEBUG_LEVEL] [-i INTERVAL] [-c RECLAIM_PERIOD] MIDI_FILE
2020

2121
-i INTERVAL argument to choose player sleep interval (in microseconds). Lower generally means better song fidelity, but higher cpu usage, and at some point goidn lower won't improve any more. Default value is 10000
2222

2323
-l DEBUG_LEVEL argument to choose libusb debug level. Default is 0, no debug output. max is 4, max verbosity output
2424

2525
-r to enable repeat mode, which plays continously (restart the song when finished)
26+
27+
-c RECLAIM_PERIOD will change the default reclaiming period (2 seconds). A greater period will reduce notes hanging, but will also increase the probability of losing the control of the controller, depending on the song. All songs are known to fail with reclaim period over 5. After a failed attempt, you will need to reconnect the controller.
2628

2729
### Midi files tips:
2830

@@ -35,6 +37,9 @@ Midi files may need to be edited with a software such [MidiEditor](https://www.m
3537

3638
## CHANGELOG
3739

40+
[V1.8]
41+
* User can now define the reclaim period with -c option.
42+
3843
[V1.7]
3944
* Fixed music stopped playing after a few seconds
4045

@@ -59,3 +64,7 @@ Midi files may need to be edited with a software such [MidiEditor](https://www.m
5964
[V1.2]
6065
* Fixed being stuck on "Command error" when disconnecting controller while playing. Now continue playing (even if keep failing)
6166
* Removed the now deprecated 20ms note duration reduction
67+
68+
## Compiling
69+
70+
You will need libusb(-dev) and pkgconf. If you have them, just type `make`.

libusb/libusb-1.0.a

-169 KB
Binary file not shown.

0 commit comments

Comments
 (0)