summaryrefslogtreecommitdiff
path: root/vfg/src/testApp.cpp
diff options
context:
space:
mode:
authorTim Redfern <tim@gray.(none)>2012-11-02 17:19:17 +0000
committerTim Redfern <tim@gray.(none)>2012-11-02 17:19:17 +0000
commit2ea0f60bb2ca981ff1e72575dd92c4ab906fd1c7 (patch)
tree559b3a70c0f378e30bc641e134304a77191dcc1b /vfg/src/testApp.cpp
parenta0eff6b1806e7a99edde8714fbb4f3330fc87a61 (diff)
syncing and drawing notes
Diffstat (limited to 'vfg/src/testApp.cpp')
-rwxr-xr-xvfg/src/testApp.cpp11
1 files changed, 10 insertions, 1 deletions
diff --git a/vfg/src/testApp.cpp b/vfg/src/testApp.cpp
index 7710326..675baef 100755
--- a/vfg/src/testApp.cpp
+++ b/vfg/src/testApp.cpp
@@ -3,6 +3,11 @@
//--------------------------------------------------------------
void testApp::setup(){
testsong=new song("VODA_MUS_DeckTheHalls-Backing_v.1.3.mp3","VODA_MUS_DeckTheHalls-Melody_v.1.3.mp3","MIDI_DeckTheHalls_Test.1.3.xml");
+ testsong->setTimeframe(1500);
+ testsong->preRoll(250);
+
+ ofSetBackgroundAuto(false);
+ ofBackground(0,0,0);
}
void testApp::exit(){
@@ -15,7 +20,11 @@ void testApp::update(){
//--------------------------------------------------------------
void testApp::draw(){
-
+ ofEnableAlphaBlending();
+ //ofBackground(0,0,0,0.1);
+ ofSetColor(0,0,0,100);
+ ofRect(0,0,ofGetWidth(),ofGetHeight());
+ if (testsong->isPlaying) testsong->draw();
}
//--------------------------------------------------------------