Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/MPScore.py
diff options
context:
space:
mode:
Diffstat (limited to 'MPScore.py')
-rw-r--r--MPScore.py9
1 files changed, 7 insertions, 2 deletions
diff --git a/MPScore.py b/MPScore.py
index e0d0b0a..e8025c6 100644
--- a/MPScore.py
+++ b/MPScore.py
@@ -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: