]
SectionDevice."Line1" {
- Comment "Line 1-2"
+ Comment "${var:Playback1Name}"
+
Value {
PlaybackPriority 200
}
}
}
-If.scarlett_2i4 {
+If.2i4 {
Condition {
Type String
String1 "${var:PlaybackChannels}"
String2 "4"
}
True.SectionDevice."Line2" {
- Comment "Line 3-4"
+ Comment "${var:Playback2Name}"
Value {
PlaybackPriority 100
}
SectionDevice."Mic1" {
- Comment "Input 1"
+ Comment "${var:Capture1Name}"
Value {
CapturePriority 200
}
SectionDevice."Mic2" {
- Comment "Input 2"
+ Comment "${var:Capture2Name}"
Value {
CapturePriority 100
-Define.PlaybackChannels 4
-Define.DirectPlaybackChannels 4
-Define.DirectCaptureChannels 2
-Define.Generation 2
+Define {
+ PlaybackChannels 2
+ DirectPlaybackChannels 2
+ DirectCaptureChannels 2
+ Model "2i2"
+ Playback1Name "Headphones / Line 1-2"
+ Playback2Name "Line 3-4"
+ Capture1Name "Input 1 Mic/Inst/Line"
+ Capture2Name "Input 2 Mic/Inst/Line"
+ Generation "1st"
+}
-If.scarlett_2i2 {
+If.solo {
Condition {
- Type String
- Haystack "${CardComponents}"
- Needle "USB1235:8202"
+ Type RegexMatch
+ String "${CardComponents}"
+ Regex "USB1235:8(01c|2(05|11))"
}
True.Define {
- PlaybackChannels 2
- DirectPlaybackChannels 2
+ Model "Solo"
+ Capture1Name "Input 1 Mic"
+ Capture2Name "Input 2 Inst/Line"
}
}
-If.scarlett_2i2_gen3 {
+If.2i4 {
Condition {
- Type String
- Haystack "${CardComponents}"
- Needle "USB1235:8210"
+ Type RegexMatch
+ String "${CardComponents}"
+ Regex "USB1235:8(00a|200)"
}
True.Define {
- PlaybackChannels 2
- DirectPlaybackChannels 2
- Generation 3
+ PlaybackChannels 4
+ DirectPlaybackChannels 4
+ Model "2i4"
+ Playback1Name "Line 1-2"
+ }
+}
+
+If.gen2 {
+ Condition {
+ Type RegexMatch
+ String "${CardComponents}"
+ Regex "USB1235:820[025]"
+ }
+ True.Define.Generation "2nd"
+}
+
+If.gen3 {
+ Condition {
+ Type RegexMatch
+ String "${CardComponents}"
+ Regex "USB1235:821[01]"
}
+ True.Define.Generation "3rd"
}
-Comment "Focusrite Scarlett 2i${var:PlaybackChannels} Gen ${var:Generation}"
+Comment "Focusrite Scarlett ${var:Model} ${var:Generation} Gen"
SectionUseCase."HiFi" {
Comment "Default"