News for hackers. Stuff that matters.
Re:Making a Raspberry Pi-Powered AI to Play Piano by SunChrono on Wednesday September 06, 2017 @05:44AM (#15182328)
Those interested in computer generated music may find some pragmatic ideas in this paper from 1989:

http://peterlangston.com/Papers/amc.pdf

Re:Making a Raspberry Pi-Powered AI to Play Piano by qrv3w on Wednesday September 06, 2017 @12:18PM (#15184834)
Thanks this is wonderful! I think my implementation is very close to the "riffology" described in the paper. Lots of other great ideas in this to pursue!
Re:Making a Raspberry Pi-Powered AI to Play Piano by dnautics on Tuesday September 05, 2017 @10:46PM (#15180830)
I wonder if the author has considered connecting it to more sophisticated models. Carykh, for example trained a lexical RNN to read transcribed MIDI, specifically training it to learn jazz.
Re:Making a Raspberry Pi-Powered AI to Play Piano by qrv3w on Wednesday September 06, 2017 @12:47AM (#15181289)
Yes, I plan on adding something like this in the future! However, my goal is to do learning in real-time in the style of the current pianist. NNs need quite a lot of data to train correctly so it might be hard to do in realtime. Although there could be a neat hybrid (some kind of iterative NN...).
Re:Making a Raspberry Pi-Powered AI to Play Piano by dharma1 on Wednesday September 06, 2017 @04:41AM (#15182087)
You could try this - it has online/realtime learning and runs on little resources (including raspberry pi)

https://github.com/ogmacorp/EOgmaNeo

Re:Making a Raspberry Pi-Powered AI to Play Piano by qrv3w on Wednesday September 06, 2017 @09:29AM (#15183492)
That looks awesome! Thanks.
Re:Making a Raspberry Pi-Powered AI to Play Piano by dharma1 on Wednesday September 06, 2017 @10:55AM (#15184151)
No probs. Looking forward to playing with what you build :)
Re:Making a Raspberry Pi-Powered AI to Play Piano by dnautics on Wednesday September 06, 2017 @03:09AM (#15181754)
There's probably a reasonably easy way to do style transfer by running a few moments of play by the player and watching which activations light up and putting it through the generative model.
Re:Making a Raspberry Pi-Powered AI to Play Piano by metafunctor on Wednesday September 06, 2017 @02:00AM (#15181540)
You could pre-train the network to understand a multitude of styles. It should then be able to pick up and continue a particular style very quickly.
Re:Making a Raspberry Pi-Powered AI to Play Piano by qrv3w on Wednesday September 06, 2017 @09:30AM (#15183496)
Oh, that's a neat idea! To classify the style and then choose the corresponding emulation... I'll think about it.
Re:Making a Raspberry Pi-Powered AI to Play Piano by ultrasounder on Wednesday September 06, 2017 @11:35AM (#15184468)
The best part of this whole post was the approach the OP took to actually design this. A methodical process of writing the design document, Prototyping with Python and then rewriting the application in Golang to take advantage of speed. Which begs my question to the Sw folks in this thread, why is Golang faster than Python?. I didn't realize that Golang compiler was available for ARMV7 devices such as RPi.
Re:Making a Raspberry Pi-Powered AI to Play Piano by Strang on Wednesday September 06, 2017 @12:25PM (#15184888)
That's not "begging the question," it's "raising the question."

https://afterdeadline.blogs.nytimes.com/2008/09/25/begging-t...

Re:Making a Raspberry Pi-Powered AI to Play Piano by fefb on Wednesday September 06, 2017 @01:42AM (#15181473)
Can't you use the generative adversarial networks?

Where the discriminator IA would learn to identify good melodies from real data. After that, the generator would try to make a good melodie to be approve for the discriminator IA. Thus you could play the generator melodie .

Re:Making a Raspberry Pi-Powered AI to Play Piano by qrv3w on Wednesday September 06, 2017 @09:32AM (#15183511)
Yeah, I'm thinking about trying this too. I think this is like Google's approach for A.I. Duet.
Re:Making a Raspberry Pi-Powered AI to Play Piano by SOLAR_FIELDS on Wednesday September 06, 2017 @03:52AM (#15181911)
Next step is to rig up some mechanisms to pull the keys down and we have a modern day pianola that can improvise. Fascinating. Should be not too difficult to play blues or other pentatonic melodies, since they lend themselves well to improvisation. Using tabs or music from blues legends such as Stevie Ray or BB King would likely yield some very interesting results.

I find it interesting that we start with teaching AI music the same way we oftentimes start with children, the pentatonic scale, because it's simple and more difficult to play the "wrong" notes.

Re:Making a Raspberry Pi-Powered AI to Play Piano by dri_ft on Wednesday September 06, 2017 @09:18AM (#15183402)
The author may have been led down a blind alley when he (?) infers from a screenshot that Dan Tepfer is using Processing for this. You can also see that he's running SuperCollider (the icon on the right-hand side of the list of apps), a programming language oriented around procedural music composition and sound synthesis, which is to my mind a much more natural fit for this kind of work.
Re:Making a Raspberry Pi-Powered AI to Play Piano by qrv3w on Wednesday September 06, 2017 @09:28AM (#15183489)
Thanks! I didn't know about that! I will update the article and check out SuperCollider :)
Re:Making a Raspberry Pi-Powered AI to Play Piano by felispamukis on Friday September 08, 2017 @02:48PM (#15202932)
amazing work and great documentation OP. thank you.

consider emulations of your piano playing on two interconnected systems, each conceiving themselves as the AI and the other player as you.

initiate one of the AI using a masterpiece of yours, unknown to either. would that be considered putting your current state of pianoplayership into silicone?

Re:Making a Raspberry Pi-Powered AI to Play Piano by qrv3w on Monday September 11, 2017 @01:37PM (#15220386)
Oh this is a neat idea, thanks! I may have to try this too.
Re:Making a Raspberry Pi-Powered AI to Play Piano by syntaxing on Wednesday September 06, 2017 @03:25PM (#15186404)
The method of paper to code is really interesting. Does anyone have additional articles or books about this method?
Re:Making a Raspberry Pi-Powered AI to Play Piano by qrv3w on Thursday September 07, 2017 @09:21AM (#15191538)
I do not know of any formal methodology. Personally I just feel like I can think better when I draw things out.