Skip to content

Commit

Permalink
add documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
ziqiangao committed Aug 19, 2023
1 parent a97c9a1 commit 3963098
Show file tree
Hide file tree
Showing 3 changed files with 34 additions and 0 deletions.
28 changes: 28 additions & 0 deletions docs/ziqian11/jazzmidi.md
Original file line number Diff line number Diff line change
@@ -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
1 change: 1 addition & 0 deletions extensions/ziqian11/jazzmidi.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 5 additions & 0 deletions website/index.ejs
Original file line number Diff line number Diff line change
Expand Up @@ -793,6 +793,11 @@
<h3>McUtils</h3>
<p>Helpful utilities for any fast food employee. Created by <a href="https://scratch.mit.edu/users/LilyMakesThings/">LilyMakesThings</a>.</p>
</div>
<div class="extension">
<%- banner('ziqian11/jazzmidi') %>
<h3>Jazz MIDI</h3>
<p>Blocks for interacting with MIDI ports, Requires <a href="https://jazz-soft.net/">Jazz Midi</a> to be installed. Created by <a href="https://scratch.mit.edu/users/ziqian11">ziqian11</a>.</p>
</div>
</div>
</div>
Expand Down

0 comments on commit 3963098

Please sign in to comment.