Skip to content

Instantly share code, notes, and snippets.

@Nepi24
Nepi24 / in-c-by-terry-riley.markdown
Created December 6, 2025 03:17
“In C” by Terry Riley

“In C” by Terry Riley

This only performs well in Google Chrome, Firefox, and Safari.

“In C” is a musical piece intended to be played by a variable amount of performers. The piece is divided into 53 segments that are to be played, “consecutively with each performer having the freedom to determine how many times he or she will repeat each pattern before moving on to the next.”

Performers are expected to stay within two or three patterns of each other. Once each performer is on the last segment, each performer repeats the last pattern until everyone arrives there, and then they each drop out one by one. This performance is truncated from the preferred 45-90 seconds per segment to 7.5-15 seconds per segment if played at 120 bpm.

On the right, you will see each performer and their current segment as well as a tempo control. In the visualization, each color corresponds to the note being played with red being “C”. The x axis and width of the note are r

@Nepi24
Nepi24 / index.html
Created August 17, 2024 03:57
Multitrack Chords
<html>
<head>
<title>Magenta - multitrack chords</title>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<meta name="viewport" content="width=device-width, minimum-scale=1.0, initial-scale=1, user-scalable=yes">
<link id="favicon" rel="icon" href="https://magenta.tensorflow.org/favicon.ico" type="image/x-icon">
<link href="https://fonts.googleapis.com/css?family=IBM+Plex+Mono:400,700" rel="stylesheet">
<script src="https://cdn.jsdelivr.net/npm/@magenta/[email protected]"></script>
@Nepi24
Nepi24 / fm-tone-drones.markdown
Created August 12, 2024 22:43
FM Tone Drones
@ewg118
ewg118 / getty-ric.sparql
Last active August 13, 2023 01:31
Getty SPARQL query for RIC (Mattingly) coins
PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX crm: <http://www.cidoc-crm.org/cidoc-crm/>
PREFIX getty: <https://data.getty.edu/>
prefix getty-media: <https://media.getty.edu/>
PREFIX aat: <http://vocab.getty.edu/aat/>
PREFIX la:<https://linked.art/ns/terms/>
PREFIX crmsci: <http://www.ics.forth.gr/isl/CRMsci/>
SELECT ?coin ?accession ?name ?homepage ?weight ?diameter ?found ?ref WHERE {
@lgaud
lgaud / create-notion-database-with-relation.py
Created October 11, 2022 13:38
Creates 2 Notion Databases, where the second has a Relation and Roll Ups to the first.
import json
import os
from dotenv import load_dotenv
import requests
class NotionClient():
def __init__(self, notion_key):
self.notion_key = notion_key