Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MIDI example that renders to PCM #108

Merged
merged 3 commits into from
May 8, 2022
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
fix typo
  • Loading branch information
philburk committed May 8, 2022
commit d3f7794c1778cfdb2e19943460f92ddfa9f7ad65
5 changes: 3 additions & 2 deletions examples/src/main/java/com/jsyn/examples/RenderMidiNotes.java
Original file line number Diff line number Diff line change
Expand Up @@ -78,12 +78,13 @@ private void test() throws IOException, InterruptedException {
for (int i = 0; i<8; i++) {
// Note On
byte[] bar = {(byte) MidiConstants.NOTE_ON,
(byte) (60 + (2*i)), 100};
(byte) (60 + (2*i)), // pitch
100}; // velocity
sendMidiMessage(bar);
now += 0.2;
renderUntil(now);

// Note Off using velicity=zero
// Turn the Note Off by setting velocity to zero
bar[2] = 0;
sendMidiMessage(bar);
now += 0.2;
Expand Down