Saturday 28 October 2017

Wii Controllers



Wii Controllers is a Max/MSP interface for composers and artists interested in getting started with the Nintendo Wiimote for creative application. The interface may handle up to four Wiimotes simultaneously and is ready to use alongside OSCulator. The interface uses the CNMAT object 'OSC-route'.

Friday 27 October 2017

The Wii Owner’s Toolbox: 100 Cool Things to do With Your System


SHARES0
If you’re fortunate enough to have a Wii, you certainly know by now that it’s a really fun and flexible system. But no matter what you’ve done so far, there’s a good chance that you’ve only found the tip of the iceberg. Follow this list to find even more awesome things to do with the Wii. Internet Channel The Wii’s Internet Channel has opened up a lot of opportunities for fun stuff, like homebrewed games, Flash, and lots more.
  1. Homebrew: You can create games that are fit for playing through the Wii’s Internet Channel.
  2. Wiicade: Play arcade games created for the Wii on this site.
  3. Watch TV: Check out one of the many video sites online that showcases TV, and you’ve got a virtual on-demand TV program right in your system.
  4. Stream Joost: Use this hack to stream Joost videos to your Wii.
  5. Browse in full screen: Use this settings hack to enable full-screen viewing.
  6. WiiTube: On WiiTube, you can watch videos made specifically for the Wii.
  7. Play movies: Tweak your settings to watch home movies on the Wii.
  8. Watch YouTube: Watch YouTube on a bigger screen with the Wii.
  9. Create a Wii media server: Use this web media server to turn your Wii into a multimedia machine.
  10. Stream iTunes: Check out this tutorial to learn how to stream your iTunes music library to the Wii.
  11. Stream PC media: Get media from your PC onto the Wii Opera browser to watch PC on your TV.
  12. MiiBoard: Find flash games that work well with the Wii on this board.
  13. Brag on the forums: Check out the Wii forums to share ideas and brag about high scores.
Miis Miis are really fun to create and play with, but you can take your Miis to the next level with these suggestions.
  1. Enter your Miis in contests: Recently, Nintendo has offered a way for Wii users to create Miis and compete with other artists.
  2. Share Miis with friends: Send your funniest and most creative Miis to your friends.
  3. Freakify your friends and family: While they’re out of town, give all of their Miis huge eyes or blue eyeshadow.
  4. Create celebrity Miis: Try your hand at creating Miss Piggy, Beavis and Butthead, Link, and more.
  5. Send unlimited Miis: With this hack, you can distribute as many Miis as you want.
  6. Get a real life Wii made: There are a number of services out there that will turn your Wii into a figurine.
  7. Create "Special" Miis: Special Miis were created to release celebrity Miis, but you can create your own Special Miis with this hack.
  8. Get a custom cake topper: If you’re looking for an interesting wedding cake topper, get one made in your Wii likeness.
