back to list

RatioKey, a ratio-based keyboard app for the iPad

🔗johnorado <jt511p@...>

8/31/2010 9:11:49 AM

Some years ago I came to this group to discuss the possibility of using computers to create novel instruments, well-adapted to particular tunings or tuning systems. At that time I promised to return when I had something to share.

Since that time, the touchscreen device revolution has come about, and the introduction of the iPad presented me with an unprecedented opportunity to realize that dream.

My first iPad app is called RatioKey, and it is available on the App Store. The following link will take you to a page on Apple's website which itself contains a link that will open iTunes directly to RatioKey...

http://itunes.apple.com/us/app/ratiokey/id387640139?mt=8

It's free!

🔗Ozan Yarman <ozanyarman@...>

8/31/2010 10:48:27 AM

Unfortunately, one must have a US-based bank account for the iTunes
membership to be activated in order to download this nifty little
gagdet. How should one proceed then to obtain it?

Oz.

✩ ✩ ✩
www.ozanyarman.com

On Aug 31, 2010, at 7:11 PM, johnorado wrote:

> Some years ago I came to this group to discuss the possibility of
> using computers to create novel instruments, well-adapted to
> particular tunings or tuning systems. At that time I promised to
> return when I had something to share.
>
> Since that time, the touchscreen device revolution has come about,
> and the introduction of the iPad presented me with an unprecedented
> opportunity to realize that dream.
>
> My first iPad app is called RatioKey, and it is available on the App
> Store. The following link will take you to a page on Apple's
> website which itself contains a link that will open iTunes directly
> to RatioKey...
>
> http://itunes.apple.com/us/app/ratiokey/id387640139?mt=8
>
> It's free!
>
>

🔗johnorado <jt511p@...>

9/1/2010 7:39:07 AM

While it's true the app is only available in English, and the link I posted is probably specific to the US store, it should be available through the iTunes Store in any country where the iPad itself is already on sale. I just checked the stats, and they show that it's already been downloaded in more than twenty countries.

First open iTunes to your national iTunes Store, then search on "RatioKey", then look under iPad Apps in the search results. It may be the only exact match and therefore appear at the top of the list.

If you don't live in one of the countries where the iPad is already on sale, chances are it will be coming to you soon, as supply just caught up with demand, at least in the U.S.

If you can't open an iTunes account for lack of a credit card, whether due to bad credit or because you're opposed to them, I can't help with that.

-john

--- In tuning@yahoogroups.com, Ozan Yarman <ozanyarman@...> wrote:
>
> Unfortunately, one must have a US-based bank account for the iTunes
> membership to be activated in order to download this nifty little
> gagdet. How should one proceed then to obtain it?
>
> Oz.
>
> âÂœ© âÂœ© âÂœ©
> www.ozanyarman.com
>
> On Aug 31, 2010, at 7:11 PM, johnorado wrote:
>
> > Some years ago I came to this group to discuss the possibility of
> > using computers to create novel instruments, well-adapted to
> > particular tunings or tuning systems. At that time I promised to
> > return when I had something to share.
> >
> > Since that time, the touchscreen device revolution has come about,
> > and the introduction of the iPad presented me with an unprecedented
> > opportunity to realize that dream.
> >
> > My first iPad app is called RatioKey, and it is available on the App
> > Store. The following link will take you to a page on Apple's
> > website which itself contains a link that will open iTunes directly
> > to RatioKey...
> >
> > http://itunes.apple.com/us/app/ratiokey/id387640139?mt=8
> >
> > It's free!
> >
> >
>

🔗Ozan Yarman <ozanyarman@...>

9/1/2010 7:46:35 AM

The issue is that to download any software or media from iTunes, you
need to become a member; and to become a member you need to provide a
viable US address and a US-based bank account or credit card number.
Catch-22.

Cannot you provide a clean link for us people living overseas to
benefit from this wonderous freeware?

Oz.

✩ ✩ ✩
www.ozanyarman.com

On Sep 1, 2010, at 5:39 PM, johnorado wrote:

