diff options
Diffstat (limited to 'MPScore.py')
-rw-r--r-- | MPScore.py | 9 |
1 files changed, 7 insertions, 2 deletions
@@ -1,5 +1,7 @@ import os +from common.Util.CSoundNote import CSoundNote + from Brick import * from copy import deepcopy @@ -382,7 +384,10 @@ class MPScore: eventStr = "i" + str(inst) + " 0 0.8 1 " + self.note2str(note) if _showCSoundMsg: print "CSound Event: " + eventStr - csound.sendLinevt(eventStr) + #csound.sendLinevt(eventStr) + print str(note) + csnote = CSoundNote(0, note, 0.7, -0.5, 0.5, 0, 23) + self.main.csnd.play(csnote, 0.3) def note_off(self, csound, inst, note): if inst == 8: @@ -399,7 +404,7 @@ class MPScore: eventStr = "i-5" + str(inst) + " " + str(d) + " 0 1 " + self.note2str(note) if _showCSoundMsg: print "CSound Event: " + eventStr - csound.sendLinevt(eventStr) + #csound.sendLinevt(eventStr) def drag_on_vol(self, csound, toolsel, colorsel, gy, v): if colorsel == 7: |