From 3963098be1333b5ec430bc6f12ec9499b053338f Mon Sep 17 00:00:00 2001 From: ziqiangao <88281267+ziqiangao@users.noreply.github.com> Date: Sat, 19 Aug 2023 19:56:19 +0800 Subject: [PATCH] add documentation --- docs/ziqian11/jazzmidi.md | 28 ++++++++++++++++++++++++++++ extensions/ziqian11/jazzmidi.js | 1 + website/index.ejs | 5 +++++ 3 files changed, 34 insertions(+) create mode 100644 docs/ziqian11/jazzmidi.md diff --git a/docs/ziqian11/jazzmidi.md b/docs/ziqian11/jazzmidi.md new file mode 100644 index 0000000000..2f9ce9279c --- /dev/null +++ b/docs/ziqian11/jazzmidi.md @@ -0,0 +1,28 @@ +# Jazz-Soft Midi + +This extension allows communication with midi ports and virtual ports + +## Blocks + +```scratch +Open Jazz MIDI port :: #e8b62d +``` +Opens the first avalible port +--- +```scratch +play note (60) with velocity (127) for (1) seconds on channel (1 v) :: #e8b62d +(channel 10 is the percussion channel) +``` +Plays a MIDI note at the specified velocity +(velocity ranges from 0 to 127, note 60 if middle C) +--- +```scratch +set instrument to (0) for channel (1 v) :: #e8b62d +``` +Sets the instrument for the specified channel +(instrument values range from 0 to 127) +--- +```scratch +(port name) :: #e8b62d +``` +returns the port that is active \ No newline at end of file diff --git a/extensions/ziqian11/jazzmidi.js b/extensions/ziqian11/jazzmidi.js index aadb4f44e4..4df78e6277 100644 --- a/extensions/ziqian11/jazzmidi.js +++ b/extensions/ziqian11/jazzmidi.js @@ -32,6 +32,7 @@ var port = null; color3: '#b7870b', name: 'Jazz Midi', id: 'ziqianjz', + docsURI: 'https://extensions.turbowarp.org/ziqian11/jazzmidi', blocks: [ { opcode: 'JZInit', diff --git a/website/index.ejs b/website/index.ejs index 4e7f852871..f6799b2265 100644 --- a/website/index.ejs +++ b/website/index.ejs @@ -793,6 +793,11 @@
Helpful utilities for any fast food employee. Created by LilyMakesThings.
+