> While it's true the app is only available in English, and the link I
> posted is probably specific to the US store, it should be available
> through the iTunes Store in any country where the iPad itself is
> already on sale. I just checked the stats, and they show that it's
> already been downloaded in more than twenty countries.
>
> First open iTunes to your national iTunes Store, then search on
> "RatioKey", then look under iPad Apps in the search results. It may
> be the only exact match and therefore appear at the top of the list.
>
> If you don't live in one of the countries where the iPad is already
> on sale, chances are it will be coming to you soon, as supply just
> caught up with demand, at least in the U.S.
>
> If you can't open an iTunes account for lack of a credit card,
> whether due to bad credit or because you're opposed to them, I can't
> help with that.
>
> -john
>
> --- In tuning@yahoogroups.com, Ozan Yarman <ozanyarman@...> wrote:
>>
>> Unfortunately, one must have a US-based bank account for the iTunes
>> membership to be activated in order to download this nifty little
>> gagdet. How should one proceed then to obtain it?
>>
>> Oz.
>>
>> ✩ ✩ ✩
>> www.ozanyarman.com
>>
>> On Aug 31, 2010, at 7:11 PM, johnorado wrote:
>>
>>> Some years ago I came to this group to discuss the possibility of
>>> using computers to create novel instruments, well-adapted to
>>> particular tunings or tuning systems. At that time I promised to
>>> return when I had something to share.
>>>
>>> Since that time, the touchscreen device revolution has come about,
>>> and the introduction of the iPad presented me with an unprecedented
>>> opportunity to realize that dream.
>>>
>>> My first iPad app is called RatioKey, and it is available on the App
>>> Store. The following link will take you to a page on Apple's
>>> website which itself contains a link that will open iTunes directly
>>> to RatioKey...
>>>
>>> http://itunes.apple.com/us/app/ratiokey/id387640139?mt=8
>>>
>>> It's free!
>>>
>>>
>>
>
>
>
>
> ------------------------------------
>
> You can configure your subscription by sending an empty email to one
> of these addresses (from the address at which you receive the list):
> tuning-subscribe@yahoogroups.com - join the tuning group.
> tuning-unsubscribe@yahoogroups.com - leave the group.
> tuning-nomail@yahoogroups.com - turn off mail from the group.
> tuning-digest@yahoogroups.com - set group to send daily digests.
> tuning-normal@yahoogroups.com - set group to send individual emails.
> tuning-help@yahoogroups.com - receive general help information.
> Yahoo! Groups Links
>
>
>

🔗Michael <djtrancendance@...>

9/1/2010 8:03:07 AM

Ozan>"to become a member you need to provide a viable US address and a US-based
bank account or credit card number.

Catch-22."

Ah yes...Jobs/Apple never seem(s) to learn when even the most simple apps
can't be accessed by so many.

First they get beat by Microsoft Windows 3.1 (and then
95,98,ME,XP,Vista,Windows 7, etc.) on both price and software selection because
they allow non-proprietary soft and hardware. They had a winner with the
I-Phone by being very inexpensive (by Apple standards). But even then Android
is catching up, quickly, much by allowing programmers to submit applications
without a $100 registration fee and often another $400 or so for a special
I-Phone needed for uploading/testing the apps directly rather than waiting for
Apple's 2 week or so long "in-house application debugging" process before an app
can go on the app store (is it any wonder more and more programmers are leaning
toward Android and more and more apps are being made for it?!). Did I mention
you need an Apple PC to run I-Phone apps and the latest version of the "Mac OS"
to make apps that will pass Apple's debugging (which is always done on the
latest OS)? Or that rumors says they are dropping support for C programs on
the I-Phone and forcing everything to be in their Objective C language (which is
more stable, but very awkward to learn and slow to code in)? Or their forcing
you to only purchase apps via their App Store?

Are those valid quality control measures...sure....but at what cost?!

Now even to buy information (IE music) you have be in Apple's "home
country" (I wonder if this restriction applies for being a "registered Apple
Developer" for the I-Phone as well). They must be losing a FORTUNE worth of
overseas business because of this. If anyone here works for or has inroads to
Apple...what's you take on this and/or do you think anything can/should be done?

🔗Michael <djtrancendance@...>

9/1/2010 8:05:59 AM

Blah, scratch that part about app availability...I just read John's note
that RatioKey is available in several countries.

________________________________
From: Michael <djtrancendance@...>
To: tuning@yahoogroups.com
Sent: Wed, September 1, 2010 10:03:07 AM
Subject: Re: [tuning] Re: RatioKey, a ratio-based keyboard app for the iPad

Ozan>"to become a member you need to provide a viable US address and a US-based
bank account or credit card number.

Catch-22."

Ah yes...Jobs/Apple never seem(s) to learn when even the most simple apps
can't be accessed by so many.

First they get beat by Microsoft Windows 3.1 (and then
95,98,ME,XP,Vista,Windows 7, etc.) on both price and software selection because
they allow non-proprietary soft and hardware. They had a winner with the
I-Phone by being very inexpensive (by Apple standards). But even then Android
is catching up, quickly, much by allowing programmers to submit applications
without a $100 registration fee and often another $400 or so for a special
I-Phone needed for uploading/testing the apps directly rather than waiting for
Apple's 2 week or so long "in-house application debugging" process before an app
can go on the app store (is it any wonder more and more programmers are leaning
toward Android and more and more apps are being made for it?!). Did I mention
you need an Apple PC to run I-Phone apps and the latest version of the "Mac OS"
to make apps that will pass Apple's debugging (which is always done on the
latest OS)? Or that rumors says they are dropping support for C programs on
the I-Phone and forcing everything to be in their Objective C language (which is
more stable, but very awkward to learn and slow to code in)? Or their forcing
you to only purchase apps via their App Store?

