Technology

Entries related to technology.

SuperCollider, Middletown Remix and Raspberry Pi

At work, I've been speaking with people involved with Middletown Remix. As part of the project, I met with Ron Kuivila, who teaches electronic music at Wesleyan. His biography on Wikipedia mentioned SuperCollider, "an environment and programming language for real time audio synthesis and algorithmic composition". So, last night, I downloaded Supercollider and started playing with it.

I downloaded the Mac OSX universal image version 3.6.2 and started it up. It comes with documentation built in and it was fairly easy to get started. On my Mac, I had to use Shift-Return to kick off snippets of code. The server didn't appear as described in the documentation, but using s.boot; did the trick. The instructions saying to use Cmd-. to stop the sound weren't exactly clear. That's the command key and the period key.

Once I got that far, things started to come together really nicely, and I had my computer making some interesting sounds. Another bit of documentation that I found very interesting was How to Program in SuperCollider. It explained PBind which gave me the ability to play some tunes.

It took a little bit of remembering music theory, to get a scale that sounds half way decent.

(
Pbind(
\freq, Pseq([ 1/1, 9/8, 5/4, 4/3, 3/2, 5/3, 15/8, 2 ] * 440, 5),
\dur, Prand([0.2, 0.4, 0.3], inf)
).play
)

The next subject it looks like I need to explore is SynthDefs.

With all of this coming together, the next obvious question was, what other devices could I run SuperCollider on? There is a great blog post on SuperCollider on the Raspberry Pi. I plugged in my Raspberry Pi, loaded the SuperCollider program on it and tried to get it to run. It seemed to run okay, but the instructions talked about using Overtone to control the SuperCollider server, and I haven't gotten that far. Nor have I done anything with Synths yet, which is what I read about in the SuperCollider 3 Server Tutorial.

It does seem like an exciting project would be to use a large number of Raspberry Pi's running SuperCollider, and perhaps some sensors to make them react to what is going on around them. This could be used to create a sound installation, perhaps similar to what Ron spoke about with his rainforest installation.

I also started playing with SuperCollider for Android. I got it to start and make a sound, but not do anything subsequent. Their page, How to control SC Android remotely didn't seem to work with my Android. and server remained listed as inactive. However, using the same commands to my Raspberry Pi, I did manage to get indication that the Raspberry Pi SuperCollider server is running properly.

That pretty much captures where I am with SuperCollider, Middletown Remix and Raspberry Pi this morning. It's time to get about my chores. If've you're playing with SuperCollider and/or Raspberry Pi, let me know what your up to.

(Categories: )

Playing with the Raspberry Pi - Part 1

For Christmas, I got a Raspberry Pi. This is a $35 computer that you can do all kinds of interesting things with. I'm just starting to explore the device. Here some of the things I've done, or am thinking about doing:

To start off, I bought four different 8 Gig SD cards so I could put different builds on each card. The first card is currently running Wheezy (the default Linux distribution). It is great to get a feel for the machine. I've added Pianobar and use it as a Pandora Box. I haven't started adding much else yet.

I've been downloading distributions and then installing them using the RPi Easy SD Card Setup. Yes, it is very easy to set up cards this way. The one downside is that you end up using small partitions, depending on the image you start with and whether or not there is any automatic repartitioning.

The second card has OpenELEC. A very nice XBMC distribution. I've used it as my media center, similar to how I use my Roku. Very simple. Works great. A little slow at times.

As I was loading pictures off a camera today, and it struck me that I could probably load OpenElec on an SD card in a camera. Then, when I popped the card out of the camera and into the RPi, I could view the pictures. So, I loaded OpenELEC on a 16 Gig card I have for one of my cameras. Sure enough, the pictures are then viewable in XBMC. The video, which my camera saved in .MOV format, however, did not play, although I could hear the sound. The bigger issue, was that it created an initial partition of 125Meg. I haven't found a nice way of resizing. I'll save that for another day.

However, a better approach may be to use Raspbian. That would allow me to install XBMC as well as GIMP so I could take a card out of the camera, load it in the Raspberry Pi edit the pictures, view them on XBMC or share them via Raspbian to social networks.

I also want to play with other operating systems on the RPi. I have a Nokia N900 and I'd love to get some of the development from that community on the RPi. There are instructions for loading Mer on the Raspberry, which provides a good framework for exploring Tizen as well. Likewise, I'm interested in Android on Rpi, and when Ubuntu mobile comes along, that as well.

