Skip to content

Commit

Permalink
Fixed a bug in the LS 200 grid mapping
Browse files Browse the repository at this point in the history
  • Loading branch information
MJR committed May 7, 2020
1 parent f3d6c77 commit 49dbaa6
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 7 deletions.
2 changes: 2 additions & 0 deletions LinnstrumentHelper.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -395,6 +395,7 @@
buildSettings = {
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
CODE_SIGN_ENTITLEMENTS = LinnstrumentHelper/LinnstrumentHelper.entitlements;
CODE_SIGN_IDENTITY = "Apple Development";
CODE_SIGN_STYLE = Automatic;
COMBINE_HIDPI_IMAGES = YES;
DEVELOPMENT_ASSET_PATHS = "\"LinnstrumentHelper/Preview Content\"";
Expand All @@ -419,6 +420,7 @@
buildSettings = {
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
CODE_SIGN_ENTITLEMENTS = LinnstrumentHelper/LinnstrumentHelper.entitlements;
CODE_SIGN_IDENTITY = "Apple Development";
CODE_SIGN_STYLE = Automatic;
COMBINE_HIDPI_IMAGES = YES;
DEVELOPMENT_ASSET_PATHS = "\"LinnstrumentHelper/Preview Content\"";
Expand Down
2 changes: 2 additions & 0 deletions LinnstrumentHelper/Info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@
<string>1.0</string>
<key>CFBundleVersion</key>
<string>1</string>
<key>LSApplicationCategoryType</key>
<string>public.app-category.music</string>
<key>LSMinimumSystemVersion</key>
<string>$(MACOSX_DEPLOYMENT_TARGET)</string>
<key>NSHumanReadableCopyright</key>
Expand Down
8 changes: 4 additions & 4 deletions LinnstrumentHelper/Model/MIDIEngine.swift
Original file line number Diff line number Diff line change
Expand Up @@ -80,16 +80,16 @@ struct MIDIEngine {
return [190, 160, 130, 100]
}
if note == 46 {
return [191, 161, 130, 101]
return [191, 161, 131, 101]
}
if note == 47 {
return [192, 162, 131, 102]
return [192, 162, 132, 102]
}
if note == 48 {
return [193, 163, 132, 103]
return [193, 163, 133, 103]
}
if note == 49 {
return [194, 164, 133, 104]
return [194, 164, 134, 104]
}
if note == 50 {
return [195, 165, 135, 105, 75]
Expand Down
6 changes: 3 additions & 3 deletions LinnstrumentHelper/Views/PlayingSurfaceView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -29,10 +29,10 @@ struct PlayingSurfaceView: View {
Grid(items) { item in
Card(title: "\(item.noteNames[item.number])", color: item.color)

// .onTapGesture {
.onTapGesture {
// self.conductor.note1 = UInt8(item.number)
// print(item.number)
// }
print(item.number)
}
}

.overlayPreferenceValue(GridItemBoundsPreferencesKey.self) { preferences in
Expand Down

0 comments on commit 49dbaa6

Please sign in to comment.