r/iOSProgramming • u/artemnovichkov • Sep 19 '26
Roast my code I turned iPhone Duo hinge into accordion
Fold and unfold the phone to play. Left screen is bass, right is keys. Sound is synthesized, no samples.
SwiftUI, open source: https://github.com/artemnovichkov/Accorduon
Update: it's now on the App Store as a full app: https://apps.apple.com/app/id6816177737
Six registers, play-along songs, and it works on regular iPhones too (rock the phone to pump the bellows). The open-source demo stays on GitHub.
684
Upvotes
14
u/Evening_Rock5850 Sep 19 '26
I miss all the goofy apps we had when all of the iPhones sensors were a new and novel thing. Like iBeer or the zippo lighter where you’d flick the phone to open the top. Or that fun marble game for the iPad.
Maybe the hinge will bring some of that energy back.
62
u/NSRedditShitposter Sep 19 '26
This seems fun but the app reviewers won’t be happy.
26
u/Treble_brewing Sep 19 '26
It folds the wrong way for an accordion for a start…
4
u/senderPath Sep 19 '26
I applaud your creativity! I hope Weird Al can find out about this.
3
u/DawidGGs Sep 19 '26
This seems like a fun way to break the hinge
12
u/HonestSimpleMan Sep 19 '26
I think this is beautiful, and you, my friend developer, are the reason I don’t believe AI is going to take our jobs ever.
2
u/GLINTGameDeveloper Sep 19 '26
Looool
2
u/hadoopken Sep 19 '26
So how many folds and unfolds is iPhone Duo certified
2
u/weathercombo Sep 19 '26
Haha very cool to see this. Two days ago earlier this week at the online iPhone Duo Group Lab the panelists talked about how someone should make an accordion app and start a band with the guitar app they made in their own demo. I assume this was inspired by that session. Looks great!!
2
u/anurodhp Sep 20 '26
you joke but some of us remember the fart app and how huge it was.
2
u/Silver_Context5548 Sep 21 '26
🤣🤣 great idea
2
u/BogAndHooper Sep 19 '26
This made my day. Bravo
1
u/northammedia Sep 20 '26
Excellent 🤙
1
u/Rkozak Sep 20 '26
My dad would have loved this.
1
u/pemungkah Sep 20 '26
Next: iCastanets.
1
u/Administrative_Low17 Sep 20 '26
The most fun you will have while breaking Duo’s hinge.
1
u/NaguBuilds Sep 20 '26
A sensitivity setting could be fun here: let someone get the full sound range from small folds, without having to open and close the phone all the way for every note.
1
u/mklx99 Sep 20 '26
Great idea! But may be a way to cause a crease at the fold faster…
1
u/Pitiful_Chemist_8463 Sep 21 '26
since when did xcode have iphone duo simulation??? I dint even have it yet
1
u/Patient-Pollution46 Sep 24 '26
this is amazing
1
u/ViBrave Sep 25 '26
Another benefit of the app: test how many unfolds can the duo survive before breaking.
1
u/vitalik2602 Oct 20 '26
Amazing
0
u/[deleted] Sep 20 '26
[deleted] — view deleted comment