Wiimote The Wii’s Wiimote has turned out to be an incredibly useful tool, great for applications even outside of the Wii.
  1. Create head tracking: The Wiimote can be used for virtual reality displays.
  2. Pretend your Wiimote is a light saber: Turn your Wiimote into a light saber for the ultimate in Wii-Star Wars geekery.
  3. Control your Smarthome: You can use the Wiimote to control a number of things, even a Smarthome.
  4. Make a drum kit: Check out this hack to learn how you can turn the Wiimote into drums.
  5. Make your nunchuck accessible: Check out this hack to learn how to make nunchuck-controlled games work on just the Wiimote.
  6. Control DJ equipment: Check out this hack that uses the Wiimote to control loops.
  7. Make your classic controller look like a Wiimote: Use this hack to make your classic Wii controller a little more attractive and fun.
  8. Play on the Xbox 360: Hack your Wiimote and nunchuck to play on the Xbox 360.
  9. Create your own blaster: With this mod, you can turn any toy gun into a blaster.
  10. Correct perspective in digital photography: With the Wiimote, you can record the pitch and roll that a photo is taken at, then use these values to tilt the image appropriately.
  11. Wiimote Curtain Controller: Although it’s not practical, it certainly is fun to control your draps with the Wiimote.
  12. BlueTunes: This app makes it easy to control iTunes, Winamp, and more, all with your Wiimote.
  13. Play air guitar: Rock out with your Wiimote using this hack.
  14. Play air drums: If guitar isn’t enough for you, create a Wiimote drum machine.
  15. Create a door opener: With this hack, you can open electric locks with your Wiimote.
  16. Modify your buttons: Use this program to customize your Wiimote’s buttons.
  17. Control the Wii with your head: Using the WiiHelm and its included foot pedals, you can control the Wii without using your hands at all.
  18. Play laser tag: Use this script to create laser tag with Wiimotes.
  19. Whiteboard: You can turn your library into a digital whiteboard with a Wiimote.
  20. Talk on the phone: Mod your Wiimote into a phone for some good, clean, geeky fun.
  21. Check your battery: Your Wii’s LED lights indicate how much battery life is left in the controller.
  22. Turn your TV into a touchless Microsoft Surface: With this hack, you can control your TV and software with the Wiimote.
  23. Control Google Earth: Use this hack to zoom in and out, and spin the globe around.
  24. Create a powerglove: You can create your own powerglove with a Wiimote using this hack.
  25. Control an electric car: Yes, you can control an electric car with the Wiimote.
  26. Play a horse racing game: Check out this hack that puts the Wiimote on a rocking horse to create a racing game.
  27. Collect speed data: With a little scripting an ingenuity, you can use the Wiimote as an accelerometer.
  28. Connect to your PC: Use this hack to connect your Wiimote to a PC.
  29. Clip your Wiimote to the classic controller: Use this clip to play games that need dual-analog as well as motion sensitive controls.
  30. Make your own bluetooth transmitter: Check out this hack to learn how to turn the Wiimote into a cheap bluetooth transmitter.
  31. Control a robot: Check out this hack to learn how to control a robot using the Wii nunchuck.
  32. Track your fingers: Change your sensitivity settings to allow finger tracking on the Wii.
Gaming The Wii was, of course, primarily made for gaming. Take your games to the next level with these suggestions.
  1. Lose weight: With the Wii’s active gaming, you can take off a few pounds following the right regimen.
  2. Change your bowling ball color: With this hack, you can customize the color of your bowling ball.
  3. Play region free: With the Wii FreeLoader, you can play games from any region.
  4. Learn how to cook: With the Wii’s Cooking Mama game, you can pick up cooking techniques.
  5. Play Pong: Using a hack in Zelda, you can play Pong on the Wii.
  6. Take out your frustrations on boxing: Land satisfying punches on the computer or a friend in Wii boxing.
  7. Use it for physical therapy: The Wii has become popular for rehabilitation exercises.
  8. Play Tetris: If Pong just isn’t going to cut it for you, hack your way into playing Tetris.
  9. Scare the Miis behind you: If you release your ball on the backswing in WiiSports bowling, you’ll scare the spectators.
  10. Carry around an SD card: If you’re using an SD card with your Wii game, you can transport it right in the same case with this hack.
  11. Improve your sports skills: Practice sports like bowling and golf in the air conditioned comfort of your own home.
  12. Throw a 91-pin strike: In the training mode of WiiSports, you can knock down 91 pins.
  13. Improve your sidearm pitch: Throw this great pitch using this hack.
  14. Throw your ball into other people’s lanes: See what happens when you try this hack.
  15. Play on a practice court: Use this hack to change up the tennis court.
  16. Learn how to operate: In the Wii’s Trauma Center game, you can see how you’d perform as a surgeon.
