-
Notifications
You must be signed in to change notification settings - Fork 0
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
Showing
5 changed files
with
29 additions
and
4 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
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,17 @@ | ||
# DDS 01 | ||
|
||
Simple tones | ||
|
||
We are going to work our way to something that works incrementally. | ||
Mostly, because this is how I learn and I find that if I have to go back to relearn things....its just easier that way. | ||
|
||
Start out with a simple sketch that works with TWO timers. T4 and T5. | ||
|
||
One is going pretty fast, and is our DDS ( Direct Digital Synthesis) timer. | ||
Its a 32 bit counter that you shift by 24 bits and use the last 8 bits as an index into your wave table. | ||
|
||
The other timer does nothing. | ||
|
||
If successful, you should be hearing a tone on the dac pin and a squarewave | ||
on the other outside of audio, but enough to verify the timing of the interrupt. | ||
|
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,3 @@ | ||
# dds02 | ||
|
||
add random notes via the slower timer |
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,3 @@ | ||
# dds03 | ||
|
||
add second note and envelope |
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,3 @@ | ||
# dds04 | ||
|
||
roll back some sound stuff, but add midi |