Category: apps on sale

Putting iPhone’s CoreMotion Technology to the Test

In our latest music app “Sounds of Christmas by mDecks Music” we wanted to create the illusion of playing a virtual instrument with your iPhone in 3D space. The user would hit “AIR” as if it were Bells and the iPhone will produce sound (notes, chords, etc)

To achieve such effect, we had to user iPhone’s CoreMotion Technology which allows access to all the iPhone’s motion  detection system. You can read more about it on my previous post Turning an iPhone into a Musical Instrument

Now, if you have ever worked with MIDI, Samplers and Sequencing software, you know what latency is. For those who do not know: Latency is the amount of time that takes all your software and hardware to turn an “action” (command, process, etc) into sound.

There’s always latency involved in sound production, regardless if you are using computers or not.  The speed of sound is not infinite which could be interpreted as already having an embedded amount of latency ( you know how in a tennis match you see the ball being hit and much later you hear the sound.) There’s latency when you play a real Acoustic Piano, since your action of pressing a key needs to be mechanically translated into hitting a string with a hammer. Of course these conversions are so fast that the pianist would not notice them (or at least can cope with)

When using MIDI, software and samplers, we add a full new set of conversions that need to be done before sound is finally produced. Your action in the keyboard is turn into a midi signal, the midi signal is turn into a note request for the sampler which has to ask the computer to access the hard drive (or memory if possible) and read the sound file which is then processed into a music note sent to your sound card which converts that information into sound and output it via your speakers.

An acceptable latency is one that produces the sound fast enough for you to perceive it as being in real time, and does not affect your playing no matter how fast you play. Musicians are tuned to feel that delay much better than the average listener and a delay of 20ms is big enough to be noticeable. An acceptable latency for musicians is below 12ms.

If we want to use the iPhone motion to trigger notes we then have to treat that motion as if it were a key been played on a keyboard, then turn it into MIDI send it to a sampler, etc. It was crucial to create a method that could detect and process motion in a very short amount of time (<1ms) and the question was if iPhone’s CoreMotion was fast enough to make this possible.

After our first test we realized that not only iPhone’s CoreMotion is incredibly fast but it is also so precise that we were able to simulate virtual Bells begin hit by the iPhone at any tempo we wanted.

Christmas Sounds by mDecks Music turned also into a rhythmic and sight-reading training tool where the user can perform a song at any tempo and, we decided to include rhythm scores of all songs for music teachers and students since this is such an intuitive way of learning and practicing rhythms

You can print all scores from your iPhone within the app or, you may download the eBook in PDF format with all songs notated as rhythm.

How to: In-App Purchase On Sale on the App Store

Changing the price of an app on the App Store is pretty straight forward. You go to the Pricing tab of your app in iTunes Connect and then edit it with the Tier you want. You must remember to set a starting date and an ending date. (Use Now to set the price change right away, and use None on the ending date if you want to keep that price indefinitely.)

If you have in-app purchases for a particular app, and you want to change the pricing for them, you must then go to the In-app purchase tab in iTunes Connect then click on the in-app purchase you want to edit. On the popup screen you will see the current setting for that in-app purchase but you have to click on the edit button to change any data including the price.  Then you can choose the new pricing exactly as you do with the app pricing, setting a new tier, starting date and ending date.

Pretty easy, eh? It took me five minutes to change all the in-app purchase prices on my 60 Top Hat Piano Grooves Vol. 1 app which is now ON SALE for $3.99 (was $4.99) and every single module is now $0.99 (were $1.99) except for the rock & pop grooves since there’s quite a few more of those.

Now you can buy 60 lessons with video tutorial & demo, compete piano score, metronome included in the score to practice all for only $3.99,

less than 7 cents $0.07 a lesson, how ridiculous (“amazing”.- I meant)  is that!