Browse Source

Add first capstone journal entry

master
Charlie Ritter 1 month ago
parent
commit
1836e1e7d2
3 changed files with 123 additions and 0 deletions
  1. +1
    -0
      index.html
  2. +122
    -0
      track1.html
  3. BIN
      track1.mp3

+ 1
- 0
index.html View File

@ -43,6 +43,7 @@
<section>
<h2>Posts</h2>
<ul>
<li><a href="track1.html">Creating Music in Sonic Pi—Part 1</a> (<time datetime="2020-05-29">29 May 2020</time>)</li>
<li><a href="dewey.html">Dewey: A Personal Imageboard, Product Design Project</a> (<time datetime="2020">2020</time>)</li>
<li><a href="art"><i>Is It Cold in the Water?</i> Visualizer</a> in <a href="https://ptsjs.org/">Pts.</a> (<time datetime="2020-04-16">16 April 2020</time>)</li>
<li><a href="covidct">Connecticut COVID-19 D3 Map</a> (<time datetime="2020-04-03">03 April 2020</time>)</li>

+ 122
- 0
track1.html View File

@ -0,0 +1,122 @@
<!doctype html>
<html lang="en">
<!-- hi stranger -->
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, viewport-fit=cover">
<link href="favicon.png" rel="icon">
<link href="styles.css" rel="stylesheet">
<title>Creating Music in Sonic Pi—Part 1</title>
</head>
<body>
<header>
<h1><a href="..">&larr;</a>Creating Music in Sonic Pi—Part 1</h1>
<time datetime="2020-05-29">29 May 2020</time>
</header>
<main>
<section>
<h2>Meeting the Requirements</h2>
<p>
High schoolers in my state are required to complete a
<em>Capstone</em> project to finish off their senior year.
It is really up to the individual as to how they meet the requirements,
so I decided to create some music using <a href="https://sonic-pi.net/">Sonic Pi</a>.
</p>
<p>
Sonic Pi is touted on their website as the “future of music.”
Instead of a arranging notes manually, you <em>write code to describe the sound you want</em>,
instead of using midi keyboards<sup><a id="fna:midi" href="fn:midi">[1]</a></sup>,
you use an actual keyboard (bad joke).
</p>
</section>
<section>
<h2>Proof of Progress</h2>
<p>
After spending a few weeks messing around with the editor,
learning the ropes and creating some sound, I knew it was
time to record at least something. And I did. Below is the
≈10 minute recording of some “music” I made, below that is
the code to make the sound. This was recorded live and
edited in real time, so the code you see below is not the
entire piece, it is only a snapshot of the end. In a later
post, I will explain how it works in detail.
<audio src="track1.mp3" controls class="jam">
</p>
<code># Welcome to Sonic Pi
use_bpm 180
live_loop :kick do
with_fx :distortion, distort: 0.7, reps: 8 do
cue :kick
sample :bd_klub
sleep 0.5
end
end
live_loop :tick do
sync :kick
##| sample :elec_tick, rate: 0.5
end
live_loop :beep do
##| use_synth :chipbass
##| 10.times do
sync :kick
##| end
##| play :d3
end
live_loop :bump do
2.times do
sync :kick
end
##| sample :bd_808
end
live_loop :snare do
with_fx :reverb, reps: 2 do
5.times do
3.times do
sync :kick
end
##| sample :elec_hi_snare, amp: 0.5
end
sleep 0.5
sample :elec_lo_snare, rate: 0.3, amp: 0.75
end
end
live_loop :bassline do
chords = ring :e2, :g2, :e2, :e3, :d3
i = 0
with_fx :ping_pong, feedback: 0.99 do
with_fx :distortion, distort: 0.5, reps: chords.length do
wait = 3
if i == chords.length - 1 then
wait -= 1
end
wait.times do
sync :kick
end
use_synth :dtri
##| play chords[i], attack: 0, sustain: 1, release: 0, detune: 0.5
i += 1
end
end
end</code>
</section>
<section>
<h2>Footnotes</h2>
<ul>
<li><a id="fn:midi" href="fna:midi">[1]</a>: Though you can use midi with Sonic Pi</li>
</ul>
</section>
</main>
<footer>
<p>Copyright &copy; Charlie Ritter 2020
<a rel="license" href="http://creativecommons.org/licenses/by-sa/4.0/"><img alt="Creative Commons License" src="images/cc.png"></a>
</p>
</footer>
</body>
</html>

BIN
track1.mp3 View File


Loading…
Cancel
Save