I like virtual worlds, so I'm wondering if I can get OpenSim running on an RPi, perhaps even with a viewer loaded as a great game machine. Or, since Scratch seems to be working, can I get Croquet or Open Cobalt running.

I also read about a project to Build Your Own Google Glass-Style Wearable Computer. I started looking around and found a promising looking head mounted display, the Vuzix Corp. Wrap 920. It looks like it should connect easily to the Raspberry. For even more fun, it should be possible to connect the The PEREGRINE Wearable Interface - Medium Glove. This would make a great gaming set up.

A possible related project includes AR, Kinect, Head mounted display project which has led me to OpenKinect

So many great projects possible!

(Categories: )

Uplift: What's your SuperBetter Online Score?

As I sit down to write this, I find that my Klout score is current 73, my score on PeerIndex is 65, and my stock is at 229 on Empire Avenue. Klout shows my top topics to be social media and social justice. PeerIndex has news, lifestyle and the arts as my top benchmark topics and on LinkedIn, the skills I've received the most endorsements in are Blogging, Social Media and Social Networking.

Yet I have to wonder, how much does this really mean? Are these the scores that matter? I remember one person describing HITS on a website as How Idiots Track Success. How influential am I really, what sort of impact am I really having? These are thoughts I think about as I struggle with setting my goals for 2013, especially as part of the CT Health Foundation's Health Leaders Fellowship Program.

I've been writing a bit about Jane McGonigal's TED talk, The game that can give you 10 extra years of life which she calls SuperBetter.

In SuperBetter, you work on building up physical, mental, emotional and social resilience. It is a great concept and it made me wonder, what my SuperBetter Online Score would be. How often do I read a post that stops and makes me think (+1 mental resilience)? How often do I stumble across something mind numbing or brain dead (-1 mental resilience)? How often do I see something that warms my heart and causes me to want to do something good for the people around me (+1 emotional resilience)? How often do I see something that makes me want to just quit (-1 emotional resilience)? How often do I see something that makes me feel more connected to friends on line (+1 social resilience)? How often do I see something that makes me want to hide in a cave and not talk to anyone (-1 social resilience)? I have skipped over physical resilience; I'm not sure I get much for pluses or minus physically from my online activities.

Wouldn't it be great if someone came a long with a game, perhaps as a mashup of Klout, StumbleUpon and SuperBetter, where a post could be rated, and optionally shared using these scores? Instead of simply 'liking' a post on Facebook, I could say it gave me a +1 mental resilience. I could chose which posts to share based on this, and make an effort to only share those posts that are increasing resilience in whichever areas I'm most interested in at the time.

At times, I could go back and see which friends have posted things that have been most uplifting. I could thank them for it, tell others about how uplifting I find them. For people posting material generating negative resilience, I could decide if I really wanted to keep following them. Perhaps even a back propagating neural network could be added, but that's probably pushing the envelope beyond the scope of this blog post.

As Facebook, Amazon, Google and other sites continue to refine their searches and recommendations, perhaps I would start getting more uplifting content. Perhaps brands and news organizations could start promoting their material in a more uplifting manner.

I'm probably too busy to write something like this myself, but perhaps I'll find some open source tools I could tweak to get close to this. So, if someone wants to steal this idea and implement it great.

So, what sort of SuperBetter Online Score is this blog post worth?

Random Stuff

Last night, I had another one of those dreams about trying to find my way. In this case, it wasn't about finding a room in a hotel, it was about finding my way home. Mostly there are just fragments of the dream remaining. We were riding in a car that my brother was driving. Barreling down a hill we came to an abrupt end of the road. My brother couldn't stop in time and we went over the embankment. Airbags misfired, no one was injured, but the car was unusable.

So, we got out and started walking. Along the way, we were befriended by some bears that travelled some of the way with us before getting reunited with their families. All of this was in some sort of national park. We continued walking along the road, until we saw a sign indication our destination was something like thirty-six miles away. We headed off in that direction and soon left the park. The area were were traveling felt abandoned, in some not quite post-apocalyptic way. Eventually we got to an area where there were some people and it was about this point that I woke up.

