How To Use The Front Facing Camera With AVCaptureSession

A number of people have asked how to use the front facing camera for the video preview layer of an AVCaptureSession. First I will give you the code to add/change in the existing AROverlayExample project or the AROverlayImageCaptureExample project and then I will walk you through it. All you need to do in the sample projects listed above to use the front facing camera is replace the addVideoInput method in the CaptureSessionManager.m file. Here it is: – (void)addVideoInput { NSArray *devices = [AVCaptureDevice devices]; AVCaptureDevice *frontCamera; AVCaptureDevice *backCamera; for (AVCaptureDevice…

Read More

Xcode 4.2 Build Error: “iPhone apps should include an armv6 architecture”

If you are getting the following Xcode build error then this post is for you: warning: iPhone apps should include an armv6 architecture (current ARCHS = “armv7″) iOS apps prior to 4.3 use the armv6 architecture and will run on 3G and later iOS devices including iPhone 3G, 3GS, 4, iPad 3.2, and iPad 4.2 whereas iOS 4.3 and later apps use the armv6 or armv7 architectures. If your app has a deployment target less than iOS 4.3 and you have not included the armv6 architecture then you will get…

Read More

How To Trigger A Script When An Email Is Received

This week I needed to have a script run on a linux box whenever an email was received by a certain user. The user in my case is just a bot that is taking some action whenever a certain git repo on GitHub receives a push but this solution would work for any user on a *.nix system that needed a script to run when their account receives mail. So first of all, if you don’t already have a user then create one: (my user will be named “robot”) ?>…

Read More

Insulated – Live Ambient Minimal Techno Synth Jam

Though I still don’t have walls up, I do have the studio insulated and have been coding and making music in it for the last two weeks. The other night I recorded my first jam in the space, appropriately titled ‘Insulated’. Ableton is being used to sequence and provide some reverb (AudioDamage EOS) and then I’m mixing, tweaking and playing the instruments and effects live. Enjoy.  

Read More

Capturing Touches On A View Inside A Scroll View

I recently needed to create a vertically scrolling UIScrollView with a child sub view on which I needed to capture touches. Working with this kind of layering of views and the responder chain can be tricky but it is not as difficult as it first appears. If you are unfamiliar with the responder chain in iOS I recommend the Apple documentation on the subject available here. For this example lets say we have a UIScrollView that is the size of the screen, and inside of the scroll view we add…

Read More

How To Patch A Simple Modular Synth

I recently started building my first Eurorack modular synth by purchasing some bread and butter modules. Today I will show you how to wire up a basic monophonic, single voice synth with a separate envelope for the amplitude and filter and a bit of modulation via some LFOs. Nothing too fancy here, just some basics to get you started. We’ll be wiring up a VCO, a VCF, a VCA, a couple ADSRs and some LFOs. I’ll also be using an iPad to send MIDI data to the synth via a…

Read More

Easy Ad Hoc Networks For Mac, iPad, iPhone And iPod Touch

While following the instructions to set up an ad hoc network to use with Kapture Pad and Griid tonight I realized that there is an easier and more powerful way to do this on a Mac. Just select the AirPort signal icon in your menu bar at the top right of your desktop and select “Create Network…”, choose a name, a channel and a password (if you want) and you are done. I found this to be a more convenient way to set up my ad hoc network and by…

Read More

MaxMSP Patching At 30,000 Feet

I work at a computer most of the day, so when I am home and I want to make some music I am more inclined to set up my little hardware studio or pick up a guitar. Lately I have had to travel for work a fair bit, and as carrying a bunch of synthesizers and cables is not really an option, and as some of my diy gear might slow me down going through airport security, when I travel, I turn to my laptop, my iPhone and my iPad.…

Read More

Using Built-In Audio Output As A Cue Channel In Live

I have an Apogee Duet firewire audio interface that gives me one stereo channel in and out. It works great for single track recording and overdubbing but is not very functional for dj’ing. A great feature available in OSX is the ability to create aggregate audio devices. What this means is that you can use both the external audio interface and the built-in audio device in your Mac at the same time. This allows you to cue on one channel (the built-in 1/8″ mini-jack output) and send out to the main…

Read More

Plug-And-Play OpenAL / AVFoundation Sound Engine For iPhone Apps

I recently found a great sound engine for iPhone applications that is pretty much plug-and-play. OpenAL lets you play multiple sounds at once This sound engine was written by Alex Restrepo under a creative commons attribution-share alike licence, so you are free to use it so long as you attribute the code to the author and if you change it and share it you must do so under the same license. I have corrected one small mistake (a semi-colon where it should not have been) and also edited the formatting…

Read More