Skip to content

Commit c63d731

Browse files
authored
Merge pull request #2879 from owenniblock/docs/midi-pc-duplicate-example
adds port example to midi_pc docs
2 parents 511c702 + 2944cd9 commit c63d731

File tree

1 file changed

+2
-2
lines changed
  • app/server/ruby/lib/sonicpi/lang

1 file changed

+2
-2
lines changed

app/server/ruby/lib/sonicpi/lang/midi.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -737,7 +737,7 @@ def midi_pc(*args)
737737
nil
738738
end
739739
doc name: :midi_pc,
740-
introduced: Version.new(3,0,2),
740+
introduced: Version.new(3,1,0),
741741
summary: "Send MIDI program change message",
742742
args: [[:program_num, :midi]],
743743
returns: :nil,
@@ -756,7 +756,7 @@ def midi_pc(*args)
756756
"midi_pc 100 #=> Sends MIDI pc message to all ports and channels",
757757
"midi_pc :e7 #=> Sends MIDI pc message to all ports and channels",
758758
"midi_pc 100, channel: 5 #=> Sends MIDI pc message on channel 5 to all ports",
759-
"midi_pc 100, channel: 5 #=> Sends MIDI pc message on channel 5 to all ports",
759+
"midi_pc 100, port: [\"foo\", \"bar\"], channel: 5 #=> Sends MIDI pc message on channel 5 to ports named \"foo\" and \"bar\"",
760760
"midi_pc 100, channel: [1, 5] #=> Sends MIDI pc message on channel 1 and 5 to all ports"
761761
]
762762

0 commit comments

Comments
 (0)