Meanwhile, back in non-dream space, I had a pretty busy day at work. I found out that the order for the Raspberry Pi at Amazon had gotten lost. I don't know what happened with that. The Raspberry Pi was one part of a larger order, and the rest of the order has gone through and been delivered. I called up Kim to make sure we hadn't been billed for it, and we hadn't.

However, Kim discovered that we had a strange bill from Rackspace. Initially, I thought it was just the normal billing for the hosting service for my website. However, the amount was not what it had been. It turns out that Rackspace had migrated my VPS to the cloud, resulting in a new billing structure. Fortunately, this cut the cost of my service in half. So, this evening, I spent some time getting used to Rackspace's cloud service. There are a bunch of upgrades I've been meaning to do, and now that my server is on the cloud, it makes more sense to try and do them.

I did find a different place to order my Raspberry Pi, so there are all kinds of geeky things that I should get done, as well as upgrading my personal cellphone which has been out of commission for a while.

Beyond that, I'm trying to organize my calendar for the coming couple months, do some of my reading for the Health Fellowship, get more writing done here, and generally try to keep my head above water.

(Categories: )

#visionforum - Finding My Religion - Picasso's Theory of Relativity

Saturday evening, Kim and I went to the Connecticut Forum discussion, Vision and Brilliance which featured Neil deGrasse Tyson, Neri Oxman and Neil Gaiman. The event was sold out; packed with geeks that most likely rarely make it to the Bushnell. I must admit that the only other time I've been to the Bushnell as to see Blue Man Group a couple years ago.

Others have written about what a great event it was, so I'm going to share a few of my thoughts about specific parts of the content. In the slides before the event started, it mentioned that the hashtag for the event was #visionforum. Yet then they played the standard announcement at the beginning of the events at the Bushnell about turning off all electrical devices and not taking photos. A lot of people had their cellphones out as the event started, but the tweeting subsided pretty quickly. Unfortunately, but my phone and Kim's were low on battery power and I didn't get to tweet as much as I would have liked.

John Dankowsky started off with a standard introductory question and the panelists answered the way I had already heard them speak in YouTube videos. Then he moved on to a question about what is vision and brilliance? Where does it come from. The three panelists all seemed to agree and give the same answer in slightly different ways. Vision and brilliance comes from doing what you love. From having a job you don't want to take a vacation from. Tie to that was an important aspect of keeping at your passion, even though others might not understand what you are talking about.

This played out particularly notably between Neri Oxman and Neil Gaiman. Oxman went off on topics about 3D and 4D printing; printing cartilage, printing DNA, and time after time, Gaiman seemed to say, that gives me a great idea for another story. Picasso's theory of relativity, a house seed, and several other ideas.

Oxman had talked about Cubism and the Theory of Relativity emerging at about the same time and how closely related they were in her mind. They were both about taking observations and trying to make sense of them. They both built upon the what was known at the time. It led to some interesting talks about intelligence. Intelligence, at least as it is measured by humans is about learning from others, from not having to rediscover tools or fire in each new generation. I could almost hear President Obama paraphrased into, "You didn't discover that by yourself." I could imagine some conservatives writhing at the idea about how connected and dependent we really are on one another.

After the break, there was a discussion about science and religion. It seemed to fall back on what I believe is a misguided false dichotomy between religion and science. The discussion drifted into the idea of "God of the Gaps", God, described in terms of what science can't explain. I got tired of that discussion over three decades ago in a science and religion philosophy class in college. Tyson spoke favorably about Jefferson's Bible, where Jefferson left out the miraculous and supernatural stuff.

Yet this struck me as anti-science, a sort of science of the gaps. Science is about observing, forming hypotheses and testing them. It is not about discarding observations that contradict current scientific theories. It seemed that Oxman managed to capture the spiritual aspect much more wisely, with an ability to appreciate the beauty of both arts and sciences.

Recently, there was an interview on NPR about a new book about prayer, which broke prayer down to three key forms: Help, Thanks, and Wow. I thought the author was brilliant. We all pray those three prayers in different ways, and Wow is a special place where science, arts, and religion can all meet. It also sums up, fairly nicely, the response to many great ideas that were shared at CT Forum's panel discussion Vision and Brilliance.

The tweeting continued until Sunday, with people talking about another CT Forum nerdfest; perhaps making it an annual event. I know that I have plenty more to write about the event, but I wanted to get these initial thoughts down before the new week started.

(Categories: )
Syndicate content