├── .gitignore ├── README.md ├── week1_audioAndSoundBufferTogether ├── Project.xcconfig ├── addons.make ├── bin │ └── data │ │ └── .gitkeep ├── openFrameworks-Info.plist ├── src │ ├── main.cpp │ ├── testApp.cpp │ └── testApp.h ├── week1_audioAndSoundBufferTogether.cbp ├── week1_audioAndSoundBufferTogether.workspace └── week1_audioAndSoundBufferTogether.xcodeproj │ ├── project.pbxproj │ └── xcshareddata │ └── xcschemes │ ├── week1_audioAndSoundBufferTogether Debug.xcscheme │ └── week1_audioAndSoundBufferTogether Release.xcscheme ├── week2_AM ├── Project.xcconfig ├── addons.make ├── bin │ └── data │ │ └── .gitkeep ├── openFrameworks-Info.plist ├── src │ ├── main.cpp │ ├── oscillator.cpp │ ├── oscillator.h │ ├── testApp.cpp │ └── testApp.h ├── week2_AM.cbp ├── week2_AM.workspace └── week2_AM.xcodeproj │ ├── project.pbxproj │ └── xcshareddata │ └── xcschemes │ ├── week2_AM Debug.xcscheme │ └── week2_AM Release.xcscheme ├── week2_FM ├── Project.xcconfig ├── addons.make ├── bin │ └── data │ │ └── .gitkeep ├── openFrameworks-Info.plist ├── src │ ├── main.cpp │ ├── oscillator.cpp │ ├── oscillator.h │ ├── testApp.cpp │ └── testApp.h ├── week2_FM.cbp ├── week2_FM.workspace └── week2_FM.xcodeproj │ ├── project.pbxproj │ └── xcshareddata │ └── xcschemes │ ├── week2_FM Debug.xcscheme │ └── week2_FM Release.xcscheme ├── week2_additiveSynthesis ├── Project.xcconfig ├── addons.make ├── bin │ └── data │ │ └── .gitkeep ├── openFrameworks-Info.plist ├── src │ ├── main.cpp │ ├── oscillator.cpp │ ├── oscillator.h │ ├── testApp.cpp │ └── testApp.h ├── week2_additiveSynthesis.cbp ├── week2_additiveSynthesis.workspace └── week2_additiveSynthesis.xcodeproj │ ├── project.pbxproj │ └── xcshareddata │ └── xcschemes │ ├── week2_additiveSynthesis Debug.xcscheme │ └── week2_additiveSynthesis Release.xcscheme ├── week2_oscillator ├── Project.xcconfig ├── addons.make ├── bin │ └── data │ │ └── .gitkeep ├── openFrameworks-Info.plist ├── src │ ├── main.cpp │ ├── oscillator.cpp │ ├── oscillator.h │ ├── testApp.cpp │ └── testApp.h ├── week2_oscillator.cbp ├── week2_oscillator.workspace └── week2_oscillator.xcodeproj │ ├── project.pbxproj │ └── xcshareddata │ └── xcschemes │ ├── week2_oscillator Debug.xcscheme │ └── week2_oscillator Release.xcscheme ├── week2_oscillatorTypes ├── Project.xcconfig ├── addons.make ├── bin │ └── data │ │ └── .gitkeep ├── openFrameworks-Info.plist ├── src │ ├── main.cpp │ ├── oscillator.cpp │ ├── oscillator.h │ ├── testApp.cpp │ └── testApp.h ├── week2_oscillatorTypes.cbp ├── week2_oscillatorTypes.workspace └── week2_oscillatorTypes.xcodeproj │ ├── project.pbxproj │ └── xcshareddata │ └── xcschemes │ ├── week2_oscillatorTypes Debug.xcscheme │ └── week2_oscillatorTypes Release.xcscheme ├── week2_sinGraphics ├── Project.xcconfig ├── addons.make ├── bin │ └── data │ │ └── .gitkeep ├── openFrameworks-Info.plist ├── src │ ├── main.cpp │ ├── testApp.cpp │ └── testApp.h ├── week2_sinGraphics.cbp ├── week2_sinGraphics.workspace └── week2_sinGraphics.xcodeproj │ ├── project.pbxproj │ └── xcshareddata │ └── xcschemes │ ├── week2_sinGraphics Debug.xcscheme │ └── week2_sinGraphics Release.xcscheme ├── week2_soundBasics ├── Project.xcconfig ├── addons.make ├── bin │ └── data │ │ └── .gitkeep ├── openFrameworks-Info.plist ├── src │ ├── main.cpp │ ├── testApp.cpp │ └── testApp.h ├── week2_soundBasics.cbp ├── week2_soundBasics.workspace └── week2_soundBasics.xcodeproj │ ├── project.pbxproj │ └── xcshareddata │ └── xcschemes │ ├── week2_soundBasics Debug.xcscheme │ └── week2_soundBasics Release.xcscheme ├── week3_imageBasic ├── Project.xcconfig ├── addons.make ├── bin │ └── data │ │ └── .gitkeep ├── openFrameworks-Info.plist ├── src │ ├── main.cpp │ ├── testApp.cpp │ └── testApp.h ├── week3_imageBasic.cbp ├── week3_imageBasic.workspace └── week3_imageBasic.xcodeproj │ ├── project.pbxproj │ └── xcshareddata │ └── xcschemes │ ├── week3_imageBasic Debug.xcscheme │ └── week3_imageBasic Release.xcscheme ├── week3_imageDrawCircle ├── Project.xcconfig ├── addons.make ├── bin │ └── data │ │ └── .gitkeep ├── openFrameworks-Info.plist ├── src │ ├── main.cpp │ ├── testApp.cpp │ └── testApp.h ├── week3_imageDrawCircle.cbp ├── week3_imageDrawCircle.workspace └── week3_imageDrawCircle.xcodeproj │ ├── project.pbxproj │ └── xcshareddata │ └── xcschemes │ ├── week3_imageDrawCircle Debug.xcscheme │ └── week3_imageDrawCircle Release.xcscheme ├── week3_imageDrawingAndSound ├── Project.xcconfig ├── addons.make ├── bin │ └── data │ │ └── .gitkeep ├── openFrameworks-Info.plist ├── src │ ├── main.cpp │ ├── sinOscillator.cpp │ ├── sinOscillator.h │ ├── testApp.cpp │ └── testApp.h ├── week3_imageDrawingAndSound.cbp ├── week3_imageDrawingAndSound.workspace └── week3_imageDrawingAndSound.xcodeproj │ ├── project.pbxproj │ └── xcshareddata │ └── xcschemes │ ├── week3_imageDrawingAndSound Debug.xcscheme │ └── week3_imageDrawingAndSound Release.xcscheme ├── week3_imageDrawingTool ├── Project.xcconfig ├── addons.make ├── bin │ └── data │ │ └── .gitkeep ├── openFrameworks-Info.plist ├── src │ ├── main.cpp │ ├── testApp.cpp │ └── testApp.h ├── week3_imageDrawingTool.cbp ├── week3_imageDrawingTool.workspace └── week3_imageDrawingTool.xcodeproj │ ├── project.pbxproj │ └── xcshareddata │ └── xcschemes │ ├── week3_imageDrawingTool Debug.xcscheme │ └── week3_imageDrawingTool Release.xcscheme ├── week3_imageFunky ├── Project.xcconfig ├── addons.make ├── bin │ └── data │ │ └── .gitkeep ├── openFrameworks-Info.plist ├── src │ ├── main.cpp │ ├── testApp.cpp │ └── testApp.h ├── week3_imageFunky.cbp ├── week3_imageFunky.workspace └── week3_imageFunky.xcodeproj │ ├── project.pbxproj │ └── xcshareddata │ └── xcschemes │ ├── week3_imageFunky Debug.xcscheme │ └── week3_imageFunky Release.xcscheme ├── week3_imageGradient ├── Project.xcconfig ├── addons.make ├── bin │ └── data │ │ └── .gitkeep ├── openFrameworks-Info.plist ├── src │ ├── main.cpp │ ├── testApp.cpp │ └── testApp.h ├── week3_imageGradient.cbp ├── week3_imageGradient.workspace └── week3_imageGradient.xcodeproj │ ├── project.pbxproj │ └── xcshareddata │ └── xcschemes │ ├── week3_imageGradient Debug.xcscheme │ └── week3_imageGradient Release.xcscheme ├── week4_granularAudioRecord ├── Project.xcconfig ├── addons.make ├── bin │ └── data │ │ ├── .gitkeep │ │ └── NewMedia Fett.ttf ├── openFrameworks-Info.plist ├── src │ ├── audioRecorder.cpp │ ├── audioRecorder.h │ ├── granularSynthesis │ │ ├── granularGrain.cpp │ │ ├── granularGrain.h │ │ ├── granularManager.cpp │ │ ├── granularManager.h │ │ └── granularSamples.h │ ├── main.cpp │ ├── testApp.cpp │ └── testApp.h ├── week4_granularAudioRecord.cbp ├── week4_granularAudioRecord.workspace └── week4_granularBasics.xcodeproj │ ├── project.pbxproj │ └── xcshareddata │ └── xcschemes │ ├── week4_granularBasics Debug.xcscheme │ └── week4_granularBasics Release.xcscheme ├── week4_granularBasics ├── Project.xcconfig ├── addons.make ├── bin │ └── data │ │ └── .gitkeep ├── openFrameworks-Info.plist ├── src │ ├── granularSynthesis │ │ ├── granularGrain.cpp │ │ ├── granularGrain.h │ │ ├── granularManager.cpp │ │ └── granularManager.h │ ├── main.cpp │ ├── testApp.cpp │ └── testApp.h ├── week4_granularBasics.cbp ├── week4_granularBasics.workspace └── week4_granularBasics.xcodeproj │ ├── project.pbxproj │ └── xcshareddata │ └── xcschemes │ ├── week4_granularBasics Debug.xcscheme │ └── week4_granularBasics Release.xcscheme ├── week4_granularParams ├── Project.xcconfig ├── addons.make ├── bin │ └── data │ │ └── .gitkeep ├── openFrameworks-Info.plist ├── src │ ├── granularSynthesis │ │ ├── granularGrain.cpp │ │ ├── granularGrain.h │ │ ├── granularManager.cpp │ │ └── granularManager.h │ ├── main.cpp │ ├── testApp.cpp │ └── testApp.h ├── week4_granularParams.cbp ├── week4_granularParams.workspace └── week4_granularParams.xcodeproj │ ├── project.pbxproj │ └── xcshareddata │ └── xcschemes │ ├── week4_granularParams Debug.xcscheme │ └── week4_granularParams Release.xcscheme ├── week4_granularUI ├── Project.xcconfig ├── addons.make ├── bin │ └── data │ │ ├── .gitkeep │ │ └── GUI │ │ └── NewMedia Fett.ttf ├── openFrameworks-Info.plist ├── src │ ├── granularSynthesis │ │ ├── granularGrain.cpp │ │ ├── granularGrain.h │ │ ├── granularManager.cpp │ │ └── granularManager.h │ ├── main.cpp │ ├── testApp.cpp │ └── testApp.h ├── week4_granularUI.cbp ├── week4_granularUI.workspace └── week4_granularUI.xcodeproj │ ├── project.pbxproj │ └── xcshareddata │ └── xcschemes │ ├── week4_granularUI Debug.xcscheme │ └── week4_granularUI Release.xcscheme ├── week5_audioRMSandZeroCrossingPitch ├── Project.xcconfig ├── addons.make ├── bin │ └── data │ │ └── .gitkeep ├── openFrameworks-Info.plist ├── src │ ├── main.cpp │ ├── testApp.cpp │ └── testApp.h ├── week5_audioRMSandZeroCrossingPitch.cbp ├── week5_audioRMSandZeroCrossingPitch.workspace └── week5_audioRMSandZeroCrossingPitch.xcodeproj │ ├── project.pbxproj │ └── xcshareddata │ └── xcschemes │ ├── week5_audioRMSandZeroCrossingPitch Debug.xcscheme │ └── week5_audioRMSandZeroCrossingPitch Release.xcscheme ├── week5_oscDebug ├── Project.xcconfig ├── addons.make ├── bin │ └── data │ │ └── .gitkeep ├── openFrameworks-Info.plist ├── src │ ├── main.cpp │ ├── testApp.cpp │ └── testApp.h ├── week5_oscDebug.cbp ├── week5_oscDebug.workspace └── week5_oscDebug.xcodeproj │ ├── project.pbxproj │ └── xcshareddata │ └── xcschemes │ ├── week5_oscDebug Debug.xcscheme │ └── week5_oscDebug Release.xcscheme ├── week5_oscExample ├── Project.xcconfig ├── addons.make ├── bin │ └── data │ │ └── .gitkeep ├── chuck.txt ├── openFrameworks-Info.plist ├── src │ ├── main.cpp │ ├── testApp.cpp │ └── testApp.h ├── week5_oscExample.cbp ├── week5_oscExample.workspace └── week5_oscExample.xcodeproj │ ├── project.pbxproj │ └── xcshareddata │ └── xcschemes │ ├── week5_oscExample Debug.xcscheme │ └── week5_oscExample Release.xcscheme ├── week5_simpleAudio ├── Project.xcconfig ├── addons.make ├── bin │ └── data │ │ └── .gitkeep ├── openFrameworks-Info.plist ├── src │ ├── main.cpp │ ├── testApp.cpp │ └── testApp.h ├── week5_simpleAudio.cbp ├── week5_simpleAudio.workspace └── week5_simpleAudio.xcodeproj │ ├── project.pbxproj │ └── xcshareddata │ └── xcschemes │ ├── week5_simpleAudio Debug.xcscheme │ └── week5_simpleAudio Release.xcscheme ├── week5_xeno ├── Project.xcconfig ├── addons.make ├── bin │ └── data │ │ └── .gitkeep ├── openFrameworks-Info.plist ├── src │ ├── main.cpp │ ├── testApp.cpp │ └── testApp.h ├── week5_xeno.cbp ├── week5_xeno.workspace └── week5_xeno.xcodeproj │ ├── project.pbxproj │ └── xcshareddata │ └── xcschemes │ ├── week5_xeno Debug.xcscheme │ └── week5_xeno Release.xcscheme ├── week6_autoCorrelation ├── Project.xcconfig ├── addons.make ├── bin │ └── data │ │ └── .gitkeep ├── openFrameworks-Info.plist ├── src │ ├── main.cpp │ ├── testApp.cpp │ └── testApp.h ├── week6_autoCorrelation.cbp ├── week6_autoCorrelation.workspace └── week6_autoCorrelation.xcodeproj │ ├── project.pbxproj │ └── xcshareddata │ └── xcschemes │ ├── week6_autoCorrelation Debug.xcscheme │ └── week6_autoCorrelation Release.xcscheme ├── week6_fftExample ├── Project.xcconfig ├── addons.make ├── bin │ └── data │ │ └── .gitkeep ├── openFrameworks-Info.plist ├── src │ ├── fft.cpp │ ├── fft.h │ ├── fftOctaveAnalyzer.cpp │ ├── fftOctaveAnalyzer.h │ ├── main.cpp │ ├── testApp.cpp │ └── testApp.h ├── week6_fftExample.cbp ├── week6_fftExample.workspace └── week6_fftExample.xcodeproj │ ├── project.pbxproj │ └── xcshareddata │ └── xcschemes │ ├── week6_fftExample Debug.xcscheme │ └── week6_fftExample Release.xcscheme ├── week6_fftExample_w_pitch ├── week6_fftExample_w_pitch.cbp └── week6_fftExample_w_pitch.workspace ├── week6_pitchDetection ├── Project.xcconfig ├── addons.make ├── bin │ └── data │ │ ├── .gitkeep │ │ └── DIN.otf ├── openFrameworks-Info.plist ├── src │ ├── aubio │ │ ├── aubio │ │ │ ├── aubio.h │ │ │ ├── cvec.h │ │ │ ├── fmat.h │ │ │ ├── fvec.h │ │ │ ├── io │ │ │ │ ├── sink.h │ │ │ │ ├── sink_apple_audio.h │ │ │ │ ├── sink_sndfile.h │ │ │ │ ├── sndfileio.h │ │ │ │ ├── source.h │ │ │ │ ├── source_apple_audio.h │ │ │ │ └── source_sndfile.h │ │ │ ├── lvec.h │ │ │ ├── mathutils.h │ │ │ ├── musicutils.h │ │ │ ├── onset │ │ │ │ ├── onset.h │ │ │ │ └── peakpicker.h │ │ │ ├── pitch │ │ │ │ ├── pitch.h │ │ │ │ ├── pitchfcomb.h │ │ │ │ ├── pitchmcomb.h │ │ │ │ ├── pitchschmitt.h │ │ │ │ ├── pitchyin.h │ │ │ │ └── pitchyinfft.h │ │ │ ├── spectral │ │ │ │ ├── fft.h │ │ │ │ ├── filterbank.h │ │ │ │ ├── filterbank_mel.h │ │ │ │ ├── mfcc.h │ │ │ │ ├── phasevoc.h │ │ │ │ ├── specdesc.h │ │ │ │ └── tss.h │ │ │ ├── tempo │ │ │ │ ├── beattracking.h │ │ │ │ └── tempo.h │ │ │ ├── temporal │ │ │ │ ├── a_weighting.h │ │ │ │ ├── biquad.h │ │ │ │ ├── c_weighting.h │ │ │ │ ├── filter.h │ │ │ │ └── resampler.h │ │ │ ├── types.h │ │ │ ├── utils │ │ │ │ ├── hist.h │ │ │ │ └── scale.h │ │ │ └── vecutils.h │ │ └── libaubio.a │ ├── aubioAnalyzer.cpp │ ├── aubioAnalyzer.h │ ├── main.cpp │ ├── testApp.cpp │ └── testApp.h ├── week6_pitchDetection.cbp ├── week6_pitchDetection.workspace └── week6_pitchDetection.xcodeproj │ ├── project.pbxproj │ └── xcshareddata │ └── xcschemes │ ├── week6_pitchDetection Debug.xcscheme │ └── week6_pitchDetection Release.xcscheme ├── week6_pitchDetection2 ├── Project.xcconfig ├── addons.make ├── bin │ └── data │ │ ├── .gitkeep │ │ └── DIN.otf ├── openFrameworks-Info.plist ├── src │ ├── aubio │ │ ├── aubio │ │ │ ├── aubio.h │ │ │ ├── cvec.h │ │ │ ├── fmat.h │ │ │ ├── fvec.h │ │ │ ├── io │ │ │ │ ├── sink.h │ │ │ │ ├── sink_apple_audio.h │ │ │ │ ├── sink_sndfile.h │ │ │ │ ├── sndfileio.h │ │ │ │ ├── source.h │ │ │ │ ├── source_apple_audio.h │ │ │ │ └── source_sndfile.h │ │ │ ├── lvec.h │ │ │ ├── mathutils.h │ │ │ ├── musicutils.h │ │ │ ├── onset │ │ │ │ ├── onset.h │ │ │ │ └── peakpicker.h │ │ │ ├── pitch │ │ │ │ ├── pitch.h │ │ │ │ ├── pitchfcomb.h │ │ │ │ ├── pitchmcomb.h │ │ │ │ ├── pitchschmitt.h │ │ │ │ ├── pitchyin.h │ │ │ │ └── pitchyinfft.h │ │ │ ├── spectral │ │ │ │ ├── fft.h │ │ │ │ ├── filterbank.h │ │ │ │ ├── filterbank_mel.h │ │ │ │ ├── mfcc.h │ │ │ │ ├── phasevoc.h │ │ │ │ ├── specdesc.h │ │ │ │ └── tss.h │ │ │ ├── tempo │ │ │ │ ├── beattracking.h │ │ │ │ └── tempo.h │ │ │ ├── temporal │ │ │ │ ├── a_weighting.h │ │ │ │ ├── biquad.h │ │ │ │ ├── c_weighting.h │ │ │ │ ├── filter.h │ │ │ │ └── resampler.h │ │ │ ├── types.h │ │ │ ├── utils │ │ │ │ ├── hist.h │ │ │ │ └── scale.h │ │ │ └── vecutils.h │ │ └── libaubio.a │ ├── aubioAnalyzer.cpp │ ├── aubioAnalyzer.h │ ├── main.cpp │ ├── sinOscillator.cpp │ ├── sinOscillator.h │ ├── testApp.cpp │ └── testApp.h ├── week6_pitchDetection2.cbp ├── week6_pitchDetection2.workspace └── week6_pitchDetection2.xcodeproj │ ├── project.pbxproj │ └── xcshareddata │ └── xcschemes │ ├── week6_pitchDetection2 Debug.xcscheme │ └── week6_pitchDetection2 Release.xcscheme ├── week7_computerVisionExample_GoodFeaturesToTrack ├── Project.xcconfig ├── addons.make ├── openFrameworks-Info.plist ├── src │ ├── main.cpp │ ├── testApp.cpp │ └── testApp.h ├── week7_computerVisionExample_GoodFeaturesToTrack.cbp ├── week7_computerVisionExample_GoodFeaturesToTrack.workspace └── week7_computerVisionExample_GoodFeaturesToTrack.xcodeproj │ ├── project.pbxproj │ └── xcshareddata │ └── xcschemes │ ├── week7_computerVisionExample_GoodFeaturesToTrack Debug.xcscheme │ └── week7_computerVisionExample_GoodFeaturesToTrack Release.xcscheme ├── week7_computerVisionExample_opticalFlow_wFeatures ├── Project.xcconfig ├── addons.make ├── openFrameworks-Info.plist ├── src │ ├── main.cpp │ ├── testApp.cpp │ └── testApp.h ├── week7_computerVisionExample_opticalFlow_wFeatures.cbp ├── week7_computerVisionExample_opticalFlow_wFeatures.workspace └── week7_computerVisionExample_opticalFlow_wFeatures.xcodeproj │ ├── project.pbxproj │ └── xcshareddata │ └── xcschemes │ ├── week7_computerVisionExample_opticalFlow_wFeatures Debug.xcscheme │ └── week7_computerVisionExample_opticalFlow_wFeatures Release.xcscheme ├── week7_imageCounting ├── Project.xcconfig ├── bin │ └── data │ │ └── helvetica.otf ├── openFrameworks-Info.plist ├── src │ ├── main.cpp │ ├── testApp.cpp │ └── testApp.h ├── week7_imageCounting.cbp ├── week7_imageCounting.workspace └── week7_imageCounting.xcodeproj │ ├── project.pbxproj │ └── xcshareddata │ └── xcschemes │ ├── week7_imageCounting Debug.xcscheme │ └── week7_imageCounting Release.xcscheme ├── week7_introToOpenCV ├── Project.xcconfig ├── addons.make ├── bin │ └── data │ │ └── test.png ├── openFrameworks-Info.plist ├── src │ ├── main.cpp │ ├── testApp.cpp │ └── testApp.h ├── week7_introToOpenCV.cbp ├── week7_introToOpenCV.workspace └── week7_introToOpenCV.xcodeproj │ ├── project.pbxproj │ └── xcshareddata │ └── xcschemes │ ├── week7_introToOpenCV Debug.xcscheme │ └── week7_introToOpenCV Release.xcscheme ├── week7_loadImage ├── Project.xcconfig ├── bin │ └── data │ │ └── squirrel.png ├── openFrameworks-Info.plist ├── src │ ├── main.cpp │ ├── testApp.cpp │ └── testApp.h ├── week7_loadImage.cbp ├── week7_loadImage.workspace └── week7_loadImage.xcodeproj │ ├── project.pbxproj │ └── xcshareddata │ └── xcschemes │ ├── week7_loadImage Debug.xcscheme │ └── week7_loadImage Release.xcscheme ├── week7_loadImage2 ├── Project.xcconfig ├── bin │ └── data │ │ └── squirrel.png ├── openFrameworks-Info.plist ├── src │ ├── main.cpp │ ├── testApp.cpp │ └── testApp.h ├── week7_loadImage2.cbp ├── week7_loadImage2.workspace └── week7_loadImage2.xcodeproj │ ├── project.pbxproj │ └── xcshareddata │ └── xcschemes │ ├── week7_loadImage2 Debug.xcscheme │ └── week7_loadImage2 Release.xcscheme ├── week7_opencv_color ├── Project.xcconfig ├── addons.make ├── bin │ └── data │ │ ├── cvSettings.xml │ │ └── test.png ├── openFrameworks-Info.plist ├── src │ ├── main.cpp │ ├── testApp.cpp │ ├── testApp.h │ └── utils │ │ └── ofxControlPanel │ │ ├── guiBaseObject.h │ │ ├── guiColor.h │ │ ├── guiCustomImpl.h │ │ ├── guiIncludes.h │ │ ├── guiTextBase.h │ │ ├── guiType2DSlider.h │ │ ├── guiTypeCustom.h │ │ ├── guiTypeDrawable.h │ │ ├── guiTypeFileLister.h │ │ ├── guiTypeLogger.h │ │ ├── guiTypeMultiToggle.h │ │ ├── guiTypePanel.h │ │ ├── guiTypeSlider.h │ │ ├── guiTypeText.h │ │ ├── guiTypeToggle.h │ │ ├── guiValue.h │ │ ├── guiXmlValue.h │ │ ├── ofxControlPanel.cpp │ │ ├── ofxControlPanel.h │ │ ├── simpleColor.h │ │ ├── simpleFileLister.h │ │ └── simpleLogger.h ├── week7_opencv_color.cbp ├── week7_opencv_color.workspace └── week7_opencv_color.xcodeproj │ ├── project.pbxproj │ └── xcshareddata │ └── xcschemes │ ├── week7_opencv_color Debug.xcscheme │ └── week7_opencv_color Release.xcscheme ├── week7_opencv_motion ├── Project.xcconfig ├── addons.make ├── bin │ └── data │ │ ├── 1085.mp3 │ │ ├── cvSettings.xml │ │ └── test.png ├── openFrameworks-Info.plist ├── src │ ├── main.cpp │ ├── testApp.cpp │ ├── testApp.h │ └── utils │ │ └── ofxControlPanel │ │ ├── guiBaseObject.h │ │ ├── guiColor.h │ │ ├── guiCustomImpl.h │ │ ├── guiIncludes.h │ │ ├── guiTextBase.h │ │ ├── guiType2DSlider.h │ │ ├── guiTypeCustom.h │ │ ├── guiTypeDrawable.h │ │ ├── guiTypeFileLister.h │ │ ├── guiTypeLogger.h │ │ ├── guiTypeMultiToggle.h │ │ ├── guiTypePanel.h │ │ ├── guiTypeSlider.h │ │ ├── guiTypeText.h │ │ ├── guiTypeToggle.h │ │ ├── guiValue.h │ │ ├── guiXmlValue.h │ │ ├── ofxControlPanel.cpp │ │ ├── ofxControlPanel.h │ │ ├── simpleColor.h │ │ ├── simpleFileLister.h │ │ └── simpleLogger.h ├── week7_opencv_motion.cbp ├── week7_opencv_motion.workspace └── week7_opencv_motion.xcodeproj │ ├── project.pbxproj │ └── xcshareddata │ └── xcschemes │ ├── week7_opencv_motion Debug.xcscheme │ └── week7_opencv_motion Release.xcscheme ├── week7_opencv_motionHistory ├── Project.xcconfig ├── addons.make ├── bin │ └── data │ │ ├── cvSettings.xml │ │ └── test.png ├── openFrameworks-Info.plist ├── src │ ├── main.cpp │ ├── testApp.cpp │ ├── testApp.h │ └── utils │ │ └── ofxControlPanel │ │ ├── guiBaseObject.h │ │ ├── guiColor.h │ │ ├── guiCustomImpl.h │ │ ├── guiIncludes.h │ │ ├── guiTextBase.h │ │ ├── guiType2DSlider.h │ │ ├── guiTypeCustom.h │ │ ├── guiTypeDrawable.h │ │ ├── guiTypeFileLister.h │ │ ├── guiTypeLogger.h │ │ ├── guiTypeMultiToggle.h │ │ ├── guiTypePanel.h │ │ ├── guiTypeSlider.h │ │ ├── guiTypeText.h │ │ ├── guiTypeToggle.h │ │ ├── guiValue.h │ │ ├── guiXmlValue.h │ │ ├── ofxControlPanel.cpp │ │ ├── ofxControlPanel.h │ │ ├── simpleColor.h │ │ ├── simpleFileLister.h │ │ └── simpleLogger.h ├── week7_opencv_motionHistory.cbp ├── week7_opencv_motionHistory.workspace └── week7_opencv_motionHistory.xcodeproj │ ├── project.pbxproj │ └── xcshareddata │ └── xcschemes │ ├── week7_opencv_motionHistory Debug.xcscheme │ └── week7_opencv_motionHistory Release.xcscheme ├── week7_opencv_presence ├── Project.xcconfig ├── addons.make ├── bin │ └── data │ │ ├── cvSettings.xml │ │ └── test.png ├── openFrameworks-Info.plist ├── src │ ├── main.cpp │ ├── testApp.cpp │ ├── testApp.h │ └── utils │ │ └── ofxControlPanel │ │ ├── guiBaseObject.h │ │ ├── guiColor.h │ │ ├── guiCustomImpl.h │ │ ├── guiIncludes.h │ │ ├── guiTextBase.h │ │ ├── guiType2DSlider.h │ │ ├── guiTypeCustom.h │ │ ├── guiTypeDrawable.h │ │ ├── guiTypeFileLister.h │ │ ├── guiTypeLogger.h │ │ ├── guiTypeMultiToggle.h │ │ ├── guiTypePanel.h │ │ ├── guiTypeSlider.h │ │ ├── guiTypeText.h │ │ ├── guiTypeToggle.h │ │ ├── guiValue.h │ │ ├── guiXmlValue.h │ │ ├── ofxControlPanel.cpp │ │ ├── ofxControlPanel.h │ │ ├── simpleColor.h │ │ ├── simpleFileLister.h │ │ └── simpleLogger.h ├── week7_opencv_presence.cbp ├── week7_opencv_presence.workspace └── week7_opencv_presence.xcodeproj │ ├── project.pbxproj │ └── xcshareddata │ └── xcschemes │ ├── week7_opencv_presence Debug.xcscheme │ └── week7_opencv_presence Release.xcscheme ├── week7_opencv_presence2 ├── Project.xcconfig ├── addons.make ├── bin │ └── data │ │ ├── cvSettings.xml │ │ └── test.png ├── openFrameworks-Info.plist ├── src │ ├── main.cpp │ ├── testApp.cpp │ ├── testApp.h │ └── utils │ │ └── ofxControlPanel │ │ ├── guiBaseObject.h │ │ ├── guiColor.h │ │ ├── guiCustomImpl.h │ │ ├── guiIncludes.h │ │ ├── guiTextBase.h │ │ ├── guiType2DSlider.h │ │ ├── guiTypeCustom.h │ │ ├── guiTypeDrawable.h │ │ ├── guiTypeFileLister.h │ │ ├── guiTypeLogger.h │ │ ├── guiTypeMultiToggle.h │ │ ├── guiTypePanel.h │ │ ├── guiTypeSlider.h │ │ ├── guiTypeText.h │ │ ├── guiTypeToggle.h │ │ ├── guiValue.h │ │ ├── guiXmlValue.h │ │ ├── ofxControlPanel.cpp │ │ ├── ofxControlPanel.h │ │ ├── simpleColor.h │ │ ├── simpleFileLister.h │ │ └── simpleLogger.h ├── week7_opencv_presence2.cbp ├── week7_opencv_presence2.workspace └── week7_opencv_presence2.xcodeproj │ ├── project.pbxproj │ └── xcshareddata │ └── xcschemes │ ├── week7_opencv_presence2 Debug.xcscheme │ └── week7_opencv_presence2 Release.xcscheme ├── week7_opencv_presence3 ├── Project.xcconfig ├── addons.make ├── bin │ └── data │ │ ├── cvSettings.xml │ │ └── test.png ├── openFrameworks-Info.plist ├── src │ ├── main.cpp │ ├── particle.cpp │ ├── particle.h │ ├── testApp.cpp │ ├── testApp.h │ └── utils │ │ └── ofxControlPanel │ │ ├── guiBaseObject.h │ │ ├── guiColor.h │ │ ├── guiCustomImpl.h │ │ ├── guiIncludes.h │ │ ├── guiTextBase.h │ │ ├── guiType2DSlider.h │ │ ├── guiTypeCustom.h │ │ ├── guiTypeDrawable.h │ │ ├── guiTypeFileLister.h │ │ ├── guiTypeLogger.h │ │ ├── guiTypeMultiToggle.h │ │ ├── guiTypePanel.h │ │ ├── guiTypeSlider.h │ │ ├── guiTypeText.h │ │ ├── guiTypeToggle.h │ │ ├── guiValue.h │ │ ├── guiXmlValue.h │ │ ├── ofxControlPanel.cpp │ │ ├── ofxControlPanel.h │ │ ├── simpleColor.h │ │ ├── simpleFileLister.h │ │ └── simpleLogger.h ├── week7_opencv_presence3.cbp ├── week7_opencv_presence3.workspace └── week7_opencv_presence3.xcodeproj │ ├── project.pbxproj │ └── xcshareddata │ └── xcschemes │ ├── week7_opencv_presence3 Debug.xcscheme │ └── week7_opencv_presence3 Release.xcscheme ├── week7_opticalFlow_wLines ├── Project.xcconfig ├── addons.make ├── openFrameworks-Info.plist ├── src │ ├── main.cpp │ ├── ofxOpticalFlowLK.cpp │ ├── ofxOpticalFlowLK.h │ ├── testApp.cpp │ └── testApp.h ├── week7_opticalFlow_wLines.cbp ├── week7_opticalFlow_wLines.workspace └── week7_opticalFlow_wLines.xcodeproj │ ├── project.pbxproj │ └── xcshareddata │ └── xcschemes │ ├── week7_opticalFlow_wLines Debug.xcscheme │ └── week7_opticalFlow_wLines Release.xcscheme ├── week7_perceptualColorDistance ├── week7_perceptualColorDistance.cbp └── week7_perceptualColorDistance.workspace ├── week8_gestureRecorder ├── 01_gesture recorder.xcodeproj │ ├── project.pbxproj │ └── xcshareddata │ │ └── xcschemes │ │ ├── 01_gesture recorder Debug.xcscheme │ │ └── 01_gesture recorder Release.xcscheme ├── Project.xcconfig ├── openFrameworks-Info.plist └── src │ ├── main.cpp │ ├── pointRecorder.cpp │ ├── pointRecorder.h │ ├── sinOscillator.cpp │ ├── sinOscillator.h │ ├── testApp.cpp │ └── testApp.h ├── week8_gestureRecorderSound ├── 02_gesture recorder with sound.xcodeproj │ ├── project.pbxproj │ └── xcshareddata │ │ └── xcschemes │ │ ├── 02_gesture recorder with sound Debug.xcscheme │ │ └── 02_gesture recorder with sound Release.xcscheme ├── Project.xcconfig ├── openFrameworks-Info.plist └── src │ ├── fmOscillator.cpp │ ├── fmOscillator.h │ ├── main.cpp │ ├── pointRecorder.cpp │ ├── pointRecorder.h │ ├── testApp.cpp │ └── testApp.h ├── week8_grid ├── Project.xcconfig ├── addons.make ├── bin │ └── data │ │ └── .gitkeep ├── grid.xcodeproj │ ├── project.pbxproj │ └── xcshareddata │ │ └── xcschemes │ │ ├── grid Debug.xcscheme │ │ └── grid Release.xcscheme ├── openFrameworks-Info.plist └── src │ ├── main.cpp │ ├── testApp.cpp │ └── testApp.h ├── week8_loopRecorderSeq ├── 03_loop recorder seq.xcodeproj │ ├── project.pbxproj │ └── xcshareddata │ │ └── xcschemes │ │ ├── 03_loop recorder seq Debug.xcscheme │ │ └── 03_loop recorder seq Release.xcscheme ├── Project.xcconfig ├── openFrameworks-Info.plist └── src │ ├── fmOscillator.cpp │ ├── fmOscillator.h │ ├── main.cpp │ ├── pointRecorder.cpp │ ├── pointRecorder.h │ ├── testApp.cpp │ └── testApp.h ├── week8_simpleStepSeq ├── 00_simpleStepSeq.xcodeproj │ ├── project.pbxproj │ └── xcshareddata │ │ └── xcschemes │ │ ├── 00_simpleStepSeq Debug.xcscheme │ │ └── 00_simpleStepSeq Release.xcscheme ├── Project.xcconfig ├── openFrameworks-Info.plist └── src │ ├── main.cpp │ ├── midiToFreqConverter.cpp │ ├── midiToFreqConverter.h │ ├── sinOscillator.cpp │ ├── sinOscillator.h │ ├── testApp.cpp │ └── testApp.h ├── week8_simpleStepSeqMod ├── 00a_simpleStepSeqMod.xcodeproj │ ├── project.pbxproj │ └── xcshareddata │ │ └── xcschemes │ │ ├── 00a_simpleStepSeqMod Debug.xcscheme │ │ └── 00a_simpleStepSeqMod Release.xcscheme ├── Project.xcconfig ├── openFrameworks-Info.plist └── src │ ├── main.cpp │ ├── midiToFreqConverter.cpp │ ├── midiToFreqConverter.h │ ├── sinOscillator.cpp │ ├── sinOscillator.h │ ├── testApp.cpp │ └── testApp.h ├── week9_colorSort_detroit ├── Project.xcconfig ├── addons.make ├── bin │ └── data │ │ ├── .gitkeep │ │ ├── Red_eyed_tree_frog_edit2.jpg │ │ ├── detroit.jpg │ │ └── disneyland.jpg ├── colorSort_detroit.xcodeproj │ ├── project.pbxproj │ └── xcshareddata │ │ └── xcschemes │ │ ├── colorSort_detroit Debug.xcscheme │ │ └── colorSort_detroit Release.xcscheme ├── openFrameworks-Info.plist └── src │ ├── main.cpp │ ├── testApp.cpp │ └── testApp.h ├── week9_disneyland_invert ├── Project.xcconfig ├── addons.make ├── bin │ └── data │ │ ├── .gitkeep │ │ └── disneyland.jpg ├── disneyland_invert.xcodeproj │ ├── project.pbxproj │ └── xcshareddata │ │ └── xcschemes │ │ ├── disneyland_invert Debug.xcscheme │ │ └── disneyland_invert Release.xcscheme ├── openFrameworks-Info.plist └── src │ ├── main.cpp │ ├── testApp.cpp │ └── testApp.h └── week9_kinectThresholdingExample ├── Project.xcconfig ├── ofxKinectExample.xcodeproj └── project.pbxproj ├── openFrameworks-Info.plist ├── src ├── main.cpp ├── testApp.cpp └── testApp.h ├── week9_kinectThresholdingExample.cbp └── week9_kinectThresholdingExample.workspace /.gitignore: -------------------------------------------------------------------------------- 1 | # Some general ignore patterns 2 | build/ 3 | obj/ 4 | *.o 5 | Debug*/ 6 | Release*/ 7 | *.mode* 8 | *.app/ 9 | *.pyc 10 | .svn/ 11 | 12 | 13 | #XCode 14 | *.pbxuser 15 | *.perspective 16 | *.perspectivev3 17 | *.mode1v3 18 | *.mode2v3 19 | #XCode 4 20 | xcuserdata 21 | *.xcworkspace 22 | 23 | #Code::Blocks 24 | *.depend 25 | *.layout 26 | 27 | #Visual Studio 28 | *.sdf 29 | *.opensdf 30 | *.suo 31 | ipch/ 32 | 33 | #Eclipse 34 | .metadata 35 | local.properties 36 | .externalToolBuilders 37 | 38 | 39 | # OS-specific ignore patterns 40 | 41 | #Linux 42 | *~ 43 | # KDE 44 | .directory 45 | 46 | #OSX 47 | .DS_Store 48 | *.swp 49 | *~.nib 50 | # Thumbnails 51 | ._* 52 | 53 | #Windows 54 | # Windows image file caches 55 | Thumbs.db 56 | # Folder config file 57 | Desktop.ini 58 | 59 | #Android 60 | .csettings 61 | /libs/openFrameworksCompiled/project/android/paths.make 62 | 63 | # Miscellaneous 64 | .mailmap 65 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | avsys2012 2 | ========= -------------------------------------------------------------------------------- /week1_audioAndSoundBufferTogether/Project.xcconfig: -------------------------------------------------------------------------------- 1 | //THE PATH TO THE ROOT OF OUR OF PATH RELATIVE TO THIS PROJECT. 2 | //THIS NEEDS TO BE DEFINED BEFORE CoreOF.xcconfig IS INCLUDED 3 | OF_PATH = ../../.. 4 | 5 | //THIS HAS ALL THE HEADER AND LIBS FOR OF CORE 6 | #include "../../../libs/openFrameworksCompiled/project/osx/CoreOF.xcconfig" 7 | 8 | OTHER_LDFLAGS = $(OF_CORE_LIBS) 9 | HEADER_SEARCH_PATHS = $(OF_CORE_HEADERS) 10 | -------------------------------------------------------------------------------- /week1_audioAndSoundBufferTogether/addons.make: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ofZach/avsys2012/0c02857ba0e9b964e8f1ae364e93b21575fb0889/week1_audioAndSoundBufferTogether/addons.make -------------------------------------------------------------------------------- /week1_audioAndSoundBufferTogether/bin/data/.gitkeep: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ofZach/avsys2012/0c02857ba0e9b964e8f1ae364e93b21575fb0889/week1_audioAndSoundBufferTogether/bin/data/.gitkeep -------------------------------------------------------------------------------- /week1_audioAndSoundBufferTogether/openFrameworks-Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | English 7 | CFBundleExecutable 8 | ${EXECUTABLE_NAME} 9 | CFBundleIdentifier 10 | com.yourcompany.openFrameworks 11 | CFBundleInfoDictionaryVersion 12 | 6.0 13 | CFBundlePackageType 14 | APPL 15 | CFBundleSignature 16 | ???? 17 | CFBundleVersion 18 | 1.0 19 | 20 | 21 | -------------------------------------------------------------------------------- /week1_audioAndSoundBufferTogether/src/main.cpp: -------------------------------------------------------------------------------- 1 | #include "ofMain.h" 2 | #include "testApp.h" 3 | #include "ofAppGlutWindow.h" 4 | 5 | //======================================================================== 6 | int main( ){ 7 | 8 | ofAppGlutWindow window; 9 | ofSetupOpenGL(&window, 400,400, OF_WINDOW); // <-------- setup the GL context 10 | 11 | // this kicks off the running of my app 12 | // can be OF_WINDOW or OF_FULLSCREEN 13 | // pass in width and height too: 14 | ofRunApp( new testApp()); 15 | 16 | } 17 | -------------------------------------------------------------------------------- /week1_audioAndSoundBufferTogether/week1_audioAndSoundBufferTogether.workspace: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | -------------------------------------------------------------------------------- /week2_AM/Project.xcconfig: -------------------------------------------------------------------------------- 1 | //THE PATH TO THE ROOT OF OUR OF PATH RELATIVE TO THIS PROJECT. 2 | //THIS NEEDS TO BE DEFINED BEFORE CoreOF.xcconfig IS INCLUDED 3 | OF_PATH = ../../.. 4 | 5 | //THIS HAS ALL THE HEADER AND LIBS FOR OF CORE 6 | #include "../../../libs/openFrameworksCompiled/project/osx/CoreOF.xcconfig" 7 | 8 | OTHER_LDFLAGS = $(OF_CORE_LIBS) 9 | HEADER_SEARCH_PATHS = $(OF_CORE_HEADERS) 10 | -------------------------------------------------------------------------------- /week2_AM/addons.make: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ofZach/avsys2012/0c02857ba0e9b964e8f1ae364e93b21575fb0889/week2_AM/addons.make -------------------------------------------------------------------------------- /week2_AM/bin/data/.gitkeep: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ofZach/avsys2012/0c02857ba0e9b964e8f1ae364e93b21575fb0889/week2_AM/bin/data/.gitkeep -------------------------------------------------------------------------------- /week2_AM/openFrameworks-Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | English 7 | CFBundleExecutable 8 | ${EXECUTABLE_NAME} 9 | CFBundleIdentifier 10 | com.yourcompany.openFrameworks 11 | CFBundleInfoDictionaryVersion 12 | 6.0 13 | CFBundlePackageType 14 | APPL 15 | CFBundleSignature 16 | ???? 17 | CFBundleVersion 18 | 1.0 19 | 20 | 21 | -------------------------------------------------------------------------------- /week2_AM/src/main.cpp: -------------------------------------------------------------------------------- 1 | #include "ofMain.h" 2 | #include "testApp.h" 3 | #include "ofAppGlutWindow.h" 4 | 5 | //======================================================================== 6 | int main( ){ 7 | 8 | ofAppGlutWindow window; 9 | ofSetupOpenGL(&window, 1024,768, OF_WINDOW); // <-------- setup the GL context 10 | 11 | // this kicks off the running of my app 12 | // can be OF_WINDOW or OF_FULLSCREEN 13 | // pass in width and height too: 14 | ofRunApp( new testApp()); 15 | 16 | } 17 | -------------------------------------------------------------------------------- /week2_AM/src/oscillator.cpp: -------------------------------------------------------------------------------- 1 | 2 | #include "oscillator.h" 3 | 4 | 5 | 6 | void oscillator::setup (int rate){ 7 | sampleRate = rate; 8 | } 9 | 10 | void oscillator::setFrequency (float freq){ 11 | frequency = freq; 12 | phaseAdder = (float)(frequency * TWO_PI) / (float)sampleRate; 13 | } 14 | 15 | void oscillator::setVolume (float vol){ 16 | volume = vol; 17 | } 18 | 19 | float oscillator::getSample(){ 20 | phase += phaseAdder; 21 | while (phase > TWO_PI) phase -= TWO_PI; 22 | return sin(phase) * volume; 23 | } 24 | 25 | -------------------------------------------------------------------------------- /week2_AM/src/oscillator.h: -------------------------------------------------------------------------------- 1 | 2 | #pragma once 3 | 4 | 5 | #include "ofMain.h" 6 | 7 | 8 | class oscillator { 9 | 10 | public: 11 | 12 | int sampleRate; 13 | float frequency; 14 | float volume; 15 | float phase; 16 | float phaseAdder; 17 | 18 | void setup (int sampleRate); 19 | void setFrequency (float freq); 20 | void setVolume (float volume); 21 | 22 | float getSample(); 23 | 24 | }; -------------------------------------------------------------------------------- /week2_AM/src/testApp.h: -------------------------------------------------------------------------------- 1 | #pragma once 2 | 3 | #include "ofMain.h" 4 | #include "oscillator.h" 5 | 6 | 7 | class testApp : public ofBaseApp{ 8 | 9 | public: 10 | void setup(); 11 | void update(); 12 | void draw(); 13 | 14 | void keyPressed (int key); 15 | void keyReleased(int key); 16 | void mouseMoved(int x, int y ); 17 | void mouseDragged(int x, int y, int button); 18 | void mousePressed(int x, int y, int button); 19 | void mouseReleased(int x, int y, int button); 20 | void windowResized(int w, int h); 21 | void dragEvent(ofDragInfo dragInfo); 22 | void gotMessage(ofMessage msg); 23 | 24 | void audioOut(float * input, int bufferSize, int nChannels); 25 | 26 | ofSoundStream stream; 27 | 28 | float * soundBuffer; 29 | 30 | oscillator carrierWave; 31 | oscillator modulatorWave; 32 | 33 | }; 34 | -------------------------------------------------------------------------------- /week2_AM/week2_AM.workspace: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | -------------------------------------------------------------------------------- /week2_FM/Project.xcconfig: -------------------------------------------------------------------------------- 1 | //THE PATH TO THE ROOT OF OUR OF PATH RELATIVE TO THIS PROJECT. 2 | //THIS NEEDS TO BE DEFINED BEFORE CoreOF.xcconfig IS INCLUDED 3 | OF_PATH = ../../.. 4 | 5 | //THIS HAS ALL THE HEADER AND LIBS FOR OF CORE 6 | #include "../../../libs/openFrameworksCompiled/project/osx/CoreOF.xcconfig" 7 | 8 | OTHER_LDFLAGS = $(OF_CORE_LIBS) 9 | HEADER_SEARCH_PATHS = $(OF_CORE_HEADERS) 10 | -------------------------------------------------------------------------------- /week2_FM/addons.make: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ofZach/avsys2012/0c02857ba0e9b964e8f1ae364e93b21575fb0889/week2_FM/addons.make -------------------------------------------------------------------------------- /week2_FM/bin/data/.gitkeep: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ofZach/avsys2012/0c02857ba0e9b964e8f1ae364e93b21575fb0889/week2_FM/bin/data/.gitkeep -------------------------------------------------------------------------------- /week2_FM/openFrameworks-Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | English 7 | CFBundleExecutable 8 | ${EXECUTABLE_NAME} 9 | CFBundleIdentifier 10 | com.yourcompany.openFrameworks 11 | CFBundleInfoDictionaryVersion 12 | 6.0 13 | CFBundlePackageType 14 | APPL 15 | CFBundleSignature 16 | ???? 17 | CFBundleVersion 18 | 1.0 19 | 20 | 21 | -------------------------------------------------------------------------------- /week2_FM/src/main.cpp: -------------------------------------------------------------------------------- 1 | #include "ofMain.h" 2 | #include "testApp.h" 3 | #include "ofAppGlutWindow.h" 4 | 5 | //======================================================================== 6 | int main( ){ 7 | 8 | ofAppGlutWindow window; 9 | ofSetupOpenGL(&window, 1024,768, OF_WINDOW); // <-------- setup the GL context 10 | 11 | // this kicks off the running of my app 12 | // can be OF_WINDOW or OF_FULLSCREEN 13 | // pass in width and height too: 14 | ofRunApp( new testApp()); 15 | 16 | } 17 | -------------------------------------------------------------------------------- /week2_FM/src/oscillator.cpp: -------------------------------------------------------------------------------- 1 | 2 | #include "oscillator.h" 3 | 4 | 5 | 6 | void oscillator::setup (int rate){ 7 | sampleRate = rate; 8 | } 9 | 10 | void oscillator::setFrequency (float freq){ 11 | frequency = freq; 12 | phaseAdder = (float)(frequency * TWO_PI) / (float)sampleRate; 13 | } 14 | 15 | void oscillator::setVolume (float vol){ 16 | volume = vol; 17 | } 18 | 19 | float oscillator::getSample(){ 20 | phase += phaseAdder; 21 | while (phase > TWO_PI) phase -= TWO_PI; 22 | return sin(phase) * volume; 23 | } 24 | 25 | -------------------------------------------------------------------------------- /week2_FM/src/oscillator.h: -------------------------------------------------------------------------------- 1 | 2 | #pragma once 3 | 4 | 5 | #include "ofMain.h" 6 | 7 | 8 | class oscillator { 9 | 10 | public: 11 | 12 | int sampleRate; 13 | float frequency; 14 | float volume; 15 | float phase; 16 | float phaseAdder; 17 | 18 | void setup (int sampleRate); 19 | void setFrequency (float freq); 20 | void setVolume (float volume); 21 | 22 | float getSample(); 23 | 24 | }; -------------------------------------------------------------------------------- /week2_FM/src/testApp.h: -------------------------------------------------------------------------------- 1 | #pragma once 2 | 3 | #include "ofMain.h" 4 | #include "oscillator.h" 5 | 6 | 7 | class testApp : public ofBaseApp{ 8 | 9 | public: 10 | void setup(); 11 | void update(); 12 | void draw(); 13 | 14 | void keyPressed (int key); 15 | void keyReleased(int key); 16 | void mouseMoved(int x, int y ); 17 | void mouseDragged(int x, int y, int button); 18 | void mousePressed(int x, int y, int button); 19 | void mouseReleased(int x, int y, int button); 20 | void windowResized(int w, int h); 21 | void dragEvent(ofDragInfo dragInfo); 22 | void gotMessage(ofMessage msg); 23 | 24 | void audioOut(float * input, int bufferSize, int nChannels); 25 | 26 | ofSoundStream stream; 27 | 28 | float * soundBuffer; 29 | 30 | oscillator carrierWave; 31 | oscillator modulatorWave; 32 | float carrierMinFreq; 33 | float carrierMaxFreq; 34 | 35 | 36 | }; 37 | -------------------------------------------------------------------------------- /week2_FM/week2_FM.workspace: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | -------------------------------------------------------------------------------- /week2_additiveSynthesis/Project.xcconfig: -------------------------------------------------------------------------------- 1 | //THE PATH TO THE ROOT OF OUR OF PATH RELATIVE TO THIS PROJECT. 2 | //THIS NEEDS TO BE DEFINED BEFORE CoreOF.xcconfig IS INCLUDED 3 | OF_PATH = ../../.. 4 | 5 | //THIS HAS ALL THE HEADER AND LIBS FOR OF CORE 6 | #include "../../../libs/openFrameworksCompiled/project/osx/CoreOF.xcconfig" 7 | 8 | OTHER_LDFLAGS = $(OF_CORE_LIBS) 9 | HEADER_SEARCH_PATHS = $(OF_CORE_HEADERS) 10 | -------------------------------------------------------------------------------- /week2_additiveSynthesis/addons.make: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ofZach/avsys2012/0c02857ba0e9b964e8f1ae364e93b21575fb0889/week2_additiveSynthesis/addons.make -------------------------------------------------------------------------------- /week2_additiveSynthesis/bin/data/.gitkeep: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ofZach/avsys2012/0c02857ba0e9b964e8f1ae364e93b21575fb0889/week2_additiveSynthesis/bin/data/.gitkeep -------------------------------------------------------------------------------- /week2_additiveSynthesis/openFrameworks-Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | English 7 | CFBundleExecutable 8 | ${EXECUTABLE_NAME} 9 | CFBundleIdentifier 10 | com.yourcompany.openFrameworks 11 | CFBundleInfoDictionaryVersion 12 | 6.0 13 | CFBundlePackageType 14 | APPL 15 | CFBundleSignature 16 | ???? 17 | CFBundleVersion 18 | 1.0 19 | 20 | 21 | -------------------------------------------------------------------------------- /week2_additiveSynthesis/src/main.cpp: -------------------------------------------------------------------------------- 1 | #include "ofMain.h" 2 | #include "testApp.h" 3 | #include "ofAppGlutWindow.h" 4 | 5 | //======================================================================== 6 | int main( ){ 7 | 8 | ofAppGlutWindow window; 9 | ofSetupOpenGL(&window, 1024,768, OF_WINDOW); // <-------- setup the GL context 10 | 11 | // this kicks off the running of my app 12 | // can be OF_WINDOW or OF_FULLSCREEN 13 | // pass in width and height too: 14 | ofRunApp( new testApp()); 15 | 16 | } 17 | -------------------------------------------------------------------------------- /week2_additiveSynthesis/src/oscillator.cpp: -------------------------------------------------------------------------------- 1 | 2 | #include "oscillator.h" 3 | 4 | 5 | 6 | void oscillator::setup (int rate){ 7 | sampleRate = rate; 8 | } 9 | 10 | void oscillator::setFrequency (float freq){ 11 | frequency = freq; 12 | phaseAdder = (float)(frequency * TWO_PI) / (float)sampleRate; 13 | } 14 | 15 | void oscillator::setVolume (float vol){ 16 | volume = vol; 17 | } 18 | 19 | float oscillator::getSample(){ 20 | phase += phaseAdder; 21 | while (phase > TWO_PI) phase -= TWO_PI; 22 | return sin(phase) * volume; 23 | } 24 | 25 | -------------------------------------------------------------------------------- /week2_additiveSynthesis/src/oscillator.h: -------------------------------------------------------------------------------- 1 | 2 | #pragma once 3 | 4 | 5 | #include "ofMain.h" 6 | 7 | 8 | class oscillator { 9 | 10 | public: 11 | 12 | int sampleRate; 13 | float frequency; 14 | float volume; 15 | float phase; 16 | float phaseAdder; 17 | 18 | void setup (int sampleRate); 19 | void setFrequency (float freq); 20 | void setVolume (float volume); 21 | 22 | float getSample(); 23 | 24 | }; -------------------------------------------------------------------------------- /week2_additiveSynthesis/src/testApp.h: -------------------------------------------------------------------------------- 1 | #pragma once 2 | 3 | #include "ofMain.h" 4 | #include "oscillator.h" 5 | 6 | 7 | class testApp : public ofBaseApp{ 8 | 9 | public: 10 | void setup(); 11 | void update(); 12 | void draw(); 13 | 14 | void keyPressed (int key); 15 | void keyReleased(int key); 16 | void mouseMoved(int x, int y ); 17 | void mouseDragged(int x, int y, int button); 18 | void mousePressed(int x, int y, int button); 19 | void mouseReleased(int x, int y, int button); 20 | void windowResized(int w, int h); 21 | void dragEvent(ofDragInfo dragInfo); 22 | void gotMessage(ofMessage msg); 23 | 24 | void audioOut(float * input, int bufferSize, int nChannels); 25 | 26 | ofSoundStream stream; 27 | 28 | float * soundBuffers[3]; 29 | float * totalSoundBuffer; 30 | 31 | oscillator sinWaves[3]; 32 | 33 | 34 | }; 35 | -------------------------------------------------------------------------------- /week2_additiveSynthesis/week2_additiveSynthesis.workspace: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | -------------------------------------------------------------------------------- /week2_oscillator/Project.xcconfig: -------------------------------------------------------------------------------- 1 | //THE PATH TO THE ROOT OF OUR OF PATH RELATIVE TO THIS PROJECT. 2 | //THIS NEEDS TO BE DEFINED BEFORE CoreOF.xcconfig IS INCLUDED 3 | OF_PATH = ../../.. 4 | 5 | //THIS HAS ALL THE HEADER AND LIBS FOR OF CORE 6 | #include "../../../libs/openFrameworksCompiled/project/osx/CoreOF.xcconfig" 7 | 8 | OTHER_LDFLAGS = $(OF_CORE_LIBS) 9 | HEADER_SEARCH_PATHS = $(OF_CORE_HEADERS) 10 | -------------------------------------------------------------------------------- /week2_oscillator/addons.make: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ofZach/avsys2012/0c02857ba0e9b964e8f1ae364e93b21575fb0889/week2_oscillator/addons.make -------------------------------------------------------------------------------- /week2_oscillator/bin/data/.gitkeep: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ofZach/avsys2012/0c02857ba0e9b964e8f1ae364e93b21575fb0889/week2_oscillator/bin/data/.gitkeep -------------------------------------------------------------------------------- /week2_oscillator/openFrameworks-Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | English 7 | CFBundleExecutable 8 | ${EXECUTABLE_NAME} 9 | CFBundleIdentifier 10 | com.yourcompany.openFrameworks 11 | CFBundleInfoDictionaryVersion 12 | 6.0 13 | CFBundlePackageType 14 | APPL 15 | CFBundleSignature 16 | ???? 17 | CFBundleVersion 18 | 1.0 19 | 20 | 21 | -------------------------------------------------------------------------------- /week2_oscillator/src/main.cpp: -------------------------------------------------------------------------------- 1 | #include "ofMain.h" 2 | #include "testApp.h" 3 | #include "ofAppGlutWindow.h" 4 | 5 | //======================================================================== 6 | int main( ){ 7 | 8 | ofAppGlutWindow window; 9 | ofSetupOpenGL(&window, 1024,768, OF_WINDOW); // <-------- setup the GL context 10 | 11 | // this kicks off the running of my app 12 | // can be OF_WINDOW or OF_FULLSCREEN 13 | // pass in width and height too: 14 | ofRunApp( new testApp()); 15 | 16 | } 17 | -------------------------------------------------------------------------------- /week2_oscillator/src/oscillator.cpp: -------------------------------------------------------------------------------- 1 | 2 | #include "oscillator.h" 3 | 4 | 5 | 6 | void oscillator::setup (int rate){ 7 | sampleRate = rate; 8 | } 9 | 10 | void oscillator::setFrequency (float freq){ 11 | frequency = freq; 12 | phaseAdder = (float)(frequency * TWO_PI) / (float)sampleRate; 13 | } 14 | 15 | void oscillator::setVolume (float vol){ 16 | volume = vol; 17 | } 18 | 19 | float oscillator::getSample(){ 20 | phase += phaseAdder; 21 | while (phase > TWO_PI) phase -= TWO_PI; 22 | return sin(phase) * volume; 23 | } 24 | 25 | -------------------------------------------------------------------------------- /week2_oscillator/src/oscillator.h: -------------------------------------------------------------------------------- 1 | 2 | #pragma once 3 | 4 | 5 | #include "ofMain.h" 6 | 7 | 8 | class oscillator { 9 | 10 | public: 11 | 12 | int sampleRate; 13 | float frequency; 14 | float volume; 15 | float phase; 16 | float phaseAdder; 17 | 18 | void setup (int sampleRate); 19 | void setFrequency (float freq); 20 | void setVolume (float volume); 21 | 22 | float getSample(); 23 | 24 | }; -------------------------------------------------------------------------------- /week2_oscillator/src/testApp.h: -------------------------------------------------------------------------------- 1 | #pragma once 2 | 3 | #include "ofMain.h" 4 | #include "oscillator.h" 5 | 6 | 7 | class testApp : public ofBaseApp{ 8 | 9 | public: 10 | void setup(); 11 | void update(); 12 | void draw(); 13 | 14 | void keyPressed (int key); 15 | void keyReleased(int key); 16 | void mouseMoved(int x, int y ); 17 | void mouseDragged(int x, int y, int button); 18 | void mousePressed(int x, int y, int button); 19 | void mouseReleased(int x, int y, int button); 20 | void windowResized(int w, int h); 21 | void dragEvent(ofDragInfo dragInfo); 22 | void gotMessage(ofMessage msg); 23 | 24 | void audioOut(float * input, int bufferSize, int nChannels); 25 | 26 | ofSoundStream stream; 27 | 28 | float * soundBuffer; 29 | 30 | oscillator sinWave; 31 | 32 | 33 | }; 34 | -------------------------------------------------------------------------------- /week2_oscillator/week2_oscillator.workspace: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | -------------------------------------------------------------------------------- /week2_oscillatorTypes/Project.xcconfig: -------------------------------------------------------------------------------- 1 | //THE PATH TO THE ROOT OF OUR OF PATH RELATIVE TO THIS PROJECT. 2 | //THIS NEEDS TO BE DEFINED BEFORE CoreOF.xcconfig IS INCLUDED 3 | OF_PATH = ../../.. 4 | 5 | //THIS HAS ALL THE HEADER AND LIBS FOR OF CORE 6 | #include "../../../libs/openFrameworksCompiled/project/osx/CoreOF.xcconfig" 7 | 8 | OTHER_LDFLAGS = $(OF_CORE_LIBS) 9 | HEADER_SEARCH_PATHS = $(OF_CORE_HEADERS) 10 | -------------------------------------------------------------------------------- /week2_oscillatorTypes/addons.make: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ofZach/avsys2012/0c02857ba0e9b964e8f1ae364e93b21575fb0889/week2_oscillatorTypes/addons.make -------------------------------------------------------------------------------- /week2_oscillatorTypes/bin/data/.gitkeep: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ofZach/avsys2012/0c02857ba0e9b964e8f1ae364e93b21575fb0889/week2_oscillatorTypes/bin/data/.gitkeep -------------------------------------------------------------------------------- /week2_oscillatorTypes/openFrameworks-Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | English 7 | CFBundleExecutable 8 | ${EXECUTABLE_NAME} 9 | CFBundleIdentifier 10 | com.yourcompany.openFrameworks 11 | CFBundleInfoDictionaryVersion 12 | 6.0 13 | CFBundlePackageType 14 | APPL 15 | CFBundleSignature 16 | ???? 17 | CFBundleVersion 18 | 1.0 19 | 20 | 21 | -------------------------------------------------------------------------------- /week2_oscillatorTypes/src/main.cpp: -------------------------------------------------------------------------------- 1 | #include "ofMain.h" 2 | #include "testApp.h" 3 | #include "ofAppGlutWindow.h" 4 | 5 | //======================================================================== 6 | int main( ){ 7 | 8 | ofAppGlutWindow window; 9 | ofSetupOpenGL(&window, 1024,768, OF_WINDOW); // <-------- setup the GL context 10 | 11 | // this kicks off the running of my app 12 | // can be OF_WINDOW or OF_FULLSCREEN 13 | // pass in width and height too: 14 | ofRunApp( new testApp()); 15 | 16 | } 17 | -------------------------------------------------------------------------------- /week2_oscillatorTypes/src/oscillator.h: -------------------------------------------------------------------------------- 1 | 2 | #pragma once 3 | 4 | 5 | #include "ofMain.h" 6 | 7 | 8 | class oscillator { 9 | 10 | public: 11 | 12 | 13 | enum{ 14 | sineWave, squareWave, triangleWave, sawWave, sawWaveReverse 15 | } waveType; 16 | 17 | int type; 18 | 19 | int sampleRate; 20 | float frequency; 21 | float volume; 22 | float phase; 23 | float phaseAdder; 24 | 25 | void setup (int sampleRate); 26 | void setFrequency (float freq); 27 | void setVolume (float volume); 28 | 29 | float getSample(); 30 | 31 | }; -------------------------------------------------------------------------------- /week2_oscillatorTypes/src/testApp.h: -------------------------------------------------------------------------------- 1 | #pragma once 2 | 3 | #include "ofMain.h" 4 | #include "oscillator.h" 5 | 6 | 7 | class testApp : public ofBaseApp{ 8 | 9 | public: 10 | void setup(); 11 | void update(); 12 | void draw(); 13 | 14 | void keyPressed (int key); 15 | void keyReleased(int key); 16 | void mouseMoved(int x, int y ); 17 | void mouseDragged(int x, int y, int button); 18 | void mousePressed(int x, int y, int button); 19 | void mouseReleased(int x, int y, int button); 20 | void windowResized(int w, int h); 21 | void dragEvent(ofDragInfo dragInfo); 22 | void gotMessage(ofMessage msg); 23 | 24 | void audioOut(float * input, int bufferSize, int nChannels); 25 | 26 | ofSoundStream stream; 27 | 28 | float * soundBuffer; 29 | 30 | oscillator sinWave; 31 | 32 | 33 | }; 34 | -------------------------------------------------------------------------------- /week2_oscillatorTypes/week2_oscillatorTypes.workspace: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | -------------------------------------------------------------------------------- /week2_sinGraphics/Project.xcconfig: -------------------------------------------------------------------------------- 1 | //THE PATH TO THE ROOT OF OUR OF PATH RELATIVE TO THIS PROJECT. 2 | //THIS NEEDS TO BE DEFINED BEFORE CoreOF.xcconfig IS INCLUDED 3 | OF_PATH = ../../.. 4 | 5 | //THIS HAS ALL THE HEADER AND LIBS FOR OF CORE 6 | #include "../../../libs/openFrameworksCompiled/project/osx/CoreOF.xcconfig" 7 | 8 | OTHER_LDFLAGS = $(OF_CORE_LIBS) 9 | HEADER_SEARCH_PATHS = $(OF_CORE_HEADERS) 10 | -------------------------------------------------------------------------------- /week2_sinGraphics/addons.make: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ofZach/avsys2012/0c02857ba0e9b964e8f1ae364e93b21575fb0889/week2_sinGraphics/addons.make -------------------------------------------------------------------------------- /week2_sinGraphics/bin/data/.gitkeep: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ofZach/avsys2012/0c02857ba0e9b964e8f1ae364e93b21575fb0889/week2_sinGraphics/bin/data/.gitkeep -------------------------------------------------------------------------------- /week2_sinGraphics/openFrameworks-Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | English 7 | CFBundleExecutable 8 | ${EXECUTABLE_NAME} 9 | CFBundleIdentifier 10 | com.yourcompany.openFrameworks 11 | CFBundleInfoDictionaryVersion 12 | 6.0 13 | CFBundlePackageType 14 | APPL 15 | CFBundleSignature 16 | ???? 17 | CFBundleVersion 18 | 1.0 19 | 20 | 21 | -------------------------------------------------------------------------------- /week2_sinGraphics/src/main.cpp: -------------------------------------------------------------------------------- 1 | #include "ofMain.h" 2 | #include "testApp.h" 3 | #include "ofAppGlutWindow.h" 4 | 5 | //======================================================================== 6 | int main( ){ 7 | 8 | ofAppGlutWindow window; 9 | ofSetupOpenGL(&window, 1024,768, OF_WINDOW); // <-------- setup the GL context 10 | 11 | // this kicks off the running of my app 12 | // can be OF_WINDOW or OF_FULLSCREEN 13 | // pass in width and height too: 14 | ofRunApp( new testApp()); 15 | 16 | } 17 | -------------------------------------------------------------------------------- /week2_sinGraphics/src/testApp.h: -------------------------------------------------------------------------------- 1 | #ifndef _TEST_APP 2 | #define _TEST_APP 3 | 4 | 5 | #include "ofMain.h" 6 | 7 | class testApp : public ofBaseApp{ 8 | 9 | public: 10 | void setup(); 11 | void update(); 12 | void draw(); 13 | 14 | void keyPressed (int key); 15 | void keyReleased(int key); 16 | void mouseMoved(int x, int y ); 17 | void mouseDragged(int x, int y, int button); 18 | void mousePressed(int x, int y, int button); 19 | void mouseReleased(int x, int y, int button); 20 | void windowResized(int w, int h); 21 | 22 | void drawSinWaveWithRects(float angleBase, int amplitude, int rectWidth, int rectHeight); 23 | 24 | float angle; 25 | float angleAdder; 26 | }; 27 | 28 | #endif 29 | -------------------------------------------------------------------------------- /week2_sinGraphics/week2_sinGraphics.workspace: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | -------------------------------------------------------------------------------- /week2_soundBasics/Project.xcconfig: -------------------------------------------------------------------------------- 1 | //THE PATH TO THE ROOT OF OUR OF PATH RELATIVE TO THIS PROJECT. 2 | //THIS NEEDS TO BE DEFINED BEFORE CoreOF.xcconfig IS INCLUDED 3 | OF_PATH = ../../.. 4 | 5 | //THIS HAS ALL THE HEADER AND LIBS FOR OF CORE 6 | #include "../../../libs/openFrameworksCompiled/project/osx/CoreOF.xcconfig" 7 | 8 | OTHER_LDFLAGS = $(OF_CORE_LIBS) 9 | HEADER_SEARCH_PATHS = $(OF_CORE_HEADERS) 10 | -------------------------------------------------------------------------------- /week2_soundBasics/addons.make: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ofZach/avsys2012/0c02857ba0e9b964e8f1ae364e93b21575fb0889/week2_soundBasics/addons.make -------------------------------------------------------------------------------- /week2_soundBasics/bin/data/.gitkeep: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ofZach/avsys2012/0c02857ba0e9b964e8f1ae364e93b21575fb0889/week2_soundBasics/bin/data/.gitkeep -------------------------------------------------------------------------------- /week2_soundBasics/openFrameworks-Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | English 7 | CFBundleExecutable 8 | ${EXECUTABLE_NAME} 9 | CFBundleIdentifier 10 | com.yourcompany.openFrameworks 11 | CFBundleInfoDictionaryVersion 12 | 6.0 13 | CFBundlePackageType 14 | APPL 15 | CFBundleSignature 16 | ???? 17 | CFBundleVersion 18 | 1.0 19 | 20 | 21 | -------------------------------------------------------------------------------- /week2_soundBasics/src/main.cpp: -------------------------------------------------------------------------------- 1 | #include "ofMain.h" 2 | #include "testApp.h" 3 | #include "ofAppGlutWindow.h" 4 | 5 | //======================================================================== 6 | int main( ){ 7 | 8 | ofAppGlutWindow window; 9 | ofSetupOpenGL(&window, 1024,768, OF_WINDOW); // <-------- setup the GL context 10 | 11 | // this kicks off the running of my app 12 | // can be OF_WINDOW or OF_FULLSCREEN 13 | // pass in width and height too: 14 | ofRunApp( new testApp()); 15 | 16 | } 17 | -------------------------------------------------------------------------------- /week2_soundBasics/src/testApp.h: -------------------------------------------------------------------------------- 1 | #pragma once 2 | 3 | #include "ofMain.h" 4 | 5 | class testApp : public ofBaseApp{ 6 | 7 | public: 8 | void setup(); 9 | void update(); 10 | void draw(); 11 | 12 | void keyPressed (int key); 13 | void keyReleased(int key); 14 | void mouseMoved(int x, int y ); 15 | void mouseDragged(int x, int y, int button); 16 | void mousePressed(int x, int y, int button); 17 | void mouseReleased(int x, int y, int button); 18 | void windowResized(int w, int h); 19 | void dragEvent(ofDragInfo dragInfo); 20 | void gotMessage(ofMessage msg); 21 | 22 | void audioOut(float * input, int bufferSize, int nChannels); 23 | 24 | ofSoundStream stream; 25 | 26 | float * soundBuffer; 27 | 28 | int counter; 29 | 30 | 31 | 32 | }; 33 | -------------------------------------------------------------------------------- /week2_soundBasics/week2_soundBasics.workspace: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | -------------------------------------------------------------------------------- /week3_imageBasic/Project.xcconfig: -------------------------------------------------------------------------------- 1 | //THE PATH TO THE ROOT OF OUR OF PATH RELATIVE TO THIS PROJECT. 2 | //THIS NEEDS TO BE DEFINED BEFORE CoreOF.xcconfig IS INCLUDED 3 | OF_PATH = ../../.. 4 | 5 | //THIS HAS ALL THE HEADER AND LIBS FOR OF CORE 6 | #include "../../../libs/openFrameworksCompiled/project/osx/CoreOF.xcconfig" 7 | 8 | OTHER_LDFLAGS = $(OF_CORE_LIBS) 9 | HEADER_SEARCH_PATHS = $(OF_CORE_HEADERS) 10 | -------------------------------------------------------------------------------- /week3_imageBasic/addons.make: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ofZach/avsys2012/0c02857ba0e9b964e8f1ae364e93b21575fb0889/week3_imageBasic/addons.make -------------------------------------------------------------------------------- /week3_imageBasic/bin/data/.gitkeep: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ofZach/avsys2012/0c02857ba0e9b964e8f1ae364e93b21575fb0889/week3_imageBasic/bin/data/.gitkeep -------------------------------------------------------------------------------- /week3_imageBasic/openFrameworks-Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | English 7 | CFBundleExecutable 8 | ${EXECUTABLE_NAME} 9 | CFBundleIdentifier 10 | com.yourcompany.openFrameworks 11 | CFBundleInfoDictionaryVersion 12 | 6.0 13 | CFBundlePackageType 14 | APPL 15 | CFBundleSignature 16 | ???? 17 | CFBundleVersion 18 | 1.0 19 | 20 | 21 | -------------------------------------------------------------------------------- /week3_imageBasic/src/main.cpp: -------------------------------------------------------------------------------- 1 | #include "ofMain.h" 2 | #include "testApp.h" 3 | #include "ofAppGlutWindow.h" 4 | 5 | //======================================================================== 6 | int main( ){ 7 | 8 | ofAppGlutWindow window; 9 | ofSetupOpenGL(&window, 640, 480, OF_WINDOW); // <-------- setup the GL context 10 | 11 | // this kicks off the running of my app 12 | // can be OF_WINDOW or OF_FULLSCREEN 13 | // pass in width and height too: 14 | ofRunApp( new testApp()); 15 | 16 | } 17 | -------------------------------------------------------------------------------- /week3_imageBasic/src/testApp.h: -------------------------------------------------------------------------------- 1 | #pragma once 2 | 3 | #include "ofMain.h" 4 | 5 | class testApp : public ofBaseApp{ 6 | 7 | public: 8 | void setup(); 9 | void update(); 10 | void draw(); 11 | 12 | void keyPressed (int key); 13 | void keyReleased(int key); 14 | void mouseMoved(int x, int y ); 15 | void mouseDragged(int x, int y, int button); 16 | void mousePressed(int x, int y, int button); 17 | void mouseReleased(int x, int y, int button); 18 | void windowResized(int w, int h); 19 | void dragEvent(ofDragInfo dragInfo); 20 | void gotMessage(ofMessage msg); 21 | 22 | 23 | ofImage img; // create a variable called img of the type ofImage.... 24 | 25 | 26 | 27 | }; 28 | -------------------------------------------------------------------------------- /week3_imageBasic/week3_imageBasic.workspace: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | -------------------------------------------------------------------------------- /week3_imageDrawCircle/Project.xcconfig: -------------------------------------------------------------------------------- 1 | //THE PATH TO THE ROOT OF OUR OF PATH RELATIVE TO THIS PROJECT. 2 | //THIS NEEDS TO BE DEFINED BEFORE CoreOF.xcconfig IS INCLUDED 3 | OF_PATH = ../../.. 4 | 5 | //THIS HAS ALL THE HEADER AND LIBS FOR OF CORE 6 | #include "../../../libs/openFrameworksCompiled/project/osx/CoreOF.xcconfig" 7 | 8 | OTHER_LDFLAGS = $(OF_CORE_LIBS) 9 | HEADER_SEARCH_PATHS = $(OF_CORE_HEADERS) 10 | -------------------------------------------------------------------------------- /week3_imageDrawCircle/addons.make: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ofZach/avsys2012/0c02857ba0e9b964e8f1ae364e93b21575fb0889/week3_imageDrawCircle/addons.make -------------------------------------------------------------------------------- /week3_imageDrawCircle/bin/data/.gitkeep: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ofZach/avsys2012/0c02857ba0e9b964e8f1ae364e93b21575fb0889/week3_imageDrawCircle/bin/data/.gitkeep -------------------------------------------------------------------------------- /week3_imageDrawCircle/openFrameworks-Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | English 7 | CFBundleExecutable 8 | ${EXECUTABLE_NAME} 9 | CFBundleIdentifier 10 | com.yourcompany.openFrameworks 11 | CFBundleInfoDictionaryVersion 12 | 6.0 13 | CFBundlePackageType 14 | APPL 15 | CFBundleSignature 16 | ???? 17 | CFBundleVersion 18 | 1.0 19 | 20 | 21 | -------------------------------------------------------------------------------- /week3_imageDrawCircle/src/main.cpp: -------------------------------------------------------------------------------- 1 | #include "ofMain.h" 2 | #include "testApp.h" 3 | #include "ofAppGlutWindow.h" 4 | 5 | //======================================================================== 6 | int main( ){ 7 | 8 | ofAppGlutWindow window; 9 | ofSetupOpenGL(&window, 640, 480, OF_WINDOW); // <-------- setup the GL context 10 | 11 | // this kicks off the running of my app 12 | // can be OF_WINDOW or OF_FULLSCREEN 13 | // pass in width and height too: 14 | ofRunApp( new testApp()); 15 | 16 | } 17 | -------------------------------------------------------------------------------- /week3_imageDrawCircle/src/testApp.h: -------------------------------------------------------------------------------- 1 | #pragma once 2 | 3 | #include "ofMain.h" 4 | 5 | class testApp : public ofBaseApp{ 6 | 7 | public: 8 | void setup(); 9 | void update(); 10 | void draw(); 11 | 12 | void keyPressed (int key); 13 | void keyReleased(int key); 14 | void mouseMoved(int x, int y ); 15 | void mouseDragged(int x, int y, int button); 16 | void mousePressed(int x, int y, int button); 17 | void mouseReleased(int x, int y, int button); 18 | void windowResized(int w, int h); 19 | void dragEvent(ofDragInfo dragInfo); 20 | void gotMessage(ofMessage msg); 21 | 22 | 23 | ofImage img; // create a variable called img of the type ofImage.... 24 | 25 | 26 | 27 | }; 28 | -------------------------------------------------------------------------------- /week3_imageDrawCircle/week3_imageDrawCircle.workspace: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | -------------------------------------------------------------------------------- /week3_imageDrawingAndSound/Project.xcconfig: -------------------------------------------------------------------------------- 1 | //THE PATH TO THE ROOT OF OUR OF PATH RELATIVE TO THIS PROJECT. 2 | //THIS NEEDS TO BE DEFINED BEFORE CoreOF.xcconfig IS INCLUDED 3 | OF_PATH = ../../.. 4 | 5 | //THIS HAS ALL THE HEADER AND LIBS FOR OF CORE 6 | #include "../../../libs/openFrameworksCompiled/project/osx/CoreOF.xcconfig" 7 | 8 | OTHER_LDFLAGS = $(OF_CORE_LIBS) 9 | HEADER_SEARCH_PATHS = $(OF_CORE_HEADERS) 10 | -------------------------------------------------------------------------------- /week3_imageDrawingAndSound/addons.make: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ofZach/avsys2012/0c02857ba0e9b964e8f1ae364e93b21575fb0889/week3_imageDrawingAndSound/addons.make -------------------------------------------------------------------------------- /week3_imageDrawingAndSound/bin/data/.gitkeep: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ofZach/avsys2012/0c02857ba0e9b964e8f1ae364e93b21575fb0889/week3_imageDrawingAndSound/bin/data/.gitkeep -------------------------------------------------------------------------------- /week3_imageDrawingAndSound/openFrameworks-Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | English 7 | CFBundleExecutable 8 | ${EXECUTABLE_NAME} 9 | CFBundleIdentifier 10 | com.yourcompany.openFrameworks 11 | CFBundleInfoDictionaryVersion 12 | 6.0 13 | CFBundlePackageType 14 | APPL 15 | CFBundleSignature 16 | ???? 17 | CFBundleVersion 18 | 1.0 19 | 20 | 21 | -------------------------------------------------------------------------------- /week3_imageDrawingAndSound/src/main.cpp: -------------------------------------------------------------------------------- 1 | #include "ofMain.h" 2 | #include "testApp.h" 3 | 4 | //======================================================================== 5 | int main( ){ 6 | 7 | ofSetupOpenGL(1024,768, OF_WINDOW); // <-------- setup the GL context 8 | 9 | // this kicks off the running of my app 10 | // can be OF_WINDOW or OF_FULLSCREEN 11 | // pass in width and height too: 12 | 13 | ofRunApp(new testApp()); 14 | 15 | } 16 | -------------------------------------------------------------------------------- /week3_imageDrawingAndSound/src/sinOscillator.h: -------------------------------------------------------------------------------- 1 | #ifndef _SIN_OSCILLATOR 2 | #define _SIN_OSCILLATOR 3 | 4 | 5 | #include "ofMain.h" 6 | 7 | 8 | class sinOscillator{ 9 | 10 | public: 11 | 12 | 13 | void setup(); 14 | void setFrequency(float newFrequency); 15 | void setVolume(float newVolume); 16 | void addToSoundBuffer(float * buffer, int bufferSize); 17 | 18 | float pan; 19 | int sampleRate; 20 | float volume; 21 | float frequency; 22 | 23 | float angle; 24 | float angleAdder; 25 | 26 | }; 27 | 28 | #endif -------------------------------------------------------------------------------- /week3_imageDrawingAndSound/src/testApp.h: -------------------------------------------------------------------------------- 1 | #ifndef _TEST_APP 2 | #define _TEST_APP 3 | 4 | 5 | #include "ofMain.h" 6 | #include "sinOscillator.h" 7 | 8 | 9 | class testApp : public ofSimpleApp{ 10 | 11 | public: 12 | 13 | void setup(); 14 | void update(); 15 | void draw(); 16 | 17 | void keyPressed(int key); 18 | void keyReleased(int key); 19 | void mouseMoved(int x, int y ); 20 | void mouseDragged(int x, int y, int button); 21 | void mousePressed(int x, int y, int button); 22 | void mouseReleased(); 23 | 24 | void audioRequested(float * input, int bufferSize, int nChannels); 25 | 26 | ofImage img; 27 | float verticalPos; 28 | 29 | 30 | sinOscillator oscillators[30]; 31 | 32 | int w, h; 33 | 34 | bool bDoFade; 35 | float speed; 36 | 37 | 38 | 39 | 40 | }; 41 | 42 | #endif 43 | 44 | -------------------------------------------------------------------------------- /week3_imageDrawingAndSound/week3_imageDrawingAndSound.workspace: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | -------------------------------------------------------------------------------- /week3_imageDrawingTool/Project.xcconfig: -------------------------------------------------------------------------------- 1 | //THE PATH TO THE ROOT OF OUR OF PATH RELATIVE TO THIS PROJECT. 2 | //THIS NEEDS TO BE DEFINED BEFORE CoreOF.xcconfig IS INCLUDED 3 | OF_PATH = ../../.. 4 | 5 | //THIS HAS ALL THE HEADER AND LIBS FOR OF CORE 6 | #include "../../../libs/openFrameworksCompiled/project/osx/CoreOF.xcconfig" 7 | 8 | OTHER_LDFLAGS = $(OF_CORE_LIBS) 9 | HEADER_SEARCH_PATHS = $(OF_CORE_HEADERS) 10 | -------------------------------------------------------------------------------- /week3_imageDrawingTool/addons.make: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ofZach/avsys2012/0c02857ba0e9b964e8f1ae364e93b21575fb0889/week3_imageDrawingTool/addons.make -------------------------------------------------------------------------------- /week3_imageDrawingTool/bin/data/.gitkeep: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ofZach/avsys2012/0c02857ba0e9b964e8f1ae364e93b21575fb0889/week3_imageDrawingTool/bin/data/.gitkeep -------------------------------------------------------------------------------- /week3_imageDrawingTool/openFrameworks-Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | English 7 | CFBundleExecutable 8 | ${EXECUTABLE_NAME} 9 | CFBundleIdentifier 10 | com.yourcompany.openFrameworks 11 | CFBundleInfoDictionaryVersion 12 | 6.0 13 | CFBundlePackageType 14 | APPL 15 | CFBundleSignature 16 | ???? 17 | CFBundleVersion 18 | 1.0 19 | 20 | 21 | -------------------------------------------------------------------------------- /week3_imageDrawingTool/src/main.cpp: -------------------------------------------------------------------------------- 1 | #include "ofMain.h" 2 | #include "testApp.h" 3 | #include "ofAppGlutWindow.h" 4 | 5 | //======================================================================== 6 | int main( ){ 7 | 8 | ofAppGlutWindow window; 9 | ofSetupOpenGL(&window, 640, 480, OF_WINDOW); // <-------- setup the GL context 10 | 11 | // this kicks off the running of my app 12 | // can be OF_WINDOW or OF_FULLSCREEN 13 | // pass in width and height too: 14 | ofRunApp( new testApp()); 15 | 16 | } 17 | -------------------------------------------------------------------------------- /week3_imageDrawingTool/src/testApp.h: -------------------------------------------------------------------------------- 1 | #pragma once 2 | 3 | #include "ofMain.h" 4 | 5 | class testApp : public ofBaseApp{ 6 | 7 | public: 8 | void setup(); 9 | void update(); 10 | void draw(); 11 | 12 | void keyPressed (int key); 13 | void keyReleased(int key); 14 | void mouseMoved(int x, int y ); 15 | void mouseDragged(int x, int y, int button); 16 | void mousePressed(int x, int y, int button); 17 | void mouseReleased(int x, int y, int button); 18 | void windowResized(int w, int h); 19 | void dragEvent(ofDragInfo dragInfo); 20 | void gotMessage(ofMessage msg); 21 | 22 | 23 | ofImage img; // create a variable called img of the type ofImage.... 24 | 25 | 26 | 27 | }; 28 | -------------------------------------------------------------------------------- /week3_imageDrawingTool/week3_imageDrawingTool.workspace: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | -------------------------------------------------------------------------------- /week3_imageFunky/Project.xcconfig: -------------------------------------------------------------------------------- 1 | //THE PATH TO THE ROOT OF OUR OF PATH RELATIVE TO THIS PROJECT. 2 | //THIS NEEDS TO BE DEFINED BEFORE CoreOF.xcconfig IS INCLUDED 3 | OF_PATH = ../../.. 4 | 5 | //THIS HAS ALL THE HEADER AND LIBS FOR OF CORE 6 | #include "../../../libs/openFrameworksCompiled/project/osx/CoreOF.xcconfig" 7 | 8 | OTHER_LDFLAGS = $(OF_CORE_LIBS) 9 | HEADER_SEARCH_PATHS = $(OF_CORE_HEADERS) 10 | -------------------------------------------------------------------------------- /week3_imageFunky/addons.make: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ofZach/avsys2012/0c02857ba0e9b964e8f1ae364e93b21575fb0889/week3_imageFunky/addons.make -------------------------------------------------------------------------------- /week3_imageFunky/bin/data/.gitkeep: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ofZach/avsys2012/0c02857ba0e9b964e8f1ae364e93b21575fb0889/week3_imageFunky/bin/data/.gitkeep -------------------------------------------------------------------------------- /week3_imageFunky/openFrameworks-Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | English 7 | CFBundleExecutable 8 | ${EXECUTABLE_NAME} 9 | CFBundleIdentifier 10 | com.yourcompany.openFrameworks 11 | CFBundleInfoDictionaryVersion 12 | 6.0 13 | CFBundlePackageType 14 | APPL 15 | CFBundleSignature 16 | ???? 17 | CFBundleVersion 18 | 1.0 19 | 20 | 21 | -------------------------------------------------------------------------------- /week3_imageFunky/src/main.cpp: -------------------------------------------------------------------------------- 1 | #include "ofMain.h" 2 | #include "testApp.h" 3 | #include "ofAppGlutWindow.h" 4 | 5 | //======================================================================== 6 | int main( ){ 7 | 8 | ofAppGlutWindow window; 9 | ofSetupOpenGL(&window, 640, 480, OF_WINDOW); // <-------- setup the GL context 10 | 11 | // this kicks off the running of my app 12 | // can be OF_WINDOW or OF_FULLSCREEN 13 | // pass in width and height too: 14 | ofRunApp( new testApp()); 15 | 16 | } 17 | -------------------------------------------------------------------------------- /week3_imageFunky/src/testApp.h: -------------------------------------------------------------------------------- 1 | #pragma once 2 | 3 | #include "ofMain.h" 4 | 5 | class testApp : public ofBaseApp{ 6 | 7 | public: 8 | void setup(); 9 | void update(); 10 | void draw(); 11 | 12 | void keyPressed (int key); 13 | void keyReleased(int key); 14 | void mouseMoved(int x, int y ); 15 | void mouseDragged(int x, int y, int button); 16 | void mousePressed(int x, int y, int button); 17 | void mouseReleased(int x, int y, int button); 18 | void windowResized(int w, int h); 19 | void dragEvent(ofDragInfo dragInfo); 20 | void gotMessage(ofMessage msg); 21 | 22 | 23 | ofImage img; // create a variable called img of the type ofImage.... 24 | 25 | 26 | 27 | }; 28 | -------------------------------------------------------------------------------- /week3_imageFunky/week3_imageFunky.workspace: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | -------------------------------------------------------------------------------- /week3_imageGradient/Project.xcconfig: -------------------------------------------------------------------------------- 1 | //THE PATH TO THE ROOT OF OUR OF PATH RELATIVE TO THIS PROJECT. 2 | //THIS NEEDS TO BE DEFINED BEFORE CoreOF.xcconfig IS INCLUDED 3 | OF_PATH = ../../.. 4 | 5 | //THIS HAS ALL THE HEADER AND LIBS FOR OF CORE 6 | #include "../../../libs/openFrameworksCompiled/project/osx/CoreOF.xcconfig" 7 | 8 | OTHER_LDFLAGS = $(OF_CORE_LIBS) 9 | HEADER_SEARCH_PATHS = $(OF_CORE_HEADERS) 10 | -------------------------------------------------------------------------------- /week3_imageGradient/addons.make: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ofZach/avsys2012/0c02857ba0e9b964e8f1ae364e93b21575fb0889/week3_imageGradient/addons.make -------------------------------------------------------------------------------- /week3_imageGradient/bin/data/.gitkeep: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ofZach/avsys2012/0c02857ba0e9b964e8f1ae364e93b21575fb0889/week3_imageGradient/bin/data/.gitkeep -------------------------------------------------------------------------------- /week3_imageGradient/openFrameworks-Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | English 7 | CFBundleExecutable 8 | ${EXECUTABLE_NAME} 9 | CFBundleIdentifier 10 | com.yourcompany.openFrameworks 11 | CFBundleInfoDictionaryVersion 12 | 6.0 13 | CFBundlePackageType 14 | APPL 15 | CFBundleSignature 16 | ???? 17 | CFBundleVersion 18 | 1.0 19 | 20 | 21 | -------------------------------------------------------------------------------- /week3_imageGradient/src/main.cpp: -------------------------------------------------------------------------------- 1 | #include "ofMain.h" 2 | #include "testApp.h" 3 | #include "ofAppGlutWindow.h" 4 | 5 | //======================================================================== 6 | int main( ){ 7 | 8 | ofAppGlutWindow window; 9 | ofSetupOpenGL(&window, 640, 480, OF_WINDOW); // <-------- setup the GL context 10 | 11 | // this kicks off the running of my app 12 | // can be OF_WINDOW or OF_FULLSCREEN 13 | // pass in width and height too: 14 | ofRunApp( new testApp()); 15 | 16 | } 17 | -------------------------------------------------------------------------------- /week3_imageGradient/src/testApp.h: -------------------------------------------------------------------------------- 1 | #pragma once 2 | 3 | #include "ofMain.h" 4 | 5 | class testApp : public ofBaseApp{ 6 | 7 | public: 8 | void setup(); 9 | void update(); 10 | void draw(); 11 | 12 | void keyPressed (int key); 13 | void keyReleased(int key); 14 | void mouseMoved(int x, int y ); 15 | void mouseDragged(int x, int y, int button); 16 | void mousePressed(int x, int y, int button); 17 | void mouseReleased(int x, int y, int button); 18 | void windowResized(int w, int h); 19 | void dragEvent(ofDragInfo dragInfo); 20 | void gotMessage(ofMessage msg); 21 | 22 | 23 | ofImage img; // create a variable called img of the type ofImage.... 24 | 25 | 26 | 27 | }; 28 | -------------------------------------------------------------------------------- /week3_imageGradient/week3_imageGradient.workspace: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | -------------------------------------------------------------------------------- /week4_granularAudioRecord/Project.xcconfig: -------------------------------------------------------------------------------- 1 | //THE PATH TO THE ROOT OF OUR OF PATH RELATIVE TO THIS PROJECT. 2 | //THIS NEEDS TO BE DEFINED BEFORE CoreOF.xcconfig IS INCLUDED 3 | OF_PATH = ../../.. 4 | 5 | //THIS HAS ALL THE HEADER AND LIBS FOR OF CORE 6 | #include "../../../libs/openFrameworksCompiled/project/osx/CoreOF.xcconfig" 7 | 8 | OTHER_LDFLAGS = $(OF_CORE_LIBS) 9 | HEADER_SEARCH_PATHS = $(OF_CORE_HEADERS) 10 | -------------------------------------------------------------------------------- /week4_granularAudioRecord/addons.make: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ofZach/avsys2012/0c02857ba0e9b964e8f1ae364e93b21575fb0889/week4_granularAudioRecord/addons.make -------------------------------------------------------------------------------- /week4_granularAudioRecord/bin/data/.gitkeep: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ofZach/avsys2012/0c02857ba0e9b964e8f1ae364e93b21575fb0889/week4_granularAudioRecord/bin/data/.gitkeep -------------------------------------------------------------------------------- /week4_granularAudioRecord/bin/data/NewMedia Fett.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ofZach/avsys2012/0c02857ba0e9b964e8f1ae364e93b21575fb0889/week4_granularAudioRecord/bin/data/NewMedia Fett.ttf -------------------------------------------------------------------------------- /week4_granularAudioRecord/openFrameworks-Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | English 7 | CFBundleExecutable 8 | ${EXECUTABLE_NAME} 9 | CFBundleIdentifier 10 | com.yourcompany.openFrameworks 11 | CFBundleInfoDictionaryVersion 12 | 6.0 13 | CFBundlePackageType 14 | APPL 15 | CFBundleSignature 16 | ???? 17 | CFBundleVersion 18 | 1.0 19 | 20 | 21 | -------------------------------------------------------------------------------- /week4_granularAudioRecord/src/granularSynthesis/granularGrain.h: -------------------------------------------------------------------------------- 1 | #ifndef _GRANULAR_GRAIN 2 | #define _GRANULAR_GRAIN 3 | 4 | #include "ofMain.h" 5 | #include "granularSamples.h" 6 | 7 | 8 | class granularGrain{ 9 | 10 | public: 11 | 12 | void calcuteGrainSamples(int millis, unsigned long long startSample, float freq, float amplitude); 13 | 14 | bool bAmReadyToBeErased; 15 | unsigned long long firstSample; // the time of the first sample, should be not an int 16 | int lengthInSamples; 17 | float lengthInMillis; 18 | 19 | granularSamples * gsamples; 20 | 21 | float getSampleForPosition(unsigned long long samplePosition); 22 | 23 | vector samples; // this is fairly inneficient. better is preallocated arrays. 24 | 25 | 26 | 27 | }; 28 | 29 | #endif -------------------------------------------------------------------------------- /week4_granularAudioRecord/src/granularSynthesis/granularManager.h: -------------------------------------------------------------------------------- 1 | #ifndef _GRANULAR_MANAGER 2 | #define _GRANULAR_MANAGER 3 | 4 | 5 | #include "ofMain.h" 6 | #include "granularGrain.h" 7 | #include "audioRecorder.h" 8 | #include "granularSamples.h" 9 | 10 | class granularManager{ 11 | 12 | public: 13 | 14 | 15 | granularManager(); 16 | void idle(); 17 | void addToSoundBuffer(float * buffer, int bufferSize); 18 | 19 | unsigned long long sampleCount; 20 | 21 | 22 | granularSamples * samples; 23 | 24 | float grainCount; 25 | 26 | vector < granularGrain > grains; 27 | 28 | // these are params to alter: 29 | 30 | float grainsPerSecond; 31 | float avgFrequency; 32 | float avgFrequencySpread; 33 | float avgGrainLength; 34 | float avgGrainLengthSpread; 35 | float avgVolume; 36 | float avgVolumeSpread; 37 | audioRecorder arGran; 38 | int playbackPos; 39 | 40 | }; 41 | 42 | #endif -------------------------------------------------------------------------------- /week4_granularAudioRecord/src/granularSynthesis/granularSamples.h: -------------------------------------------------------------------------------- 1 | #ifndef _GRANULAR_SAMPLES 2 | #define _GRANULAR_SAMPLES 3 | 4 | #include "ofMain.h" 5 | 6 | 7 | class granularSamples{ 8 | 9 | public: 10 | 11 | float * samples; 12 | int nSamples; 13 | float pct; 14 | float pctOffset; 15 | 16 | 17 | }; 18 | 19 | #endif -------------------------------------------------------------------------------- /week4_granularAudioRecord/src/main.cpp: -------------------------------------------------------------------------------- 1 | #include "ofMain.h" 2 | #include "testApp.h" 3 | 4 | //======================================================================== 5 | int main( ){ 6 | 7 | ofSetupOpenGL(1024,768, OF_WINDOW); // <-------- setup the GL context 8 | 9 | // this kicks off the running of my app 10 | // can be OF_WINDOW or OF_FULLSCREEN 11 | // pass in width and height too: 12 | 13 | ofRunApp(new testApp()); 14 | 15 | } 16 | -------------------------------------------------------------------------------- /week4_granularAudioRecord/week4_granularAudioRecord.workspace: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | -------------------------------------------------------------------------------- /week4_granularBasics/Project.xcconfig: -------------------------------------------------------------------------------- 1 | //THE PATH TO THE ROOT OF OUR OF PATH RELATIVE TO THIS PROJECT. 2 | //THIS NEEDS TO BE DEFINED BEFORE CoreOF.xcconfig IS INCLUDED 3 | OF_PATH = ../../.. 4 | 5 | //THIS HAS ALL THE HEADER AND LIBS FOR OF CORE 6 | #include "../../../libs/openFrameworksCompiled/project/osx/CoreOF.xcconfig" 7 | 8 | OTHER_LDFLAGS = $(OF_CORE_LIBS) 9 | HEADER_SEARCH_PATHS = $(OF_CORE_HEADERS) 10 | -------------------------------------------------------------------------------- /week4_granularBasics/addons.make: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ofZach/avsys2012/0c02857ba0e9b964e8f1ae364e93b21575fb0889/week4_granularBasics/addons.make -------------------------------------------------------------------------------- /week4_granularBasics/bin/data/.gitkeep: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ofZach/avsys2012/0c02857ba0e9b964e8f1ae364e93b21575fb0889/week4_granularBasics/bin/data/.gitkeep -------------------------------------------------------------------------------- /week4_granularBasics/openFrameworks-Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | English 7 | CFBundleExecutable 8 | ${EXECUTABLE_NAME} 9 | CFBundleIdentifier 10 | com.yourcompany.openFrameworks 11 | CFBundleInfoDictionaryVersion 12 | 6.0 13 | CFBundlePackageType 14 | APPL 15 | CFBundleSignature 16 | ???? 17 | CFBundleVersion 18 | 1.0 19 | 20 | 21 | -------------------------------------------------------------------------------- /week4_granularBasics/src/granularSynthesis/granularGrain.h: -------------------------------------------------------------------------------- 1 | #ifndef _GRANULAR_GRAIN 2 | #define _GRANULAR_GRAIN 3 | 4 | #include "ofMain.h" 5 | 6 | 7 | 8 | class granularGrain{ 9 | 10 | public: 11 | 12 | void calcuteGrainSamples(int millis, unsigned long long startSample, float freq, float amplitude); 13 | 14 | bool bAmReadyToBeErased; 15 | unsigned long long firstSample; // the time of the first sample, should be not an int 16 | int lengthInSamples; 17 | float lengthInMillis; 18 | 19 | 20 | float getSampleForPosition(unsigned long long samplePosition); 21 | 22 | //float data[100]; 23 | 24 | 25 | // STL 26 | 27 | 28 | vector samples; // this is fairly inneficient. better is preallocated arrays. 29 | 30 | 31 | }; 32 | 33 | #endif -------------------------------------------------------------------------------- /week4_granularBasics/src/granularSynthesis/granularManager.h: -------------------------------------------------------------------------------- 1 | #ifndef _GRANULAR_MANAGER 2 | #define _GRANULAR_MANAGER 3 | 4 | 5 | #include "ofMain.h" 6 | #include "granularGrain.h" 7 | 8 | 9 | class granularManager{ 10 | 11 | public: 12 | 13 | 14 | granularManager(); 15 | void idle(); 16 | void addToSoundBuffer(float * buffer, int bufferSize); 17 | 18 | unsigned long long sampleCount; 19 | float grainsPerSecond; 20 | float grainCount; 21 | 22 | vector < granularGrain > grains; 23 | 24 | }; 25 | 26 | #endif -------------------------------------------------------------------------------- /week4_granularBasics/src/main.cpp: -------------------------------------------------------------------------------- 1 | #include "ofMain.h" 2 | #include "testApp.h" 3 | 4 | //======================================================================== 5 | int main( ){ 6 | 7 | ofSetupOpenGL(1024,768, OF_WINDOW); // <-------- setup the GL context 8 | 9 | // this kicks off the running of my app 10 | // can be OF_WINDOW or OF_FULLSCREEN 11 | // pass in width and height too: 12 | 13 | ofRunApp(new testApp()); 14 | 15 | } 16 | -------------------------------------------------------------------------------- /week4_granularBasics/src/testApp.h: -------------------------------------------------------------------------------- 1 | #ifndef _TEST_APP 2 | #define _TEST_APP 3 | 4 | 5 | #include "ofMain.h" 6 | #include "granularManager.h" 7 | 8 | class testApp : public ofSimpleApp{ 9 | 10 | public: 11 | 12 | 13 | void setup(); 14 | void update(); 15 | void draw(); 16 | 17 | void keyPressed (int key); 18 | void keyReleased(int key); 19 | void mouseMoved(int x, int y ); 20 | void mouseDragged(int x, int y, int button); 21 | void mousePressed(int x, int y, int button); 22 | void mouseReleased(); 23 | 24 | void audioRequested(float * input, int bufferSize, int nChannels); 25 | 26 | granularManager GM; 27 | 28 | float * audioData; 29 | }; 30 | 31 | #endif -------------------------------------------------------------------------------- /week4_granularBasics/week4_granularBasics.workspace: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | -------------------------------------------------------------------------------- /week4_granularParams/Project.xcconfig: -------------------------------------------------------------------------------- 1 | //THE PATH TO THE ROOT OF OUR OF PATH RELATIVE TO THIS PROJECT. 2 | //THIS NEEDS TO BE DEFINED BEFORE CoreOF.xcconfig IS INCLUDED 3 | OF_PATH = ../../.. 4 | 5 | //THIS HAS ALL THE HEADER AND LIBS FOR OF CORE 6 | #include "../../../libs/openFrameworksCompiled/project/osx/CoreOF.xcconfig" 7 | 8 | OTHER_LDFLAGS = $(OF_CORE_LIBS) 9 | HEADER_SEARCH_PATHS = $(OF_CORE_HEADERS) 10 | -------------------------------------------------------------------------------- /week4_granularParams/addons.make: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ofZach/avsys2012/0c02857ba0e9b964e8f1ae364e93b21575fb0889/week4_granularParams/addons.make -------------------------------------------------------------------------------- /week4_granularParams/bin/data/.gitkeep: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ofZach/avsys2012/0c02857ba0e9b964e8f1ae364e93b21575fb0889/week4_granularParams/bin/data/.gitkeep -------------------------------------------------------------------------------- /week4_granularParams/openFrameworks-Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | English 7 | CFBundleExecutable 8 | ${EXECUTABLE_NAME} 9 | CFBundleIdentifier 10 | com.yourcompany.openFrameworks 11 | CFBundleInfoDictionaryVersion 12 | 6.0 13 | CFBundlePackageType 14 | APPL 15 | CFBundleSignature 16 | ???? 17 | CFBundleVersion 18 | 1.0 19 | 20 | 21 | -------------------------------------------------------------------------------- /week4_granularParams/src/granularSynthesis/granularGrain.h: -------------------------------------------------------------------------------- 1 | #ifndef _GRANULAR_GRAIN 2 | #define _GRANULAR_GRAIN 3 | 4 | #include "ofMain.h" 5 | 6 | 7 | 8 | class granularGrain{ 9 | 10 | public: 11 | 12 | void calcuteGrainSamples(int millis, unsigned long long startSample, float freq, float amplitude); 13 | 14 | bool bAmReadyToBeErased; 15 | unsigned long long firstSample; // the time of the first sample, should be not an int 16 | int lengthInSamples; 17 | float lengthInMillis; 18 | 19 | 20 | float getSampleForPosition(unsigned long long samplePosition); 21 | 22 | vector samples; // this is fairly inneficient. better is preallocated arrays. 23 | 24 | 25 | }; 26 | 27 | #endif -------------------------------------------------------------------------------- /week4_granularParams/src/granularSynthesis/granularManager.h: -------------------------------------------------------------------------------- 1 | #ifndef _GRANULAR_MANAGER 2 | #define _GRANULAR_MANAGER 3 | 4 | 5 | #include "ofMain.h" 6 | #include "granularGrain.h" 7 | 8 | 9 | class granularManager{ 10 | 11 | public: 12 | 13 | 14 | granularManager(); 15 | void idle(); 16 | void addToSoundBuffer(float * buffer, int bufferSize); 17 | 18 | unsigned long long sampleCount; 19 | 20 | float grainCount; 21 | 22 | vector < granularGrain > grains; 23 | 24 | // these are params to alter: 25 | 26 | float grainsPerSecond; 27 | float avgFrequency; 28 | float avgFrequencySpread; 29 | float avgGrainLength; 30 | float avgGrainLengthSpread; 31 | float avgVolume; 32 | float avgVolumeSpread; 33 | 34 | 35 | }; 36 | 37 | #endif -------------------------------------------------------------------------------- /week4_granularParams/src/main.cpp: -------------------------------------------------------------------------------- 1 | #include "ofMain.h" 2 | #include "testApp.h" 3 | 4 | //======================================================================== 5 | int main( ){ 6 | 7 | ofSetupOpenGL(1024,768, OF_WINDOW); // <-------- setup the GL context 8 | 9 | // this kicks off the running of my app 10 | // can be OF_WINDOW or OF_FULLSCREEN 11 | // pass in width and height too: 12 | 13 | ofRunApp(new testApp()); 14 | 15 | } 16 | -------------------------------------------------------------------------------- /week4_granularParams/src/testApp.h: -------------------------------------------------------------------------------- 1 | #ifndef _TEST_APP 2 | #define _TEST_APP 3 | 4 | 5 | #include "ofMain.h" 6 | #include "granularManager.h" 7 | 8 | class testApp : public ofSimpleApp{ 9 | 10 | public: 11 | 12 | 13 | void setup(); 14 | void update(); 15 | void draw(); 16 | 17 | void keyPressed (int key); 18 | void keyReleased(int key); 19 | void mouseMoved(int x, int y ); 20 | void mouseDragged(int x, int y, int button); 21 | void mousePressed(int x, int y, int button); 22 | void mouseReleased(); 23 | 24 | void audioRequested(float * input, int bufferSize, int nChannels); 25 | 26 | granularManager GM; 27 | 28 | float * audioData; 29 | }; 30 | 31 | #endif -------------------------------------------------------------------------------- /week4_granularParams/week4_granularParams.workspace: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | -------------------------------------------------------------------------------- /week4_granularUI/Project.xcconfig: -------------------------------------------------------------------------------- 1 | //THE PATH TO THE ROOT OF OUR OF PATH RELATIVE TO THIS PROJECT. 2 | //THIS NEEDS TO BE DEFINED BEFORE CoreOF.xcconfig IS INCLUDED 3 | OF_PATH = ../../.. 4 | 5 | //THIS HAS ALL THE HEADER AND LIBS FOR OF CORE 6 | #include "../../../libs/openFrameworksCompiled/project/osx/CoreOF.xcconfig" 7 | 8 | OTHER_LDFLAGS = $(OF_CORE_LIBS) 9 | HEADER_SEARCH_PATHS = $(OF_CORE_HEADERS) 10 | -------------------------------------------------------------------------------- /week4_granularUI/addons.make: -------------------------------------------------------------------------------- 1 | ofxUI 2 | -------------------------------------------------------------------------------- /week4_granularUI/bin/data/.gitkeep: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ofZach/avsys2012/0c02857ba0e9b964e8f1ae364e93b21575fb0889/week4_granularUI/bin/data/.gitkeep -------------------------------------------------------------------------------- /week4_granularUI/bin/data/GUI/NewMedia Fett.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ofZach/avsys2012/0c02857ba0e9b964e8f1ae364e93b21575fb0889/week4_granularUI/bin/data/GUI/NewMedia Fett.ttf -------------------------------------------------------------------------------- /week4_granularUI/openFrameworks-Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | English 7 | CFBundleExecutable 8 | ${EXECUTABLE_NAME} 9 | CFBundleIdentifier 10 | com.yourcompany.openFrameworks 11 | CFBundleInfoDictionaryVersion 12 | 6.0 13 | CFBundlePackageType 14 | APPL 15 | CFBundleSignature 16 | ???? 17 | CFBundleVersion 18 | 1.0 19 | 20 | 21 | -------------------------------------------------------------------------------- /week4_granularUI/src/granularSynthesis/granularGrain.h: -------------------------------------------------------------------------------- 1 | #ifndef _GRANULAR_GRAIN 2 | #define _GRANULAR_GRAIN 3 | 4 | #include "ofMain.h" 5 | 6 | 7 | 8 | class granularGrain{ 9 | 10 | public: 11 | 12 | void calcuteGrainSamples(int millis, unsigned long long startSample, float freq, float amplitude); 13 | 14 | bool bAmReadyToBeErased; 15 | unsigned long long firstSample; // the time of the first sample, should be not an int 16 | int lengthInSamples; 17 | float lengthInMillis; 18 | 19 | 20 | float getSampleForPosition(unsigned long long samplePosition); 21 | 22 | vector samples; // this is fairly inneficient. better is preallocated arrays. 23 | 24 | 25 | }; 26 | 27 | #endif -------------------------------------------------------------------------------- /week4_granularUI/src/granularSynthesis/granularManager.h: -------------------------------------------------------------------------------- 1 | #ifndef _GRANULAR_MANAGER 2 | #define _GRANULAR_MANAGER 3 | 4 | 5 | #include "ofMain.h" 6 | #include "granularGrain.h" 7 | 8 | 9 | class granularManager{ 10 | 11 | public: 12 | 13 | 14 | granularManager(); 15 | void idle(); 16 | void addToSoundBuffer(float * buffer, int bufferSize); 17 | 18 | unsigned long long sampleCount; 19 | 20 | float grainCount; 21 | 22 | vector < granularGrain > grains; 23 | 24 | // these are params to alter: 25 | 26 | float grainsPerSecond; 27 | float avgFrequency; 28 | float avgFrequencySpread; 29 | float avgGrainLength; 30 | float avgGrainLengthSpread; 31 | float avgVolume; 32 | float avgVolumeSpread; 33 | 34 | 35 | }; 36 | 37 | #endif -------------------------------------------------------------------------------- /week4_granularUI/src/main.cpp: -------------------------------------------------------------------------------- 1 | #include "ofMain.h" 2 | #include "testApp.h" 3 | 4 | //======================================================================== 5 | int main( ){ 6 | 7 | ofSetupOpenGL(1024,768, OF_WINDOW); // <-------- setup the GL context 8 | 9 | // this kicks off the running of my app 10 | // can be OF_WINDOW or OF_FULLSCREEN 11 | // pass in width and height too: 12 | 13 | ofRunApp(new testApp()); 14 | 15 | } 16 | -------------------------------------------------------------------------------- /week4_granularUI/src/testApp.h: -------------------------------------------------------------------------------- 1 | #ifndef _TEST_APP 2 | #define _TEST_APP 3 | 4 | 5 | 6 | #include "ofMain.h" 7 | #include "granularManager.h" 8 | #include "ofxUI.h" 9 | 10 | 11 | class testApp : public ofSimpleApp{ 12 | 13 | public: 14 | 15 | 16 | void setup(); 17 | void update(); 18 | void draw(); 19 | 20 | void keyPressed (int key); 21 | void keyReleased(int key); 22 | void mouseMoved(int x, int y ); 23 | void mouseDragged(int x, int y, int button); 24 | void mousePressed(int x, int y, int button); 25 | void mouseReleased(); 26 | 27 | void audioRequested(float * input, int bufferSize, int nChannels); 28 | 29 | granularManager GM; 30 | 31 | float * audioData; 32 | 33 | ofxUICanvas *gui; 34 | void guiEvent(ofxUIEventArgs &e); 35 | bool drawFill; 36 | float red, green, blue, alpha; 37 | 38 | }; 39 | 40 | #endif -------------------------------------------------------------------------------- /week4_granularUI/week4_granularUI.workspace: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | -------------------------------------------------------------------------------- /week5_audioRMSandZeroCrossingPitch/Project.xcconfig: -------------------------------------------------------------------------------- 1 | //THE PATH TO THE ROOT OF OUR OF PATH RELATIVE TO THIS PROJECT. 2 | //THIS NEEDS TO BE DEFINED BEFORE CoreOF.xcconfig IS INCLUDED 3 | OF_PATH = ../../.. 4 | 5 | //THIS HAS ALL THE HEADER AND LIBS FOR OF CORE 6 | #include "../../../libs/openFrameworksCompiled/project/osx/CoreOF.xcconfig" 7 | 8 | OTHER_LDFLAGS = $(OF_CORE_LIBS) 9 | HEADER_SEARCH_PATHS = $(OF_CORE_HEADERS) 10 | -------------------------------------------------------------------------------- /week5_audioRMSandZeroCrossingPitch/addons.make: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ofZach/avsys2012/0c02857ba0e9b964e8f1ae364e93b21575fb0889/week5_audioRMSandZeroCrossingPitch/addons.make -------------------------------------------------------------------------------- /week5_audioRMSandZeroCrossingPitch/bin/data/.gitkeep: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ofZach/avsys2012/0c02857ba0e9b964e8f1ae364e93b21575fb0889/week5_audioRMSandZeroCrossingPitch/bin/data/.gitkeep -------------------------------------------------------------------------------- /week5_audioRMSandZeroCrossingPitch/openFrameworks-Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | English 7 | CFBundleExecutable 8 | ${EXECUTABLE_NAME} 9 | CFBundleIdentifier 10 | com.yourcompany.openFrameworks 11 | CFBundleInfoDictionaryVersion 12 | 6.0 13 | CFBundlePackageType 14 | APPL 15 | CFBundleSignature 16 | ???? 17 | CFBundleVersion 18 | 1.0 19 | 20 | 21 | -------------------------------------------------------------------------------- /week5_audioRMSandZeroCrossingPitch/src/main.cpp: -------------------------------------------------------------------------------- 1 | #include "ofMain.h" 2 | #include "testApp.h" 3 | #include "ofAppGlutWindow.h" 4 | 5 | //======================================================================== 6 | int main( ){ 7 | 8 | ofAppGlutWindow window; 9 | ofSetupOpenGL(&window, 1024,768, OF_WINDOW); // <-------- setup the GL context 10 | 11 | // this kicks off the running of my app 12 | // can be OF_WINDOW or OF_FULLSCREEN 13 | // pass in width and height too: 14 | ofRunApp( new testApp()); 15 | 16 | } 17 | -------------------------------------------------------------------------------- /week5_audioRMSandZeroCrossingPitch/week5_audioRMSandZeroCrossingPitch.workspace: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | -------------------------------------------------------------------------------- /week5_oscDebug/Project.xcconfig: -------------------------------------------------------------------------------- 1 | //THE PATH TO THE ROOT OF OUR OF PATH RELATIVE TO THIS PROJECT. 2 | //THIS NEEDS TO BE DEFINED BEFORE CoreOF.xcconfig IS INCLUDED 3 | OF_PATH = ../../.. 4 | 5 | //THIS HAS ALL THE HEADER AND LIBS FOR OF CORE 6 | #include "../../../libs/openFrameworksCompiled/project/osx/CoreOF.xcconfig" 7 | 8 | OTHER_LDFLAGS = $(OF_CORE_LIBS) 9 | HEADER_SEARCH_PATHS = $(OF_CORE_HEADERS) 10 | -------------------------------------------------------------------------------- /week5_oscDebug/addons.make: -------------------------------------------------------------------------------- 1 | ofxOsc 2 | -------------------------------------------------------------------------------- /week5_oscDebug/bin/data/.gitkeep: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ofZach/avsys2012/0c02857ba0e9b964e8f1ae364e93b21575fb0889/week5_oscDebug/bin/data/.gitkeep -------------------------------------------------------------------------------- /week5_oscDebug/openFrameworks-Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | English 7 | CFBundleExecutable 8 | ${EXECUTABLE_NAME} 9 | CFBundleIdentifier 10 | com.yourcompany.openFrameworks 11 | CFBundleInfoDictionaryVersion 12 | 6.0 13 | CFBundlePackageType 14 | APPL 15 | CFBundleSignature 16 | ???? 17 | CFBundleVersion 18 | 1.0 19 | 20 | 21 | -------------------------------------------------------------------------------- /week5_oscDebug/src/main.cpp: -------------------------------------------------------------------------------- 1 | #include "ofMain.h" 2 | #include "testApp.h" 3 | #include "ofAppGlutWindow.h" 4 | 5 | //======================================================================== 6 | int main( ){ 7 | 8 | ofAppGlutWindow window; 9 | ofSetupOpenGL(&window, 1024,768, OF_WINDOW); // <-------- setup the GL context 10 | 11 | // this kicks off the running of my app 12 | // can be OF_WINDOW or OF_FULLSCREEN 13 | // pass in width and height too: 14 | ofRunApp( new testApp()); 15 | 16 | } 17 | -------------------------------------------------------------------------------- /week5_oscDebug/src/testApp.h: -------------------------------------------------------------------------------- 1 | #pragma once 2 | 3 | #include "ofMain.h" 4 | #include "ofxOsc.h" 5 | 6 | 7 | class testApp : public ofBaseApp{ 8 | 9 | public: 10 | void setup(); 11 | void update(); 12 | void draw(); 13 | 14 | void keyPressed (int key); 15 | void keyReleased(int key); 16 | void mouseMoved(int x, int y ); 17 | void mouseDragged(int x, int y, int button); 18 | void mousePressed(int x, int y, int button); 19 | void mouseReleased(int x, int y, int button); 20 | void windowResized(int w, int h); 21 | void dragEvent(ofDragInfo dragInfo); 22 | void gotMessage(ofMessage msg); 23 | 24 | 25 | ofxOscReceiver recvr; 26 | 27 | 28 | }; 29 | -------------------------------------------------------------------------------- /week5_oscDebug/week5_oscDebug.workspace: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | -------------------------------------------------------------------------------- /week5_oscExample/Project.xcconfig: -------------------------------------------------------------------------------- 1 | //THE PATH TO THE ROOT OF OUR OF PATH RELATIVE TO THIS PROJECT. 2 | //THIS NEEDS TO BE DEFINED BEFORE CoreOF.xcconfig IS INCLUDED 3 | OF_PATH = ../../.. 4 | 5 | //THIS HAS ALL THE HEADER AND LIBS FOR OF CORE 6 | #include "../../../libs/openFrameworksCompiled/project/osx/CoreOF.xcconfig" 7 | 8 | OTHER_LDFLAGS = $(OF_CORE_LIBS) 9 | HEADER_SEARCH_PATHS = $(OF_CORE_HEADERS) 10 | -------------------------------------------------------------------------------- /week5_oscExample/addons.make: -------------------------------------------------------------------------------- 1 | ofxOsc 2 | -------------------------------------------------------------------------------- /week5_oscExample/bin/data/.gitkeep: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ofZach/avsys2012/0c02857ba0e9b964e8f1ae364e93b21575fb0889/week5_oscExample/bin/data/.gitkeep -------------------------------------------------------------------------------- /week5_oscExample/chuck.txt: -------------------------------------------------------------------------------- 1 | SinOsc osc; // => dac; 2 | JCRev r; 3 | r => dac; 4 | .03 => r.mix; 5 | // set the Osc’s frequency to 60.0 hz 6 | 7 | 8 | // create our OSC receiver 9 | OscRecv recv; 10 | // use port 6449 11 | 4567 => recv.port; 12 | // start listening (launch thread) 13 | recv.listen(); 14 | 15 | // create an address in the receiver, store in new variable 16 | recv.event( "/playtone, f" ) @=> OscEvent oe; 17 | 18 | // infinite event loop 19 | while ( true ) 20 | { 21 | // wait for event to arrive 22 | oe => now; 23 | 24 | // grab the next message from the queue. 25 | while ( oe.nextMsg() != 0 ) 26 | { 27 | float temp; 28 | // getFloat fetches the expected float (as indicated by "f") 29 | oe.getFloat() => temp; 30 | // set play pointer to beginning 31 | temp => osc.freq; 32 | osc => r; 33 | 100::ms => now; 34 | osc =< r; 35 | } 36 | } 37 | 38 | 39 | 40 | 41 | 42 | -------------------------------------------------------------------------------- /week5_oscExample/openFrameworks-Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | English 7 | CFBundleExecutable 8 | ${EXECUTABLE_NAME} 9 | CFBundleIdentifier 10 | com.yourcompany.openFrameworks 11 | CFBundleInfoDictionaryVersion 12 | 6.0 13 | CFBundlePackageType 14 | APPL 15 | CFBundleSignature 16 | ???? 17 | CFBundleVersion 18 | 1.0 19 | 20 | 21 | -------------------------------------------------------------------------------- /week5_oscExample/src/main.cpp: -------------------------------------------------------------------------------- 1 | #include "ofMain.h" 2 | #include "testApp.h" 3 | #include "ofAppGlutWindow.h" 4 | 5 | //======================================================================== 6 | int main( ){ 7 | 8 | ofAppGlutWindow window; 9 | ofSetupOpenGL(&window, 1024,768, OF_WINDOW); // <-------- setup the GL context 10 | 11 | // this kicks off the running of my app 12 | // can be OF_WINDOW or OF_FULLSCREEN 13 | // pass in width and height too: 14 | ofRunApp( new testApp()); 15 | 16 | } 17 | -------------------------------------------------------------------------------- /week5_oscExample/src/testApp.h: -------------------------------------------------------------------------------- 1 | #pragma once 2 | 3 | #include "ofMain.h" 4 | #include "ofxOsc.h" 5 | 6 | class testApp : public ofBaseApp{ 7 | 8 | public: 9 | void setup(); 10 | void update(); 11 | void draw(); 12 | 13 | void keyPressed (int key); 14 | void keyReleased(int key); 15 | void mouseMoved(int x, int y ); 16 | void mouseDragged(int x, int y, int button); 17 | void mousePressed(int x, int y, int button); 18 | void mouseReleased(int x, int y, int button); 19 | void windowResized(int w, int h); 20 | void dragEvent(ofDragInfo dragInfo); 21 | void gotMessage(ofMessage msg); 22 | 23 | 24 | ofxOscSender sender; 25 | 26 | ofPoint bouncingBallPos; 27 | ofPoint bouncingBallVel; 28 | 29 | 30 | }; 31 | -------------------------------------------------------------------------------- /week5_oscExample/week5_oscExample.workspace: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | -------------------------------------------------------------------------------- /week5_simpleAudio/Project.xcconfig: -------------------------------------------------------------------------------- 1 | //THE PATH TO THE ROOT OF OUR OF PATH RELATIVE TO THIS PROJECT. 2 | //THIS NEEDS TO BE DEFINED BEFORE CoreOF.xcconfig IS INCLUDED 3 | OF_PATH = ../../.. 4 | 5 | //THIS HAS ALL THE HEADER AND LIBS FOR OF CORE 6 | #include "../../../libs/openFrameworksCompiled/project/osx/CoreOF.xcconfig" 7 | 8 | OTHER_LDFLAGS = $(OF_CORE_LIBS) 9 | HEADER_SEARCH_PATHS = $(OF_CORE_HEADERS) 10 | -------------------------------------------------------------------------------- /week5_simpleAudio/addons.make: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ofZach/avsys2012/0c02857ba0e9b964e8f1ae364e93b21575fb0889/week5_simpleAudio/addons.make -------------------------------------------------------------------------------- /week5_simpleAudio/bin/data/.gitkeep: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ofZach/avsys2012/0c02857ba0e9b964e8f1ae364e93b21575fb0889/week5_simpleAudio/bin/data/.gitkeep -------------------------------------------------------------------------------- /week5_simpleAudio/openFrameworks-Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | English 7 | CFBundleExecutable 8 | ${EXECUTABLE_NAME} 9 | CFBundleIdentifier 10 | com.yourcompany.openFrameworks 11 | CFBundleInfoDictionaryVersion 12 | 6.0 13 | CFBundlePackageType 14 | APPL 15 | CFBundleSignature 16 | ???? 17 | CFBundleVersion 18 | 1.0 19 | 20 | 21 | -------------------------------------------------------------------------------- /week5_simpleAudio/src/main.cpp: -------------------------------------------------------------------------------- 1 | #include "ofMain.h" 2 | #include "testApp.h" 3 | #include "ofAppGlutWindow.h" 4 | 5 | //======================================================================== 6 | int main( ){ 7 | 8 | ofAppGlutWindow window; 9 | ofSetupOpenGL(&window, 1024,768, OF_WINDOW); // <-------- setup the GL context 10 | 11 | // this kicks off the running of my app 12 | // can be OF_WINDOW or OF_FULLSCREEN 13 | // pass in width and height too: 14 | ofRunApp( new testApp()); 15 | 16 | } 17 | -------------------------------------------------------------------------------- /week5_simpleAudio/src/testApp.h: -------------------------------------------------------------------------------- 1 | #pragma once 2 | 3 | #include "ofMain.h" 4 | 5 | class testApp : public ofBaseApp{ 6 | 7 | public: 8 | void setup(); 9 | void update(); 10 | void draw(); 11 | 12 | void keyPressed (int key); 13 | void keyReleased(int key); 14 | void mouseMoved(int x, int y ); 15 | void mouseDragged(int x, int y, int button); 16 | void mousePressed(int x, int y, int button); 17 | void mouseReleased(int x, int y, int button); 18 | void windowResized(int w, int h); 19 | void dragEvent(ofDragInfo dragInfo); 20 | void gotMessage(ofMessage msg); 21 | 22 | void audioIn(float * input, int bufferSize, int nChannels); 23 | 24 | ofSoundStream soundStream; 25 | 26 | }; 27 | -------------------------------------------------------------------------------- /week5_simpleAudio/week5_simpleAudio.workspace: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | -------------------------------------------------------------------------------- /week5_xeno/Project.xcconfig: -------------------------------------------------------------------------------- 1 | //THE PATH TO THE ROOT OF OUR OF PATH RELATIVE TO THIS PROJECT. 2 | //THIS NEEDS TO BE DEFINED BEFORE CoreOF.xcconfig IS INCLUDED 3 | OF_PATH = ../../.. 4 | 5 | //THIS HAS ALL THE HEADER AND LIBS FOR OF CORE 6 | #include "../../../libs/openFrameworksCompiled/project/osx/CoreOF.xcconfig" 7 | 8 | OTHER_LDFLAGS = $(OF_CORE_LIBS) 9 | HEADER_SEARCH_PATHS = $(OF_CORE_HEADERS) 10 | -------------------------------------------------------------------------------- /week5_xeno/addons.make: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ofZach/avsys2012/0c02857ba0e9b964e8f1ae364e93b21575fb0889/week5_xeno/addons.make -------------------------------------------------------------------------------- /week5_xeno/bin/data/.gitkeep: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ofZach/avsys2012/0c02857ba0e9b964e8f1ae364e93b21575fb0889/week5_xeno/bin/data/.gitkeep -------------------------------------------------------------------------------- /week5_xeno/openFrameworks-Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | English 7 | CFBundleExecutable 8 | ${EXECUTABLE_NAME} 9 | CFBundleIdentifier 10 | com.yourcompany.openFrameworks 11 | CFBundleInfoDictionaryVersion 12 | 6.0 13 | CFBundlePackageType 14 | APPL 15 | CFBundleSignature 16 | ???? 17 | CFBundleVersion 18 | 1.0 19 | 20 | 21 | -------------------------------------------------------------------------------- /week5_xeno/src/main.cpp: -------------------------------------------------------------------------------- 1 | #include "ofMain.h" 2 | #include "testApp.h" 3 | #include "ofAppGlutWindow.h" 4 | 5 | //======================================================================== 6 | int main( ){ 7 | 8 | ofAppGlutWindow window; 9 | ofSetupOpenGL(&window, 1024,768, OF_WINDOW); // <-------- setup the GL context 10 | 11 | // this kicks off the running of my app 12 | // can be OF_WINDOW or OF_FULLSCREEN 13 | // pass in width and height too: 14 | ofRunApp( new testApp()); 15 | 16 | } 17 | -------------------------------------------------------------------------------- /week5_xeno/src/testApp.h: -------------------------------------------------------------------------------- 1 | #pragma once 2 | 3 | #include "ofMain.h" 4 | 5 | class testApp : public ofBaseApp{ 6 | 7 | public: 8 | void setup(); 9 | void update(); 10 | void draw(); 11 | 12 | void keyPressed (int key); 13 | void keyReleased(int key); 14 | void mouseMoved(int x, int y ); 15 | void mouseDragged(int x, int y, int button); 16 | void mousePressed(int x, int y, int button); 17 | void mouseReleased(int x, int y, int button); 18 | void windowResized(int w, int h); 19 | void dragEvent(ofDragInfo dragInfo); 20 | void gotMessage(ofMessage msg); 21 | 22 | ofPoint pos; 23 | 24 | 25 | }; 26 | -------------------------------------------------------------------------------- /week5_xeno/week5_xeno.workspace: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | -------------------------------------------------------------------------------- /week6_autoCorrelation/Project.xcconfig: -------------------------------------------------------------------------------- 1 | //THE PATH TO THE ROOT OF OUR OF PATH RELATIVE TO THIS PROJECT. 2 | //THIS NEEDS TO BE DEFINED BEFORE CoreOF.xcconfig IS INCLUDED 3 | OF_PATH = ../../.. 4 | 5 | //THIS HAS ALL THE HEADER AND LIBS FOR OF CORE 6 | #include "../../../libs/openFrameworksCompiled/project/osx/CoreOF.xcconfig" 7 | 8 | OTHER_LDFLAGS = $(OF_CORE_LIBS) 9 | HEADER_SEARCH_PATHS = $(OF_CORE_HEADERS) 10 | -------------------------------------------------------------------------------- /week6_autoCorrelation/addons.make: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ofZach/avsys2012/0c02857ba0e9b964e8f1ae364e93b21575fb0889/week6_autoCorrelation/addons.make -------------------------------------------------------------------------------- /week6_autoCorrelation/bin/data/.gitkeep: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ofZach/avsys2012/0c02857ba0e9b964e8f1ae364e93b21575fb0889/week6_autoCorrelation/bin/data/.gitkeep -------------------------------------------------------------------------------- /week6_autoCorrelation/openFrameworks-Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | English 7 | CFBundleExecutable 8 | ${EXECUTABLE_NAME} 9 | CFBundleIdentifier 10 | com.yourcompany.openFrameworks 11 | CFBundleInfoDictionaryVersion 12 | 6.0 13 | CFBundlePackageType 14 | APPL 15 | CFBundleSignature 16 | ???? 17 | CFBundleVersion 18 | 1.0 19 | 20 | 21 | -------------------------------------------------------------------------------- /week6_autoCorrelation/src/main.cpp: -------------------------------------------------------------------------------- 1 | #include "ofMain.h" 2 | #include "testApp.h" 3 | 4 | //======================================================================== 5 | int main( ){ 6 | 7 | ofSetupOpenGL(1024,768, OF_WINDOW); // <-------- setup the GL context 8 | 9 | // this kicks off the running of my app 10 | // can be OF_WINDOW or OF_FULLSCREEN 11 | // pass in width and height too: 12 | 13 | ofRunApp(new testApp()); 14 | 15 | } 16 | -------------------------------------------------------------------------------- /week6_autoCorrelation/src/testApp.h: -------------------------------------------------------------------------------- 1 | #ifndef _TEST_APP 2 | #define _TEST_APP 3 | 4 | 5 | #include "ofMain.h" 6 | 7 | 8 | class testApp : public ofSimpleApp{ 9 | 10 | public: 11 | 12 | void setup(); 13 | void update(){}; 14 | void draw(); 15 | 16 | void keyPressed(int key); 17 | void keyReleased(int key); 18 | void mouseMoved(int x, int y ); 19 | void mouseDragged(int x, int y, int button); 20 | void mousePressed(int x, int y, int button); 21 | void mouseReleased(); 22 | 23 | void audioReceived (float * input, int bufferSize, int nChannels); 24 | 25 | float * left; 26 | float * right; 27 | 28 | float * autoCorrelation; 29 | 30 | bool bNormalize; 31 | 32 | void doAutoCorrelation(); 33 | 34 | 35 | int bufferCounter; 36 | int drawCounter; 37 | }; 38 | 39 | #endif 40 | 41 | -------------------------------------------------------------------------------- /week6_autoCorrelation/week6_autoCorrelation.workspace: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | -------------------------------------------------------------------------------- /week6_fftExample/Project.xcconfig: -------------------------------------------------------------------------------- 1 | //THE PATH TO THE ROOT OF OUR OF PATH RELATIVE TO THIS PROJECT. 2 | //THIS NEEDS TO BE DEFINED BEFORE CoreOF.xcconfig IS INCLUDED 3 | OF_PATH = ../../.. 4 | 5 | //THIS HAS ALL THE HEADER AND LIBS FOR OF CORE 6 | #include "../../../libs/openFrameworksCompiled/project/osx/CoreOF.xcconfig" 7 | 8 | OTHER_LDFLAGS = $(OF_CORE_LIBS) 9 | HEADER_SEARCH_PATHS = $(OF_CORE_HEADERS) 10 | -------------------------------------------------------------------------------- /week6_fftExample/addons.make: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ofZach/avsys2012/0c02857ba0e9b964e8f1ae364e93b21575fb0889/week6_fftExample/addons.make -------------------------------------------------------------------------------- /week6_fftExample/bin/data/.gitkeep: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ofZach/avsys2012/0c02857ba0e9b964e8f1ae364e93b21575fb0889/week6_fftExample/bin/data/.gitkeep -------------------------------------------------------------------------------- /week6_fftExample/openFrameworks-Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | English 7 | CFBundleExecutable 8 | ${EXECUTABLE_NAME} 9 | CFBundleIdentifier 10 | com.yourcompany.openFrameworks 11 | CFBundleInfoDictionaryVersion 12 | 6.0 13 | CFBundlePackageType 14 | APPL 15 | CFBundleSignature 16 | ???? 17 | CFBundleVersion 18 | 1.0 19 | 20 | 21 | -------------------------------------------------------------------------------- /week6_fftExample/src/fft.h: -------------------------------------------------------------------------------- 1 | 2 | #ifndef _FFT 3 | #define _FFT 4 | 5 | #ifndef M_PI 6 | #define M_PI 3.14159265358979323846 /* pi */ 7 | #endif 8 | 9 | 10 | class fft { 11 | 12 | public: 13 | 14 | fft(); 15 | ~fft(); 16 | 17 | /* Calculate the power spectrum */ 18 | void powerSpectrum(int start, int half, float *data, int windowSize,float *magnitude,float *phase, float *power, float *avg_power); 19 | /* ... the inverse */ 20 | void inversePowerSpectrum(int start, int half, int windowSize, float *finalOut,float *magnitude,float *phase); 21 | 22 | void processLogXScale(const float * data,unsigned int insize, double fMax, 23 | float * avout, float * pkout, unsigned int outsize, 24 | float f1, float f2); 25 | 26 | 27 | float avout[15]; 28 | float pkout[15]; 29 | 30 | }; 31 | 32 | 33 | #endif 34 | -------------------------------------------------------------------------------- /week6_fftExample/src/main.cpp: -------------------------------------------------------------------------------- 1 | #include "ofMain.h" 2 | #include "testApp.h" 3 | #include "ofAppGlutWindow.h" 4 | 5 | //======================================================================== 6 | int main( ){ 7 | 8 | ofAppGlutWindow window; 9 | ofSetupOpenGL(&window, 1024, 768, OF_WINDOW); // <-------- setup the GL context 10 | 11 | // this kicks off the running of my app 12 | // can be OF_WINDOW or OF_FULLSCREEN 13 | // pass in width and height too: 14 | ofRunApp( new testApp()); 15 | 16 | } 17 | -------------------------------------------------------------------------------- /week6_fftExample/src/testApp.h: -------------------------------------------------------------------------------- 1 | #ifndef _TEST_APP 2 | #define _TEST_APP 3 | 4 | #include "ofMain.h" 5 | #include "fft.h" 6 | #include "FFTOctaveAnalyzer.h" 7 | 8 | #define BUFFER_SIZE 512 9 | 10 | class testApp : public ofBaseApp { 11 | 12 | public: 13 | 14 | void setup(); 15 | void update(); 16 | void draw(); 17 | 18 | void keyPressed (int key); 19 | void mouseMoved(int x, int y ); 20 | void mouseDragged(int x, int y, int button); 21 | void mousePressed(int x, int y, int button); 22 | void mouseReleased(); 23 | 24 | void audioReceived (float * input, int bufferSize, int nChannels); 25 | 26 | FFTOctaveAnalyzer FFTanalyzer; 27 | 28 | float left[BUFFER_SIZE]; 29 | float right[BUFFER_SIZE]; 30 | 31 | fft myfft; 32 | 33 | float magnitude[BUFFER_SIZE]; 34 | float phase[BUFFER_SIZE]; 35 | float power[BUFFER_SIZE]; 36 | float freq[BUFFER_SIZE/2]; 37 | }; 38 | 39 | #endif 40 | 41 | -------------------------------------------------------------------------------- /week6_fftExample/week6_fftExample.workspace: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | -------------------------------------------------------------------------------- /week6_fftExample_w_pitch/week6_fftExample_w_pitch.workspace: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | -------------------------------------------------------------------------------- /week6_pitchDetection/Project.xcconfig: -------------------------------------------------------------------------------- 1 | //THE PATH TO THE ROOT OF OUR OF PATH RELATIVE TO THIS PROJECT. 2 | //THIS NEEDS TO BE DEFINED BEFORE CoreOF.xcconfig IS INCLUDED 3 | OF_PATH = ../../.. 4 | 5 | //THIS HAS ALL THE HEADER AND LIBS FOR OF CORE 6 | #include "../../../libs/openFrameworksCompiled/project/osx/CoreOF.xcconfig" 7 | 8 | OTHER_LDFLAGS = $(OF_CORE_LIBS) 9 | HEADER_SEARCH_PATHS = $(OF_CORE_HEADERS) 10 | -------------------------------------------------------------------------------- /week6_pitchDetection/addons.make: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ofZach/avsys2012/0c02857ba0e9b964e8f1ae364e93b21575fb0889/week6_pitchDetection/addons.make -------------------------------------------------------------------------------- /week6_pitchDetection/bin/data/.gitkeep: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ofZach/avsys2012/0c02857ba0e9b964e8f1ae364e93b21575fb0889/week6_pitchDetection/bin/data/.gitkeep -------------------------------------------------------------------------------- /week6_pitchDetection/bin/data/DIN.otf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ofZach/avsys2012/0c02857ba0e9b964e8f1ae364e93b21575fb0889/week6_pitchDetection/bin/data/DIN.otf -------------------------------------------------------------------------------- /week6_pitchDetection/openFrameworks-Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | English 7 | CFBundleExecutable 8 | ${EXECUTABLE_NAME} 9 | CFBundleIdentifier 10 | com.yourcompany.openFrameworks 11 | CFBundleInfoDictionaryVersion 12 | 6.0 13 | CFBundlePackageType 14 | APPL 15 | CFBundleSignature 16 | ???? 17 | CFBundleVersion 18 | 1.0 19 | 20 | 21 | -------------------------------------------------------------------------------- /week6_pitchDetection/src/aubio/libaubio.a: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ofZach/avsys2012/0c02857ba0e9b964e8f1ae364e93b21575fb0889/week6_pitchDetection/src/aubio/libaubio.a -------------------------------------------------------------------------------- /week6_pitchDetection/src/aubioAnalyzer.h: -------------------------------------------------------------------------------- 1 | #ifndef _AUBIO_SOUND_PROCESSOR 2 | #define _AUBIO_SOUND_PROCESSOR 3 | 4 | #include "aubio.h" 5 | #include "fvec.h" 6 | #include "ofMain.h" 7 | 8 | class aubioAnalyzer{ 9 | 10 | public: 11 | 12 | void setup(); 13 | void processAudio(float * buffer, int bufferSize); 14 | 15 | ~aubioAnalyzer(); 16 | 17 | float pitch; 18 | float amplitude; 19 | float confidence; 20 | 21 | // ------------------------------------------------------------------ 22 | // internal aubio variables 23 | 24 | uint_t win_s; /* window size */ 25 | uint_t hop_s; /* hop size */ 26 | uint_t samplerate; /* samplerate */ 27 | uint_t channels; /* number of channel */ 28 | 29 | fvec_t * out; 30 | fvec_t * in; 31 | aubio_pitch_t * pitch_output ; 32 | 33 | // ------------------------------------------------------------------ 34 | 35 | }; 36 | 37 | #endif 38 | 39 | -------------------------------------------------------------------------------- /week6_pitchDetection/src/main.cpp: -------------------------------------------------------------------------------- 1 | #include "ofMain.h" 2 | #include "testApp.h" 3 | 4 | //======================================================================== 5 | int main( ){ 6 | 7 | ofSetupOpenGL(1024,768, OF_WINDOW); // <-------- setup the GL context 8 | 9 | // this kicks off the running of my app 10 | // can be OF_WINDOW or OF_FULLSCREEN 11 | // pass in width and height too: 12 | 13 | ofRunApp(new testApp()); 14 | 15 | } 16 | -------------------------------------------------------------------------------- /week6_pitchDetection/src/testApp.h: -------------------------------------------------------------------------------- 1 | #ifndef _TEST_APP 2 | #define _TEST_APP 3 | 4 | 5 | 6 | #include "ofMain.h" 7 | #include "aubioAnalyzer.h" 8 | 9 | class testApp : public ofSimpleApp{ 10 | 11 | public: 12 | 13 | void setup(); 14 | void update(); 15 | void draw(); 16 | 17 | void keyPressed(int key); 18 | void keyReleased(int key); 19 | void mouseMoved(int x, int y ); 20 | void mouseDragged(int x, int y, int button); 21 | void mousePressed(int x, int y, int button); 22 | void mouseReleased(); 23 | void audioReceived (float * input, int bufferSize, int nChannels); 24 | 25 | 26 | float * left; 27 | float * right; 28 | 29 | aubioAnalyzer AA; 30 | 31 | ofTrueTypeFont dinFont; 32 | 33 | 34 | }; 35 | 36 | #endif 37 | 38 | -------------------------------------------------------------------------------- /week6_pitchDetection/week6_pitchDetection.workspace: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | -------------------------------------------------------------------------------- /week6_pitchDetection2/Project.xcconfig: -------------------------------------------------------------------------------- 1 | //THE PATH TO THE ROOT OF OUR OF PATH RELATIVE TO THIS PROJECT. 2 | //THIS NEEDS TO BE DEFINED BEFORE CoreOF.xcconfig IS INCLUDED 3 | OF_PATH = ../../.. 4 | 5 | //THIS HAS ALL THE HEADER AND LIBS FOR OF CORE 6 | #include "../../../libs/openFrameworksCompiled/project/osx/CoreOF.xcconfig" 7 | 8 | OTHER_LDFLAGS = $(OF_CORE_LIBS) 9 | HEADER_SEARCH_PATHS = $(OF_CORE_HEADERS) 10 | -------------------------------------------------------------------------------- /week6_pitchDetection2/addons.make: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ofZach/avsys2012/0c02857ba0e9b964e8f1ae364e93b21575fb0889/week6_pitchDetection2/addons.make -------------------------------------------------------------------------------- /week6_pitchDetection2/bin/data/.gitkeep: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ofZach/avsys2012/0c02857ba0e9b964e8f1ae364e93b21575fb0889/week6_pitchDetection2/bin/data/.gitkeep -------------------------------------------------------------------------------- /week6_pitchDetection2/bin/data/DIN.otf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ofZach/avsys2012/0c02857ba0e9b964e8f1ae364e93b21575fb0889/week6_pitchDetection2/bin/data/DIN.otf -------------------------------------------------------------------------------- /week6_pitchDetection2/openFrameworks-Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | English 7 | CFBundleExecutable 8 | ${EXECUTABLE_NAME} 9 | CFBundleIdentifier 10 | com.yourcompany.openFrameworks 11 | CFBundleInfoDictionaryVersion 12 | 6.0 13 | CFBundlePackageType 14 | APPL 15 | CFBundleSignature 16 | ???? 17 | CFBundleVersion 18 | 1.0 19 | 20 | 21 | -------------------------------------------------------------------------------- /week6_pitchDetection2/src/aubio/libaubio.a: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ofZach/avsys2012/0c02857ba0e9b964e8f1ae364e93b21575fb0889/week6_pitchDetection2/src/aubio/libaubio.a -------------------------------------------------------------------------------- /week6_pitchDetection2/src/aubioAnalyzer.h: -------------------------------------------------------------------------------- 1 | #ifndef _AUBIO_SOUND_PROCESSOR 2 | #define _AUBIO_SOUND_PROCESSOR 3 | 4 | #include "aubio.h" 5 | #include "fvec.h" 6 | #include "ofMain.h" 7 | 8 | class aubioAnalyzer{ 9 | 10 | public: 11 | 12 | void setup(); 13 | void processAudio(float * buffer, int bufferSize); 14 | 15 | ~aubioAnalyzer(); 16 | 17 | float pitch; 18 | float amplitude; 19 | float confidence; 20 | 21 | // ------------------------------------------------------------------ 22 | // internal aubio variables 23 | 24 | uint_t win_s; /* window size */ 25 | uint_t hop_s; /* hop size */ 26 | uint_t samplerate; /* samplerate */ 27 | uint_t channels; /* number of channel */ 28 | 29 | fvec_t * out; 30 | fvec_t * in; 31 | aubio_pitch_t * pitch_output ; 32 | 33 | // ------------------------------------------------------------------ 34 | 35 | }; 36 | 37 | #endif 38 | 39 | -------------------------------------------------------------------------------- /week6_pitchDetection2/src/main.cpp: -------------------------------------------------------------------------------- 1 | #include "ofMain.h" 2 | #include "testApp.h" 3 | 4 | //======================================================================== 5 | int main( ){ 6 | 7 | ofSetupOpenGL(1024,768, OF_WINDOW); // <-------- setup the GL context 8 | 9 | // this kicks off the running of my app 10 | // can be OF_WINDOW or OF_FULLSCREEN 11 | // pass in width and height too: 12 | 13 | ofRunApp(new testApp()); 14 | 15 | } 16 | -------------------------------------------------------------------------------- /week6_pitchDetection2/src/sinOscillator.h: -------------------------------------------------------------------------------- 1 | #ifndef _SIN_OSCILLATOR 2 | #define _SIN_OSCILLATOR 3 | 4 | 5 | #include "ofMain.h" 6 | 7 | 8 | class sinOscillator{ 9 | 10 | public: 11 | 12 | 13 | void setup(); 14 | void setFrequency(float newFrequency); 15 | void setVolume(float newVolume); 16 | void addToSoundBuffer(float * buffer, int bufferSize); 17 | 18 | float pan; 19 | int sampleRate; 20 | float volume; 21 | float frequency; 22 | 23 | float angle; 24 | float angleAdder; 25 | 26 | }; 27 | 28 | #endif -------------------------------------------------------------------------------- /week6_pitchDetection2/week6_pitchDetection2.workspace: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | -------------------------------------------------------------------------------- /week7_computerVisionExample_GoodFeaturesToTrack/Project.xcconfig: -------------------------------------------------------------------------------- 1 | //THE PATH TO THE ROOT OF OUR OF PATH RELATIVE TO THIS PROJECT. 2 | //THIS NEEDS TO BE DEFINED BEFORE CoreOF.xcconfig IS INCLUDED 3 | OF_PATH = ../../.. 4 | 5 | //THIS HAS ALL THE HEADER AND LIBS FOR OF CORE 6 | #include "../../../libs/openFrameworksCompiled/project/osx/CoreOF.xcconfig" 7 | 8 | OTHER_LDFLAGS = $(OF_CORE_LIBS) 9 | HEADER_SEARCH_PATHS = $(OF_CORE_HEADERS) 10 | -------------------------------------------------------------------------------- /week7_computerVisionExample_GoodFeaturesToTrack/addons.make: -------------------------------------------------------------------------------- 1 | ofxOpenCv -------------------------------------------------------------------------------- /week7_computerVisionExample_GoodFeaturesToTrack/openFrameworks-Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | English 7 | CFBundleExecutable 8 | ${EXECUTABLE_NAME} 9 | CFBundleIdentifier 10 | com.yourcompany.openFrameworks 11 | CFBundleInfoDictionaryVersion 12 | 6.0 13 | CFBundlePackageType 14 | APPL 15 | CFBundleSignature 16 | ???? 17 | CFBundleVersion 18 | 1.0 19 | 20 | 21 | -------------------------------------------------------------------------------- /week7_computerVisionExample_GoodFeaturesToTrack/src/main.cpp: -------------------------------------------------------------------------------- 1 | #include "ofMain.h" 2 | #include "testApp.h" 3 | #include "ofAppGlutWindow.h" 4 | 5 | //======================================================================== 6 | int main( ){ 7 | 8 | ofAppGlutWindow window; 9 | ofSetupOpenGL(&window, 320, 240, OF_WINDOW); // <-------- setup the GL context 10 | 11 | // this kicks off the running of my app 12 | // can be OF_WINDOW or OF_FULLSCREEN 13 | // pass in width and height too: 14 | ofRunApp( new testApp()); 15 | 16 | } 17 | -------------------------------------------------------------------------------- /week7_computerVisionExample_GoodFeaturesToTrack/src/testApp.h: -------------------------------------------------------------------------------- 1 | #ifndef _TEST_APP 2 | #define _TEST_APP 3 | 4 | #include "ofMain.h" 5 | 6 | #include "ofxOpenCv.h" 7 | 8 | 9 | class testApp : public ofBaseApp{ 10 | 11 | public: 12 | 13 | void setup(); 14 | void update(); 15 | void draw(); 16 | 17 | void keyPressed (int key); 18 | void mouseMoved(int x, int y ); 19 | void mouseDragged(int x, int y, int button); 20 | void mousePressed(int x, int y, int button); 21 | void mouseReleased(int x, int y, int button); 22 | void windowResized(int w, int h); 23 | 24 | ofVideoGrabber videoGrabber; 25 | 26 | ofxCvColorImage colorImg; 27 | 28 | ofxCvGrayscaleImage grayImage; 29 | 30 | 31 | static const int MAX_COUNT = 500; 32 | CvPoint2D32f* points[2]; 33 | }; 34 | 35 | #endif 36 | -------------------------------------------------------------------------------- /week7_computerVisionExample_GoodFeaturesToTrack/week7_computerVisionExample_GoodFeaturesToTrack.workspace: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | -------------------------------------------------------------------------------- /week7_computerVisionExample_opticalFlow_wFeatures/Project.xcconfig: -------------------------------------------------------------------------------- 1 | //THE PATH TO THE ROOT OF OUR OF PATH RELATIVE TO THIS PROJECT. 2 | //THIS NEEDS TO BE DEFINED BEFORE CoreOF.xcconfig IS INCLUDED 3 | OF_PATH = ../../.. 4 | 5 | //THIS HAS ALL THE HEADER AND LIBS FOR OF CORE 6 | #include "../../../libs/openFrameworksCompiled/project/osx/CoreOF.xcconfig" 7 | 8 | OTHER_LDFLAGS = $(OF_CORE_LIBS) 9 | HEADER_SEARCH_PATHS = $(OF_CORE_HEADERS) 10 | -------------------------------------------------------------------------------- /week7_computerVisionExample_opticalFlow_wFeatures/addons.make: -------------------------------------------------------------------------------- 1 | ofxOpenCv -------------------------------------------------------------------------------- /week7_computerVisionExample_opticalFlow_wFeatures/openFrameworks-Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | English 7 | CFBundleExecutable 8 | ${EXECUTABLE_NAME} 9 | CFBundleIdentifier 10 | com.yourcompany.openFrameworks 11 | CFBundleInfoDictionaryVersion 12 | 6.0 13 | CFBundlePackageType 14 | APPL 15 | CFBundleSignature 16 | ???? 17 | CFBundleVersion 18 | 1.0 19 | 20 | 21 | -------------------------------------------------------------------------------- /week7_computerVisionExample_opticalFlow_wFeatures/src/main.cpp: -------------------------------------------------------------------------------- 1 | #include "ofMain.h" 2 | #include "testApp.h" 3 | #include "ofAppGlutWindow.h" 4 | 5 | //======================================================================== 6 | int main( ){ 7 | 8 | ofAppGlutWindow window; 9 | ofSetupOpenGL(&window, 640, 480, OF_WINDOW); // <-------- setup the GL context 10 | 11 | // this kicks off the running of my app 12 | // can be OF_WINDOW or OF_FULLSCREEN 13 | // pass in width and height too: 14 | ofRunApp( new testApp()); 15 | 16 | } 17 | -------------------------------------------------------------------------------- /week7_computerVisionExample_opticalFlow_wFeatures/week7_computerVisionExample_opticalFlow_wFeatures.workspace: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | -------------------------------------------------------------------------------- /week7_imageCounting/Project.xcconfig: -------------------------------------------------------------------------------- 1 | //THE PATH TO THE ROOT OF OUR OF PATH RELATIVE TO THIS PROJECT. 2 | //THIS NEEDS TO BE DEFINED BEFORE CoreOF.xcconfig IS INCLUDED 3 | OF_PATH = ../../.. 4 | 5 | //THIS HAS ALL THE HEADER AND LIBS FOR OF CORE 6 | #include "../../../libs/openFrameworksCompiled/project/osx/CoreOF.xcconfig" 7 | 8 | OTHER_LDFLAGS = $(OF_CORE_LIBS) 9 | HEADER_SEARCH_PATHS = $(OF_CORE_HEADERS) 10 | -------------------------------------------------------------------------------- /week7_imageCounting/bin/data/helvetica.otf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ofZach/avsys2012/0c02857ba0e9b964e8f1ae364e93b21575fb0889/week7_imageCounting/bin/data/helvetica.otf -------------------------------------------------------------------------------- /week7_imageCounting/openFrameworks-Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | English 7 | CFBundleExecutable 8 | ${EXECUTABLE_NAME} 9 | CFBundleIdentifier 10 | com.yourcompany.openFrameworks 11 | CFBundleInfoDictionaryVersion 12 | 6.0 13 | CFBundlePackageType 14 | APPL 15 | CFBundleSignature 16 | ???? 17 | CFBundleVersion 18 | 1.0 19 | 20 | 21 | -------------------------------------------------------------------------------- /week7_imageCounting/src/main.cpp: -------------------------------------------------------------------------------- 1 | #include "ofMain.h" 2 | #include "testApp.h" 3 | #include "ofAppGlutWindow.h" 4 | 5 | //======================================================================== 6 | int main( ){ 7 | 8 | ofAppGlutWindow window; 9 | ofSetupOpenGL(&window, 600,400, OF_WINDOW); // <-------- setup the GL context 10 | 11 | // this kicks off the running of my app 12 | // can be OF_WINDOW or OF_FULLSCREEN 13 | // pass in width and height too: 14 | ofRunApp( new testApp()); 15 | 16 | } 17 | -------------------------------------------------------------------------------- /week7_imageCounting/src/testApp.h: -------------------------------------------------------------------------------- 1 | #ifndef _TEST_APP 2 | #define _TEST_APP 3 | 4 | 5 | #include "ofMain.h" 6 | 7 | class testApp : public ofBaseApp{ 8 | 9 | public: 10 | void setup(); 11 | void update(); 12 | void draw(); 13 | 14 | void keyPressed (int key); 15 | void keyReleased(int key); 16 | void mouseMoved(int x, int y ); 17 | void mouseDragged(int x, int y, int button); 18 | void mousePressed(int x, int y, int button); 19 | void mouseReleased(int x, int y, int button); 20 | void windowResized(int w, int h); 21 | 22 | ofTrueTypeFont helvetica; 23 | 24 | bool * pixels; 25 | int width; 26 | int height; 27 | 28 | int position; 29 | 30 | 31 | 32 | }; 33 | 34 | #endif 35 | -------------------------------------------------------------------------------- /week7_imageCounting/week7_imageCounting.workspace: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | -------------------------------------------------------------------------------- /week7_introToOpenCV/Project.xcconfig: -------------------------------------------------------------------------------- 1 | //THE PATH TO THE ROOT OF OUR OF PATH RELATIVE TO THIS PROJECT. 2 | //THIS NEEDS TO BE DEFINED BEFORE CoreOF.xcconfig IS INCLUDED 3 | OF_PATH = ../../.. 4 | 5 | //THIS HAS ALL THE HEADER AND LIBS FOR OF CORE 6 | #include "../../../libs/openFrameworksCompiled/project/osx/CoreOF.xcconfig" 7 | 8 | OTHER_LDFLAGS = $(OF_CORE_LIBS) 9 | HEADER_SEARCH_PATHS = $(OF_CORE_HEADERS) 10 | -------------------------------------------------------------------------------- /week7_introToOpenCV/addons.make: -------------------------------------------------------------------------------- 1 | ofxOpenCv -------------------------------------------------------------------------------- /week7_introToOpenCV/bin/data/test.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ofZach/avsys2012/0c02857ba0e9b964e8f1ae364e93b21575fb0889/week7_introToOpenCV/bin/data/test.png -------------------------------------------------------------------------------- /week7_introToOpenCV/openFrameworks-Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | English 7 | CFBundleExecutable 8 | ${EXECUTABLE_NAME} 9 | CFBundleIdentifier 10 | com.yourcompany.openFrameworks 11 | CFBundleInfoDictionaryVersion 12 | 6.0 13 | CFBundlePackageType 14 | APPL 15 | CFBundleSignature 16 | ???? 17 | CFBundleVersion 18 | 1.0 19 | 20 | 21 | -------------------------------------------------------------------------------- /week7_introToOpenCV/src/main.cpp: -------------------------------------------------------------------------------- 1 | #include "ofMain.h" 2 | #include "testApp.h" 3 | #include "ofAppGlutWindow.h" 4 | 5 | //======================================================================== 6 | int main( ){ 7 | 8 | ofAppGlutWindow window; 9 | ofSetupOpenGL(&window, 800,600, OF_WINDOW); // <-------- setup the GL context 10 | 11 | // this kicks off the running of my app 12 | // can be OF_WINDOW or OF_FULLSCREEN 13 | // pass in width and height too: 14 | ofRunApp( new testApp()); 15 | 16 | } 17 | -------------------------------------------------------------------------------- /week7_introToOpenCV/src/testApp.h: -------------------------------------------------------------------------------- 1 | #ifndef _TEST_APP 2 | #define _TEST_APP 3 | 4 | 5 | #include "ofMain.h" 6 | #include "ofxOpenCv.h" 7 | 8 | class testApp : public ofBaseApp{ 9 | 10 | public: 11 | void setup(); 12 | void update(); 13 | void draw(); 14 | 15 | void keyPressed (int key); 16 | void keyReleased(int key); 17 | void mouseMoved(int x, int y ); 18 | void mouseDragged(int x, int y, int button); 19 | void mousePressed(int x, int y, int button); 20 | void mouseReleased(int x, int y, int button); 21 | void windowResized(int w, int h); 22 | 23 | // create a variable of the type ofImage 24 | ofImage myPicture; 25 | ofxCvGrayscaleImage myPictureAsCvImage; 26 | 27 | }; 28 | 29 | #endif 30 | -------------------------------------------------------------------------------- /week7_introToOpenCV/week7_introToOpenCV.workspace: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | -------------------------------------------------------------------------------- /week7_loadImage/Project.xcconfig: -------------------------------------------------------------------------------- 1 | //THE PATH TO THE ROOT OF OUR OF PATH RELATIVE TO THIS PROJECT. 2 | //THIS NEEDS TO BE DEFINED BEFORE CoreOF.xcconfig IS INCLUDED 3 | OF_PATH = ../../.. 4 | 5 | //THIS HAS ALL THE HEADER AND LIBS FOR OF CORE 6 | #include "../../../libs/openFrameworksCompiled/project/osx/CoreOF.xcconfig" 7 | 8 | OTHER_LDFLAGS = $(OF_CORE_LIBS) 9 | HEADER_SEARCH_PATHS = $(OF_CORE_HEADERS) 10 | -------------------------------------------------------------------------------- /week7_loadImage/bin/data/squirrel.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ofZach/avsys2012/0c02857ba0e9b964e8f1ae364e93b21575fb0889/week7_loadImage/bin/data/squirrel.png -------------------------------------------------------------------------------- /week7_loadImage/openFrameworks-Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | English 7 | CFBundleExecutable 8 | ${EXECUTABLE_NAME} 9 | CFBundleIdentifier 10 | com.yourcompany.openFrameworks 11 | CFBundleInfoDictionaryVersion 12 | 6.0 13 | CFBundlePackageType 14 | APPL 15 | CFBundleSignature 16 | ???? 17 | CFBundleVersion 18 | 1.0 19 | 20 | 21 | -------------------------------------------------------------------------------- /week7_loadImage/src/main.cpp: -------------------------------------------------------------------------------- 1 | #include "ofMain.h" 2 | #include "testApp.h" 3 | #include "ofAppGlutWindow.h" 4 | 5 | //======================================================================== 6 | int main( ){ 7 | 8 | ofAppGlutWindow window; 9 | ofSetupOpenGL(&window, 1024,768, OF_WINDOW); // <-------- setup the GL context 10 | 11 | // this kicks off the running of my app 12 | // can be OF_WINDOW or OF_FULLSCREEN 13 | // pass in width and height too: 14 | ofRunApp( new testApp()); 15 | 16 | } 17 | -------------------------------------------------------------------------------- /week7_loadImage/src/testApp.h: -------------------------------------------------------------------------------- 1 | #ifndef _TEST_APP 2 | #define _TEST_APP 3 | 4 | 5 | #include "ofMain.h" 6 | 7 | class testApp : public ofBaseApp{ 8 | 9 | public: 10 | void setup(); 11 | void update(); 12 | void draw(); 13 | 14 | void keyPressed (int key); 15 | void keyReleased(int key); 16 | void mouseMoved(int x, int y ); 17 | void mouseDragged(int x, int y, int button); 18 | void mousePressed(int x, int y, int button); 19 | void mouseReleased(int x, int y, int button); 20 | void windowResized(int w, int h); 21 | 22 | ofImage squirrel; 23 | 24 | 25 | }; 26 | 27 | #endif 28 | -------------------------------------------------------------------------------- /week7_loadImage/week7_loadImage.workspace: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | -------------------------------------------------------------------------------- /week7_loadImage2/Project.xcconfig: -------------------------------------------------------------------------------- 1 | //THE PATH TO THE ROOT OF OUR OF PATH RELATIVE TO THIS PROJECT. 2 | //THIS NEEDS TO BE DEFINED BEFORE CoreOF.xcconfig IS INCLUDED 3 | OF_PATH = ../../.. 4 | 5 | //THIS HAS ALL THE HEADER AND LIBS FOR OF CORE 6 | #include "../../../libs/openFrameworksCompiled/project/osx/CoreOF.xcconfig" 7 | 8 | OTHER_LDFLAGS = $(OF_CORE_LIBS) 9 | HEADER_SEARCH_PATHS = $(OF_CORE_HEADERS) 10 | -------------------------------------------------------------------------------- /week7_loadImage2/bin/data/squirrel.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ofZach/avsys2012/0c02857ba0e9b964e8f1ae364e93b21575fb0889/week7_loadImage2/bin/data/squirrel.png -------------------------------------------------------------------------------- /week7_loadImage2/openFrameworks-Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | English 7 | CFBundleExecutable 8 | ${EXECUTABLE_NAME} 9 | CFBundleIdentifier 10 | com.yourcompany.openFrameworks 11 | CFBundleInfoDictionaryVersion 12 | 6.0 13 | CFBundlePackageType 14 | APPL 15 | CFBundleSignature 16 | ???? 17 | CFBundleVersion 18 | 1.0 19 | 20 | 21 | -------------------------------------------------------------------------------- /week7_loadImage2/src/main.cpp: -------------------------------------------------------------------------------- 1 | #include "ofMain.h" 2 | #include "testApp.h" 3 | #include "ofAppGlutWindow.h" 4 | 5 | //======================================================================== 6 | int main( ){ 7 | 8 | ofAppGlutWindow window; 9 | ofSetupOpenGL(&window, 1024,768, OF_WINDOW); // <-------- setup the GL context 10 | 11 | // this kicks off the running of my app 12 | // can be OF_WINDOW or OF_FULLSCREEN 13 | // pass in width and height too: 14 | ofRunApp( new testApp()); 15 | 16 | } 17 | -------------------------------------------------------------------------------- /week7_loadImage2/src/testApp.h: -------------------------------------------------------------------------------- 1 | #ifndef _TEST_APP 2 | #define _TEST_APP 3 | 4 | 5 | #include "ofMain.h" 6 | 7 | class testApp : public ofBaseApp{ 8 | 9 | public: 10 | void setup(); 11 | void update(); 12 | void draw(); 13 | 14 | void keyPressed (int key); 15 | void keyReleased(int key); 16 | void mouseMoved(int x, int y ); 17 | void mouseDragged(int x, int y, int button); 18 | void mousePressed(int x, int y, int button); 19 | void mouseReleased(int x, int y, int button); 20 | void windowResized(int w, int h); 21 | 22 | ofImage squirrel; 23 | 24 | 25 | }; 26 | 27 | #endif 28 | -------------------------------------------------------------------------------- /week7_loadImage2/week7_loadImage2.workspace: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | -------------------------------------------------------------------------------- /week7_opencv_color/Project.xcconfig: -------------------------------------------------------------------------------- 1 | //THE PATH TO THE ROOT OF OUR OF PATH RELATIVE TO THIS PROJECT. 2 | //THIS NEEDS TO BE DEFINED BEFORE CoreOF.xcconfig IS INCLUDED 3 | OF_PATH = ../../.. 4 | 5 | //THIS HAS ALL THE HEADER AND LIBS FOR OF CORE 6 | #include "../../../libs/openFrameworksCompiled/project/osx/CoreOF.xcconfig" 7 | 8 | OTHER_LDFLAGS = $(OF_CORE_LIBS) 9 | HEADER_SEARCH_PATHS = $(OF_CORE_HEADERS) 10 | -------------------------------------------------------------------------------- /week7_opencv_color/addons.make: -------------------------------------------------------------------------------- 1 | ofxOpenCv 2 | ofxXmlSettings -------------------------------------------------------------------------------- /week7_opencv_color/bin/data/cvSettings.xml: -------------------------------------------------------------------------------- 1 | 2 | 52.416668 3 | 4 | 5 | 0.000000 6 | 7 | -------------------------------------------------------------------------------- /week7_opencv_color/bin/data/test.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ofZach/avsys2012/0c02857ba0e9b964e8f1ae364e93b21575fb0889/week7_opencv_color/bin/data/test.png -------------------------------------------------------------------------------- /week7_opencv_color/openFrameworks-Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | English 7 | CFBundleExecutable 8 | ${EXECUTABLE_NAME} 9 | CFBundleIdentifier 10 | com.yourcompany.openFrameworks 11 | CFBundleInfoDictionaryVersion 12 | 6.0 13 | CFBundlePackageType 14 | APPL 15 | CFBundleSignature 16 | ???? 17 | CFBundleVersion 18 | 1.0 19 | 20 | 21 | -------------------------------------------------------------------------------- /week7_opencv_color/src/main.cpp: -------------------------------------------------------------------------------- 1 | #include "ofMain.h" 2 | #include "testApp.h" 3 | #include "ofAppGlutWindow.h" 4 | 5 | //======================================================================== 6 | int main( ){ 7 | 8 | ofAppGlutWindow window; 9 | ofSetupOpenGL(&window, 1024,768, OF_WINDOW); // <-------- setup the GL context 10 | 11 | // this kicks off the running of my app 12 | // can be OF_WINDOW or OF_FULLSCREEN 13 | // pass in width and height too: 14 | ofRunApp( new testApp()); 15 | 16 | } 17 | -------------------------------------------------------------------------------- /week7_opencv_color/src/utils/ofxControlPanel/guiCustomImpl.h: -------------------------------------------------------------------------------- 1 | #pragma once 2 | 3 | class guiCustomImpl{ 4 | 5 | public: 6 | 7 | guiCustomImpl(){ 8 | mouseIsRelative = false; 9 | } 10 | 11 | virtual ~guiCustomImpl(){ 12 | 13 | } 14 | 15 | virtual void saveSettings(string filename){} 16 | virtual void reloadSettings(){} 17 | virtual void saveSettings(){} 18 | virtual void loadSettings(string filename){} 19 | 20 | virtual void update(){} 21 | virtual void draw(float x, float y, float w, float h){} 22 | 23 | virtual void mousePressed(float x, float y){} 24 | virtual void mouseDragged(float x, float y){} 25 | virtual void mouseReleased(){} 26 | 27 | bool mouseIsRelative; 28 | 29 | ofRectangle boundingRect; 30 | }; 31 | -------------------------------------------------------------------------------- /week7_opencv_color/src/utils/ofxControlPanel/guiIncludes.h: -------------------------------------------------------------------------------- 1 | 2 | //fundementals 3 | #include "guiValue.h" 4 | #include "guiBaseObject.h" 5 | #include "guiColor.h" 6 | #include "simpleColor.h" 7 | #include "guiValue.h" 8 | 9 | //interface 10 | #include "guiTypePanel.h" 11 | 12 | //elements 13 | #include "guiTypeText.h" 14 | #include "guiTypeToggle.h" 15 | #include "guiTypeMultiToggle.h" 16 | #include "guiTypeSlider.h" 17 | #include "guiType2DSlider.h" 18 | #include "guiTypeDrawable.h" 19 | #include "guiTypeLogger.h" 20 | #include "guiTypeFileLister.h" 21 | #include "guiTypeCustom.h" 22 | #include "guiCustomImpl.h" 23 | -------------------------------------------------------------------------------- /week7_opencv_color/src/utils/ofxControlPanel/guiTypeText.h: -------------------------------------------------------------------------------- 1 | #pragma once 2 | 3 | #include "guiBaseObject.h" 4 | #include "guiTypeText.h" 5 | #include "guiColor.h" 6 | #include "simpleColor.h" 7 | #include "guiValue.h" 8 | 9 | class guiTypeText : public guiBaseObject, public guiTextBase{ 10 | 11 | public: 12 | 13 | 14 | 15 | }; 16 | -------------------------------------------------------------------------------- /week7_opencv_color/week7_opencv_color.workspace: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | -------------------------------------------------------------------------------- /week7_opencv_motion/Project.xcconfig: -------------------------------------------------------------------------------- 1 | //THE PATH TO THE ROOT OF OUR OF PATH RELATIVE TO THIS PROJECT. 2 | //THIS NEEDS TO BE DEFINED BEFORE CoreOF.xcconfig IS INCLUDED 3 | OF_PATH = ../../.. 4 | 5 | //THIS HAS ALL THE HEADER AND LIBS FOR OF CORE 6 | #include "../../../libs/openFrameworksCompiled/project/osx/CoreOF.xcconfig" 7 | 8 | OTHER_LDFLAGS = $(OF_CORE_LIBS) 9 | HEADER_SEARCH_PATHS = $(OF_CORE_HEADERS) 10 | -------------------------------------------------------------------------------- /week7_opencv_motion/addons.make: -------------------------------------------------------------------------------- 1 | ofxOpenCv 2 | ofxXmlSettings -------------------------------------------------------------------------------- /week7_opencv_motion/bin/data/1085.mp3: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ofZach/avsys2012/0c02857ba0e9b964e8f1ae364e93b21575fb0889/week7_opencv_motion/bin/data/1085.mp3 -------------------------------------------------------------------------------- /week7_opencv_motion/bin/data/cvSettings.xml: -------------------------------------------------------------------------------- 1 | 2 | 52.416668 3 | 4 | 5 | 0.000000 6 | 7 | -------------------------------------------------------------------------------- /week7_opencv_motion/bin/data/test.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ofZach/avsys2012/0c02857ba0e9b964e8f1ae364e93b21575fb0889/week7_opencv_motion/bin/data/test.png -------------------------------------------------------------------------------- /week7_opencv_motion/openFrameworks-Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | English 7 | CFBundleExecutable 8 | ${EXECUTABLE_NAME} 9 | CFBundleIdentifier 10 | com.yourcompany.openFrameworks 11 | CFBundleInfoDictionaryVersion 12 | 6.0 13 | CFBundlePackageType 14 | APPL 15 | CFBundleSignature 16 | ???? 17 | CFBundleVersion 18 | 1.0 19 | 20 | 21 | -------------------------------------------------------------------------------- /week7_opencv_motion/src/main.cpp: -------------------------------------------------------------------------------- 1 | #include "ofMain.h" 2 | #include "testApp.h" 3 | #include "ofAppGlutWindow.h" 4 | 5 | //======================================================================== 6 | int main( ){ 7 | 8 | ofAppGlutWindow window; 9 | ofSetupOpenGL(&window, 1024,768, OF_WINDOW); // <-------- setup the GL context 10 | 11 | // this kicks off the running of my app 12 | // can be OF_WINDOW or OF_FULLSCREEN 13 | // pass in width and height too: 14 | ofRunApp( new testApp()); 15 | 16 | } 17 | -------------------------------------------------------------------------------- /week7_opencv_motion/src/utils/ofxControlPanel/guiCustomImpl.h: -------------------------------------------------------------------------------- 1 | #pragma once 2 | 3 | class guiCustomImpl{ 4 | 5 | public: 6 | 7 | guiCustomImpl(){ 8 | mouseIsRelative = false; 9 | } 10 | 11 | virtual ~guiCustomImpl(){ 12 | 13 | } 14 | 15 | virtual void saveSettings(string filename){} 16 | virtual void reloadSettings(){} 17 | virtual void saveSettings(){} 18 | virtual void loadSettings(string filename){} 19 | 20 | virtual void update(){} 21 | virtual void draw(float x, float y, float w, float h){} 22 | 23 | virtual void mousePressed(float x, float y){} 24 | virtual void mouseDragged(float x, float y){} 25 | virtual void mouseReleased(){} 26 | 27 | bool mouseIsRelative; 28 | 29 | ofRectangle boundingRect; 30 | }; 31 | -------------------------------------------------------------------------------- /week7_opencv_motion/src/utils/ofxControlPanel/guiIncludes.h: -------------------------------------------------------------------------------- 1 | 2 | //fundementals 3 | #include "guiValue.h" 4 | #include "guiBaseObject.h" 5 | #include "guiColor.h" 6 | #include "simpleColor.h" 7 | #include "guiValue.h" 8 | 9 | //interface 10 | #include "guiTypePanel.h" 11 | 12 | //elements 13 | #include "guiTypeText.h" 14 | #include "guiTypeToggle.h" 15 | #include "guiTypeMultiToggle.h" 16 | #include "guiTypeSlider.h" 17 | #include "guiType2DSlider.h" 18 | #include "guiTypeDrawable.h" 19 | #include "guiTypeLogger.h" 20 | #include "guiTypeFileLister.h" 21 | #include "guiTypeCustom.h" 22 | #include "guiCustomImpl.h" 23 | -------------------------------------------------------------------------------- /week7_opencv_motion/src/utils/ofxControlPanel/guiTypeText.h: -------------------------------------------------------------------------------- 1 | #pragma once 2 | 3 | #include "guiBaseObject.h" 4 | #include "guiTypeText.h" 5 | #include "guiColor.h" 6 | #include "simpleColor.h" 7 | #include "guiValue.h" 8 | 9 | class guiTypeText : public guiBaseObject, public guiTextBase{ 10 | 11 | public: 12 | 13 | 14 | 15 | }; 16 | -------------------------------------------------------------------------------- /week7_opencv_motion/week7_opencv_motion.workspace: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | -------------------------------------------------------------------------------- /week7_opencv_motionHistory/Project.xcconfig: -------------------------------------------------------------------------------- 1 | //THE PATH TO THE ROOT OF OUR OF PATH RELATIVE TO THIS PROJECT. 2 | //THIS NEEDS TO BE DEFINED BEFORE CoreOF.xcconfig IS INCLUDED 3 | OF_PATH = ../../.. 4 | 5 | //THIS HAS ALL THE HEADER AND LIBS FOR OF CORE 6 | #include "../../../libs/openFrameworksCompiled/project/osx/CoreOF.xcconfig" 7 | 8 | OTHER_LDFLAGS = $(OF_CORE_LIBS) 9 | HEADER_SEARCH_PATHS = $(OF_CORE_HEADERS) 10 | -------------------------------------------------------------------------------- /week7_opencv_motionHistory/addons.make: -------------------------------------------------------------------------------- 1 | ofxOpenCv 2 | ofxXmlSettings -------------------------------------------------------------------------------- /week7_opencv_motionHistory/bin/data/cvSettings.xml: -------------------------------------------------------------------------------- 1 | 2 | 52.416668 3 | 4 | 5 | 0.000000 6 | 7 | -------------------------------------------------------------------------------- /week7_opencv_motionHistory/bin/data/test.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ofZach/avsys2012/0c02857ba0e9b964e8f1ae364e93b21575fb0889/week7_opencv_motionHistory/bin/data/test.png -------------------------------------------------------------------------------- /week7_opencv_motionHistory/openFrameworks-Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | English 7 | CFBundleExecutable 8 | ${EXECUTABLE_NAME} 9 | CFBundleIdentifier 10 | com.yourcompany.openFrameworks 11 | CFBundleInfoDictionaryVersion 12 | 6.0 13 | CFBundlePackageType 14 | APPL 15 | CFBundleSignature 16 | ???? 17 | CFBundleVersion 18 | 1.0 19 | 20 | 21 | -------------------------------------------------------------------------------- /week7_opencv_motionHistory/src/main.cpp: -------------------------------------------------------------------------------- 1 | #include "ofMain.h" 2 | #include "testApp.h" 3 | #include "ofAppGlutWindow.h" 4 | 5 | //======================================================================== 6 | int main( ){ 7 | 8 | ofAppGlutWindow window; 9 | ofSetupOpenGL(&window, 1024,768, OF_WINDOW); // <-------- setup the GL context 10 | 11 | // this kicks off the running of my app 12 | // can be OF_WINDOW or OF_FULLSCREEN 13 | // pass in width and height too: 14 | ofRunApp( new testApp()); 15 | 16 | } 17 | -------------------------------------------------------------------------------- /week7_opencv_motionHistory/src/utils/ofxControlPanel/guiCustomImpl.h: -------------------------------------------------------------------------------- 1 | #pragma once 2 | 3 | class guiCustomImpl{ 4 | 5 | public: 6 | 7 | guiCustomImpl(){ 8 | mouseIsRelative = false; 9 | } 10 | 11 | virtual ~guiCustomImpl(){ 12 | 13 | } 14 | 15 | virtual void saveSettings(string filename){} 16 | virtual void reloadSettings(){} 17 | virtual void saveSettings(){} 18 | virtual void loadSettings(string filename){} 19 | 20 | virtual void update(){} 21 | virtual void draw(float x, float y, float w, float h){} 22 | 23 | virtual void mousePressed(float x, float y){} 24 | virtual void mouseDragged(float x, float y){} 25 | virtual void mouseReleased(){} 26 | 27 | bool mouseIsRelative; 28 | 29 | ofRectangle boundingRect; 30 | }; 31 | -------------------------------------------------------------------------------- /week7_opencv_motionHistory/src/utils/ofxControlPanel/guiIncludes.h: -------------------------------------------------------------------------------- 1 | 2 | //fundementals 3 | #include "guiValue.h" 4 | #include "guiBaseObject.h" 5 | #include "guiColor.h" 6 | #include "simpleColor.h" 7 | #include "guiValue.h" 8 | 9 | //interface 10 | #include "guiTypePanel.h" 11 | 12 | //elements 13 | #include "guiTypeText.h" 14 | #include "guiTypeToggle.h" 15 | #include "guiTypeMultiToggle.h" 16 | #include "guiTypeSlider.h" 17 | #include "guiType2DSlider.h" 18 | #include "guiTypeDrawable.h" 19 | #include "guiTypeLogger.h" 20 | #include "guiTypeFileLister.h" 21 | #include "guiTypeCustom.h" 22 | #include "guiCustomImpl.h" 23 | -------------------------------------------------------------------------------- /week7_opencv_motionHistory/src/utils/ofxControlPanel/guiTypeText.h: -------------------------------------------------------------------------------- 1 | #pragma once 2 | 3 | #include "guiBaseObject.h" 4 | #include "guiTypeText.h" 5 | #include "guiColor.h" 6 | #include "simpleColor.h" 7 | #include "guiValue.h" 8 | 9 | class guiTypeText : public guiBaseObject, public guiTextBase{ 10 | 11 | public: 12 | 13 | 14 | 15 | }; 16 | -------------------------------------------------------------------------------- /week7_opencv_motionHistory/week7_opencv_motionHistory.workspace: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | -------------------------------------------------------------------------------- /week7_opencv_presence/Project.xcconfig: -------------------------------------------------------------------------------- 1 | //THE PATH TO THE ROOT OF OUR OF PATH RELATIVE TO THIS PROJECT. 2 | //THIS NEEDS TO BE DEFINED BEFORE CoreOF.xcconfig IS INCLUDED 3 | OF_PATH = ../../.. 4 | 5 | //THIS HAS ALL THE HEADER AND LIBS FOR OF CORE 6 | #include "../../../libs/openFrameworksCompiled/project/osx/CoreOF.xcconfig" 7 | 8 | OTHER_LDFLAGS = $(OF_CORE_LIBS) 9 | HEADER_SEARCH_PATHS = $(OF_CORE_HEADERS) 10 | -------------------------------------------------------------------------------- /week7_opencv_presence/addons.make: -------------------------------------------------------------------------------- 1 | ofxOpenCv 2 | ofxXmlSettings -------------------------------------------------------------------------------- /week7_opencv_presence/bin/data/cvSettings.xml: -------------------------------------------------------------------------------- 1 | 2 | 5.666666985 3 | 4 | 5 | 0.000000 6 | 7 | 8 | 0.000000000 9 | 10 | -------------------------------------------------------------------------------- /week7_opencv_presence/bin/data/test.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ofZach/avsys2012/0c02857ba0e9b964e8f1ae364e93b21575fb0889/week7_opencv_presence/bin/data/test.png -------------------------------------------------------------------------------- /week7_opencv_presence/openFrameworks-Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | English 7 | CFBundleExecutable 8 | ${EXECUTABLE_NAME} 9 | CFBundleIdentifier 10 | com.yourcompany.openFrameworks 11 | CFBundleInfoDictionaryVersion 12 | 6.0 13 | CFBundlePackageType 14 | APPL 15 | CFBundleSignature 16 | ???? 17 | CFBundleVersion 18 | 1.0 19 | 20 | 21 | -------------------------------------------------------------------------------- /week7_opencv_presence/src/main.cpp: -------------------------------------------------------------------------------- 1 | #include "ofMain.h" 2 | #include "testApp.h" 3 | #include "ofAppGlutWindow.h" 4 | 5 | //======================================================================== 6 | int main( ){ 7 | 8 | ofAppGlutWindow window; 9 | ofSetupOpenGL(&window, 1024,768, OF_WINDOW); // <-------- setup the GL context 10 | 11 | // this kicks off the running of my app 12 | // can be OF_WINDOW or OF_FULLSCREEN 13 | // pass in width and height too: 14 | ofRunApp( new testApp()); 15 | 16 | } 17 | -------------------------------------------------------------------------------- /week7_opencv_presence/src/testApp.h: -------------------------------------------------------------------------------- 1 | #ifndef _TEST_APP 2 | #define _TEST_APP 3 | 4 | 5 | #include "ofMain.h" 6 | #include "ofxOpenCv.h" 7 | #include "ofxControlPanel.h" 8 | 9 | 10 | class testApp : public ofBaseApp{ 11 | 12 | public: 13 | void setup(); 14 | void update(); 15 | void draw(); 16 | 17 | void keyPressed (int key); 18 | void keyReleased(int key); 19 | void mouseMoved(int x, int y ); 20 | void mouseDragged(int x, int y, int button); 21 | void mousePressed(int x, int y, int button); 22 | void mouseReleased(int x, int y, int button); 23 | void windowResized(int w, int h); 24 | 25 | // create a variable of the type ofImage 26 | ofxControlPanel panel; 27 | 28 | int width, height; 29 | ofVideoGrabber video; 30 | ofxCvColorImage videoColorCvImage; 31 | ofxCvGrayscaleImage videoGrayscaleCvImage; 32 | ofxCvGrayscaleImage videoBgImage; 33 | 34 | ofxCvGrayscaleImage videoDiffImage; 35 | 36 | 37 | }; 38 | 39 | #endif 40 | -------------------------------------------------------------------------------- /week7_opencv_presence/src/utils/ofxControlPanel/guiCustomImpl.h: -------------------------------------------------------------------------------- 1 | #pragma once 2 | 3 | class guiCustomImpl{ 4 | 5 | public: 6 | 7 | guiCustomImpl(){ 8 | mouseIsRelative = false; 9 | } 10 | 11 | virtual ~guiCustomImpl(){ 12 | 13 | } 14 | 15 | virtual void saveSettings(string filename){} 16 | virtual void reloadSettings(){} 17 | virtual void saveSettings(){} 18 | virtual void loadSettings(string filename){} 19 | 20 | virtual void update(){} 21 | virtual void draw(float x, float y, float w, float h){} 22 | 23 | virtual void mousePressed(float x, float y){} 24 | virtual void mouseDragged(float x, float y){} 25 | virtual void mouseReleased(){} 26 | 27 | bool mouseIsRelative; 28 | 29 | ofRectangle boundingRect; 30 | }; 31 | -------------------------------------------------------------------------------- /week7_opencv_presence/src/utils/ofxControlPanel/guiIncludes.h: -------------------------------------------------------------------------------- 1 | 2 | //fundementals 3 | #include "guiValue.h" 4 | #include "guiBaseObject.h" 5 | #include "guiColor.h" 6 | #include "simpleColor.h" 7 | #include "guiValue.h" 8 | 9 | //interface 10 | #include "guiTypePanel.h" 11 | 12 | //elements 13 | #include "guiTypeText.h" 14 | #include "guiTypeToggle.h" 15 | #include "guiTypeMultiToggle.h" 16 | #include "guiTypeSlider.h" 17 | #include "guiType2DSlider.h" 18 | #include "guiTypeDrawable.h" 19 | #include "guiTypeLogger.h" 20 | #include "guiTypeFileLister.h" 21 | #include "guiTypeCustom.h" 22 | #include "guiCustomImpl.h" 23 | -------------------------------------------------------------------------------- /week7_opencv_presence/src/utils/ofxControlPanel/guiTypeText.h: -------------------------------------------------------------------------------- 1 | #pragma once 2 | 3 | #include "guiBaseObject.h" 4 | #include "guiTypeText.h" 5 | #include "guiColor.h" 6 | #include "simpleColor.h" 7 | #include "guiValue.h" 8 | 9 | class guiTypeText : public guiBaseObject, public guiTextBase{ 10 | 11 | public: 12 | 13 | 14 | 15 | }; 16 | -------------------------------------------------------------------------------- /week7_opencv_presence/week7_opencv_presence.workspace: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | -------------------------------------------------------------------------------- /week7_opencv_presence2/Project.xcconfig: -------------------------------------------------------------------------------- 1 | //THE PATH TO THE ROOT OF OUR OF PATH RELATIVE TO THIS PROJECT. 2 | //THIS NEEDS TO BE DEFINED BEFORE CoreOF.xcconfig IS INCLUDED 3 | OF_PATH = ../../.. 4 | 5 | //THIS HAS ALL THE HEADER AND LIBS FOR OF CORE 6 | #include "../../../libs/openFrameworksCompiled/project/osx/CoreOF.xcconfig" 7 | 8 | OTHER_LDFLAGS = $(OF_CORE_LIBS) 9 | HEADER_SEARCH_PATHS = $(OF_CORE_HEADERS) 10 | -------------------------------------------------------------------------------- /week7_opencv_presence2/addons.make: -------------------------------------------------------------------------------- 1 | ofxOpenCv 2 | ofxXmlSettings -------------------------------------------------------------------------------- /week7_opencv_presence2/bin/data/cvSettings.xml: -------------------------------------------------------------------------------- 1 | 2 | 52.416668 3 | 4 | 5 | 0.000000 6 | 7 | -------------------------------------------------------------------------------- /week7_opencv_presence2/bin/data/test.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ofZach/avsys2012/0c02857ba0e9b964e8f1ae364e93b21575fb0889/week7_opencv_presence2/bin/data/test.png -------------------------------------------------------------------------------- /week7_opencv_presence2/openFrameworks-Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | English 7 | CFBundleExecutable 8 | ${EXECUTABLE_NAME} 9 | CFBundleIdentifier 10 | com.yourcompany.openFrameworks 11 | CFBundleInfoDictionaryVersion 12 | 6.0 13 | CFBundlePackageType 14 | APPL 15 | CFBundleSignature 16 | ???? 17 | CFBundleVersion 18 | 1.0 19 | 20 | 21 | -------------------------------------------------------------------------------- /week7_opencv_presence2/src/main.cpp: -------------------------------------------------------------------------------- 1 | #include "ofMain.h" 2 | #include "testApp.h" 3 | #include "ofAppGlutWindow.h" 4 | 5 | //======================================================================== 6 | int main( ){ 7 | 8 | ofAppGlutWindow window; 9 | ofSetupOpenGL(&window, 1024,768, OF_WINDOW); // <-------- setup the GL context 10 | 11 | // this kicks off the running of my app 12 | // can be OF_WINDOW or OF_FULLSCREEN 13 | // pass in width and height too: 14 | ofRunApp( new testApp()); 15 | 16 | } 17 | -------------------------------------------------------------------------------- /week7_opencv_presence2/src/utils/ofxControlPanel/guiCustomImpl.h: -------------------------------------------------------------------------------- 1 | #pragma once 2 | 3 | class guiCustomImpl{ 4 | 5 | public: 6 | 7 | guiCustomImpl(){ 8 | mouseIsRelative = false; 9 | } 10 | 11 | virtual ~guiCustomImpl(){ 12 | 13 | } 14 | 15 | virtual void saveSettings(string filename){} 16 | virtual void reloadSettings(){} 17 | virtual void saveSettings(){} 18 | virtual void loadSettings(string filename){} 19 | 20 | virtual void update(){} 21 | virtual void draw(float x, float y, float w, float h){} 22 | 23 | virtual void mousePressed(float x, float y){} 24 | virtual void mouseDragged(float x, float y){} 25 | virtual void mouseReleased(){} 26 | 27 | bool mouseIsRelative; 28 | 29 | ofRectangle boundingRect; 30 | }; 31 | -------------------------------------------------------------------------------- /week7_opencv_presence2/src/utils/ofxControlPanel/guiIncludes.h: -------------------------------------------------------------------------------- 1 | 2 | //fundementals 3 | #include "guiValue.h" 4 | #include "guiBaseObject.h" 5 | #include "guiColor.h" 6 | #include "simpleColor.h" 7 | #include "guiValue.h" 8 | 9 | //interface 10 | #include "guiTypePanel.h" 11 | 12 | //elements 13 | #include "guiTypeText.h" 14 | #include "guiTypeToggle.h" 15 | #include "guiTypeMultiToggle.h" 16 | #include "guiTypeSlider.h" 17 | #include "guiType2DSlider.h" 18 | #include "guiTypeDrawable.h" 19 | #include "guiTypeLogger.h" 20 | #include "guiTypeFileLister.h" 21 | #include "guiTypeCustom.h" 22 | #include "guiCustomImpl.h" 23 | -------------------------------------------------------------------------------- /week7_opencv_presence2/src/utils/ofxControlPanel/guiTypeText.h: -------------------------------------------------------------------------------- 1 | #pragma once 2 | 3 | #include "guiBaseObject.h" 4 | #include "guiTypeText.h" 5 | #include "guiColor.h" 6 | #include "simpleColor.h" 7 | #include "guiValue.h" 8 | 9 | class guiTypeText : public guiBaseObject, public guiTextBase{ 10 | 11 | public: 12 | 13 | 14 | 15 | }; 16 | -------------------------------------------------------------------------------- /week7_opencv_presence2/week7_opencv_presence2.workspace: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | -------------------------------------------------------------------------------- /week7_opencv_presence3/Project.xcconfig: -------------------------------------------------------------------------------- 1 | //THE PATH TO THE ROOT OF OUR OF PATH RELATIVE TO THIS PROJECT. 2 | //THIS NEEDS TO BE DEFINED BEFORE CoreOF.xcconfig IS INCLUDED 3 | OF_PATH = ../../.. 4 | 5 | //THIS HAS ALL THE HEADER AND LIBS FOR OF CORE 6 | #include "../../../libs/openFrameworksCompiled/project/osx/CoreOF.xcconfig" 7 | 8 | OTHER_LDFLAGS = $(OF_CORE_LIBS) 9 | HEADER_SEARCH_PATHS = $(OF_CORE_HEADERS) 10 | -------------------------------------------------------------------------------- /week7_opencv_presence3/addons.make: -------------------------------------------------------------------------------- 1 | ofxOpenCv 2 | ofxXmlSettings -------------------------------------------------------------------------------- /week7_opencv_presence3/bin/data/cvSettings.xml: -------------------------------------------------------------------------------- 1 | 2 | 52.416668 3 | 4 | 5 | 0.000000 6 | 7 | -------------------------------------------------------------------------------- /week7_opencv_presence3/bin/data/test.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ofZach/avsys2012/0c02857ba0e9b964e8f1ae364e93b21575fb0889/week7_opencv_presence3/bin/data/test.png -------------------------------------------------------------------------------- /week7_opencv_presence3/openFrameworks-Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | English 7 | CFBundleExecutable 8 | ${EXECUTABLE_NAME} 9 | CFBundleIdentifier 10 | com.yourcompany.openFrameworks 11 | CFBundleInfoDictionaryVersion 12 | 6.0 13 | CFBundlePackageType 14 | APPL 15 | CFBundleSignature 16 | ???? 17 | CFBundleVersion 18 | 1.0 19 | 20 | 21 | -------------------------------------------------------------------------------- /week7_opencv_presence3/src/main.cpp: -------------------------------------------------------------------------------- 1 | #include "ofMain.h" 2 | #include "testApp.h" 3 | #include "ofAppGlutWindow.h" 4 | 5 | //======================================================================== 6 | int main( ){ 7 | 8 | ofAppGlutWindow window; 9 | ofSetupOpenGL(&window, 1024,768, OF_WINDOW); // <-------- setup the GL context 10 | 11 | // this kicks off the running of my app 12 | // can be OF_WINDOW or OF_FULLSCREEN 13 | // pass in width and height too: 14 | ofRunApp( new testApp()); 15 | 16 | } 17 | -------------------------------------------------------------------------------- /week7_opencv_presence3/src/particle.h: -------------------------------------------------------------------------------- 1 | /* 2 | * particle.h 3 | * openFrameworks 4 | * 5 | * Created by Zach Lieberman on 10/29/09. 6 | * Copyright 2009 __MyCompanyName__. All rights reserved. 7 | * 8 | */ 9 | 10 | #pragma once 11 | 12 | 13 | #include "ofMain.h" 14 | #include "ofxCvMain.h" 15 | 16 | class particle { 17 | 18 | public: 19 | ofPoint pos; 20 | float energy; 21 | void setup(); 22 | void update(); 23 | void draw(); 24 | 25 | void checkImage( ofxCvGrayscaleImage & myImage); 26 | 27 | 28 | }; -------------------------------------------------------------------------------- /week7_opencv_presence3/src/utils/ofxControlPanel/guiCustomImpl.h: -------------------------------------------------------------------------------- 1 | #pragma once 2 | 3 | class guiCustomImpl{ 4 | 5 | public: 6 | 7 | guiCustomImpl(){ 8 | mouseIsRelative = false; 9 | } 10 | 11 | virtual ~guiCustomImpl(){ 12 | 13 | } 14 | 15 | virtual void saveSettings(string filename){} 16 | virtual void reloadSettings(){} 17 | virtual void saveSettings(){} 18 | virtual void loadSettings(string filename){} 19 | 20 | virtual void update(){} 21 | virtual void draw(float x, float y, float w, float h){} 22 | 23 | virtual void mousePressed(float x, float y){} 24 | virtual void mouseDragged(float x, float y){} 25 | virtual void mouseReleased(){} 26 | 27 | bool mouseIsRelative; 28 | 29 | ofRectangle boundingRect; 30 | }; 31 | -------------------------------------------------------------------------------- /week7_opencv_presence3/src/utils/ofxControlPanel/guiIncludes.h: -------------------------------------------------------------------------------- 1 | 2 | //fundementals 3 | #include "guiValue.h" 4 | #include "guiBaseObject.h" 5 | #include "guiColor.h" 6 | #include "simpleColor.h" 7 | #include "guiValue.h" 8 | 9 | //interface 10 | #include "guiTypePanel.h" 11 | 12 | //elements 13 | #include "guiTypeText.h" 14 | #include "guiTypeToggle.h" 15 | #include "guiTypeMultiToggle.h" 16 | #include "guiTypeSlider.h" 17 | #include "guiType2DSlider.h" 18 | #include "guiTypeDrawable.h" 19 | #include "guiTypeLogger.h" 20 | #include "guiTypeFileLister.h" 21 | #include "guiTypeCustom.h" 22 | #include "guiCustomImpl.h" 23 | -------------------------------------------------------------------------------- /week7_opencv_presence3/src/utils/ofxControlPanel/guiTypeText.h: -------------------------------------------------------------------------------- 1 | #pragma once 2 | 3 | #include "guiBaseObject.h" 4 | #include "guiTypeText.h" 5 | #include "guiColor.h" 6 | #include "simpleColor.h" 7 | #include "guiValue.h" 8 | 9 | class guiTypeText : public guiBaseObject, public guiTextBase{ 10 | 11 | public: 12 | 13 | 14 | 15 | }; 16 | -------------------------------------------------------------------------------- /week7_opencv_presence3/week7_opencv_presence3.workspace: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | -------------------------------------------------------------------------------- /week7_opticalFlow_wLines/Project.xcconfig: -------------------------------------------------------------------------------- 1 | //THE PATH TO THE ROOT OF OUR OF PATH RELATIVE TO THIS PROJECT. 2 | //THIS NEEDS TO BE DEFINED BEFORE CoreOF.xcconfig IS INCLUDED 3 | OF_PATH = ../../.. 4 | 5 | //THIS HAS ALL THE HEADER AND LIBS FOR OF CORE 6 | #include "../../../libs/openFrameworksCompiled/project/osx/CoreOF.xcconfig" 7 | 8 | OTHER_LDFLAGS = $(OF_CORE_LIBS) 9 | HEADER_SEARCH_PATHS = $(OF_CORE_HEADERS) 10 | -------------------------------------------------------------------------------- /week7_opticalFlow_wLines/addons.make: -------------------------------------------------------------------------------- 1 | ofxOpenCv -------------------------------------------------------------------------------- /week7_opticalFlow_wLines/openFrameworks-Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | English 7 | CFBundleExecutable 8 | ${EXECUTABLE_NAME} 9 | CFBundleIdentifier 10 | com.yourcompany.openFrameworks 11 | CFBundleInfoDictionaryVersion 12 | 6.0 13 | CFBundlePackageType 14 | APPL 15 | CFBundleSignature 16 | ???? 17 | CFBundleVersion 18 | 1.0 19 | 20 | 21 | -------------------------------------------------------------------------------- /week7_opticalFlow_wLines/src/main.cpp: -------------------------------------------------------------------------------- 1 | #include "ofMain.h" 2 | #include "testApp.h" 3 | #include "ofAppGlutWindow.h" 4 | 5 | //======================================================================== 6 | int main( ){ 7 | 8 | ofAppGlutWindow window; 9 | ofSetupOpenGL(&window, 640, 480, OF_WINDOW); // <-------- setup the GL context 10 | 11 | // this kicks off the running of my app 12 | // can be OF_WINDOW or OF_FULLSCREEN 13 | // pass in width and height too: 14 | ofRunApp( new testApp()); 15 | 16 | } 17 | -------------------------------------------------------------------------------- /week7_opticalFlow_wLines/src/testApp.h: -------------------------------------------------------------------------------- 1 | #ifndef _TEST_APP 2 | #define _TEST_APP 3 | 4 | #include "ofMain.h" 5 | #include "ofxOpenCv.h" 6 | #include "ofxOpticalFlowLK.h" 7 | 8 | 9 | class testApp : public ofBaseApp{ 10 | 11 | public: 12 | 13 | void setup(); 14 | void update(); 15 | void draw(); 16 | 17 | void keyPressed (int key); 18 | void mouseMoved(int x, int y ); 19 | void mouseDragged(int x, int y, int button); 20 | void mousePressed(int x, int y, int button); 21 | void mouseReleased(int x, int y, int button); 22 | void windowResized(int w, int h); 23 | 24 | ofVideoGrabber vidGrabber; 25 | 26 | 27 | ofxCvColorImage colorImg; 28 | ofxCvGrayscaleImage grayImage,prevGrayImage; 29 | ofxOpticalFlowLK flow; 30 | 31 | 32 | }; 33 | 34 | #endif 35 | -------------------------------------------------------------------------------- /week7_opticalFlow_wLines/week7_opticalFlow_wLines.workspace: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | -------------------------------------------------------------------------------- /week7_perceptualColorDistance/week7_perceptualColorDistance.workspace: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | -------------------------------------------------------------------------------- /week8_gestureRecorder/Project.xcconfig: -------------------------------------------------------------------------------- 1 | //THE PATH TO THE ROOT OF OUR OF PATH RELATIVE TO THIS PROJECT. 2 | //THIS NEEDS TO BE DEFINED BEFORE CoreOF.xcconfig IS INCLUDED 3 | OF_PATH = ../../.. 4 | 5 | //THIS HAS ALL THE HEADER AND LIBS FOR OF CORE 6 | #include "../../../libs/openFrameworksCompiled/project/osx/CoreOF.xcconfig" 7 | 8 | OTHER_LDFLAGS = $(OF_CORE_LIBS) 9 | HEADER_SEARCH_PATHS = $(OF_CORE_HEADERS) 10 | -------------------------------------------------------------------------------- /week8_gestureRecorder/openFrameworks-Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | English 7 | CFBundleExecutable 8 | ${EXECUTABLE_NAME} 9 | CFBundleIdentifier 10 | com.yourcompany.openFrameworks 11 | CFBundleInfoDictionaryVersion 12 | 6.0 13 | CFBundlePackageType 14 | APPL 15 | CFBundleSignature 16 | ???? 17 | CFBundleVersion 18 | 1.0 19 | 20 | 21 | -------------------------------------------------------------------------------- /week8_gestureRecorder/src/main.cpp: -------------------------------------------------------------------------------- 1 | #include "ofMain.h" 2 | #include "testApp.h" 3 | #include "ofAppGlutWindow.h" 4 | 5 | //======================================================================== 6 | int main( ){ 7 | 8 | ofAppGlutWindow window; 9 | ofSetupOpenGL(&window, 1024,768, OF_WINDOW); // <-------- setup the GL context 10 | 11 | // this kicks off the running of my app 12 | // can be OF_WINDOW or OF_FULLSCREEN 13 | // pass in width and height too: 14 | ofRunApp( new testApp()); 15 | 16 | } 17 | -------------------------------------------------------------------------------- /week8_gestureRecorder/src/sinOscillator.h: -------------------------------------------------------------------------------- 1 | #ifndef _SIN_OSCILLATOR 2 | #define _SIN_OSCILLATOR 3 | 4 | 5 | #include "ofMain.h" 6 | 7 | 8 | class sinOscillator{ 9 | 10 | public: 11 | 12 | 13 | void setup(); 14 | void setFrequency(float newFrequency); 15 | void setVolume(float newVolume); 16 | void addToSoundBuffer(float * buffer, int bufferSize); 17 | 18 | float pan; 19 | int sampleRate; 20 | float volume; 21 | float frequency; 22 | 23 | float angle; 24 | float angleAdder; 25 | 26 | }; 27 | 28 | #endif -------------------------------------------------------------------------------- /week8_gestureRecorder/src/testApp.h: -------------------------------------------------------------------------------- 1 | #ifndef _TEST_APP 2 | #define _TEST_APP 3 | 4 | 5 | #include "ofMain.h" 6 | 7 | #include "pointRecorder.h" 8 | 9 | class testApp : public ofBaseApp{ 10 | 11 | public: 12 | void setup(); 13 | void update(); 14 | void draw(); 15 | 16 | void keyPressed (int key); 17 | void keyReleased(int key); 18 | void mouseMoved(int x, int y ); 19 | void mouseDragged(int x, int y, int button); 20 | void mousePressed(int x, int y, int button); 21 | void mouseReleased(int x, int y, int button); 22 | void windowResized(int w, int h); 23 | 24 | vector gestures; 25 | }; 26 | 27 | #endif 28 | -------------------------------------------------------------------------------- /week8_gestureRecorderSound/Project.xcconfig: -------------------------------------------------------------------------------- 1 | //THE PATH TO THE ROOT OF OUR OF PATH RELATIVE TO THIS PROJECT. 2 | //THIS NEEDS TO BE DEFINED BEFORE CoreOF.xcconfig IS INCLUDED 3 | OF_PATH = ../../.. 4 | 5 | //THIS HAS ALL THE HEADER AND LIBS FOR OF CORE 6 | #include "../../../libs/openFrameworksCompiled/project/osx/CoreOF.xcconfig" 7 | 8 | OTHER_LDFLAGS = $(OF_CORE_LIBS) 9 | HEADER_SEARCH_PATHS = $(OF_CORE_HEADERS) 10 | -------------------------------------------------------------------------------- /week8_gestureRecorderSound/openFrameworks-Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | English 7 | CFBundleExecutable 8 | ${EXECUTABLE_NAME} 9 | CFBundleIdentifier 10 | com.yourcompany.openFrameworks 11 | CFBundleInfoDictionaryVersion 12 | 6.0 13 | CFBundlePackageType 14 | APPL 15 | CFBundleSignature 16 | ???? 17 | CFBundleVersion 18 | 1.0 19 | 20 | 21 | -------------------------------------------------------------------------------- /week8_gestureRecorderSound/src/fmOscillator.h: -------------------------------------------------------------------------------- 1 | #ifndef _FM_OSCILLATOR 2 | #define _FM_OSCILLATOR 3 | 4 | 5 | #include "ofMain.h" 6 | 7 | 8 | class fmOscillator{ 9 | 10 | public: 11 | 12 | 13 | void setup(); 14 | 15 | void setCarrierFrequency(float frequency); 16 | void setModulatorFrequency(float frequency); 17 | void setModulatorIndex(float amount); 18 | void setModulationStrength(float strength); 19 | 20 | void setVolume(float newVolume); 21 | void addToSoundBuffer(float * buffer, int bufferSize); 22 | 23 | float carrierFrequency; 24 | float modulatorFrequency; 25 | float modulatorIndex; 26 | float modulatorStrength; 27 | 28 | int sampleRate; 29 | float volume; 30 | 31 | float angle; 32 | float angleAdder; 33 | 34 | float modPhase; 35 | float modPhaseAdder; 36 | 37 | 38 | }; 39 | 40 | #endif -------------------------------------------------------------------------------- /week8_gestureRecorderSound/src/main.cpp: -------------------------------------------------------------------------------- 1 | #include "ofMain.h" 2 | #include "testApp.h" 3 | #include "ofAppGlutWindow.h" 4 | 5 | //======================================================================== 6 | int main( ){ 7 | 8 | ofAppGlutWindow window; 9 | ofSetupOpenGL(&window, 1024,768, OF_WINDOW); // <-------- setup the GL context 10 | 11 | // this kicks off the running of my app 12 | // can be OF_WINDOW or OF_FULLSCREEN 13 | // pass in width and height too: 14 | ofRunApp( new testApp()); 15 | 16 | } 17 | -------------------------------------------------------------------------------- /week8_gestureRecorderSound/src/testApp.h: -------------------------------------------------------------------------------- 1 | #ifndef _TEST_APP 2 | #define _TEST_APP 3 | 4 | 5 | #include "ofMain.h" 6 | 7 | #include "pointRecorder.h" 8 | 9 | class testApp : public ofBaseApp{ 10 | 11 | public: 12 | void setup(); 13 | void update(); 14 | void draw(); 15 | 16 | void keyPressed (int key); 17 | void keyReleased(int key); 18 | void mouseMoved(int x, int y ); 19 | void mouseDragged(int x, int y, int button); 20 | void mousePressed(int x, int y, int button); 21 | void mouseReleased(int x, int y, int button); 22 | void windowResized(int w, int h); 23 | 24 | vector gestures; 25 | 26 | void audioRequested(float * input, int bufferSize, int nChannels); 27 | }; 28 | 29 | #endif 30 | -------------------------------------------------------------------------------- /week8_grid/Project.xcconfig: -------------------------------------------------------------------------------- 1 | //THE PATH TO THE ROOT OF OUR OF PATH RELATIVE TO THIS PROJECT. 2 | //THIS NEEDS TO BE DEFINED BEFORE CoreOF.xcconfig IS INCLUDED 3 | OF_PATH = ../../.. 4 | 5 | //THIS HAS ALL THE HEADER AND LIBS FOR OF CORE 6 | #include "../../../libs/openFrameworksCompiled/project/osx/CoreOF.xcconfig" 7 | 8 | OTHER_LDFLAGS = $(OF_CORE_LIBS) 9 | HEADER_SEARCH_PATHS = $(OF_CORE_HEADERS) 10 | -------------------------------------------------------------------------------- /week8_grid/addons.make: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ofZach/avsys2012/0c02857ba0e9b964e8f1ae364e93b21575fb0889/week8_grid/addons.make -------------------------------------------------------------------------------- /week8_grid/bin/data/.gitkeep: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ofZach/avsys2012/0c02857ba0e9b964e8f1ae364e93b21575fb0889/week8_grid/bin/data/.gitkeep -------------------------------------------------------------------------------- /week8_grid/openFrameworks-Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | English 7 | CFBundleExecutable 8 | ${EXECUTABLE_NAME} 9 | CFBundleIdentifier 10 | com.yourcompany.openFrameworks 11 | CFBundleInfoDictionaryVersion 12 | 6.0 13 | CFBundlePackageType 14 | APPL 15 | CFBundleSignature 16 | ???? 17 | CFBundleVersion 18 | 1.0 19 | 20 | 21 | -------------------------------------------------------------------------------- /week8_grid/src/main.cpp: -------------------------------------------------------------------------------- 1 | #include "ofMain.h" 2 | #include "testApp.h" 3 | #include "ofAppGlutWindow.h" 4 | 5 | //======================================================================== 6 | int main( ){ 7 | 8 | ofAppGlutWindow window; 9 | ofSetupOpenGL(&window, 1024,768, OF_WINDOW); // <-------- setup the GL context 10 | 11 | // this kicks off the running of my app 12 | // can be OF_WINDOW or OF_FULLSCREEN 13 | // pass in width and height too: 14 | ofRunApp( new testApp()); 15 | 16 | } 17 | -------------------------------------------------------------------------------- /week8_grid/src/testApp.h: -------------------------------------------------------------------------------- 1 | #pragma once 2 | 3 | #include "ofMain.h" 4 | 5 | class testApp : public ofBaseApp{ 6 | 7 | public: 8 | void setup(); 9 | void update(); 10 | void draw(); 11 | 12 | void keyPressed (int key); 13 | void keyReleased(int key); 14 | void mouseMoved(int x, int y ); 15 | void mouseDragged(int x, int y, int button); 16 | void mousePressed(int x, int y, int button); 17 | void mouseReleased(int x, int y, int button); 18 | void windowResized(int w, int h); 19 | void dragEvent(ofDragInfo dragInfo); 20 | void gotMessage(ofMessage msg); 21 | 22 | bool drawVal; 23 | 24 | bool pixels[32][24]; 25 | 26 | 27 | 28 | 29 | }; 30 | -------------------------------------------------------------------------------- /week8_loopRecorderSeq/Project.xcconfig: -------------------------------------------------------------------------------- 1 | //THE PATH TO THE ROOT OF OUR OF PATH RELATIVE TO THIS PROJECT. 2 | //THIS NEEDS TO BE DEFINED BEFORE CoreOF.xcconfig IS INCLUDED 3 | OF_PATH = ../../.. 4 | 5 | //THIS HAS ALL THE HEADER AND LIBS FOR OF CORE 6 | #include "../../../libs/openFrameworksCompiled/project/osx/CoreOF.xcconfig" 7 | 8 | OTHER_LDFLAGS = $(OF_CORE_LIBS) 9 | HEADER_SEARCH_PATHS = $(OF_CORE_HEADERS) 10 | -------------------------------------------------------------------------------- /week8_loopRecorderSeq/openFrameworks-Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | English 7 | CFBundleExecutable 8 | ${EXECUTABLE_NAME} 9 | CFBundleIdentifier 10 | com.yourcompany.openFrameworks 11 | CFBundleInfoDictionaryVersion 12 | 6.0 13 | CFBundlePackageType 14 | APPL 15 | CFBundleSignature 16 | ???? 17 | CFBundleVersion 18 | 1.0 19 | 20 | 21 | -------------------------------------------------------------------------------- /week8_loopRecorderSeq/src/fmOscillator.h: -------------------------------------------------------------------------------- 1 | #ifndef _FM_OSCILLATOR 2 | #define _FM_OSCILLATOR 3 | 4 | 5 | #include "ofMain.h" 6 | //#include "ofAddons.h" 7 | 8 | 9 | class fmOscillator{ 10 | 11 | public: 12 | 13 | 14 | void setup(); 15 | 16 | void setCarrierFrequency(float frequency); 17 | void setModulatorFrequency(float frequency); 18 | void setModulatorIndex(float amount); 19 | void setModulationStrength(float strength); 20 | 21 | void setVolume(float newVolume); 22 | void addToSoundBuffer(float * buffer, int bufferSize); 23 | 24 | float carrierFrequency; 25 | float modulatorFrequency; 26 | float modulatorIndex; 27 | float modulatorStrength; 28 | 29 | int sampleRate; 30 | float volume; 31 | 32 | float angle; 33 | float angleAdder; 34 | 35 | float modPhase; 36 | float modPhaseAdder; 37 | 38 | 39 | }; 40 | 41 | #endif -------------------------------------------------------------------------------- /week8_loopRecorderSeq/src/main.cpp: -------------------------------------------------------------------------------- 1 | #include "ofMain.h" 2 | #include "testApp.h" 3 | #include "ofAppGlutWindow.h" 4 | 5 | //======================================================================== 6 | int main( ){ 7 | 8 | ofAppGlutWindow window; 9 | ofSetupOpenGL(&window, 1024,768, OF_WINDOW); // <-------- setup the GL context 10 | 11 | // this kicks off the running of my app 12 | // can be OF_WINDOW or OF_FULLSCREEN 13 | // pass in width and height too: 14 | ofRunApp( new testApp()); 15 | 16 | } 17 | -------------------------------------------------------------------------------- /week8_loopRecorderSeq/src/testApp.h: -------------------------------------------------------------------------------- 1 | #ifndef _TEST_APP 2 | #define _TEST_APP 3 | 4 | 5 | #include "ofMain.h" 6 | 7 | #include "pointRecorder.h" 8 | 9 | class testApp : public ofBaseApp{ 10 | 11 | public: 12 | void setup(); 13 | void update(); 14 | void draw(); 15 | 16 | void keyPressed (int key); 17 | void keyReleased(int key); 18 | void mouseMoved(int x, int y ); 19 | void mouseDragged(int x, int y, int button); 20 | void mousePressed(int x, int y, int button); 21 | void mouseReleased(int x, int y, int button); 22 | void windowResized(int w, int h); 23 | 24 | vector gestures; 25 | 26 | void audioRequested(float * input, int bufferSize, int nChannels); 27 | }; 28 | 29 | #endif 30 | -------------------------------------------------------------------------------- /week8_simpleStepSeq/Project.xcconfig: -------------------------------------------------------------------------------- 1 | //THE PATH TO THE ROOT OF OUR OF PATH RELATIVE TO THIS PROJECT. 2 | //THIS NEEDS TO BE DEFINED BEFORE CoreOF.xcconfig IS INCLUDED 3 | OF_PATH = ../../.. 4 | 5 | //THIS HAS ALL THE HEADER AND LIBS FOR OF CORE 6 | #include "../../../libs/openFrameworksCompiled/project/osx/CoreOF.xcconfig" 7 | 8 | OTHER_LDFLAGS = $(OF_CORE_LIBS) 9 | HEADER_SEARCH_PATHS = $(OF_CORE_HEADERS) 10 | -------------------------------------------------------------------------------- /week8_simpleStepSeq/openFrameworks-Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | English 7 | CFBundleExecutable 8 | ${EXECUTABLE_NAME} 9 | CFBundleIdentifier 10 | com.yourcompany.openFrameworks 11 | CFBundleInfoDictionaryVersion 12 | 6.0 13 | CFBundlePackageType 14 | APPL 15 | CFBundleSignature 16 | ???? 17 | CFBundleVersion 18 | 1.0 19 | 20 | 21 | -------------------------------------------------------------------------------- /week8_simpleStepSeq/src/main.cpp: -------------------------------------------------------------------------------- 1 | #include "ofMain.h" 2 | #include "testApp.h" 3 | #include "ofAppGlutWindow.h" 4 | 5 | //======================================================================== 6 | int main( ){ 7 | 8 | ofAppGlutWindow window; 9 | ofSetupOpenGL(&window, 1024,768, OF_WINDOW); // <-------- setup the GL context 10 | 11 | // this kicks off the running of my app 12 | // can be OF_WINDOW or OF_FULLSCREEN 13 | // pass in width and height too: 14 | ofRunApp( new testApp()); 15 | 16 | } 17 | -------------------------------------------------------------------------------- /week8_simpleStepSeq/src/midiToFreqConverter.cpp: -------------------------------------------------------------------------------- 1 | /* 2 | * midiToFreqConverter.cpp 3 | * simpleStepSeq 4 | * 5 | * Created by Zach Gage on 3/8/11. 6 | * Copyright 2011 stfj. All rights reserved. 7 | * 8 | */ 9 | 10 | #include "midiToFreqConverter.h" 11 | 12 | float midiToFreqConverter::getFreqForNote(int note){ 13 | return 440 * pow(2.0,(note-69.0)/12.0); 14 | } -------------------------------------------------------------------------------- /week8_simpleStepSeq/src/midiToFreqConverter.h: -------------------------------------------------------------------------------- 1 | /* 2 | * midiToFreqConverter.h 3 | * simpleStepSeq 4 | * 5 | * Created by Zach Gage on 3/8/11. 6 | * Copyright 2011 stfj. All rights reserved. 7 | * 8 | */ 9 | 10 | #pragma once 11 | 12 | class midiToFreqConverter 13 | { 14 | public: 15 | float getFreqForNote(int note); 16 | }; -------------------------------------------------------------------------------- /week8_simpleStepSeq/src/sinOscillator.h: -------------------------------------------------------------------------------- 1 | #ifndef _SIN_OSCILLATOR 2 | #define _SIN_OSCILLATOR 3 | 4 | 5 | #include "ofMain.h" 6 | 7 | 8 | class sinOscillator{ 9 | 10 | public: 11 | 12 | 13 | void setup(); 14 | void setFrequency(float newFrequency); 15 | void setVolume(float newVolume); 16 | void addToSoundBuffer(float * buffer, int bufferSize); 17 | 18 | float pan; 19 | int sampleRate; 20 | float volume; 21 | float frequency; 22 | 23 | float angle; 24 | float angleAdder; 25 | 26 | }; 27 | 28 | #endif -------------------------------------------------------------------------------- /week8_simpleStepSeqMod/Project.xcconfig: -------------------------------------------------------------------------------- 1 | //THE PATH TO THE ROOT OF OUR OF PATH RELATIVE TO THIS PROJECT. 2 | //THIS NEEDS TO BE DEFINED BEFORE CoreOF.xcconfig IS INCLUDED 3 | OF_PATH = ../../.. 4 | 5 | //THIS HAS ALL THE HEADER AND LIBS FOR OF CORE 6 | #include "../../../libs/openFrameworksCompiled/project/osx/CoreOF.xcconfig" 7 | 8 | OTHER_LDFLAGS = $(OF_CORE_LIBS) 9 | HEADER_SEARCH_PATHS = $(OF_CORE_HEADERS) 10 | -------------------------------------------------------------------------------- /week8_simpleStepSeqMod/openFrameworks-Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | English 7 | CFBundleExecutable 8 | ${EXECUTABLE_NAME} 9 | CFBundleIdentifier 10 | com.yourcompany.openFrameworks 11 | CFBundleInfoDictionaryVersion 12 | 6.0 13 | CFBundlePackageType 14 | APPL 15 | CFBundleSignature 16 | ???? 17 | CFBundleVersion 18 | 1.0 19 | 20 | 21 | -------------------------------------------------------------------------------- /week8_simpleStepSeqMod/src/main.cpp: -------------------------------------------------------------------------------- 1 | #include "ofMain.h" 2 | #include "testApp.h" 3 | #include "ofAppGlutWindow.h" 4 | 5 | //======================================================================== 6 | int main( ){ 7 | 8 | ofAppGlutWindow window; 9 | ofSetupOpenGL(&window, 1024,768, OF_WINDOW); // <-------- setup the GL context 10 | 11 | // this kicks off the running of my app 12 | // can be OF_WINDOW or OF_FULLSCREEN 13 | // pass in width and height too: 14 | ofRunApp( new testApp()); 15 | 16 | } 17 | -------------------------------------------------------------------------------- /week8_simpleStepSeqMod/src/midiToFreqConverter.cpp: -------------------------------------------------------------------------------- 1 | /* 2 | * midiToFreqConverter.cpp 3 | * simpleStepSeq 4 | * 5 | * Created by Zach Gage on 3/8/11. 6 | * Copyright 2011 stfj. All rights reserved. 7 | * 8 | */ 9 | 10 | #include "midiToFreqConverter.h" 11 | 12 | float midiToFreqConverter::getFreqForNote(int note){ 13 | return 440 * pow(2.0,(note-69.0)/12.0); 14 | } -------------------------------------------------------------------------------- /week8_simpleStepSeqMod/src/midiToFreqConverter.h: -------------------------------------------------------------------------------- 1 | /* 2 | * midiToFreqConverter.h 3 | * simpleStepSeq 4 | * 5 | * Created by Zach Gage on 3/8/11. 6 | * Copyright 2011 stfj. All rights reserved. 7 | * 8 | */ 9 | 10 | #pragma once 11 | 12 | class midiToFreqConverter 13 | { 14 | public: 15 | float getFreqForNote(int note); 16 | }; -------------------------------------------------------------------------------- /week8_simpleStepSeqMod/src/sinOscillator.h: -------------------------------------------------------------------------------- 1 | #ifndef _SIN_OSCILLATOR 2 | #define _SIN_OSCILLATOR 3 | 4 | 5 | #include "ofMain.h" 6 | 7 | class sinOscillator{ 8 | 9 | public: 10 | 11 | 12 | void setup(); 13 | void setFrequency(float newFrequency); 14 | void setVolume(float newVolume); 15 | void addToSoundBuffer(float * buffer, int bufferSize); 16 | 17 | float pan; 18 | int sampleRate; 19 | float volume; 20 | float frequency; 21 | 22 | float angle; 23 | float angleAdder; 24 | 25 | }; 26 | 27 | #endif -------------------------------------------------------------------------------- /week9_colorSort_detroit/Project.xcconfig: -------------------------------------------------------------------------------- 1 | //THE PATH TO THE ROOT OF OUR OF PATH RELATIVE TO THIS PROJECT. 2 | //THIS NEEDS TO BE DEFINED BEFORE CoreOF.xcconfig IS INCLUDED 3 | OF_PATH = ../../.. 4 | 5 | //THIS HAS ALL THE HEADER AND LIBS FOR OF CORE 6 | #include "../../../libs/openFrameworksCompiled/project/osx/CoreOF.xcconfig" 7 | 8 | OTHER_LDFLAGS = $(OF_CORE_LIBS) 9 | HEADER_SEARCH_PATHS = $(OF_CORE_HEADERS) 10 | -------------------------------------------------------------------------------- /week9_colorSort_detroit/addons.make: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ofZach/avsys2012/0c02857ba0e9b964e8f1ae364e93b21575fb0889/week9_colorSort_detroit/addons.make -------------------------------------------------------------------------------- /week9_colorSort_detroit/bin/data/.gitkeep: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ofZach/avsys2012/0c02857ba0e9b964e8f1ae364e93b21575fb0889/week9_colorSort_detroit/bin/data/.gitkeep -------------------------------------------------------------------------------- /week9_colorSort_detroit/bin/data/Red_eyed_tree_frog_edit2.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ofZach/avsys2012/0c02857ba0e9b964e8f1ae364e93b21575fb0889/week9_colorSort_detroit/bin/data/Red_eyed_tree_frog_edit2.jpg -------------------------------------------------------------------------------- /week9_colorSort_detroit/bin/data/detroit.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ofZach/avsys2012/0c02857ba0e9b964e8f1ae364e93b21575fb0889/week9_colorSort_detroit/bin/data/detroit.jpg -------------------------------------------------------------------------------- /week9_colorSort_detroit/bin/data/disneyland.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ofZach/avsys2012/0c02857ba0e9b964e8f1ae364e93b21575fb0889/week9_colorSort_detroit/bin/data/disneyland.jpg -------------------------------------------------------------------------------- /week9_colorSort_detroit/openFrameworks-Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | English 7 | CFBundleExecutable 8 | ${EXECUTABLE_NAME} 9 | CFBundleIdentifier 10 | com.yourcompany.openFrameworks 11 | CFBundleInfoDictionaryVersion 12 | 6.0 13 | CFBundlePackageType 14 | APPL 15 | CFBundleSignature 16 | ???? 17 | CFBundleVersion 18 | 1.0 19 | 20 | 21 | -------------------------------------------------------------------------------- /week9_colorSort_detroit/src/main.cpp: -------------------------------------------------------------------------------- 1 | #include "ofMain.h" 2 | #include "testApp.h" 3 | #include "ofAppGlutWindow.h" 4 | 5 | //======================================================================== 6 | int main( ){ 7 | 8 | ofAppGlutWindow window; 9 | ofSetupOpenGL(&window, 1024,768, OF_WINDOW); // <-------- setup the GL context 10 | 11 | // this kicks off the running of my app 12 | // can be OF_WINDOW or OF_FULLSCREEN 13 | // pass in width and height too: 14 | ofRunApp( new testApp()); 15 | 16 | } 17 | -------------------------------------------------------------------------------- /week9_colorSort_detroit/src/testApp.h: -------------------------------------------------------------------------------- 1 | #pragma once 2 | 3 | #include "ofMain.h" 4 | 5 | class testApp : public ofBaseApp{ 6 | 7 | public: 8 | void setup(); 9 | void update(); 10 | void draw(); 11 | 12 | void keyPressed (int key); 13 | void keyReleased(int key); 14 | void mouseMoved(int x, int y ); 15 | void mouseDragged(int x, int y, int button); 16 | void mousePressed(int x, int y, int button); 17 | void mouseReleased(int x, int y, int button); 18 | void windowResized(int w, int h); 19 | void dragEvent(ofDragInfo dragInfo); 20 | void gotMessage(ofMessage msg); 21 | 22 | ofImage myImage; 23 | ofImage myNewImage; 24 | 25 | vector < ofColor > colors; 26 | 27 | 28 | }; 29 | -------------------------------------------------------------------------------- /week9_disneyland_invert/Project.xcconfig: -------------------------------------------------------------------------------- 1 | //THE PATH TO THE ROOT OF OUR OF PATH RELATIVE TO THIS PROJECT. 2 | //THIS NEEDS TO BE DEFINED BEFORE CoreOF.xcconfig IS INCLUDED 3 | OF_PATH = ../../.. 4 | 5 | //THIS HAS ALL THE HEADER AND LIBS FOR OF CORE 6 | #include "../../../libs/openFrameworksCompiled/project/osx/CoreOF.xcconfig" 7 | 8 | OTHER_LDFLAGS = $(OF_CORE_LIBS) 9 | HEADER_SEARCH_PATHS = $(OF_CORE_HEADERS) 10 | -------------------------------------------------------------------------------- /week9_disneyland_invert/addons.make: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ofZach/avsys2012/0c02857ba0e9b964e8f1ae364e93b21575fb0889/week9_disneyland_invert/addons.make -------------------------------------------------------------------------------- /week9_disneyland_invert/bin/data/.gitkeep: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ofZach/avsys2012/0c02857ba0e9b964e8f1ae364e93b21575fb0889/week9_disneyland_invert/bin/data/.gitkeep -------------------------------------------------------------------------------- /week9_disneyland_invert/bin/data/disneyland.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ofZach/avsys2012/0c02857ba0e9b964e8f1ae364e93b21575fb0889/week9_disneyland_invert/bin/data/disneyland.jpg -------------------------------------------------------------------------------- /week9_disneyland_invert/openFrameworks-Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | English 7 | CFBundleExecutable 8 | ${EXECUTABLE_NAME} 9 | CFBundleIdentifier 10 | com.yourcompany.openFrameworks 11 | CFBundleInfoDictionaryVersion 12 | 6.0 13 | CFBundlePackageType 14 | APPL 15 | CFBundleSignature 16 | ???? 17 | CFBundleVersion 18 | 1.0 19 | 20 | 21 | -------------------------------------------------------------------------------- /week9_disneyland_invert/src/main.cpp: -------------------------------------------------------------------------------- 1 | #include "ofMain.h" 2 | #include "testApp.h" 3 | #include "ofAppGlutWindow.h" 4 | 5 | //======================================================================== 6 | int main( ){ 7 | 8 | ofAppGlutWindow window; 9 | ofSetupOpenGL(&window, 1024,768, OF_WINDOW); // <-------- setup the GL context 10 | 11 | // this kicks off the running of my app 12 | // can be OF_WINDOW or OF_FULLSCREEN 13 | // pass in width and height too: 14 | ofRunApp( new testApp()); 15 | 16 | } 17 | -------------------------------------------------------------------------------- /week9_disneyland_invert/src/testApp.h: -------------------------------------------------------------------------------- 1 | #pragma once 2 | 3 | #include "ofMain.h" 4 | 5 | class testApp : public ofBaseApp{ 6 | 7 | public: 8 | void setup(); 9 | void update(); 10 | void draw(); 11 | 12 | void keyPressed (int key); 13 | void keyReleased(int key); 14 | void mouseMoved(int x, int y ); 15 | void mouseDragged(int x, int y, int button); 16 | void mousePressed(int x, int y, int button); 17 | void mouseReleased(int x, int y, int button); 18 | void windowResized(int w, int h); 19 | void dragEvent(ofDragInfo dragInfo); 20 | void gotMessage(ofMessage msg); 21 | 22 | ofImage disneyland; 23 | ofImage disneylandInverted; 24 | 25 | 26 | 27 | }; 28 | -------------------------------------------------------------------------------- /week9_kinectThresholdingExample/openFrameworks-Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | English 7 | CFBundleExecutable 8 | ${EXECUTABLE_NAME} 9 | CFBundleIdentifier 10 | com.yourcompany.openFrameworks 11 | CFBundleInfoDictionaryVersion 12 | 6.0 13 | CFBundlePackageType 14 | APPL 15 | CFBundleSignature 16 | ???? 17 | CFBundleVersion 18 | 1.0 19 | 20 | 21 | -------------------------------------------------------------------------------- /week9_kinectThresholdingExample/src/main.cpp: -------------------------------------------------------------------------------- 1 | #include "testApp.h" 2 | #include "ofAppGlutWindow.h" 3 | 4 | int main() { 5 | ofAppGlutWindow window; 6 | ofSetupOpenGL(&window, 640, 480, OF_WINDOW); 7 | ofRunApp(new testApp()); 8 | } 9 | -------------------------------------------------------------------------------- /week9_kinectThresholdingExample/src/testApp.h: -------------------------------------------------------------------------------- 1 | #pragma once 2 | 3 | #include "ofMain.h" 4 | #include "ofxOpenCv.h" 5 | #include "ofxKinect.h" 6 | #include "ofxAutoControlPanel.h" 7 | 8 | class testApp : public ofBaseApp { 9 | public: 10 | void setup(); 11 | void update(); 12 | void draw(); 13 | void exit(); 14 | 15 | ofxKinect kinect; 16 | ofxAutoControlPanel panel; 17 | ofImage result; 18 | }; 19 | -------------------------------------------------------------------------------- /week9_kinectThresholdingExample/week9_kinectThresholdingExample.workspace: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | --------------------------------------------------------------------------------