Skip to content

Commit

Permalink
Improve sounds
Browse files Browse the repository at this point in the history
  • Loading branch information
isaacvando committed Jan 22, 2024
1 parent 055c445 commit 024f191
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 15 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ zig build run
```

The instruments are (from top to bottom):
1. High tom
1. Low tom
1. Boop
1. Beep
1. HiHat
1. Snare
1. Kick
Expand Down
26 changes: 13 additions & 13 deletions main.roc
Original file line number Diff line number Diff line change
Expand Up @@ -269,7 +269,7 @@ playColumn = \column ->
else
Task.ok {}

sounds = [highTom, lowTom, hihat, snare, kick]
sounds = [boop, beep, hihat, snare, kick]

kick : Task {} []
kick = W4.tone {
Expand Down Expand Up @@ -299,32 +299,32 @@ snare = W4.tone {

hihat : Task {} []
hihat = W4.tone {
startFreq: 680,
endFreq: 675,
startFreq: 710,
endFreq: 695,
attackTime: 0,
decayTime: 6,
sustainTime: 1,
decayTime: 2,
sustainTime: 0,
releaseTime: 0,
peakVolume: 60,
volume: 60,
channel: Pulse1 Eighth,
}

lowTom : Task {} []
lowTom = W4.tone {
beep : Task {} []
beep = W4.tone {
startFreq: 400,
endFreq: 200,
endFreq: 800,
attackTime: 2,
decayTime: 22,
sustainTime: 14,
releaseTime: 8,
decayTime: 3,
sustainTime: 0,
releaseTime: 0,
peakVolume: 68,
volume: 58,
channel: Pulse2 Eighth,
}

highTom : Task {} []
highTom = W4.tone {
boop : Task {} []
boop = W4.tone {
startFreq: 600,
endFreq: 400,
attackTime: 2,
Expand Down

0 comments on commit 024f191

Please sign in to comment.