- Clone on your raspberry pi in
~/src/diminuendo
- Build
https://github.com/libusb/libusb.git
(or from downloads), preferrably via checkinstall - Build via
cargo build --release
- Put
sysadmin/diminuendo.service
in/etc/systemd/system
; dosudo systemctl daemon-reload
;sudo systemctl enable diminuendo
;sudo systemctl start diminuendo
Your data is written in ~/storage/diminuendo.sqlite
pi@raspberrypi:~/storage $ sqlite3 diminuendo.sqlite
SQLite version 3.27.2 2019-02-25 16:06:06
Enter ".help" for usage hints.
sqlite> select strftime("%Y-%m-%d %H:%M:%f", ts/1000.0, 'unixepoch'),length(events),events from events order by ts desc limit 10;
2021-05-25 07:19:05|9| 0 < 7
2021-05-25 07:19:00|4| <"
2021-05-25 07:18:59|4| 7"
2021-05-25 07:18:59|4| 0)
2021-05-25 07:17:38|6| 3 8
2021-05-25 07:17:34|3| 5
2021-05-25 07:17:34|8| 3& 8&
2021-05-25 07:17:34|3| :
2021-05-25 07:17:33|3| 2
2021-05-25 07:17:33|4| 5$
Creating it is:
CREATE TABLE events ( ts DATETIME DEFAULT CURRENT_TIMESTAMP, events BLOB);
CREATE INDEX idx_ts on events (ts);
- write events to sqlite
- millisecond precision in events
- relaunch on start
- reconnect on piano turned on/off
- p1 play recordings on mobile web
- https://github.com/GuitarML/PedalNetRT
- https://github.com/plunkgj/midi2wave
- https://github.com/Isaaafc/midi2wave
- https://magenta.tensorflow.org/maestro-wave2midi2wave
- https://github.com/craffel/pretty-midi/blob/5e3db4bfa6be0d6e87d7a9e8fcf5f4ed81e97a8d/pretty_midi/instrument.py#L345
- https://www.xlnaudio.com/products/addictive_keys/instrument/modern_upright
- p2 auto-select USB device
- p2 create/migrate database automatically
- p2 choose db from current dir if not present elsewhere