From b2646dbd65526aac9f2392c890a52fb38e74e94d Mon Sep 17 00:00:00 2001 From: Felix Roos Date: Sat, 19 Feb 2022 21:47:59 +0100 Subject: [PATCH] midi doc --- repl/src/tutorial/tutorial.mdx | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/repl/src/tutorial/tutorial.mdx b/repl/src/tutorial/tutorial.mdx index 19d433ee..6f55c0bd 100644 --- a/repl/src/tutorial/tutorial.mdx +++ b/repl/src/tutorial/tutorial.mdx @@ -592,7 +592,21 @@ TODO: find out why composition does not work ## MIDI API -TODO, see https://github.com/tidalcycles/strudel/blob/main/repl/src/midi.ts +Strudel also supports midi via [webmidi](https://npmjs.com/package/webmidi). + +### midi(outputName?) + +Make sure to have a midi device connected or to use an IAC Driver. +If no outputName is given, it uses the first midi output it finds. + +Midi is currently not supported by the mini repl used here, but you can [open the midi example in the repl](https://strudel.tidalcycles.org/#c3RhY2soIjxDXjcgQTcgRG03IEc3PiIubS52b2ljaW5ncygpLCAnPEMzIEEyIEQzIEcyPicubSkKICAubWlkaSgp). + +In the REPL, you will se a log of the available MIDI devices. + + # Contributing