Skip to content
GitLab
Explore
Projects
Groups
Snippets
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Nixdorf, Luca
HoloPiano
Commits
7d671efe
Commit
7d671efe
authored
5 years ago
by
Luca Nixdorf
Browse files
Options
Download
Email Patches
Plain Diff
error messages improved
parent
615e5706
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
Unity_HoloLens_Client/Assets/Scripts/Piano/Piano.cs
+8
-2
Unity_HoloLens_Client/Assets/Scripts/Piano/Piano.cs
with
8 additions
and
2 deletions
+8
-2
Unity_HoloLens_Client/Assets/Scripts/Piano/Piano.cs
+
8
-
2
View file @
7d671efe
...
...
@@ -104,9 +104,8 @@ public class Piano : MonoBehaviour
}
catch
(
Exception
e
)
{
Debug
.
LogError
(
e
.
Message
);
Debug
.
LogError
(
"An Exception in this code could have been caused by an old properties File,"
+
"try going into the Adjustment Menu Object and resetting the Properties File using the provided Editor Button
"
);
"try going into the Adjustment Menu Object and resetting the Properties File using the provided Editor Button
\n"
+
e
.
Message
+
"\n"
+
e
.
StackTrace
);
}
}
...
...
@@ -134,6 +133,13 @@ public class Piano : MonoBehaviour
midiIndex
<
Layout
.
MidiKeyIndexStart
+
Layout
.
KeyAmount
;
midiIndex
++)
{
var
key
=
Keys
[
midiIndex
];
if
(!
key
)
{
Debug
.
LogError
(
"The piano keys have not been instantiated correctly!"
);
return
;
}
var
keyTransform
=
Keys
[
midiIndex
].
transform
;
if
(
PianoLayout
.
IsBlackKey
(
midiIndex
))
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment
Menu
Explore
Projects
Groups
Snippets