Showing posts with label web tool. Show all posts
Showing posts with label web tool. Show all posts

Playing MIDI tracks from an Arduino

Posted: Thursday, 29 October 2015

Link: https://www.extramaster.net/tools/midiToArduino/

Table of Contents (TOC)


^ TOC

So, you just learnt how to control a buzzer using an Arduino, but you want more then just simple beeps and hums - you want to assert your dominance over the sound-waves to show-off how well you can control the buzzer.

Cynical? Well there's no denying that it's a sentiment that we all share once we learn something new, but hey, if you've managed to acquire and get an Arduino working, then that's quite far an accomplishment.

A quick search of "music buzzer arduino" should point you to the right direction, but no-one has the time to individually hand-code and map the midi-tones to the frequency values that the Arduino's Tone function requires, especially if you're working with a long MIDI track.

The solution?

https://www.extramaster.net/tools/midiToArduino/

Circuitry

^ TOC

Wiring the Buzzer is trivial, just place the buzzer on two strips (on a breadboard), connect one strip to Pin 11 on your Arduino, and the other strip to the Ground.

Demo

^ TOC
https://www.youtube.com/watch?v=B1oHQzp1P3w
https://www.youtube.com/watch?v=4FDFpycApP4

Note that this also works with Raspberry Pis.
https://www.youtube.com/watch?v=HOisQF-JaS0


Steps/Instructions

^ TOC
  1. Visit: https://www.extramaster.net/tools/midiToArduino/
  2. Upload a midi file
  3. Choose the track that you want to export
  4. Copy the resulting code to a new Arduino sketch

Sample Exported Arduino Code

^ TOC

Didn't get the midi file to work with the web app? No worries, here are some sample code generated by the web-app

Midi: Fleuron-128 - Heaven - Song: Shaun Frank & KSHMR - Heaven (feat. Delaney Jane)

Midi: Antergy - DB15 - Song: Atmozfears - DB15

Midi: Kevin Fishburne - Terra's Theme - Song: Final Fantasy VI - Terra's Theme

https://www.extramaster.net/tools/midiToArduino/

Final Notes

^ TOC Oh, and by the way, it appears that you can leave the Piezo buzzer running on loop for an extensive amount of time (24 hours+), so if you want to play a midi indefinitely, you can use an Arduino to do so.

Unfortunately, you can only have one tone running at a time, so if your midi track has multiple keys being played simultaneously, expect some wacky results. (here - try this: http://www.forelise.com/midi - "Track 2: Acoustic Grand Piano - Piano - Fr Elise")
If you attempt some protothreads hack, then expect only one Piezo buzzer to work (at a time). But if you're game, and want to give using protothreads a try:





https://www.extramaster.net/tools/midiToArduino/

Download From HAR

Posted: Monday, 15 September 2014

Download from HAR is a Windows application that can download content from a HAR file.

You might need this program to more effective download content from servers then with wget or curl, where rendered content such as images or external javascript resources are all methodologically downloaded through the program, with next to none left behind.

Downloading websites for the sake of cloning them is unethical and immoral... This tool was created to play around with GPL-licensed websites, such as http://dhmholley.co.uk/civclicker.html, which does not have an easily accessible open source repository.

Scroll down for the download link...

Download:
http://static.extramaster.net/downloadFromHAR.exe (3.1MB)

MD5: 853867813FC1B74B25CBFC9351C84890
SHA-256: BDA0E6A172713E5C959027C78402EE697F95FD8A75FB2519DED7FA5FB188FCAE

VirusTotal Scan:
https://www.virustotal.com/en/file/bda0e6a172713e5c959027c78402ee697f95fd8a75fb2519ded7fa5fb188fcae/analysis/1410708838/ (Note: the Bkav scan is a false-positive, its as a result of the packaging method that I took [python -> cython -> exe with modules -> bundled exe])

Hiding Drives in Windows

Posted: Thursday, 4 September 2014




If you're finding a way to hide hard drives on windows xp, 7, 8, 8.1 or any other windows devices, then there's a simple solution that doesn't involve installing or running third party programs.
In fact, if you've looked around, then the only feasible option is to use the windows registry to set flags on which hard drive to hide inside of explorer.

Disclaimer: Using the registry is dangerous, however its the lesser of evils between the choices of hacking about with the group policy (which you can't actually do without Windows 7 basic, starter and home premium, e.t.c., using command prompt to fiddle around with an even more volatile environment.
Make sure you backup your registry before continuing (for when something goes wrong now, or in the future).
So, with registry hacking, what about the big wall of text with all of those fancy numbers and what not?
A list of numbers without any immediate use. Source: ghacks.net
Well, lets skip the big wall of numbers and have a nice clickable online site that deals with this: http://extramaster.net/tools/windowsDriveCalculator/
The steps showing how the steps works is as follows.

#0 Start with an empty registry with everything remaining untouched.

Note: You don't have to navigate here, or perform this step AT ALL while using the tool - there may as well be already something here... It doesn't really matter...

#1 Find and identify the drives that you want to remove


Being a triple-quadruple boot install, no drives other then the C:\ drive is actually needed to be visible...

#2 Visit the page

You'll be greeted with something like this...

#3 Select the drives that you want to hide

#4.5 Click on the "Download" link/button to download

"Keep" the file, and then open it...

I wasn't able to screenshot the following dialogue box in Windows 7, but here's what you have to do in Windows 8.1...

#4.5.1 Run the file when the security warning pops up

#4.5.2 Accept the dialogue boxes that follow

#5 Restart Windows or log off and log back in

#6 Enjoy less hard drives cluttering explorer!