한국어로 읽기

[Easy Score dev note] My Scores, Cloud Sync, and Writing on an iPad

Every score now lands in My scores, signing in syncs them between your PC and iPad (10 scores free), and the iPad gets an on-screen keyboard, press-and-hold menus and pinch to zoom.

Easy Score at iPad size: Amazing Grace on the staff, and below it the input pad with note lengths, sharp, flat and natural, octave buttons, select many, next note, and two octaves of piano keys with the selected note's key lit up

Easy Score 1.0.0001 started from two questions. What would it take to write a lead sheet on an iPad with no keyboard? And could a score live somewhere other than the one browser it was made in? The answer came in three steps over one day. Each step went to a preview address first and was tried on a real iPad before it came here.

My scores: every score in one list

Until now the browser kept only the score you had open. Starting a new one replaced it unless you had saved a file first. Now My scores (top left) keeps every score you make in this browser, newest first. You can search it, make a copy, or move a score to the trash, where it stays for 30 days. Opening the same file twice doesn’t make a second copy.

The My scores window: a green line saying it's synced with every PC and iPad on the account, a search box, and six scores (Amazing Grace marked Open now, Twinkle Twinkle Little Star, Silent Night, Danny Boy, Ode to Joy, Greensleeves), each with its edit time, a cloud mark, Copy and Delete
My scores, signed in: every score is in the account (the cloud mark), and the one you're editing is highlighted.

On an iPad, Safari has no save dialog. Every save used to pile up another file in Downloads. Save as a file now opens the share sheet instead, so you can pick Save to Files, AirDrop or Mail.

Sign in, and the list follows you

When you sign in, My scores is kept in your account as well, and your PC and iPad show the same list. Edits are saved on the device first and go up a few seconds later, so nothing waits on the network and offline work keeps going.

The tricky case is the same score edited on two devices. Each score has a revision number that must go up by exactly one every time it’s written, and the server rules refuse any write that doesn’t. A device that’s behind can’t overwrite the newer version. Instead it keeps its own version as a copy named “(this device)” and takes the newer one. Nothing is lost, and you choose which to keep.

The first real test turned up a bug. A PC and an iPad on the same account showed different lists. Part of the reason was in how changes are watched: once a score had been edited and uploaded, its “waiting for the server” flag never cleared on that device, so the next edit to it never went up. Listening for metadata changes fixed that. The listener also ignores lists that come from the browser’s cache rather than the server, so an empty cached list can’t look like “deleted everywhere”:

onSnapshot(scores, { includeMetadataChanges: true }, (snap) =>
  onList(
    snap.docs.map((d) => toEntry(d.id, d.data(), d.metadata.hasPendingWrites)),
    snap.metadata.fromCache, // never sync against a cached list
  ),
);

Free accounts keep 10 scores in the cloud. Pro has no limit, and that limit applies during the beta too. Pro purchases open once the payment setup is approved. Scores past the tenth stay on the device they were made on, marked “This device”.

The Save menu follows the same idea:

Item What it does
Save to cloud (Ctrl+S) Uploads this score now. If you’re not signed in, it saves to My scores on this device
Save to cloud as (Ctrl+Shift+S) Saves a copy under a new title and keeps editing the copy
Save as a file (.json) An Easy Score file to back up or open anywhere

The privacy policy and terms now say what’s kept when you sign in: the scores in My scores, stored in Google’s Seoul region and used only to keep and sync them. Without signing in, nothing about your scores reaches the server.

Writing on an iPad

The picture at the top is Easy Score at iPad size. Touch the screen with a finger or an Apple Pencil, and the input pad appears at the bottom. Press a key on a keyboard, and the keyboard layout comes back. Settings can keep the pad always on or always off.

  • Two octaves of piano keys write like A–G: at the end of the score they add the next note, and elsewhere they change the selected one. They follow the key signature, so in C you get C♯, E♭, F♯, G♯ and B♭. Next note moves on after each key, like holding Shift.
  • ♯ ♭ ♮, octave up and down, delete, ◀ ▶, lengths, dot, triplet, rest, tie, slur and + Chord are all on the pad. These are the things that used to need a keyboard.
  • Press and hold (half a second) works as right-click: it opens the bar menu for inserting bars and changing the time or key. On a lyric syllable it opens just that syllable.
  • A finger scrolls, two fingers zoom. An Apple Pencil writes and selects instead of scrolling. Select many turns a tap into Shift+click, and a finger drag into a box.
  • Writing with a finger in write mode shows the note and its name in a bubble above your finger. Slide up or down to adjust, and lift to place it, even though your finger covers the spot.
The chord box on an iPad: buttons for C to B, sharp and flat, m, 7, maj7, m7, sus4, dim, aug, 6, 9, add9, m7 flat 5 and slash, then backspace, N.C., Clear and a blue Done button
Chords without the keyboard: tap the root, the accidental, the kind and a bass note, then Done.

Lyrics still need the on-screen keyboard. The lyric box now opens it right away, and adds buttons for - (split syllables) and [ ] (several letters on one note), which hide behind the symbols layer on a Korean keyboard. Input boxes use a 16px font, so Safari no longer zooms in every time you tap one. On touch screens the toolbar also loses the F-key labels, the zoom buttons and Shortcuts. In portrait, that gives the score almost 80 more pixels.

Try it

Open Easy Score on an iPad and touch the staff. Then sign in on your PC and your iPad and watch the same list appear on both. If something gets in the way, write to me at inyourcareallen@gmail.com.

Written by

Allen

Independent app developer in South Korea. I write about the apps I make, the piano I practice, the anime I watch, and a fantasy world I'm building.

More from Practical Trivia