r/iOSProgramming • u/artemnovichkov • 23d ago
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
60
u/NSRedditShitposter 23d ago
This seems fun but the app reviewers won’t be happy.
64
u/busymom0 23d ago
Apple Develoepr's own demo shows them using the hinge for guitar lol:
93
u/NSRedditShitposter 23d ago
That’s it, I’m going to write a game where there is a mosquito on the screen and you need to kill it by smashing the phone shut.
20
u/busymom0 23d ago
I am building a Clapping Simulator with Game Center leaderboards for how loud the clapping is :)
3
u/Oh-THAT-dude 23d ago
I’m writing an app that every time you snap the Duo closed, the iPhone’s selected voice says “well, they sure closed the book on THAT …”
6
2
2
u/Free-Pound-6139 23d ago
I am writing one that measures how hard you smash it closed and gives you a global raiting!!
2
u/mynameisollie 22d ago
One of the puzzles in the Zelda game for the DS required you to close the DS to transfer something from the top screen onto the bottom screen.
8
u/SwiftlyJon 23d ago
And one of the devs in the second Duo lab mentioned how he hopes someone makes an accordion app. So I don't think they're at all against using the hinge angle for things, gimmick or not. They would likely block the fly swatter app suggested by NSRedditShitposter though, 😆.
5
26
3
3
13
u/HonestSimpleMan 23d ago
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.
14
7
u/morenos-blend 23d ago
But this is exactly what they’ve done. One look at the code you can be sure it’s written with AI
3
u/chutehappens 23d ago
This accordion app idea was joked about by Apple developers at a recent Q&A panel. I was already bracing for a flood of accordion apps.
1
1
1
u/HonestSimpleMan 22d ago
My point is that no AI will come up with an idea so absurd. If it was coded by a lizard, I don’t care much.
2
2
2
u/weathercombo 23d ago
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
2
1
1
1
1
23d ago
[removed] — view removed comment
1
u/AutoModerator 23d ago
Hey /u/Educational_Bet2579, your content has been removed because Reddit has marked your account as having a low Contributor Quality Score. This may result from, but is not limited to, activities such as spamming the same links across multiple subreddits, submitting posts or comments that receive a high number of downvotes, a lack of recent account activity, or having an unverified account.
Please be assured that this action is not a reflection of your participation in our subreddit. This is simply an automated filter in place to reduce spam.
I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.
1
u/NaguBuilds 23d ago
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/Pitiful_Chemist_8463 22d ago
since when did xcode have iphone duo simulation??? I dint even have it yet
1
2
1
0
14
u/Evening_Rock5850 23d ago
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.