In my previous post I showed how to use Raspberry Pi to automatically record MIDI files from digital piano whenever you turn it on. However, if you sit down and play for an hour, and get one big MIDI file, it is not very useful. So what to do?
Pianoteq has a feature that splits your playing session based on breaks you take between playing notes. So I decided to mimick this feature with a simple Python script that:
- Keeps tab on keys and pedals pressed
- Whenever X seconds elapse without any keys or pedals down, a new MIDI file is started
- Additionally, if user presses and releases sustain pedal several times in the end, filename for that MIDI is altered to “highlight” that file
Make a robot friend with Adafruit’s CRICKIT – A Creative Robotics & Interactive Construction Kit. It’s an add-on to our popular Circuit Playground Express, FEATHER and other platforms to make and program robots with CircuitPython, MakeCode, and Arduino. Start controlling motors, servos, solenoids. You also get signal pins, capacitive touch sensors, a NeoPixel driver and amplified speaker output. It complements & extends your boards so you can still use all the goodies on the microcontroller, now you have a robotics playground as well.
Have an amazing project to share? Join the SHOW-AND-TELL every Wednesday night at 7:30pm ET on Google+ Hangouts.
Join us every Wednesday night at 8pm ET for Ask an Engineer!
Maker Business — Fewer startups, and other collateral damage from the 2018 tariffs
Wearables — Light as a Worbla feather
Electronics — How to make your own magnetic field probe!
Biohacking — The State of DNA Analysis in Three Mindmaps
Python for Microcontrollers — One year of CircuitPython weeklies!
No comments yet.
Sorry, the comment form is closed at this time.