-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Remy Porter
committed
Jun 9, 2015
1 parent
0bd6bd5
commit 0db03b5
Showing
5 changed files
with
15 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
This is a simple beat detector. ```beatTap.ck``` contains a class ```BeatDetector``` that exposes an event method. ```BeatDetector``` measures the time between subsequent calls to event and takes a windowed average of the last *n* events. | ||
There are a few useful beat detection files in here. | ||
|
||
```BeatTapper``` ties the detector to a keyboard, but *any* source of events could be used to drive the Detector. | ||
Running ```chuck rundetect.ck``` will launch a ChucK program that plays a sample WAV file and "clicks" (and prints) where it detects a beat in that input. It works okay, but could probably use some tuning. The code for beat detection lives in ```beatDetect.ck``` | ||
|
||
```taponbeat.ck``` is little more than a driver for simple synthesis to prove the detector/tapper works. | ||
Running ```chuck runtap.ck``` launches a program that listens for keystrokes, and averages the time between strokes to find a beat. The main logic for that lives in ```beatTap.ck```. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,2 @@ | ||
Machine.add(me.dir() + "/beatTap.ck"); | ||
Machine.add(me.dir() + "/beatDetect.ck"); | ||
//Machine.add(me.dir() + "/taponbeat.ck"); | ||
Machine.add(me.dir() + "/beatDetectTester.ck"); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
Machine.add(me.dir() + "/beatTap.ck"); | ||
Machine.add(me.dir() + "/tapTester.ck"); |
File renamed without changes.