Hacks and More Check out these hacks and tricks for even more Wii fun.
  1. Sensor bar: Create a wireless sensor bar for easier, portable Wii gaming.
  2. Customize your Wii’s look: You can decorate your Wii in styles ranging from Zelda to Yoshi and Darth Vader.
  3. Run Linux: Use a Zelda explot to run Linux on the Wii.
  4. Create a laptop: Follow the lead of one brilliant modder and turn your Wii into a laptop.
  5. Wireless: Set up your Wii for wireless use.
  6. Pulse your light bar to audio: Use this hardware mod to make your Wii’s light pulse along to music.
  7. Project the Wii onto a movie screen: Using a wireless sensor bar and some calculations, you can project your Wii onto the big screen.
  8. Decide whether to head outside or stay in to play WiiSports: With the weather channel, you can figure out if it’s better to play inside or out.
  9. Mod your Wii: Use a modchip to play homebrewed GameCube games and more.
  10. Play music: Use this hack to turn the Wii into an MP3 player.
  11. Hone your fine motor skills: Take a page from these surgeons, and use the Wii to fine-tune your motor skills.
  12. Navigate global news stories, using a globe: Check out the news channel to explore the novelty of reading the news on a globe.
  13. Rearrange Channels: If you’ve downloaded a lot of different games or channels, you can rearrange them with this hack.
  14. Play classic games: Use the virtual console to download your old favorites on the N64, Super Nintendo, and more.
  15. Improve your wireless reception: Use this hack to add an antenna that will bost your network reception.
  16. Make a Wii cake: Follow Martha Stewart’s instructions to create a cake modeled after the Wii.
  17. Make music: Turn a yo-yo and a Wii into a musical instrument using this hack.
  18. Edit photos: On the Photo channel, you can do cursory photo editing.
  19. Show off your geekiness with a Wii skateboard: Check out this skateboard painted to look like a Wiimote.
  20. Catch your spouse cheating: A soldier returning from Iraq busted his wife, who spent several nights playing Wii bowling with another man while he was gone.
  21. Give games as a gift: On the virtual console, you can send games to friends as a gift.
  22. Spin the globe: On the News and Weather channels, you can spin the globe just for fun.
  23. Compete for most-tuned-in-Mii: Use the Everyone Votes channel to see who knows popular opinion the best.
  24. Create a huge picture puzzle: With this hack, you can turn any photo into a 192-piece puzzle.
  25. Create your own slideshow music: Put mp3s in your SD card, and you can set a photo slideshow to music.
  26. Download photos from your phone: Enable bluetooth on your phone, and you can send camera phone photos to your Wii.
  27. Portable presentation system: The system is portable, and easy to hook up to a projector, plus it has an SD card slot, so you can use it with the Photo Channel.
  28. Create a poll: If you’re curious about common opinion on a subject, submit your own poll to the Everyone Votes channel.
  29. Map yourself: Put yourself on the Wii map, just for fun.
  30. Message other Wii owners: Share your 16-digit Wii number with friends and family to share Miis, send messages, and more.
  31. Play with non-gamers: Perhaps the coolest thing to do with the Wii is share it with non-gamers. The Wii is a friendly console for grandma, kids, and everyone in between, so it’s a great way to introduce others to gaming.


Read more: https://html.com/blog/nintendo-wii-hack-mod-homebrew/#ixzz4wllRmllf

Thursday 26 October 2017

A QUICK GUIDE TO INSTALLING TENSORFLOW ON MAC OS POSTED ON JUNE 15, 2016 BY FJODOR VAN VEEN

