Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Switch to GitLab Next
Sign in / Register
Toggle navigation
Open sidebar
Jacob Vosmaer
crowbx
Commits
037a854c
Commit
037a854c
authored
May 06, 2020
by
Jacob Vosmaer
Browse files
Use 7 voices
parent
ba6f8ede
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
voice.c
voice.c
+1
-1
voice.h
voice.h
+1
-1
No files found.
voice.c
View file @
037a854c
...
...
@@ -24,7 +24,7 @@ struct {
.
dac
=
{.
channel
=
6
,
.
offset
=
52
,
.
scale
=
8382
}},
};
uint8_t
voice_map
[
NUM_VOICES
]
=
{
2
,
3
,
4
,
5
,
6
,
7
};
uint8_t
voice_map
[
NUM_VOICES
]
=
{
1
,
2
,
3
,
4
,
5
,
6
,
7
};
struct
gate
*
gate
(
uint8_t
v
)
{
if
(
v
>=
NUM_VOICES
)
{
...
...
voice.h
View file @
037a854c
...
...
@@ -5,7 +5,7 @@
enum
{
NUM_SEMITONES
=
12
};
enum
{
NUM_VOICES
=
6
,
MAX_VOICES
=
8
};
enum
{
NUM_VOICES
=
7
,
MAX_VOICES
=
8
};
#define for_each_voice(var) for (uint8_t var = 0; var < NUM_VOICES; var++)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a 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