Add vocalist preset selector
This commit is contained in:
@@ -799,6 +799,50 @@ public struct InstrumentPlacement: Codable, Equatable, Sendable {
|
||||
}
|
||||
}
|
||||
|
||||
public struct VocalistPreset: Codable, Equatable, Identifiable, Sendable {
|
||||
public let id: String
|
||||
public var label: String
|
||||
public var familyCategory: String
|
||||
public var regionOrigin: String?
|
||||
public var voiceType: String?
|
||||
public var genderSelection: String?
|
||||
public var performanceStyle: String?
|
||||
public var aliases: [String]
|
||||
public var searchTerms: [String]
|
||||
|
||||
public init(
|
||||
id: String,
|
||||
label: String,
|
||||
familyCategory: String,
|
||||
regionOrigin: String? = nil,
|
||||
voiceType: String? = nil,
|
||||
genderSelection: String? = nil,
|
||||
performanceStyle: String? = nil,
|
||||
aliases: [String] = [],
|
||||
searchTerms: [String] = []
|
||||
) {
|
||||
self.id = id
|
||||
self.label = label
|
||||
self.familyCategory = familyCategory
|
||||
self.regionOrigin = regionOrigin
|
||||
self.voiceType = voiceType
|
||||
self.genderSelection = genderSelection
|
||||
self.performanceStyle = performanceStyle
|
||||
self.aliases = aliases
|
||||
self.searchTerms = searchTerms
|
||||
}
|
||||
|
||||
public var vocalist: Vocalist {
|
||||
Vocalist(
|
||||
id: id,
|
||||
label: label,
|
||||
voiceType: voiceType,
|
||||
genderSelection: genderSelection,
|
||||
performanceStyle: performanceStyle
|
||||
)
|
||||
}
|
||||
}
|
||||
|
||||
public struct Vocalist: Codable, Equatable, Identifiable, Sendable {
|
||||
public let id: String
|
||||
public var label: String
|
||||
|
||||
Reference in New Issue
Block a user