Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
See what's new at GitLab
4
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Switch to GitLab Next
Sign in / Register
Toggle navigation
C
crowbx
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Iterations
Merge Requests
0
Merge Requests
0
Requirements
Requirements
List
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Test Cases
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Operations
Operations
Incidents
Environments
Packages & Registries
Packages & Registries
Container Registry
Analytics
Analytics
CI / CD
Code Review
Insights
Issue
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Jacob Vosmaer
crowbx
Commits
ada89eb9
Commit
ada89eb9
authored
May 06, 2020
by
Jacob Vosmaer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use 7 voices
parent
666178b2
Changes
2
Hide 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 @
ada89eb9
...
...
@@ -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 @
ada89eb9
...
...
@@ -5,7 +5,7 @@
enum
{
NUM_SEMITONES
=
12
};
enum
{
NUM_VOICES
=
6
};
enum
{
NUM_VOICES
=
7
};
#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