Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
daisyy-hardware
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
sdiy
daisyy
daisyy-hardware
Commits
80fa0426
Commit
80fa0426
authored
1 year ago
by
David Huss
Browse files
Options
Downloads
Patches
Plain Diff
Fix slight bug
parent
bf9d86e9
No related branches found
No related tags found
No related merge requests found
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
code/daisy-looper/daisy-looper.ino
+2
-3
2 additions, 3 deletions
code/daisy-looper/daisy-looper.ino
code/daisy-looper/looper.h
+3
-3
3 additions, 3 deletions
code/daisy-looper/looper.h
menu.ods
+0
-0
0 additions, 0 deletions
menu.ods
with
5 additions
and
6 deletions
code/daisy-looper/daisy-looper.ino
+
2
−
3
View file @
80fa0426
...
...
@@ -173,10 +173,9 @@ void setup() {
// Initialize the Delay at a length of 1 second
delayline
.
Init
();
delayline
.
SetDelay
(
samplerate
);
load
.
Init
(
sample_rate
,
blocksize
);
delayline
.
SetDelay
(
sample_rate
);
// Start serial communications
Serial
.
begin
(
250000
);
Serial
.
println
(
"Serial communication started"
);
...
...
This diff is collapsed.
Click to expand it.
code/daisy-looper/looper.h
+
3
−
3
View file @
80fa0426
...
...
@@ -56,15 +56,15 @@ class Looper {
rec_env_pos_inc
=
is_recording
?
1
:
-
1
;
}
void
SetLoop
(
const
float
loop_start
,
const
float
loop_length
)
{
void
SetLoop
(
const
float
loop_start
_time
,
const
float
loop_length
_time
)
{
// Set the start of the next loop
pending_loop_start
=
static_cast
<
size_t
>
(
loop_start
*
(
buffer_length
-
1
));
pending_loop_start
=
static_cast
<
size_t
>
(
loop_start
_time
*
(
buffer_length
-
1
));
// If the current loop start is not set yet, set it too
if
(
!
is_loop_set
)
loop_start
=
pending_loop_start
;
// Set the length of the next loop
pendingloop_length
=
max
(
kMinLoopLength
,
static_cast
<
size_t
>
(
loop_length
*
buffer_length
));
pendingloop_length
=
max
(
kMinLoopLength
,
static_cast
<
size_t
>
(
loop_length
_time
*
buffer_length
));
// CHECK if this is truly good
// loop_length = pendingloop_length;
...
...
This diff is collapsed.
Click to expand it.
menu.ods
+
0
−
0
View file @
80fa0426
No preview for this file type
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
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!
Save comment
Cancel
Please
register
or
sign in
to comment