diff --git a/repl/src/tutorial/MiniRepl.tsx b/repl/src/tutorial/MiniRepl.tsx index 7eba5ca1..3f9f5c92 100644 --- a/repl/src/tutorial/MiniRepl.tsx +++ b/repl/src/tutorial/MiniRepl.tsx @@ -12,7 +12,7 @@ const defaultSynth = new Tone.PolySynth().chain(new Tone.Gain(0.5), Tone.Destina }); // "balanced" | "interactive" | "playback"; -Tone.setContext(new Tone.Context({ latencyHint: 'playback', lookAhead: 1 })); +// Tone.setContext(new Tone.Context({ latencyHint: 'playback', lookAhead: 1 })); function MiniRepl({ tune, maxHeight = 500 }) { const [editor, setEditor] = useState(); const { code, setCode, activateCode, activeCode, setPattern, error, cycle, dirty, log, togglePlay, hash } = useRepl({ diff --git a/repl/src/tutorial/tutorial.mdx b/repl/src/tutorial/tutorial.mdx index f6175a3d..49a739f5 100644 --- a/repl/src/tutorial/tutorial.mdx +++ b/repl/src/tutorial/tutorial.mdx @@ -323,7 +323,7 @@ Like early, but in the other direction: -TODO: shouldn't it sound different? + ### rev() @@ -337,13 +337,19 @@ Will apply the given function every n cycles: -TODO: should be able to do b4.every => like already possible with fast slow etc.. + Note that late is called directly. This is a shortcut for: x.late(0.5)))`} /> -TODO: should the function really run the first cycle? + + +### add(n) + +Adds the given number to each item in the pattern: + + ### Functions not documented yet @@ -561,7 +567,7 @@ Turns chord symbols into voicings, using the smoothest voice leading possible: ".voicings(), "")`} /> -TODO: use voicing collection as first param + patternify. + ### rootNotes(octave = 2) @@ -578,8 +584,8 @@ Together with edit, struct and voicings, this can be used to create a basic back )`} /> -TODO: use range instead of octave. -TODO: find out why composition does not work + + ## MIDI API