From 483c3b797b412c5dff2c00d89ec05ff025a11c87 Mon Sep 17 00:00:00 2001 From: Raphael Forment Date: Sat, 2 Sep 2023 21:44:22 +0200 Subject: [PATCH] fix Topos erroring on sample page --- src/AppSettings.ts | 2 ++ src/documentation/introduction.ts | 38 +++---------------------------- 2 files changed, 5 insertions(+), 35 deletions(-) diff --git a/src/AppSettings.ts b/src/AppSettings.ts index fc6d92c..86031e7 100644 --- a/src/AppSettings.ts +++ b/src/AppSettings.ts @@ -66,6 +66,7 @@ export const template_universe = { 9: { candidate: "", committed: "", evaluations: 0 }, }, init: { candidate: "", committed: "", evaluations: 0 }, + example: { candidate: "", committed: "", evaluations: 0 }, notes: { candidate: "" }, }; @@ -84,6 +85,7 @@ export const template_universes = { 9: { candidate: "", committed: "", evaluations: 0 }, }, init: { candidate: "", committed: "", evaluations: 0 }, + example: { candidate: "", committed: "", evaluations: 0 }, notes: { candidate: "" }, }, Help: tutorial_universe, diff --git a/src/documentation/introduction.ts b/src/documentation/introduction.ts index 0c237a0..d403e3e 100644 --- a/src/documentation/introduction.ts +++ b/src/documentation/introduction.ts @@ -68,41 +68,9 @@ mod(.25) :: sound('sid').note( Topos is deeply inspired by the [Monome Teletype](https://monome.org/). The Teletype is/was an open source hardware module for Eurorack synthesizers. While the Teletype was initially born as an hardware module, Topos aims to be a web-browser based software sequencer from the same family! It is a sequencer, a scriptable interface, a companion for algorithmic music-making. Topos wishes to fullfill the same goal than the Teletype, keeping the same spirit alive on the web. It is free, open-source, and made to be shared and used by everyone. ## Demo Songs - -Press ${key_shortcut( - "Ctrl + G" - )} to switch to the global file. This is where everything starts! Evaluate the following script there by pasting and pressing ${key_shortcut( - "Ctrl + Enter" - )}. You are now making music: -${makeExample( - "Obscure shenanigans", - ` -mod([1/4,1/8,1/16].div(8)):: sound('sine') - .freq([100,50].div(16) + 50 * ($(1)%10)) - .gain(0.5).room(0.9).size(0.9) - .sustain(0.1).out() -mod(1) :: sound('kick').out() -mod(2) :: sound('dr').n(5).out() -div(3) :: mod([.25,.5].div(.5)) :: sound('dr') - .n([8,9].pick()).gain([.8,.5,.25,.1,.0].div(.25)).out()`, - true -)} - -${makeExample( - "Resonant madness", - ` -mod(.25)::snd('arpy') - .note(30 + [0,3,7,10].beat()) - .cutoff(usine(.5) * 5000).resonance(10).gain(0.3) - .end(0.8).room(0.9).size(0.9).n(0).out(); -mod([.25,.125].div(2))::snd('arpy') - .note(30 + [0,3,7,10].beat()) - .cutoff(usine(.5) * 5000).resonance(20).gain(0.3) - .end(0.8).room(0.9).size(0.9).n(3).out(); -mod(.5) :: snd('arpy').note( - [30, 33, 35].repeatAll(4).div(1) - [12,0].div(0.5)).out()`, - false -)} +Reloading the application will get you one random song example to study every time. Press ${key_shortcut( + "F5" + )} and listen to them all! `; };