-
-
Notifications
You must be signed in to change notification settings - Fork 9
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Feature/add more instruments #7
base: main
Are you sure you want to change the base?
Conversation
|
||
var body: some View { | ||
VStack(spacing: 20) { | ||
List{ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Opening Brace Spacing Violation: Opening braces should be preceded by a single space and on the same line as the declaration. (opening_brace)
import Foundation | ||
|
||
enum Instrument: String, Hashable, CaseIterable, Identifiable { | ||
var id: Self { self } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Identifier Name Violation: Variable name should be between 3 and 40 characters long: 'id' (identifier_name)
#if os(iOS) | ||
do { | ||
try AVAudioSession.sharedInstance().setCategory(.playAndRecord, | ||
options: [.defaultToSpeaker, .mixWithOthers, .allowBluetoothA2DP]) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Line Length Violation: Line should be 120 characters or less: currently 130 characters (line_length)
Added the implementations of blowHole, brass, plucked string, sax, sitar, stifkarp (karplus/strong+) instruments and created a new demo project for them.