Skip to content

Commit

Permalink
Merge pull request #33 from luisaph/notion-update-docs
Browse files Browse the repository at this point in the history
[Notion] Update docs
  • Loading branch information
luisaph authored Mar 19, 2024
2 parents d264644 + 46f5c29 commit f974d76
Show file tree
Hide file tree
Showing 5 changed files with 956 additions and 1,471 deletions.
26 changes: 18 additions & 8 deletions src/notion-docs/chapters/melody.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,11 @@ If rhythm is the element of music that makes us tap our foot and want to dance,

A melody is a sequence of tones that we, as listeners, perceive as a single entity. One of the things we perceive when we listen to a melody is pitch - how high or low each tone is. Here is one example of a melody:

{% p5 melody/melody-0/ %}
{% p5 melody/melody-1 %}

There are also slight differences in loudness: some tones are louder, some are softer:

[Loudness interactive]

{% p5 melody/melody-1 %}
<iframe src="https://editor.p5js.org/luisa_NYU/full/vynz3it3_"></iframe>

Tones also have a duration: some are shorter, some are longer. Let's draw the tones in our melody as they occur over time:

Expand Down Expand Up @@ -64,7 +62,7 @@ _Click and hold to play each. Frequency is measured in Hertz (Hz). One hertz is

</figure><br>

### Pitches in Code
### Code

With this knowledge - melodies are sequences of tones, tones are oscillations at different amplitudes and frequencies which make them higher, lower, louder and softer - let's create our first pitched digital instrument.

Expand All @@ -89,10 +87,22 @@ Modify the example above, and create your own [Theremin](https://www.youtube.com
- What range of frequencies does your instrument offer? What's the range of amplitudes?
- Applying what you learned in the Elements of Sound chapter, change the volume and frequency mapping so that instead of being linear, it is on a logarithmic scale. Is the difference noticeable?
- Allow your user to add pitch guides to the interface by clicking at certain Y positions.
- Connect the circle’s position to the motion of your body
- Connect the circle’s position to the motion of your body using [ml5 and PoseNet](https://learn.ml5js.org/#/reference/posenet).

References:

Picture of Clara Rockmore, link to [https://en.wikipedia.org/wiki/Theremin](https://en.wikipedia.org/wiki/Theremin)
- Theremin

<figure>

![Melody-3.png](Melody-3.png)
_Alexandra Stepanoff playing the theremin on [NBC Radio](https://en.wikipedia.org/wiki/NBC_Red_Network), 1930. Image source: [wikipedia](https://en.wikipedia.org/wiki/Theremin)._

Picture of Pamela Z, link to [https://en.wikipedia.org/wiki/Theremin](https://en.wikipedia.org/wiki/Theremin)
</figure><br>

<figure>

![Melody-4.png](Melody-4.png)
_Pamela Z’s [suite for solo voice and electronics](https://www.youtube.com/watch?v=ebxvVJwGWek)_

</figure><br>
Binary file modified src/notion-docs/images/Melody-3.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/notion-docs/images/Melody-4.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 1 addition & 3 deletions src/notion-docs/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,4 @@ title: index

The Code of Music is an interactive handbook that teaches readers how to create musical systems with code, in the browser. Organized in chapters covering the elements of music (rhythm, melody, timbre, harmony, form), the book includes interactive illustrations, editable code examples, a variety of inspiration projects, and step by step tutorials for example projects. These range from audio-visual theremins and probability drum machines to loop-based interactive songs and generative compositions that respond to the current state of the weather. The book is intended for readers who have taken an introductory course on creative computing or have equivalent coding experience. Aiming to welcome the musically-curious and musicians of varying backgrounds, interests, and skill levels, it does not assume previous knowledge of computer music, music theory or production.

The book is currently under development ––this website contains placeholder content of different media types, and functions as a test of the publishing workflow we are developing to publish it in both web and print formats.

It is based on lectures and examples from a class of the same name, taught at ITP/IMA, at the graduate and undergraduate levels, in New York City and in Shanghai.
The book is currently under development ––this website contains placeholder content of different media types, and functions as a test of the workflow we are developing to publish it in both web and print formats. It is based on lectures and examples from a class of the same name, taught at ITP/IMA, at the graduate and undergraduate levels, in New York City and in Shanghai.
Loading

0 comments on commit f974d76

Please sign in to comment.