Are those valid quality control measures...sure....but at what cost?!

Now even to buy information (IE music) you have be in Apple's "home
country" (I wonder if this restriction applies for being a "registered Apple
Developer" for the I-Phone as well). They must be losing a FORTUNE worth of
overseas business because of this. If anyone here works for or has inroads to
Apple...what's you take on this and/or do you think anything can/should be
done?

🔗John Payne <jt511p@...>

9/2/2010 8:59:15 AM

My apologies. I was not aware that the situation was as you describe it in so much of the world.

Apple does have online iTunes Stores in many countries, as you can see here
http://store.apple.com/Catalog/US/Images/intlstoreroutingpage.html
but there are many more countries in which they don't yet, including not only Turkey but all of the countries which surround it.

As to your request for a "clean link" I'm afraid that is beyond my power, as the application only runs on the iPad and, short of a process called "jailbreaking", which, at least for a developer, constitutes a breach of contract, apps can only be installed on an iPad using iTunes. For most of the people living in one of the countries where the iTunes Store exists, this is an acceptable compromise, since it renders the iPad more secure than the typical desktop machine and vastly simplifies maintenance.

What I can do is to describe in more detail how the application works.

The code is divided into the user interface and an audio engine. They communicate via C structures that are passed back and forth between them, with the main item of interest in these structures being a pitch. That pitch could be expressed in cycles per second (Hz), but I have instead chosen to express it in terms of a proportional unit, which plugs directly into the sound generation code without conversion. That proportional unit needs some explanation.

To avoid having to calculate sine values while the audio hardware waits for input, I have set up a table of precalculated sines, which holds values for one complete cycle (2pi radians). The size of this table is one of the components of the proportional unit mentioned above. The other is the sample rate, which is 44100 samples per second, the same as a CD.

((table indices)/cycle) / (samples/second) ~ (table indices)/sample

and that's the proportional unit, (table indices)/sample. Given this quantity, the audio engine progresses from one sample to the next by adding this value to the previous value (resetting whenever it reaches the size of the table) and then uses the result it to look up the sine, which is what's passed to the hardware.

The user interface is composed of buttons, labeled with ratios, and associated with these values that are proportional to pitch. If the "1/1" frequency is changed, then all of the others are also changed.

The selection of ratios is a bit complicated. I begin with a permutation of every combination of powers of 2, 3, 5, 7, and 11, permitting the powers of 2 to vary from 1/32 to 32, the powers of 3 from 1/27 to 27, the powers of 5 from 1/25 to 25, the powers of 7 from 1/7 to 7, and the powers of 11 from 1/11 to 11. Fractional powers, like 1/32 and 1/25, appear as integers in the denominator of a ratio. The numerator and denominator are the products of their prime power components.

I then discard all combinations resulting in a ratio with a value greater than 2 or smaller than 1/2. Further I discard any combinations where either the numerator or the denominator is larger than 32.

There is a third test which may seem a bit arbitrary, but which I decided to use to make sure that I was winnowing out the more complicated ratios. For this test, each prime number is multiplied by the absolute value of its power (1/32 and 32 both yield 5, 5 times 2 is 10), and then these products are added together. If the sum of these is greater than 21, I also discard that ratio.

What's left after passing through these tests is what you find on the keyboard, arranged in ascending order from bottom to top, 105 distinct tones over two octaves.

Setting "1/1" is also a bit complicated. I use an arbitrary base frequency (which defaults to 11 Hz) and a picker to select powers of 2, 3, 5, 7, and 11, with the same limits as before, to produce a ratio which is resolved into a single quotient, which is then multiplied by the base frequency to produce the "1/1" frequency. This allows transposition by simply fiddling the prime powers to generate a different quotient.

The interface arrangement is far from ideal. It has no structure other than higher tones being placed closer to the top, and it's difficult to play. I've put a great deal of thought into how to fix this, and have some ideas that I hope to put into practice, but for the moment it is what it is, and, having published the app in this form, the current keyboard will have to remain as an option in any future version. My apologies to any who see gaping holes in my reasoning.

-john

--- In tuning@yahoogroups.com, Ozan Yarman <ozanyarman@...> wrote:
>
> The issue is that to download any software or media from iTunes, you
> need to become a member; and to become a member you need to provide a
> viable US address and a US-based bank account or credit card number.
> Catch-22.
>
> Cannot you provide a clean link for us people living overseas to
> benefit from this wonderous freeware?
>
> Oz.
>
> âÂœ© âÂœ© âÂœ©
> www.ozanyarman.com