> afconvert -f caff -d LEI16@44100 -c 1 hoge.aif
#pragma once

#include   quot;ofMain.hquot;
#include   quot;ofxAccelerometer.hquot;
#include   quot;ofxMultiTouch.hquot;
#...
#include quot;testApp.hquot;

//--------------------------------------------------------------
void testApp::setup(){
	 my...
#pragma once

#include   quot;ofMain.hquot;
#include   quot;ofxAccelerometer.hquot;
#include   quot;ofxMultiTouch.hquot;
#...
#include quot;testApp.hquot;

//--------------------------------------------------------------
void testApp::setup(){
	 so...
...(   )...


//--------------------------------------------------------------
void testApp::mousePressed(int x, int y, in...
#include quot;testApp.hquot;

//--------------------------------------------------------------
void testApp::setup(){
	 my...
...(   )...


//--------------------------------------------------------------
void testApp::mouseDragged(int x, int y, in...
Sbaw090602
Sbaw090602
Sbaw090602
Sbaw090602
Sbaw090602
Sbaw090602
Sbaw090602
Sbaw090602
Sbaw090602
Sbaw090602
Sbaw090602
Sbaw090602
Sbaw090602
Sbaw090602
Upcoming SlideShare
Loading in …5
×

Sbaw090602

2,010 views
1,883 views

Published on

0 Comments
1 Like
Statistics
Notes
  • Be the first to comment

No Downloads
Views
Total views
2,010
On SlideShare
0
From Embeds
0
Number of Embeds
397
Actions
Shares
0
Downloads
16
Comments
0
Likes
1
Embeds 0
No embeds

No notes for slide






















  • Sbaw090602

    1. 1. > afconvert -f caff -d LEI16@44100 -c 1 hoge.aif
    2. 2. #pragma once #include quot;ofMain.hquot; #include quot;ofxAccelerometer.hquot; #include quot;ofxMultiTouch.hquot; #include quot;ofxALSoundPlayer.hquot; class testApp : public ofSimpleApp, public ofxMultiTouchListener { public: void setup(); void update(); void draw(); void exit(); ...( )... ofxALSoundPlayer mySound; };
    3. 3. #include quot;testApp.hquot; //-------------------------------------------------------------- void testApp::setup(){ mySound.loadLoopingSound(ofToDataPath(quot;sounds/testSound.cafquot;, false)); mySound.setVolume(0.75); mySound.play(); } //-------------------------------------------------------------- void testApp::update(){ } //-------------------------------------------------------------- void testApp::draw(){ } ...( )...
    4. 4. #pragma once #include quot;ofMain.hquot; #include quot;ofxAccelerometer.hquot; #include quot;ofxMultiTouch.hquot; #include quot;ofxALSoundPlayer.hquot; class testApp : public ofSimpleApp, public ofxMultiTouchListener { public: void setup(); void update(); void draw(); void exit(); ofxALSoundPlayer mySound; Boolean soundOn; };
    5. 5. #include quot;testApp.hquot; //-------------------------------------------------------------- void testApp::setup(){ soundOn = false; mySound.loadLoopingSound(ofToDataPath(quot;sounds/testSound.cafquot;, false)); mySound.setVolume(0.75); } //-------------------------------------------------------------- void testApp::update(){ } //-------------------------------------------------------------- void testApp::draw(){ if(soundOn){ ofSetColor(31, 127, 255); ofCircle(mouseX, mouseY, 40); } }
    6. 6. ...( )... //-------------------------------------------------------------- void testApp::mousePressed(int x, int y, int button){ soundOn = true; mySound.play(); } //-------------------------------------------------------------- void testApp::mouseReleased(){ soundOn = false; mySound.stop(); } ...( )...
    7. 7. #include quot;testApp.hquot; //-------------------------------------------------------------- void testApp::setup(){ mySound.loadLoopingSound(ofToDataPath(quot;broombangbang.cafquot;, false)); mySound.setVolume(1.0); soundOn = false; } //-------------------------------------------------------------- void testApp::update(){ } //-------------------------------------------------------------- void testApp::draw(){ if(soundOn){ ofSetColor(0, 0, 255); ofCircle(mouseX, mouseY, 40); } }
    8. 8. ...( )... //-------------------------------------------------------------- void testApp::mouseDragged(int x, int y, int button){ mySound.setPan(float(mouseX) / ofGetWidth()); mySound.setPitch(float(mouseY) / ofGetHeight() * 2.0); } //-------------------------------------------------------------- void testApp::mousePressed(int x, int y, int button){ mySound.setPan(float(mouseX) / ofGetWidth()); mySound.setPitch(float(mouseY) / ofGetHeight() * 2.0); mySound.play(); soundOn = true; } //-------------------------------------------------------------- void testApp::mouseReleased(){ mySound.stop(); soundOn = false; }

    ×