TL;DR: paste all the commands in your terminal in order of appearance; skip packages you already have (but update them).
Before we begin: make sure you have at least 50GB of free disk space and that your device isn’t running on battery power. We are going to run neural networks; just like the giant network in your brain it eats everything. Power, memory, time and even hard drives. It’s also good practice to make sure that your computer is properly cooled (all the vents have room to breathe). Your ambient room temperature shouldn’t be exceptionally high either (38C or 100F).
One day we might see a new software package or technology that you can install without dependancies and just a single command. Today is not that day, as TensorFlow has a spiderweb of used frameworks and libraries. But no matter, we simply install them one by one. For each library we install, you should check if you have it installed already. If you’re not sure it’s installed normally, you can opt to reinstall it or change the installation. In either case you should make sure you upgrade the package (get the latest version).
Some of the following commands require sudo (which means super do). After entering a command with sudo, your beloved computer will ask you kindly for your password. At this point, it is required to actually have a password, so if yours is blank right now, change it. You may consider temporarily shortening your password if your current password’s length is measured in megameters.
First we install Homebrew (brew). Brew makes it really easy to install a very, very large amount of different packages. Installing brew is really simple:
/usr/bin/ruby -e “$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)”
Next, we install python through brew. Please note that at as of the time of writing, you really really should install python 2, not 3. While python 3 is slightly faster (and arguably better), most TensorFlow demos are written in python 2. For future versions, replace python with python3 and (!!!) pip with pip3 if you want to use a python 3 installation.
brew install python
To install pip, we use easy install. If you don’t have easy install, run the following command:
sudo apt-get install python-setuptools
(Then) Install pip:
sudo easy_install pip
Next up is making a virtual environment. This makes sure that the TensorFlow code bulk won’t affect any of the other python projects you’re cooking up.
sudo pip install –upgrade virtualenv
Now go to Finder and create a folder in which you wish to install everything. A few folders should appear inside your folder as soon as you create your virtual environment:
virtualenv –system-site-packages SOME_PATH/SOME_FOLDER
Screen Shot 2016-06-12 at 15.35.43
A useful trick not to have to enter the whole folder path every time is to change the current directory with the “cd” command. In macOS, you can simply type “cd ” (make sure to include the space at the end). Before you hit enter, go to Finder, and drag the folder to your terminal window. This will paste the absolute folder path to the end of your input. The command should look something like this:
cd /SOME_REALLY_LONG_PATH/SOME_FOLDER
Once you do this, your prompt should change a little bit (your prompt is the thingy on the left in front of your commands. To make sure you really are in the right folder, you can enter this cute command:
ls
This will list all of the files and folders inside the current directory. This list should match whatever you see in finder.
Note that we installed a virtual environment on the folder, but we haven’t yet activated it. To activate it; run
source bin/activate
Once you do this, your prompt should change again. So how do you change it back? How do you deactivate this scary virtual environment?
deactivate
Note that for now, we do want to be inside the virtual environment, so turn it back on for now. Once you’re done playing with TensorFlow, you should deactivate it.
source bin/activate
Now the part we have been preparing for: TensorFlow itself. First we download the binaries from Google:
export TF_BINARY_URL=https://storage.googleapis.com/tensorflow/mac/tensorflow-0.9.0rc0-py2-none-any.whl
And then we install them:
sudo pip install –upgrade $TF_BINARY_URL
And that should be it. You now have TensorFlow installed. But that’s not very exciting yet now is it? How about we create some new works of Shakespeare. And I don’t mean start writing, I mean start training.
First we download or clone (whichever you prefer) the following Tensorflow port of Andrej Karpathy’s char-rnn:
https://github.com/sherjilozair/char-rnn-tensorflow
If it came zipped, unzip it first. Now place this folder inside the folder you created for TensorFlow stuff (yes there’s already some stuff in that folder, at least there really should be at this point). Now using the same trick as before, go into the new folder and make sure the virtual environment is still active.
Now we are ready to start training. Note that this process may take hours, but you can safely prematurely end the process by hitting CTRL + C. Note that this will not like immediately terminate the program, give it a few seconds.
python train.py
You can see how well it’s doing (don’t expect much within a few hundred iterations) by opening a new Terminal window and run the sample generator:
python sample.py
Once you’re done playing around with it and the network isn’t training anymore, you should make sure everything is back to normal again. Here are a few things you can check:
– Open Activity Monitor and make sure there are no more python programs running.
– Look for abnormalities in allocated memory in the memory tab.
– Trash the hidden space if desired

ANALYZING SIX DEEP LEARNING TOOLS FOR MUSIC GENERATION




As deep learning is gaining in popularity, creative applications are gaining traction as well. Looking at music generation through deep learning, new algorithms and songs are popping up on a weekly basis. In this post we will go over six major players in the field, and point out some difficult challenges these systems still face. GitHub links are provided for those who are interested in the technical details (or if you’re looking to generate some music of your own).

Magenta

Magenta is Google’s open source deep learning music project. They aim to use machine learning to generate compelling music. The project went open source in June 2016 and currently implements a regular RNN and two LSTM’s.
GitHub: https://github.com/tensorflow/magenta 
Great, because: It can handle any monophonic midi file. The documentation is good, so it’s relatively easy to set-up. The team is actively improving the models and adding functionality. For every model Magenta has provided a training bundle that is trained on thousands of midi files. You can start generating new midi files right away using these pre-trained models.
Challenges: At this point, Magenta can only generate a single stream of notes. Efforts have been made to combine the generated melodies with drums and guitars – but based on human input, as of yet. Once a model that can process polyphonic music has been trained, it could start to create harmonies (or at least multiple streams of notes). This would indeed be a mighty step on their quest for the generation of some compelling music.
Sounds like: The piece below is generated by Magenta from the 8th note onward. Here they use their attention model with the provided pre-trained bundle.

DeepJazz

The result of a thirty-six-hour hackathon by Ji-Sung Kim. It uses a two layer LSTM that learns from a midi file as its input source. DeepJazz has received quite some news coverage in the first six months of its existence.
GitHub: https://github.com/jisungk/deepjazz
Great, because: Can create some jazz by being trained on a single midi file. The project itself is also compelling proof that creating a working computational music prototype using deep learning techniques can be a matter of hours thanks to libraries like KerasTheano Tensorflow.
Challenges: While it can handle chords, it converts the jazz midi to a single pitch and single instrument. It would take a few more post-processing steps for the deep learning created melodies to sound more like human created jazz music.
Sounds like: The following piece is generated after 128 epochs (i.e. the training set consisting of a single midi file has cycled through the model that many times).

BachBot

A research project by Feynman Liang at Cambridge University,  also using an LSTM. This time it is used to train itself on Bach chorales. It’s goal is to generate and harmonize chorales indistinguishable from Bach’s own work. The website offers a test where one can listen to two streams and guess which one is an actual composition by Bach.
GitHub: https://github.com/feynmanliang/bachbot/
Great, because: Research found that people have a hard time distinguishing generated Bach from the real stuff. Also, this is one of the best efforts in handling polyphonic music as the algorithm can handle up to four voices.
Challenges: BachBot works best if one or more of the voices are fixed. Otherwise the algorithm just generates wandering chorales.The algorithm could be used to add chorales to a generated melody.
Sounds like: In the below example the notes for “Twinkle Twinkle Little Star” were fixed, with the chorales generated.

FlowMachines

In the picturesque city of Paris, a research team is working on a system that can help to keep an artist in a creative flow. Their system can generate leadsheets based on the style of a composer in a database filled with about 13000 sheets. Markov constraints are used here as neural network technique.
GitHub: not open source.
Great, because: The system has composed the first AI pop-songs.
Challenges: Producing pop songs from a generated leadsheet to these pop songs is not simply done at the click of a button – it still requires a well-skilled musician to create a compelling song like in the example below. Reducing the difficulty of these steps with the help of deep learning is still an open challenge.
Sounds like: The song is composed by the FlowMachines AI. In order to do so, the musician chose the “Beatles” style, and generated melody and harmony. Note the rest of the score (production, mixing, and assigning audio pieces to the notes) was produces by human composer.

WaveNet

Researchers at Google’s DeepMind have created Wavenet. Wavenet is based on Convolutional Neural Networks, the deep learning technique that works very well in image classification and generation in the past few years. Their most promising purpose is to enhance text-to-speech applications by generating a more natural flow in vocal sound. However, their method can also be applied to music as both the input and output consists of raw audio.
GitHub: WaveNet’s code is not open source, but others have implemented it based on DeepMind’s documentation. For example: https://github.com/ibab/tensorflow-wavenet
Great, because: It uses raw audio as input. Therefore it can generate any kind of instrument, and even any kind of sound. It will be interesting to see what this technique is capable of once trained on hours of music.
Challenges: The algorithm is computationally expensive. It takes minutes to train on a second of sound. Some have started to create a faster version. Another researcher working for Google, Sageev Oore from the Magenta project, has written a blog post where he describes what can be learned from the musical output of Wavenet. One of his conclusions is that the algorithm can produce piano notes without a beginning, making them unplayable on a real piano. Interestingly, Wavenet can extend the current library of sounds that a piano can create and produce a new form of piano music – perhaps the next step in (generated) music.
Sounds like: Trained on a dataset of piano music results in the following ten seconds of sound:

GRUV

A Stanford research project that, similar to Wavenet, also tries to use audio waveforms as input, but with an LSTM’s and GRU’s rather than CNN’s. They have showed their proof of concept to the world in June 2015.
GitHub: https://github.com/MattVitelli/GRUV
Great, because: The Stanford researchers were one of the first to show how to generate sounds with an LSTM using raw waveforms as input.
Challenges: The demonstration they provide seems over-fitted on a particular song, due to the small training corpus and the sheer amount of layers of the NN. The researchers themselves did not have the time nor computational power to experiment further with this. Fortunately, this void is starting to get filled by researchers from WaveNet and other enthusiasts. Jakub Fiala has used this code to generate an interesting amen drum break, see this blog post.
Sounds like: The tool trained on a variety of Madeon songs, resulted in the below sample. Until 1:10 is an excerpt of the creation after 100 up to 1000 iterations, after that is a mash-up of their best generated pieces. This excerpt is a recording of this video.

Notes VS Waves

The described deep learning music applications can be divided into two categories based on the input method. Magenta, DeepJazz, BachBot, and FlowMachines all use input in the form of note sequences, while GRUV and Wavenet use raw audio.
Input type:Note sequencesRaw audio
Computational complexityLow (minutes – few hours)High (few hours – days)
Editable resultYes, can be imported in music production softwareNo, waveform itself has to be edited
Musical complexityAs complex as a single song from the corpusAs complex as the combination of the entire corpus
Can we call out a clear winner? In my opinion: no. Each has different applications and these methods can coexist until generating compelling music with raw audio becomes so fast that there is simply no point in doing it yourself.
Music will be easier to create by people who are assisted by an AI that can suggest a melody or harmony. However, these people still need to be musicians (for now). The moment it is possible to train a deep learning algorithm on your entire Spotify history in raw audio form, and generate new songs, everyone can be a musician.
Image classification and generation has been improved with neural network techniques, reaching higher benchmark scores than ever before, mostly thanks to the speed at which huge sets of pixels can be trained. For audio the overarching question is: when will raw audio overtake notes as the pixel of music?

Did you miss anything, or do you have any other feedback? Comments are greatly appreciated. At the Asimov Institute we do deep learning research and development, so be sure to follow us on Twitter for future updates and posts!  In this post we did no go into the technical details, but if you’re new to deep learning or unfamiliar with a method, I refer you to one of our previous posts on neural networks.
We are currently working on generating electronic dance music using deep learning. If you want to share your ideas on this, or have some interesting data to show, please send a message to frankbrinkkemper@gmail.com. Thank you for reading!