Skip to content

IamMrandrew/soundsgood

Β 
Β 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

SoundsGood

Sounds are hard to understand and explain. SoundsGood allows musicians to understand their music scientifically. Also to strike the balance between analytical representation of sound and musician’s understandability. 🎡

Frequency, time, and timbre are the three main aspects of acoustics analysis in our application. With such division, we further developed more features under these aspects.

soundsgood-ui-screenshots

Highlights

  • Various visualization of sound including frequency-domain, time-domain, and harmonics. ✨
  • Describe your sound with a simple and intuitive interface. πŸ“
  • Intergrated with Watch app and adaption for iPad. πŸ“±

Requirement

Development Environment:

  • Xcode 13
  • Swift 5

Deployment Target:

  • Any model of iPhone with iOS 14+
  • Any model of iPad with iPadOS 15+
  • Any model of Apple Watch with watchOS 14+

Getting Started

Clone the repository on command line or on Xcode.

AudioKit

We originally used Apple’s official framework AVFoundation for audio data capturing and manipulation, but we found that this package requires verbose code to implement simple functions.

Therefore, we need to seek a reliable alternative to solve this problem. That is why the AudioKit collection is introduced in SoundsGood.

Design Pattern

SwiftUI with MVVM. With the property wrapper provided by SwiftUI and Combine, we can easily build relations between View and ViewModel with less code.

We keep our logic in ViewModel, and UI related in View. The concepts of parent View Model and child View Model is also implemented.

We keep a clean file structure by features. Core functions are in the Core folder.

.
β”œβ”€β”€ README.md
β”œβ”€β”€ visualizer
β”‚Β Β  β”œβ”€β”€ AudioData
β”‚Β Β  β”œβ”€β”€ Core
β”‚Β Β  β”‚Β Β  β”œβ”€β”€ Audio
β”‚Β Β  β”‚Β Β  β”‚Β Β  β”œβ”€β”€ ViewModels
β”‚Β Β  β”‚Β Β  β”‚Β Β  β”‚Β Β  └── AudioViewModel.swift
β”‚Β Β  β”‚Β Β  β”‚Β Β  └── Views
β”‚Β Β  β”‚Β Β  β”‚Β Β      β”œβ”€β”€ PitchView.swift
β”‚Β Β  β”‚Β Β  β”‚Β Β      β”œβ”€β”€ SoundView.swift
β”‚Β Β  β”‚Β Β  β”‚Β Β      └── TimbreView.swift
β”‚Β Β  β”‚Β Β  β”œβ”€β”€ Components
β”‚Β Β  β”‚Β Β  β”‚Β Β  β”œβ”€β”€ Buttons
β”‚Β Β  β”‚Β Β  β”‚Β Β  β”‚Β Β  └── SettingButton.swift
β”‚Β Β  β”‚Β Β  β”‚Β Β  └── Components here ...
β”‚Β Β  β”‚Β Β  β”œβ”€β”€ ContentView.swift
β”‚Β Β  β”‚Β Β  └── Features here with ViewModels and Views ...
β”‚Β Β  β”œβ”€β”€ Extensions
β”‚Β Β  β”œβ”€β”€ Helpers
β”‚Β Β  β”œβ”€β”€ Models
β”‚Β Β  β”‚Β Β  β”œβ”€β”€ Audio.swift
β”‚Β Β  β”‚Β Β  β”œβ”€β”€ Models here ...
β”‚Β Β  β”œβ”€β”€ WatchConnectivityViewModel.swift
β”‚Β Β  └── visualizerApp.swift

Contributing

Feel free to open a new issue or pull request. Conventional commits are encouraged.

Read the CONTRIBUTING.md file for more information.

If you are interesting in beta testing, you may take a look of the TestFlight beta.

For extracting frequency data from sound samples, read SCRIPTS.md.

Packages

No packages published

Languages

  • Swift 100.0%