Skip to content

Commit

Permalink
Fixed midi out arpeggios
Browse files Browse the repository at this point in the history
  • Loading branch information
amiika committed Nov 4, 2018
1 parent e02d93d commit c13698a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ziffers.rb
Original file line number Diff line number Diff line change
Expand Up @@ -372,7 +372,7 @@ def playZiff(ziff,defaults={})
if ziff[:port] then
if ziff[:arpeggio] then
ziff[:arpeggio].each { |cn|
playMidiOut(ziff[:chord][cn.to_i-1]+cn[:pitch], ziff[:chordRelease], ziff[:port],ziff[:channel]) if cn[:degree]!=0
playMidiOut(ziff[:chord][cn[:degree]-1]+cn[:pitch], ziff[:chordRelease], ziff[:port],ziff[:channel]) if cn[:degree]!=0
sleep cn[:sleep] }
else
ziff[:chord].each { |cnote| playMidiOut(cnote, ziff[:chordRelease],ziff[:port],ziff[:channel]) }
Expand Down

0 comments on commit c13698a

Please sign in to comment.