Giter Site home page Giter Site logo

iphonepiano's Introduction

Swift Piano Task

This project solves the problem given at this Github account. For completness I left the original text and task description.

Original Task Description

Build a small piano like application in Swift with white and black keys, playing a sound on pressing the keys.

IMPORTANT: Don't use Storyboards but purely code to create the views. A starting point for such as structure is given in the SwiftPianoTemplate XCode project.

Minimum requirements

  • View code manually written with UIKit's UIViews (no Storyboards)
  • Touchable black and white keys
  • Different sounds played for black and white keys

Optional features

  • Layouting with black keys "overlapping" the white keys as in a real piano
  • Visual feedback on touching the keys
  • Correct piano tone scales on "playing" the keys

SwiftPianoTemplate

This project contains a sample starter code for a project programmatically creating UIViews instead of Storyboards. Feel free to use this starter code for your task.

Piano Sounds

The directory grand-piano-mp3-sounds contains sample sounds you can use for this task. Alternatively you can use sounds from https://github.com/pffy/mp3-piano-sound or other sample sounds of your preference.

iphonepiano's People

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.