├── .gitignore
├── Makefile
├── Project.xcconfig
├── README.md
├── addons.make
├── bin
└── data
│ └── rawwaves
│ ├── ahh.raw
│ ├── bassdrum.raw
│ ├── britestk.raw
│ ├── cowbell1.raw
│ ├── crashcym.raw
│ ├── dope.raw
│ ├── eee.raw
│ ├── fwavblnk.raw
│ ├── halfwave.raw
│ ├── hihatcym.raw
│ ├── impuls10.raw
│ ├── impuls20.raw
│ ├── impuls40.raw
│ ├── mand1.raw
│ ├── mand10.raw
│ ├── mand11.raw
│ ├── mand12.raw
│ ├── mand2.raw
│ ├── mand3.raw
│ ├── mand4.raw
│ ├── mand5.raw
│ ├── mand6.raw
│ ├── mand7.raw
│ ├── mand8.raw
│ ├── mand9.raw
│ ├── mandpluk.raw
│ ├── marmstk1.raw
│ ├── ooo.raw
│ ├── peksblnk.raw
│ ├── ppksblnk.raw
│ ├── ridecymb.raw
│ ├── silence.raw
│ ├── sineblnk.raw
│ ├── sinewave.raw
│ ├── snardrum.raw
│ ├── snglpeak.raw
│ ├── tambourn.raw
│ ├── tomhidrm.raw
│ ├── tomlowdr.raw
│ ├── tommiddr.raw
│ └── twopeaks.raw
├── config.make
├── example_DrawSynth
├── Makefile
├── Project.xcconfig
├── addons.make
├── bin
│ └── data
│ │ ├── .gitkeep
│ │ ├── rawwaves
│ │ ├── ahh.raw
│ │ ├── bassdrum.raw
│ │ ├── britestk.raw
│ │ ├── cowbell1.raw
│ │ ├── crashcym.raw
│ │ ├── dope.raw
│ │ ├── eee.raw
│ │ ├── fwavblnk.raw
│ │ ├── halfwave.raw
│ │ ├── hihatcym.raw
│ │ ├── impuls10.raw
│ │ ├── impuls20.raw
│ │ ├── impuls40.raw
│ │ ├── mand1.raw
│ │ ├── mand10.raw
│ │ ├── mand11.raw
│ │ ├── mand12.raw
│ │ ├── mand2.raw
│ │ ├── mand3.raw
│ │ ├── mand4.raw
│ │ ├── mand5.raw
│ │ ├── mand6.raw
│ │ ├── mand7.raw
│ │ ├── mand8.raw
│ │ ├── mand9.raw
│ │ ├── mandpluk.raw
│ │ ├── marmstk1.raw
│ │ ├── ooo.raw
│ │ ├── peksblnk.raw
│ │ ├── ppksblnk.raw
│ │ ├── ridecymb.raw
│ │ ├── silence.raw
│ │ ├── sineblnk.raw
│ │ ├── sinewave.raw
│ │ ├── snardrum.raw
│ │ ├── snglpeak.raw
│ │ ├── tambourn.raw
│ │ ├── tomhidrm.raw
│ │ ├── tomlowdr.raw
│ │ ├── tommiddr.raw
│ │ └── twopeaks.raw
│ │ └── verdana.ttf
├── config.make
├── example_DrawSynth.xcodeproj
│ ├── project.pbxproj
│ ├── project.xcworkspace
│ │ ├── contents.xcworkspacedata
│ │ └── xcshareddata
│ │ │ └── IDEWorkspaceChecks.plist
│ ├── xcshareddata
│ │ └── xcschemes
│ │ │ ├── example_DrawSynth Debug.xcscheme
│ │ │ └── example_DrawSynth Release.xcscheme
│ └── xcuserdata
│ │ └── abhi.xcuserdatad
│ │ └── xcschemes
│ │ └── xcschememanagement.plist
├── openFrameworks-Info.plist
└── src
│ ├── DrawSynth.cpp
│ ├── DrawSynth.h
│ ├── main.cpp
│ ├── ofApp.cpp
│ └── ofApp.h
├── example_FileLoop
├── Makefile
├── Project.xcconfig
├── addons.make
├── bin
│ └── data
│ │ ├── .gitkeep
│ │ ├── beat.wav
│ │ ├── rawwaves
│ │ ├── ahh.raw
│ │ ├── bassdrum.raw
│ │ ├── britestk.raw
│ │ ├── cowbell1.raw
│ │ ├── crashcym.raw
│ │ ├── dope.raw
│ │ ├── eee.raw
│ │ ├── fwavblnk.raw
│ │ ├── halfwave.raw
│ │ ├── hihatcym.raw
│ │ ├── impuls10.raw
│ │ ├── impuls20.raw
│ │ ├── impuls40.raw
│ │ ├── mand1.raw
│ │ ├── mand10.raw
│ │ ├── mand11.raw
│ │ ├── mand12.raw
│ │ ├── mand2.raw
│ │ ├── mand3.raw
│ │ ├── mand4.raw
│ │ ├── mand5.raw
│ │ ├── mand6.raw
│ │ ├── mand7.raw
│ │ ├── mand8.raw
│ │ ├── mand9.raw
│ │ ├── mandpluk.raw
│ │ ├── marmstk1.raw
│ │ ├── ooo.raw
│ │ ├── peksblnk.raw
│ │ ├── ppksblnk.raw
│ │ ├── ridecymb.raw
│ │ ├── silence.raw
│ │ ├── sineblnk.raw
│ │ ├── sinewave.raw
│ │ ├── snardrum.raw
│ │ ├── snglpeak.raw
│ │ ├── tambourn.raw
│ │ ├── tomhidrm.raw
│ │ ├── tomlowdr.raw
│ │ ├── tommiddr.raw
│ │ └── twopeaks.raw
│ │ └── verdana.ttf
├── config.make
├── example_FileLoop.xcodeproj
│ ├── project.pbxproj
│ ├── project.xcworkspace
│ │ ├── contents.xcworkspacedata
│ │ └── xcshareddata
│ │ │ └── IDEWorkspaceChecks.plist
│ └── xcshareddata
│ │ └── xcschemes
│ │ ├── example_FileLoop Debug.xcscheme
│ │ └── example_FileLoop Release.xcscheme
├── openFrameworks-Info.plist
└── src
│ ├── main.cpp
│ ├── ofApp.cpp
│ └── ofApp.h
├── example_pitchShift
├── Makefile
├── Project.xcconfig
├── addons.make
├── bin
│ └── data
│ │ ├── .gitkeep
│ │ ├── piano.wav
│ │ └── verdana.ttf
├── config.make
├── example_pitchShift.xcodeproj
│ ├── project.pbxproj
│ ├── project.xcworkspace
│ │ ├── contents.xcworkspacedata
│ │ └── xcshareddata
│ │ │ └── IDEWorkspaceChecks.plist
│ ├── xcshareddata
│ │ └── xcschemes
│ │ │ ├── example_pitchShift Debug.xcscheme
│ │ │ └── example_pitchShift Release.xcscheme
│ └── xcuserdata
│ │ └── abhi.xcuserdatad
│ │ └── xcschemes
│ │ └── xcschememanagement.plist
├── openFrameworks-Info.plist
└── src
│ ├── BasicSampler.h
│ ├── main.cpp
│ ├── ofApp.cpp
│ └── ofApp.h
├── example_polyphony
├── Makefile
├── Project.xcconfig
├── addons.make
├── bin
│ └── data
│ │ ├── .gitkeep
│ │ ├── rawwaves
│ │ ├── ahh.raw
│ │ ├── bassdrum.raw
│ │ ├── britestk.raw
│ │ ├── cowbell1.raw
│ │ ├── crashcym.raw
│ │ ├── dope.raw
│ │ ├── eee.raw
│ │ ├── fwavblnk.raw
│ │ ├── halfwave.raw
│ │ ├── hihatcym.raw
│ │ ├── impuls10.raw
│ │ ├── impuls20.raw
│ │ ├── impuls40.raw
│ │ ├── mand1.raw
│ │ ├── mand10.raw
│ │ ├── mand11.raw
│ │ ├── mand12.raw
│ │ ├── mand2.raw
│ │ ├── mand3.raw
│ │ ├── mand4.raw
│ │ ├── mand5.raw
│ │ ├── mand6.raw
│ │ ├── mand7.raw
│ │ ├── mand8.raw
│ │ ├── mand9.raw
│ │ ├── mandpluk.raw
│ │ ├── marmstk1.raw
│ │ ├── ooo.raw
│ │ ├── peksblnk.raw
│ │ ├── ppksblnk.raw
│ │ ├── ridecymb.raw
│ │ ├── silence.raw
│ │ ├── sineblnk.raw
│ │ ├── sinewave.raw
│ │ ├── snardrum.raw
│ │ ├── snglpeak.raw
│ │ ├── tambourn.raw
│ │ ├── tomhidrm.raw
│ │ ├── tomlowdr.raw
│ │ ├── tommiddr.raw
│ │ └── twopeaks.raw
│ │ └── verdana.ttf
├── config.make
├── example_polyphony.xcodeproj
│ ├── project.pbxproj
│ ├── project.xcworkspace
│ │ ├── contents.xcworkspacedata
│ │ └── xcshareddata
│ │ │ └── IDEWorkspaceChecks.plist
│ ├── xcshareddata
│ │ └── xcschemes
│ │ │ ├── example_polyphony Debug.xcscheme
│ │ │ └── example_polyphony Release.xcscheme
│ └── xcuserdata
│ │ └── abhi.xcuserdatad
│ │ └── xcschemes
│ │ └── xcschememanagement.plist
├── openFrameworks-Info.plist
└── src
│ ├── main.cpp
│ ├── ofApp.cpp
│ └── ofApp.h
├── example_simple
├── Makefile
├── Project.xcconfig
├── addons.make
├── bin
│ └── data
│ │ ├── .gitkeep
│ │ ├── rawwaves
│ │ ├── ahh.raw
│ │ ├── bassdrum.raw
│ │ ├── britestk.raw
│ │ ├── cowbell1.raw
│ │ ├── crashcym.raw
│ │ ├── dope.raw
│ │ ├── eee.raw
│ │ ├── fwavblnk.raw
│ │ ├── halfwave.raw
│ │ ├── hihatcym.raw
│ │ ├── impuls10.raw
│ │ ├── impuls20.raw
│ │ ├── impuls40.raw
│ │ ├── mand1.raw
│ │ ├── mand10.raw
│ │ ├── mand11.raw
│ │ ├── mand12.raw
│ │ ├── mand2.raw
│ │ ├── mand3.raw
│ │ ├── mand4.raw
│ │ ├── mand5.raw
│ │ ├── mand6.raw
│ │ ├── mand7.raw
│ │ ├── mand8.raw
│ │ ├── mand9.raw
│ │ ├── mandpluk.raw
│ │ ├── marmstk1.raw
│ │ ├── ooo.raw
│ │ ├── peksblnk.raw
│ │ ├── ppksblnk.raw
│ │ ├── ridecymb.raw
│ │ ├── silence.raw
│ │ ├── sineblnk.raw
│ │ ├── sinewave.raw
│ │ ├── snardrum.raw
│ │ ├── snglpeak.raw
│ │ ├── tambourn.raw
│ │ ├── tomhidrm.raw
│ │ ├── tomlowdr.raw
│ │ ├── tommiddr.raw
│ │ └── twopeaks.raw
│ │ └── verdana.ttf
├── config.make
├── example_simple.xcodeproj
│ ├── project.pbxproj
│ ├── project.xcworkspace
│ │ ├── contents.xcworkspacedata
│ │ └── xcshareddata
│ │ │ └── IDEWorkspaceChecks.plist
│ └── xcshareddata
│ │ └── xcschemes
│ │ ├── example_simple Debug.xcscheme
│ │ └── example_simple Release.xcscheme
├── openFrameworks-Info.plist
└── src
│ ├── main.cpp
│ ├── ofApp.cpp
│ └── ofApp.h
├── libs
└── STK
│ ├── include
│ ├── ADSR.h
│ ├── Asymp.h
│ ├── BandedWG.h
│ ├── BeeThree.h
│ ├── BiQuad.h
│ ├── Blit.h
│ ├── BlitSaw.h
│ ├── BlitSquare.h
│ ├── BlowBotl.h
│ ├── BlowHole.h
│ ├── BowTable.h
│ ├── Bowed.h
│ ├── Brass.h
│ ├── Chorus.h
│ ├── Clarinet.h
│ ├── Cubic.h
│ ├── Delay.h
│ ├── DelayA.h
│ ├── DelayL.h
│ ├── Drummer.h
│ ├── Echo.h
│ ├── Effect.h
│ ├── Envelope.h
│ ├── FM.h
│ ├── FMVoices.h
│ ├── FileLoop.h
│ ├── FileRead.h
│ ├── FileWrite.h
│ ├── FileWvIn.h
│ ├── FileWvOut.h
│ ├── Filter.h
│ ├── Fir.h
│ ├── Flute.h
│ ├── FormSwep.h
│ ├── FreeVerb.h
│ ├── Function.h
│ ├── Generator.h
│ ├── Granulate.h
│ ├── Guitar.h
│ ├── HevyMetl.h
│ ├── Iir.h
│ ├── InetWvIn.h
│ ├── InetWvOut.h
│ ├── Instrmnt.h
│ ├── JCRev.h
│ ├── JetTable.h
│ ├── LentPitShift.h
│ ├── Mandolin.h
│ ├── Mesh2D.h
│ ├── Messager.h
│ ├── MidiFileIn.h
│ ├── Modal.h
│ ├── ModalBar.h
│ ├── Modulate.h
│ ├── Moog.h
│ ├── Mutex.h
│ ├── NRev.h
│ ├── Noise.h
│ ├── OnePole.h
│ ├── OneZero.h
│ ├── PRCRev.h
│ ├── PercFlut.h
│ ├── Phonemes.h
│ ├── PitShift.h
│ ├── Plucked.h
│ ├── PoleZero.h
│ ├── ReedTable.h
│ ├── Resonate.h
│ ├── Rhodey.h
│ ├── RtAudio.h
│ ├── RtMidi.h
│ ├── RtWvIn.h
│ ├── RtWvOut.h
│ ├── SKINImsg.h
│ ├── SKINItbl.h
│ ├── Sampler.h
│ ├── Saxofony.h
│ ├── Shakers.h
│ ├── Simple.h
│ ├── SineWave.h
│ ├── SingWave.h
│ ├── Sitar.h
│ ├── Skini.h
│ ├── Socket.h
│ ├── Sphere.h
│ ├── StifKarp.h
│ ├── Stk.h
│ ├── TapDelay.h
│ ├── TcpClient.h
│ ├── TcpServer.h
│ ├── Thread.h
│ ├── TubeBell.h
│ ├── Twang.h
│ ├── TwoPole.h
│ ├── TwoZero.h
│ ├── UdpSocket.h
│ ├── Vector3D.h
│ ├── VoicForm.h
│ ├── Voicer.h
│ ├── Whistle.h
│ ├── Wurley.h
│ ├── WvIn.h
│ └── WvOut.h
│ └── src
│ ├── ADSR.cpp
│ ├── Asymp.cpp
│ ├── BandedWG.cpp
│ ├── BeeThree.cpp
│ ├── BiQuad.cpp
│ ├── Blit.cpp
│ ├── BlitSaw.cpp
│ ├── BlitSquare.cpp
│ ├── BlowBotl.cpp
│ ├── BlowHole.cpp
│ ├── Bowed.cpp
│ ├── Brass.cpp
│ ├── Chorus.cpp
│ ├── Clarinet.cpp
│ ├── Delay.cpp
│ ├── DelayA.cpp
│ ├── DelayL.cpp
│ ├── Drummer.cpp
│ ├── Echo.cpp
│ ├── Envelope.cpp
│ ├── FM.cpp
│ ├── FMVoices.cpp
│ ├── FileLoop.cpp
│ ├── FileRead.cpp
│ ├── FileWrite.cpp
│ ├── FileWvIn.cpp
│ ├── FileWvOut.cpp
│ ├── Fir.cpp
│ ├── Flute.cpp
│ ├── FormSwep.cpp
│ ├── FreeVerb.cpp
│ ├── Granulate.cpp
│ ├── Guitar.cpp
│ ├── HevyMetl.cpp
│ ├── Iir.cpp
│ ├── InetWvIn.cpp
│ ├── InetWvOut.cpp
│ ├── JCRev.cpp
│ ├── LentPitShift.cpp
│ ├── Mandolin.cpp
│ ├── Mesh2D.cpp
│ ├── Messager.cpp
│ ├── MidiFileIn.cpp
│ ├── Modal.cpp
│ ├── ModalBar.cpp
│ ├── Modulate.cpp
│ ├── Moog.cpp
│ ├── Mutex.cpp
│ ├── NRev.cpp
│ ├── Noise.cpp
│ ├── OnePole.cpp
│ ├── OneZero.cpp
│ ├── PRCRev.cpp
│ ├── PercFlut.cpp
│ ├── Phonemes.cpp
│ ├── PitShift.cpp
│ ├── Plucked.cpp
│ ├── PoleZero.cpp
│ ├── Resonate.cpp
│ ├── Rhodey.cpp
│ ├── RtAudio.cpp
│ ├── RtMidi.cpp
│ ├── RtWvIn.cpp
│ ├── RtWvOut.cpp
│ ├── Sampler.cpp
│ ├── Saxofony.cpp
│ ├── Shakers.cpp
│ ├── Simple.cpp
│ ├── SineWave.cpp
│ ├── SingWave.cpp
│ ├── Sitar.cpp
│ ├── Skini.cpp
│ ├── Socket.cpp
│ ├── Sphere.cpp
│ ├── StifKarp.cpp
│ ├── Stk.cpp
│ ├── TapDelay.cpp
│ ├── TcpClient.cpp
│ ├── TcpServer.cpp
│ ├── Thread.cpp
│ ├── TubeBell.cpp
│ ├── Twang.cpp
│ ├── TwoPole.cpp
│ ├── TwoZero.cpp
│ ├── UdpSocket.cpp
│ ├── VoicForm.cpp
│ ├── Voicer.cpp
│ ├── Whistle.cpp
│ └── Wurley.cpp
├── ofxStk.xcodeproj
├── project.pbxproj
└── xcshareddata
│ └── xcschemes
│ ├── ofxStk Debug.xcscheme
│ └── ofxStk Release.xcscheme
├── openFrameworks-Info.plist
└── src
└── ofxStk.h
/.gitignore:
--------------------------------------------------------------------------------
1 | example_FileLoop/bin/example_FileLoopDebug.app
2 |
3 | example_simple/bin/example_simpleDebug.app
4 |
5 | example_DrawSynth/bin/example_DrawSynthDebug.app
6 |
7 | *.app
8 |
9 | *.xcuserstate
10 |
11 | *.xcuserstate
12 |
13 | *.xcuserstate
14 |
15 | *.xcbkptlist
16 |
--------------------------------------------------------------------------------
/Makefile:
--------------------------------------------------------------------------------
1 | # Attempt to load a config.make file.
2 | # If none is found, project defaults in config.project.make will be used.
3 | ifneq ($(wildcard config.make),)
4 | include config.make
5 | endif
6 |
7 | # make sure the the OF_ROOT location is defined
8 | ifndef OF_ROOT
9 | OF_ROOT=$(realpath ../..)
10 | endif
11 |
12 | # call the project makefile!
13 | include $(OF_ROOT)/libs/openFrameworksCompiled/project/makefileCommon/compile.project.mk
14 |
--------------------------------------------------------------------------------
/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 | //ICONS - NEW IN 0072
9 | ICON_NAME_DEBUG = icon-debug.icns
10 | ICON_NAME_RELEASE = icon.icns
11 | ICON_FILE_PATH = $(OF_PATH)/libs/openFrameworksCompiled/project/osx/
12 |
13 | //IF YOU WANT AN APP TO HAVE A CUSTOM ICON - PUT THEM IN YOUR DATA FOLDER AND CHANGE ICON_FILE_PATH to:
14 | //ICON_FILE_PATH = bin/data/
15 |
16 | OTHER_CFLAGS = $(OF_CORE_CFLAGS)
17 | OTHER_LDFLAGS = $(OF_CORE_LIBS) $(OF_CORE_FRAMEWORKS)
18 | HEADER_SEARCH_PATHS = $(OF_CORE_HEADERS)
19 |
--------------------------------------------------------------------------------
/README.md:
--------------------------------------------------------------------------------
1 | #ofxStk
2 | ofxStk lets you use [The Synthesis Tool Kit](https://ccrma.stanford.edu/software/stk/index.html) inside openFrameworks. The offical repo for stk is here at https://github.com/thestk/stk. For features and issues you are better off posting there. I sync ofxStk with the offical Stk repo about once a month, or on demand
3 |
4 |
5 | ##Installation
6 | ***
7 |
8 | Step 1 - Do what you normally do for an add-on (project generator works well)
9 |
10 | Step 2 - Copy the 'rawwaves' folder from ofxStk/bin/data into bin/data of your project.
11 |
12 | ##### Note on Linux
13 | if your are on linux and your system is little endian you have to complie with the following option
14 |
15 | ```
16 | -D__LITTLE_ENDIAN__
17 | ```
18 |
19 |
20 | ##How to use
21 | ***
22 |
23 | Stk already works well with openFrameworks so there is no need to wrap it onto a separate api. Your best resource would be [the stk documentation](https://ccrma.stanford.edu/software/stk/classes.html). You can also ask me questions on the [forum](http://forum.openframeworks.cc/t/ofxstk-synthesis-toolkit-addon/15989/3)
24 |
25 | ####steps to create a custom instrument
26 |
27 | 1. Subclass stk::Instrument
28 | 2. Override all the pure virtual functions in stk::Instrmnt
29 | 3. When overriding `virtual StkFloat tick( unsigned int channel = 0 ) = 0` make sure you set `lastFrame_` which is the last computed frame of audio, and return the output for the channel specified by the argument. Remember a frame is different than a sample- `a Frame a set of samples that contains one sample from each channel in an audio data stream.`
30 | 4. When overriding `StkFrames& tick( StkFrames& frames, unsigned int channel = 0 ) = 0`,your job is to fill the specified frames starting at the specific channel. For example if your instrument is mono and tick(frames,1) is called, you fill the second channel of frames with your output. If your instrument is stereo and tick(frames,1) is called. you fill the second and third channel of frames with your output. Remember that lastFrame_ also has to be set in the function
31 | 5. If your instrument is stereo, you will have to override the constructor of stk:Instrmnt to resize the lastFrame_. so in your constructor you should have the line `lastFrame_.resize( 1, 2, 0.0 );`
32 |
33 |
34 | ##Notes
35 | ***
36 |
37 | I've tested on Mac OSX, IOS ,and linux so far. But getting it to work for other platforms should be just a matter of configuring the macros in the file "Stk.h"
38 |
--------------------------------------------------------------------------------
/addons.make:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Ahbee/ofxStk/f20e70e568045ad20c20cdc320855128c8a3812e/addons.make
--------------------------------------------------------------------------------
/bin/data/rawwaves/ahh.raw:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Ahbee/ofxStk/f20e70e568045ad20c20cdc320855128c8a3812e/bin/data/rawwaves/ahh.raw
--------------------------------------------------------------------------------
/bin/data/rawwaves/bassdrum.raw:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Ahbee/ofxStk/f20e70e568045ad20c20cdc320855128c8a3812e/bin/data/rawwaves/bassdrum.raw
--------------------------------------------------------------------------------
/bin/data/rawwaves/britestk.raw:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Ahbee/ofxStk/f20e70e568045ad20c20cdc320855128c8a3812e/bin/data/rawwaves/britestk.raw
--------------------------------------------------------------------------------
/bin/data/rawwaves/cowbell1.raw:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Ahbee/ofxStk/f20e70e568045ad20c20cdc320855128c8a3812e/bin/data/rawwaves/cowbell1.raw
--------------------------------------------------------------------------------
/bin/data/rawwaves/crashcym.raw:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Ahbee/ofxStk/f20e70e568045ad20c20cdc320855128c8a3812e/bin/data/rawwaves/crashcym.raw
--------------------------------------------------------------------------------
/bin/data/rawwaves/dope.raw:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Ahbee/ofxStk/f20e70e568045ad20c20cdc320855128c8a3812e/bin/data/rawwaves/dope.raw
--------------------------------------------------------------------------------
/bin/data/rawwaves/eee.raw:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Ahbee/ofxStk/f20e70e568045ad20c20cdc320855128c8a3812e/bin/data/rawwaves/eee.raw
--------------------------------------------------------------------------------
/bin/data/rawwaves/fwavblnk.raw:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Ahbee/ofxStk/f20e70e568045ad20c20cdc320855128c8a3812e/bin/data/rawwaves/fwavblnk.raw
--------------------------------------------------------------------------------
/bin/data/rawwaves/halfwave.raw:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Ahbee/ofxStk/f20e70e568045ad20c20cdc320855128c8a3812e/bin/data/rawwaves/halfwave.raw
--------------------------------------------------------------------------------
/bin/data/rawwaves/hihatcym.raw:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Ahbee/ofxStk/f20e70e568045ad20c20cdc320855128c8a3812e/bin/data/rawwaves/hihatcym.raw
--------------------------------------------------------------------------------
/bin/data/rawwaves/impuls10.raw:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Ahbee/ofxStk/f20e70e568045ad20c20cdc320855128c8a3812e/bin/data/rawwaves/impuls10.raw
--------------------------------------------------------------------------------
/bin/data/rawwaves/impuls20.raw:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Ahbee/ofxStk/f20e70e568045ad20c20cdc320855128c8a3812e/bin/data/rawwaves/impuls20.raw
--------------------------------------------------------------------------------
/bin/data/rawwaves/impuls40.raw:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Ahbee/ofxStk/f20e70e568045ad20c20cdc320855128c8a3812e/bin/data/rawwaves/impuls40.raw
--------------------------------------------------------------------------------
/bin/data/rawwaves/mand1.raw:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Ahbee/ofxStk/f20e70e568045ad20c20cdc320855128c8a3812e/bin/data/rawwaves/mand1.raw
--------------------------------------------------------------------------------
/bin/data/rawwaves/mand10.raw:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Ahbee/ofxStk/f20e70e568045ad20c20cdc320855128c8a3812e/bin/data/rawwaves/mand10.raw
--------------------------------------------------------------------------------
/bin/data/rawwaves/mand11.raw:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Ahbee/ofxStk/f20e70e568045ad20c20cdc320855128c8a3812e/bin/data/rawwaves/mand11.raw
--------------------------------------------------------------------------------
/bin/data/rawwaves/mand12.raw:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Ahbee/ofxStk/f20e70e568045ad20c20cdc320855128c8a3812e/bin/data/rawwaves/mand12.raw
--------------------------------------------------------------------------------
/bin/data/rawwaves/mand2.raw:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Ahbee/ofxStk/f20e70e568045ad20c20cdc320855128c8a3812e/bin/data/rawwaves/mand2.raw
--------------------------------------------------------------------------------
/bin/data/rawwaves/mand3.raw:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Ahbee/ofxStk/f20e70e568045ad20c20cdc320855128c8a3812e/bin/data/rawwaves/mand3.raw
--------------------------------------------------------------------------------
/bin/data/rawwaves/mand4.raw:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Ahbee/ofxStk/f20e70e568045ad20c20cdc320855128c8a3812e/bin/data/rawwaves/mand4.raw
--------------------------------------------------------------------------------
/bin/data/rawwaves/mand5.raw:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Ahbee/ofxStk/f20e70e568045ad20c20cdc320855128c8a3812e/bin/data/rawwaves/mand5.raw
--------------------------------------------------------------------------------
/bin/data/rawwaves/mand6.raw:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Ahbee/ofxStk/f20e70e568045ad20c20cdc320855128c8a3812e/bin/data/rawwaves/mand6.raw
--------------------------------------------------------------------------------
/bin/data/rawwaves/mand7.raw:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Ahbee/ofxStk/f20e70e568045ad20c20cdc320855128c8a3812e/bin/data/rawwaves/mand7.raw
--------------------------------------------------------------------------------
/bin/data/rawwaves/mand8.raw:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Ahbee/ofxStk/f20e70e568045ad20c20cdc320855128c8a3812e/bin/data/rawwaves/mand8.raw
--------------------------------------------------------------------------------
/bin/data/rawwaves/mand9.raw:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Ahbee/ofxStk/f20e70e568045ad20c20cdc320855128c8a3812e/bin/data/rawwaves/mand9.raw
--------------------------------------------------------------------------------
/bin/data/rawwaves/mandpluk.raw:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Ahbee/ofxStk/f20e70e568045ad20c20cdc320855128c8a3812e/bin/data/rawwaves/mandpluk.raw
--------------------------------------------------------------------------------
/bin/data/rawwaves/marmstk1.raw:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Ahbee/ofxStk/f20e70e568045ad20c20cdc320855128c8a3812e/bin/data/rawwaves/marmstk1.raw
--------------------------------------------------------------------------------
/bin/data/rawwaves/ooo.raw:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Ahbee/ofxStk/f20e70e568045ad20c20cdc320855128c8a3812e/bin/data/rawwaves/ooo.raw
--------------------------------------------------------------------------------
/bin/data/rawwaves/peksblnk.raw:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Ahbee/ofxStk/f20e70e568045ad20c20cdc320855128c8a3812e/bin/data/rawwaves/peksblnk.raw
--------------------------------------------------------------------------------
/bin/data/rawwaves/ppksblnk.raw:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Ahbee/ofxStk/f20e70e568045ad20c20cdc320855128c8a3812e/bin/data/rawwaves/ppksblnk.raw
--------------------------------------------------------------------------------
/bin/data/rawwaves/ridecymb.raw:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Ahbee/ofxStk/f20e70e568045ad20c20cdc320855128c8a3812e/bin/data/rawwaves/ridecymb.raw
--------------------------------------------------------------------------------
/bin/data/rawwaves/silence.raw:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/bin/data/rawwaves/sineblnk.raw:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Ahbee/ofxStk/f20e70e568045ad20c20cdc320855128c8a3812e/bin/data/rawwaves/sineblnk.raw
--------------------------------------------------------------------------------
/bin/data/rawwaves/sinewave.raw:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Ahbee/ofxStk/f20e70e568045ad20c20cdc320855128c8a3812e/bin/data/rawwaves/sinewave.raw
--------------------------------------------------------------------------------
/bin/data/rawwaves/snardrum.raw:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Ahbee/ofxStk/f20e70e568045ad20c20cdc320855128c8a3812e/bin/data/rawwaves/snardrum.raw
--------------------------------------------------------------------------------
/bin/data/rawwaves/snglpeak.raw:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Ahbee/ofxStk/f20e70e568045ad20c20cdc320855128c8a3812e/bin/data/rawwaves/snglpeak.raw
--------------------------------------------------------------------------------
/bin/data/rawwaves/tambourn.raw:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Ahbee/ofxStk/f20e70e568045ad20c20cdc320855128c8a3812e/bin/data/rawwaves/tambourn.raw
--------------------------------------------------------------------------------
/bin/data/rawwaves/tomhidrm.raw:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Ahbee/ofxStk/f20e70e568045ad20c20cdc320855128c8a3812e/bin/data/rawwaves/tomhidrm.raw
--------------------------------------------------------------------------------
/bin/data/rawwaves/tomlowdr.raw:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Ahbee/ofxStk/f20e70e568045ad20c20cdc320855128c8a3812e/bin/data/rawwaves/tomlowdr.raw
--------------------------------------------------------------------------------
/bin/data/rawwaves/tommiddr.raw:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Ahbee/ofxStk/f20e70e568045ad20c20cdc320855128c8a3812e/bin/data/rawwaves/tommiddr.raw
--------------------------------------------------------------------------------
/bin/data/rawwaves/twopeaks.raw:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Ahbee/ofxStk/f20e70e568045ad20c20cdc320855128c8a3812e/bin/data/rawwaves/twopeaks.raw
--------------------------------------------------------------------------------
/example_DrawSynth/Makefile:
--------------------------------------------------------------------------------
1 | # Attempt to load a config.make file.
2 | # If none is found, project defaults in config.project.make will be used.
3 | ifneq ($(wildcard config.make),)
4 | include config.make
5 | endif
6 |
7 | # make sure the the OF_ROOT location is defined
8 | ifndef OF_ROOT
9 | OF_ROOT=../../..
10 | endif
11 |
12 | # call the project makefile!
13 | include $(OF_ROOT)/libs/openFrameworksCompiled/project/makefileCommon/compile.project.mk
14 |
--------------------------------------------------------------------------------
/example_DrawSynth/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 | //ICONS - NEW IN 0072
9 | ICON_NAME_DEBUG = icon-debug.icns
10 | ICON_NAME_RELEASE = icon.icns
11 | ICON_FILE_PATH = $(OF_PATH)/libs/openFrameworksCompiled/project/osx/
12 |
13 | //IF YOU WANT AN APP TO HAVE A CUSTOM ICON - PUT THEM IN YOUR DATA FOLDER AND CHANGE ICON_FILE_PATH to:
14 | //ICON_FILE_PATH = bin/data/
15 |
16 | OTHER_CFLAGS = $(OF_CORE_CFLAGS)
17 | OTHER_LDFLAGS = $(OF_CORE_LIBS) $(OF_CORE_FRAMEWORKS)
18 | HEADER_SEARCH_PATHS = $(OF_CORE_HEADERS)
19 |
--------------------------------------------------------------------------------
/example_DrawSynth/addons.make:
--------------------------------------------------------------------------------
1 | ofxGui
2 | ofxStk
3 |
--------------------------------------------------------------------------------
/example_DrawSynth/bin/data/.gitkeep:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Ahbee/ofxStk/f20e70e568045ad20c20cdc320855128c8a3812e/example_DrawSynth/bin/data/.gitkeep
--------------------------------------------------------------------------------
/example_DrawSynth/bin/data/rawwaves/ahh.raw:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Ahbee/ofxStk/f20e70e568045ad20c20cdc320855128c8a3812e/example_DrawSynth/bin/data/rawwaves/ahh.raw
--------------------------------------------------------------------------------
/example_DrawSynth/bin/data/rawwaves/bassdrum.raw:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Ahbee/ofxStk/f20e70e568045ad20c20cdc320855128c8a3812e/example_DrawSynth/bin/data/rawwaves/bassdrum.raw
--------------------------------------------------------------------------------
/example_DrawSynth/bin/data/rawwaves/britestk.raw:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Ahbee/ofxStk/f20e70e568045ad20c20cdc320855128c8a3812e/example_DrawSynth/bin/data/rawwaves/britestk.raw
--------------------------------------------------------------------------------
/example_DrawSynth/bin/data/rawwaves/cowbell1.raw:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Ahbee/ofxStk/f20e70e568045ad20c20cdc320855128c8a3812e/example_DrawSynth/bin/data/rawwaves/cowbell1.raw
--------------------------------------------------------------------------------
/example_DrawSynth/bin/data/rawwaves/crashcym.raw:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Ahbee/ofxStk/f20e70e568045ad20c20cdc320855128c8a3812e/example_DrawSynth/bin/data/rawwaves/crashcym.raw
--------------------------------------------------------------------------------
/example_DrawSynth/bin/data/rawwaves/dope.raw:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Ahbee/ofxStk/f20e70e568045ad20c20cdc320855128c8a3812e/example_DrawSynth/bin/data/rawwaves/dope.raw
--------------------------------------------------------------------------------
/example_DrawSynth/bin/data/rawwaves/eee.raw:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Ahbee/ofxStk/f20e70e568045ad20c20cdc320855128c8a3812e/example_DrawSynth/bin/data/rawwaves/eee.raw
--------------------------------------------------------------------------------
/example_DrawSynth/bin/data/rawwaves/fwavblnk.raw:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Ahbee/ofxStk/f20e70e568045ad20c20cdc320855128c8a3812e/example_DrawSynth/bin/data/rawwaves/fwavblnk.raw
--------------------------------------------------------------------------------
/example_DrawSynth/bin/data/rawwaves/halfwave.raw:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Ahbee/ofxStk/f20e70e568045ad20c20cdc320855128c8a3812e/example_DrawSynth/bin/data/rawwaves/halfwave.raw
--------------------------------------------------------------------------------
/example_DrawSynth/bin/data/rawwaves/hihatcym.raw:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Ahbee/ofxStk/f20e70e568045ad20c20cdc320855128c8a3812e/example_DrawSynth/bin/data/rawwaves/hihatcym.raw
--------------------------------------------------------------------------------
/example_DrawSynth/bin/data/rawwaves/impuls10.raw:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Ahbee/ofxStk/f20e70e568045ad20c20cdc320855128c8a3812e/example_DrawSynth/bin/data/rawwaves/impuls10.raw
--------------------------------------------------------------------------------
/example_DrawSynth/bin/data/rawwaves/impuls20.raw:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Ahbee/ofxStk/f20e70e568045ad20c20cdc320855128c8a3812e/example_DrawSynth/bin/data/rawwaves/impuls20.raw
--------------------------------------------------------------------------------
/example_DrawSynth/bin/data/rawwaves/impuls40.raw:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Ahbee/ofxStk/f20e70e568045ad20c20cdc320855128c8a3812e/example_DrawSynth/bin/data/rawwaves/impuls40.raw
--------------------------------------------------------------------------------
/example_DrawSynth/bin/data/rawwaves/mand1.raw:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Ahbee/ofxStk/f20e70e568045ad20c20cdc320855128c8a3812e/example_DrawSynth/bin/data/rawwaves/mand1.raw
--------------------------------------------------------------------------------
/example_DrawSynth/bin/data/rawwaves/mand10.raw:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Ahbee/ofxStk/f20e70e568045ad20c20cdc320855128c8a3812e/example_DrawSynth/bin/data/rawwaves/mand10.raw
--------------------------------------------------------------------------------
/example_DrawSynth/bin/data/rawwaves/mand11.raw:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Ahbee/ofxStk/f20e70e568045ad20c20cdc320855128c8a3812e/example_DrawSynth/bin/data/rawwaves/mand11.raw
--------------------------------------------------------------------------------
/example_DrawSynth/bin/data/rawwaves/mand12.raw:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Ahbee/ofxStk/f20e70e568045ad20c20cdc320855128c8a3812e/example_DrawSynth/bin/data/rawwaves/mand12.raw
--------------------------------------------------------------------------------
/example_DrawSynth/bin/data/rawwaves/mand2.raw:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Ahbee/ofxStk/f20e70e568045ad20c20cdc320855128c8a3812e/example_DrawSynth/bin/data/rawwaves/mand2.raw
--------------------------------------------------------------------------------
/example_DrawSynth/bin/data/rawwaves/mand3.raw:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Ahbee/ofxStk/f20e70e568045ad20c20cdc320855128c8a3812e/example_DrawSynth/bin/data/rawwaves/mand3.raw
--------------------------------------------------------------------------------
/example_DrawSynth/bin/data/rawwaves/mand4.raw:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Ahbee/ofxStk/f20e70e568045ad20c20cdc320855128c8a3812e/example_DrawSynth/bin/data/rawwaves/mand4.raw
--------------------------------------------------------------------------------
/example_DrawSynth/bin/data/rawwaves/mand5.raw:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Ahbee/ofxStk/f20e70e568045ad20c20cdc320855128c8a3812e/example_DrawSynth/bin/data/rawwaves/mand5.raw
--------------------------------------------------------------------------------
/example_DrawSynth/bin/data/rawwaves/mand6.raw:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Ahbee/ofxStk/f20e70e568045ad20c20cdc320855128c8a3812e/example_DrawSynth/bin/data/rawwaves/mand6.raw
--------------------------------------------------------------------------------
/example_DrawSynth/bin/data/rawwaves/mand7.raw:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Ahbee/ofxStk/f20e70e568045ad20c20cdc320855128c8a3812e/example_DrawSynth/bin/data/rawwaves/mand7.raw
--------------------------------------------------------------------------------
/example_DrawSynth/bin/data/rawwaves/mand8.raw:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Ahbee/ofxStk/f20e70e568045ad20c20cdc320855128c8a3812e/example_DrawSynth/bin/data/rawwaves/mand8.raw
--------------------------------------------------------------------------------
/example_DrawSynth/bin/data/rawwaves/mand9.raw:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Ahbee/ofxStk/f20e70e568045ad20c20cdc320855128c8a3812e/example_DrawSynth/bin/data/rawwaves/mand9.raw
--------------------------------------------------------------------------------
/example_DrawSynth/bin/data/rawwaves/mandpluk.raw:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Ahbee/ofxStk/f20e70e568045ad20c20cdc320855128c8a3812e/example_DrawSynth/bin/data/rawwaves/mandpluk.raw
--------------------------------------------------------------------------------
/example_DrawSynth/bin/data/rawwaves/marmstk1.raw:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Ahbee/ofxStk/f20e70e568045ad20c20cdc320855128c8a3812e/example_DrawSynth/bin/data/rawwaves/marmstk1.raw
--------------------------------------------------------------------------------
/example_DrawSynth/bin/data/rawwaves/ooo.raw:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Ahbee/ofxStk/f20e70e568045ad20c20cdc320855128c8a3812e/example_DrawSynth/bin/data/rawwaves/ooo.raw
--------------------------------------------------------------------------------
/example_DrawSynth/bin/data/rawwaves/peksblnk.raw:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Ahbee/ofxStk/f20e70e568045ad20c20cdc320855128c8a3812e/example_DrawSynth/bin/data/rawwaves/peksblnk.raw
--------------------------------------------------------------------------------
/example_DrawSynth/bin/data/rawwaves/ppksblnk.raw:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Ahbee/ofxStk/f20e70e568045ad20c20cdc320855128c8a3812e/example_DrawSynth/bin/data/rawwaves/ppksblnk.raw
--------------------------------------------------------------------------------
/example_DrawSynth/bin/data/rawwaves/ridecymb.raw:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Ahbee/ofxStk/f20e70e568045ad20c20cdc320855128c8a3812e/example_DrawSynth/bin/data/rawwaves/ridecymb.raw
--------------------------------------------------------------------------------
/example_DrawSynth/bin/data/rawwaves/silence.raw:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/example_DrawSynth/bin/data/rawwaves/sineblnk.raw:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Ahbee/ofxStk/f20e70e568045ad20c20cdc320855128c8a3812e/example_DrawSynth/bin/data/rawwaves/sineblnk.raw
--------------------------------------------------------------------------------
/example_DrawSynth/bin/data/rawwaves/sinewave.raw:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Ahbee/ofxStk/f20e70e568045ad20c20cdc320855128c8a3812e/example_DrawSynth/bin/data/rawwaves/sinewave.raw
--------------------------------------------------------------------------------
/example_DrawSynth/bin/data/rawwaves/snardrum.raw:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Ahbee/ofxStk/f20e70e568045ad20c20cdc320855128c8a3812e/example_DrawSynth/bin/data/rawwaves/snardrum.raw
--------------------------------------------------------------------------------
/example_DrawSynth/bin/data/rawwaves/snglpeak.raw:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Ahbee/ofxStk/f20e70e568045ad20c20cdc320855128c8a3812e/example_DrawSynth/bin/data/rawwaves/snglpeak.raw
--------------------------------------------------------------------------------
/example_DrawSynth/bin/data/rawwaves/tambourn.raw:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Ahbee/ofxStk/f20e70e568045ad20c20cdc320855128c8a3812e/example_DrawSynth/bin/data/rawwaves/tambourn.raw
--------------------------------------------------------------------------------
/example_DrawSynth/bin/data/rawwaves/tomhidrm.raw:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Ahbee/ofxStk/f20e70e568045ad20c20cdc320855128c8a3812e/example_DrawSynth/bin/data/rawwaves/tomhidrm.raw
--------------------------------------------------------------------------------
/example_DrawSynth/bin/data/rawwaves/tomlowdr.raw:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Ahbee/ofxStk/f20e70e568045ad20c20cdc320855128c8a3812e/example_DrawSynth/bin/data/rawwaves/tomlowdr.raw
--------------------------------------------------------------------------------
/example_DrawSynth/bin/data/rawwaves/tommiddr.raw:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Ahbee/ofxStk/f20e70e568045ad20c20cdc320855128c8a3812e/example_DrawSynth/bin/data/rawwaves/tommiddr.raw
--------------------------------------------------------------------------------
/example_DrawSynth/bin/data/rawwaves/twopeaks.raw:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Ahbee/ofxStk/f20e70e568045ad20c20cdc320855128c8a3812e/example_DrawSynth/bin/data/rawwaves/twopeaks.raw
--------------------------------------------------------------------------------
/example_DrawSynth/bin/data/verdana.ttf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Ahbee/ofxStk/f20e70e568045ad20c20cdc320855128c8a3812e/example_DrawSynth/bin/data/verdana.ttf
--------------------------------------------------------------------------------
/example_DrawSynth/example_DrawSynth.xcodeproj/project.xcworkspace/contents.xcworkspacedata:
--------------------------------------------------------------------------------
1 |
2 |
4 |
6 |
7 |
8 |
--------------------------------------------------------------------------------
/example_DrawSynth/example_DrawSynth.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | IDEDidComputeMac32BitWarning
6 |
7 |
8 |
9 |
--------------------------------------------------------------------------------
/example_DrawSynth/example_DrawSynth.xcodeproj/xcuserdata/abhi.xcuserdatad/xcschemes/xcschememanagement.plist:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | SchemeUserState
6 |
7 | example_DrawSynth Debug.xcscheme_^#shared#^_
8 |
9 | orderHint
10 | 0
11 |
12 | example_DrawSynth Release.xcscheme_^#shared#^_
13 |
14 | orderHint
15 | 1
16 |
17 |
18 |
19 |
20 |
--------------------------------------------------------------------------------
/example_DrawSynth/openFrameworks-Info.plist:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | CFBundleDevelopmentRegion
6 | English
7 | CFBundleExecutable
8 | ${EXECUTABLE_NAME}
9 | CFBundleIdentifier
10 | cc.openFrameworks.ofapp
11 | CFBundleInfoDictionaryVersion
12 | 6.0
13 | CFBundlePackageType
14 | APPL
15 | CFBundleSignature
16 | ????
17 | CFBundleVersion
18 | 1.0
19 | CFBundleIconFile
20 | ${ICON}
21 |
22 |
23 |
--------------------------------------------------------------------------------
/example_DrawSynth/src/DrawSynth.cpp:
--------------------------------------------------------------------------------
1 | #include "DrawSynth.h"
2 |
3 | DrawSynth::DrawSynth(){
4 | index = 0.0;
5 | }
6 |
7 | void DrawSynth::noteOn(StkFloat frequency, StkFloat amplitude){
8 | adsr.keyOn();
9 | setFrequency(frequency);
10 | gain = amplitude;
11 | }
12 |
13 | void DrawSynth::noteOff(StkFloat amplitude){
14 | adsr.keyOff();
15 | }
16 |
17 | void DrawSynth::setFrequency(StkFloat newFreq){
18 | frequency = newFreq;
19 | }
20 |
21 | // inside tick you are responsible for setting lastFrame_
22 | StkFloat DrawSynth::tick(unsigned int channel){
23 | int tableSize = waveTable.getTableSize();
24 | float frqTL = (float)tableSize/Stk::sampleRate();
25 | float indexIncremet = frqTL * frequency;
26 | lastFrame_[0] = waveTable.tick(index);
27 | index+=indexIncremet;
28 | if (index >= tableSize - 1) {
29 | index = 0;
30 | }
31 | lastFrame_[0]*= adsr.tick();
32 | lastFrame_[0]*=gain;
33 | return lastFrame_[0];
34 | }
35 |
36 | StkFrames& DrawSynth::tick(StkFrames &frames,unsigned int channel){
37 | StkFloat *samples = &frames[channel];
38 | unsigned int hop = frames.channels();
39 | for ( unsigned int i=0; igain = gain;}
46 |
47 | private:
48 | WaveTable waveTable;
49 | StkFloat frequency;
50 | ADSR adsr;
51 | float gain;
52 | float index;
53 | };
--------------------------------------------------------------------------------
/example_DrawSynth/src/main.cpp:
--------------------------------------------------------------------------------
1 | #include "ofMain.h"
2 | #include "ofApp.h"
3 |
4 | //========================================================================
5 | int main( ){
6 | ofSetupOpenGL(1024,768,OF_WINDOW); // <-------- setup the GL context
7 |
8 | // this kicks off the running of my app
9 | // can be OF_WINDOW or OF_FULLSCREEN
10 | // pass in width and height too:
11 | ofRunApp(new ofApp());
12 |
13 | }
14 |
--------------------------------------------------------------------------------
/example_DrawSynth/src/ofApp.h:
--------------------------------------------------------------------------------
1 | #pragma once
2 |
3 | #include "ofMain.h"
4 | #include "ofxStk.h"
5 | #include "DrawSynth.h"
6 | #include "ofxGui.h"
7 |
8 | class ofApp : 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 | void dragEvent(ofDragInfo dragInfo);
23 | void gotMessage(ofMessage msg);
24 |
25 | void audioOut(ofSoundBuffer & buffer);
26 |
27 | // callback evertime user changes adsr envelope
28 | void adsrChanged(float &val);
29 |
30 | // checks if any keys are being held down;
31 | bool noNotesDown()const;
32 |
33 | // prevents the user from drawing illegal waves
34 | void cutWaveToPoint(ofPoint cutPoint);
35 |
36 | // creates a 5000 size waveTable from the wave drawing
37 | stk::StkFrames createWaveTableFromDrawing();
38 |
39 | // takes the yValue inside the drawing region and converts it to
40 | // range -1 to 1, where -1 is rext bottom and 1 is rect top
41 | float transformYValue(float yValue)const ;
42 |
43 | ofPolyline wave;
44 | ofRectangle drawRegion;
45 |
46 | DrawSynth drawSynth;
47 |
48 | bool drawingBegan;
49 | bool keyDown;
50 |
51 | ofxPanel gui;
52 | ofxFloatSlider attack;
53 | ofxFloatSlider decay;
54 | ofxFloatSlider sustain;
55 | ofxFloatSlider release;
56 | ofxFloatSlider gain;
57 |
58 | ofTrueTypeFont instructions;
59 |
60 | ofSoundStream soundStream;
61 |
62 |
63 | bool aDown;
64 | bool sDown;
65 | bool dDown;
66 | bool fDown;
67 | bool gDown;
68 | bool hDown;
69 | bool jDown;
70 | bool kDown;
71 | bool lDown;
72 | };
73 |
--------------------------------------------------------------------------------
/example_FileLoop/Makefile:
--------------------------------------------------------------------------------
1 | # Attempt to load a config.make file.
2 | # If none is found, project defaults in config.project.make will be used.
3 | ifneq ($(wildcard config.make),)
4 | include config.make
5 | endif
6 |
7 | # make sure the the OF_ROOT location is defined
8 | ifndef OF_ROOT
9 | OF_ROOT=../../..
10 | endif
11 |
12 | # call the project makefile!
13 | include $(OF_ROOT)/libs/openFrameworksCompiled/project/makefileCommon/compile.project.mk
14 |
--------------------------------------------------------------------------------
/example_FileLoop/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 | //ICONS - NEW IN 0072
9 | ICON_NAME_DEBUG = icon-debug.icns
10 | ICON_NAME_RELEASE = icon.icns
11 | ICON_FILE_PATH = $(OF_PATH)/libs/openFrameworksCompiled/project/osx/
12 |
13 | //IF YOU WANT AN APP TO HAVE A CUSTOM ICON - PUT THEM IN YOUR DATA FOLDER AND CHANGE ICON_FILE_PATH to:
14 | //ICON_FILE_PATH = bin/data/
15 |
16 | OTHER_CFLAGS = $(OF_CORE_CFLAGS)
17 | OTHER_LDFLAGS = $(OF_CORE_LIBS) $(OF_CORE_FRAMEWORKS)
18 | HEADER_SEARCH_PATHS = $(OF_CORE_HEADERS)
19 |
--------------------------------------------------------------------------------
/example_FileLoop/addons.make:
--------------------------------------------------------------------------------
1 | ofxGui
2 | ofxStk
3 |
--------------------------------------------------------------------------------
/example_FileLoop/bin/data/.gitkeep:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Ahbee/ofxStk/f20e70e568045ad20c20cdc320855128c8a3812e/example_FileLoop/bin/data/.gitkeep
--------------------------------------------------------------------------------
/example_FileLoop/bin/data/beat.wav:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Ahbee/ofxStk/f20e70e568045ad20c20cdc320855128c8a3812e/example_FileLoop/bin/data/beat.wav
--------------------------------------------------------------------------------
/example_FileLoop/bin/data/rawwaves/ahh.raw:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Ahbee/ofxStk/f20e70e568045ad20c20cdc320855128c8a3812e/example_FileLoop/bin/data/rawwaves/ahh.raw
--------------------------------------------------------------------------------
/example_FileLoop/bin/data/rawwaves/bassdrum.raw:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Ahbee/ofxStk/f20e70e568045ad20c20cdc320855128c8a3812e/example_FileLoop/bin/data/rawwaves/bassdrum.raw
--------------------------------------------------------------------------------
/example_FileLoop/bin/data/rawwaves/britestk.raw:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Ahbee/ofxStk/f20e70e568045ad20c20cdc320855128c8a3812e/example_FileLoop/bin/data/rawwaves/britestk.raw
--------------------------------------------------------------------------------
/example_FileLoop/bin/data/rawwaves/cowbell1.raw:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Ahbee/ofxStk/f20e70e568045ad20c20cdc320855128c8a3812e/example_FileLoop/bin/data/rawwaves/cowbell1.raw
--------------------------------------------------------------------------------
/example_FileLoop/bin/data/rawwaves/crashcym.raw:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Ahbee/ofxStk/f20e70e568045ad20c20cdc320855128c8a3812e/example_FileLoop/bin/data/rawwaves/crashcym.raw
--------------------------------------------------------------------------------
/example_FileLoop/bin/data/rawwaves/dope.raw:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Ahbee/ofxStk/f20e70e568045ad20c20cdc320855128c8a3812e/example_FileLoop/bin/data/rawwaves/dope.raw
--------------------------------------------------------------------------------
/example_FileLoop/bin/data/rawwaves/eee.raw:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Ahbee/ofxStk/f20e70e568045ad20c20cdc320855128c8a3812e/example_FileLoop/bin/data/rawwaves/eee.raw
--------------------------------------------------------------------------------
/example_FileLoop/bin/data/rawwaves/fwavblnk.raw:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Ahbee/ofxStk/f20e70e568045ad20c20cdc320855128c8a3812e/example_FileLoop/bin/data/rawwaves/fwavblnk.raw
--------------------------------------------------------------------------------
/example_FileLoop/bin/data/rawwaves/halfwave.raw:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Ahbee/ofxStk/f20e70e568045ad20c20cdc320855128c8a3812e/example_FileLoop/bin/data/rawwaves/halfwave.raw
--------------------------------------------------------------------------------
/example_FileLoop/bin/data/rawwaves/hihatcym.raw:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Ahbee/ofxStk/f20e70e568045ad20c20cdc320855128c8a3812e/example_FileLoop/bin/data/rawwaves/hihatcym.raw
--------------------------------------------------------------------------------
/example_FileLoop/bin/data/rawwaves/impuls10.raw:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Ahbee/ofxStk/f20e70e568045ad20c20cdc320855128c8a3812e/example_FileLoop/bin/data/rawwaves/impuls10.raw
--------------------------------------------------------------------------------
/example_FileLoop/bin/data/rawwaves/impuls20.raw:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Ahbee/ofxStk/f20e70e568045ad20c20cdc320855128c8a3812e/example_FileLoop/bin/data/rawwaves/impuls20.raw
--------------------------------------------------------------------------------
/example_FileLoop/bin/data/rawwaves/impuls40.raw:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Ahbee/ofxStk/f20e70e568045ad20c20cdc320855128c8a3812e/example_FileLoop/bin/data/rawwaves/impuls40.raw
--------------------------------------------------------------------------------
/example_FileLoop/bin/data/rawwaves/mand1.raw:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Ahbee/ofxStk/f20e70e568045ad20c20cdc320855128c8a3812e/example_FileLoop/bin/data/rawwaves/mand1.raw
--------------------------------------------------------------------------------
/example_FileLoop/bin/data/rawwaves/mand10.raw:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Ahbee/ofxStk/f20e70e568045ad20c20cdc320855128c8a3812e/example_FileLoop/bin/data/rawwaves/mand10.raw
--------------------------------------------------------------------------------
/example_FileLoop/bin/data/rawwaves/mand11.raw:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Ahbee/ofxStk/f20e70e568045ad20c20cdc320855128c8a3812e/example_FileLoop/bin/data/rawwaves/mand11.raw
--------------------------------------------------------------------------------
/example_FileLoop/bin/data/rawwaves/mand12.raw:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Ahbee/ofxStk/f20e70e568045ad20c20cdc320855128c8a3812e/example_FileLoop/bin/data/rawwaves/mand12.raw
--------------------------------------------------------------------------------
/example_FileLoop/bin/data/rawwaves/mand2.raw:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Ahbee/ofxStk/f20e70e568045ad20c20cdc320855128c8a3812e/example_FileLoop/bin/data/rawwaves/mand2.raw
--------------------------------------------------------------------------------
/example_FileLoop/bin/data/rawwaves/mand3.raw:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Ahbee/ofxStk/f20e70e568045ad20c20cdc320855128c8a3812e/example_FileLoop/bin/data/rawwaves/mand3.raw
--------------------------------------------------------------------------------
/example_FileLoop/bin/data/rawwaves/mand4.raw:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Ahbee/ofxStk/f20e70e568045ad20c20cdc320855128c8a3812e/example_FileLoop/bin/data/rawwaves/mand4.raw
--------------------------------------------------------------------------------
/example_FileLoop/bin/data/rawwaves/mand5.raw:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Ahbee/ofxStk/f20e70e568045ad20c20cdc320855128c8a3812e/example_FileLoop/bin/data/rawwaves/mand5.raw
--------------------------------------------------------------------------------
/example_FileLoop/bin/data/rawwaves/mand6.raw:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Ahbee/ofxStk/f20e70e568045ad20c20cdc320855128c8a3812e/example_FileLoop/bin/data/rawwaves/mand6.raw
--------------------------------------------------------------------------------
/example_FileLoop/bin/data/rawwaves/mand7.raw:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Ahbee/ofxStk/f20e70e568045ad20c20cdc320855128c8a3812e/example_FileLoop/bin/data/rawwaves/mand7.raw
--------------------------------------------------------------------------------
/example_FileLoop/bin/data/rawwaves/mand8.raw:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Ahbee/ofxStk/f20e70e568045ad20c20cdc320855128c8a3812e/example_FileLoop/bin/data/rawwaves/mand8.raw
--------------------------------------------------------------------------------
/example_FileLoop/bin/data/rawwaves/mand9.raw:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Ahbee/ofxStk/f20e70e568045ad20c20cdc320855128c8a3812e/example_FileLoop/bin/data/rawwaves/mand9.raw
--------------------------------------------------------------------------------
/example_FileLoop/bin/data/rawwaves/mandpluk.raw:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Ahbee/ofxStk/f20e70e568045ad20c20cdc320855128c8a3812e/example_FileLoop/bin/data/rawwaves/mandpluk.raw
--------------------------------------------------------------------------------
/example_FileLoop/bin/data/rawwaves/marmstk1.raw:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Ahbee/ofxStk/f20e70e568045ad20c20cdc320855128c8a3812e/example_FileLoop/bin/data/rawwaves/marmstk1.raw
--------------------------------------------------------------------------------
/example_FileLoop/bin/data/rawwaves/ooo.raw:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Ahbee/ofxStk/f20e70e568045ad20c20cdc320855128c8a3812e/example_FileLoop/bin/data/rawwaves/ooo.raw
--------------------------------------------------------------------------------
/example_FileLoop/bin/data/rawwaves/peksblnk.raw:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Ahbee/ofxStk/f20e70e568045ad20c20cdc320855128c8a3812e/example_FileLoop/bin/data/rawwaves/peksblnk.raw
--------------------------------------------------------------------------------
/example_FileLoop/bin/data/rawwaves/ppksblnk.raw:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Ahbee/ofxStk/f20e70e568045ad20c20cdc320855128c8a3812e/example_FileLoop/bin/data/rawwaves/ppksblnk.raw
--------------------------------------------------------------------------------
/example_FileLoop/bin/data/rawwaves/ridecymb.raw:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Ahbee/ofxStk/f20e70e568045ad20c20cdc320855128c8a3812e/example_FileLoop/bin/data/rawwaves/ridecymb.raw
--------------------------------------------------------------------------------
/example_FileLoop/bin/data/rawwaves/silence.raw:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/example_FileLoop/bin/data/rawwaves/sineblnk.raw:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Ahbee/ofxStk/f20e70e568045ad20c20cdc320855128c8a3812e/example_FileLoop/bin/data/rawwaves/sineblnk.raw
--------------------------------------------------------------------------------
/example_FileLoop/bin/data/rawwaves/sinewave.raw:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Ahbee/ofxStk/f20e70e568045ad20c20cdc320855128c8a3812e/example_FileLoop/bin/data/rawwaves/sinewave.raw
--------------------------------------------------------------------------------
/example_FileLoop/bin/data/rawwaves/snardrum.raw:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Ahbee/ofxStk/f20e70e568045ad20c20cdc320855128c8a3812e/example_FileLoop/bin/data/rawwaves/snardrum.raw
--------------------------------------------------------------------------------
/example_FileLoop/bin/data/rawwaves/snglpeak.raw:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Ahbee/ofxStk/f20e70e568045ad20c20cdc320855128c8a3812e/example_FileLoop/bin/data/rawwaves/snglpeak.raw
--------------------------------------------------------------------------------
/example_FileLoop/bin/data/rawwaves/tambourn.raw:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Ahbee/ofxStk/f20e70e568045ad20c20cdc320855128c8a3812e/example_FileLoop/bin/data/rawwaves/tambourn.raw
--------------------------------------------------------------------------------
/example_FileLoop/bin/data/rawwaves/tomhidrm.raw:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Ahbee/ofxStk/f20e70e568045ad20c20cdc320855128c8a3812e/example_FileLoop/bin/data/rawwaves/tomhidrm.raw
--------------------------------------------------------------------------------
/example_FileLoop/bin/data/rawwaves/tomlowdr.raw:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Ahbee/ofxStk/f20e70e568045ad20c20cdc320855128c8a3812e/example_FileLoop/bin/data/rawwaves/tomlowdr.raw
--------------------------------------------------------------------------------
/example_FileLoop/bin/data/rawwaves/tommiddr.raw:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Ahbee/ofxStk/f20e70e568045ad20c20cdc320855128c8a3812e/example_FileLoop/bin/data/rawwaves/tommiddr.raw
--------------------------------------------------------------------------------
/example_FileLoop/bin/data/rawwaves/twopeaks.raw:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Ahbee/ofxStk/f20e70e568045ad20c20cdc320855128c8a3812e/example_FileLoop/bin/data/rawwaves/twopeaks.raw
--------------------------------------------------------------------------------
/example_FileLoop/bin/data/verdana.ttf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Ahbee/ofxStk/f20e70e568045ad20c20cdc320855128c8a3812e/example_FileLoop/bin/data/verdana.ttf
--------------------------------------------------------------------------------
/example_FileLoop/example_FileLoop.xcodeproj/project.xcworkspace/contents.xcworkspacedata:
--------------------------------------------------------------------------------
1 |
2 |
4 |
6 |
7 |
8 |
--------------------------------------------------------------------------------
/example_FileLoop/example_FileLoop.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | IDEDidComputeMac32BitWarning
6 |
7 |
8 |
9 |
--------------------------------------------------------------------------------
/example_FileLoop/openFrameworks-Info.plist:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | CFBundleDevelopmentRegion
6 | English
7 | CFBundleExecutable
8 | ${EXECUTABLE_NAME}
9 | CFBundleIdentifier
10 | cc.openFrameworks.ofapp
11 | CFBundleInfoDictionaryVersion
12 | 6.0
13 | CFBundlePackageType
14 | APPL
15 | CFBundleSignature
16 | ????
17 | CFBundleVersion
18 | 1.0
19 | CFBundleIconFile
20 | ${ICON}
21 |
22 |
23 |
--------------------------------------------------------------------------------
/example_FileLoop/src/main.cpp:
--------------------------------------------------------------------------------
1 | #include "ofMain.h"
2 | #include "ofApp.h"
3 |
4 | //========================================================================
5 | int main( ){
6 | ofSetupOpenGL(1024,768,OF_WINDOW); // <-------- setup the GL context
7 |
8 | // this kicks off the running of my app
9 | // can be OF_WINDOW or OF_FULLSCREEN
10 | // pass in width and height too:
11 | ofRunApp(new ofApp());
12 |
13 | }
14 |
--------------------------------------------------------------------------------
/example_FileLoop/src/ofApp.h:
--------------------------------------------------------------------------------
1 | #pragma once
2 |
3 | #include "ofMain.h"
4 | #include "ofxStk.h"
5 | #include "ofxGui.h"
6 |
7 | class ofApp : 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(ofSoundBuffer& buffer);
25 | void chorusParametersChanged(float &value);
26 | void reverbParametersChanged(float &value);
27 | void frequencyChanged(float &value);
28 | void filterCutoffChanged(float &value);
29 |
30 | ofxPanel panel;
31 | ofxFloatSlider frequency;
32 | ofxFloatSlider chorusDepth;
33 | ofxFloatSlider chorusFrequency;
34 | ofxFloatSlider reverbRoomSize;
35 | ofxFloatSlider filterCutoff;
36 | ofxToggle reverbOn;
37 | ofxToggle chorusOn;
38 |
39 | stk::FileLoop beat;
40 | stk::FreeVerb reverb;
41 | stk::Chorus chorus;
42 | stk::OneZero filter;
43 |
44 | ofSoundStream soundStream;
45 |
46 | ofTrueTypeFont instructions;
47 | bool shouldPlayAudio;
48 | };
49 |
--------------------------------------------------------------------------------
/example_pitchShift/Makefile:
--------------------------------------------------------------------------------
1 | # Attempt to load a config.make file.
2 | # If none is found, project defaults in config.project.make will be used.
3 | ifneq ($(wildcard config.make),)
4 | include config.make
5 | endif
6 |
7 | # make sure the the OF_ROOT location is defined
8 | ifndef OF_ROOT
9 | OF_ROOT=../../..
10 | endif
11 |
12 | # call the project makefile!
13 | include $(OF_ROOT)/libs/openFrameworksCompiled/project/makefileCommon/compile.project.mk
14 |
--------------------------------------------------------------------------------
/example_pitchShift/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 | //ICONS - NEW IN 0072
9 | ICON_NAME_DEBUG = icon-debug.icns
10 | ICON_NAME_RELEASE = icon.icns
11 | ICON_FILE_PATH = $(OF_PATH)/libs/openFrameworksCompiled/project/osx/
12 |
13 | //IF YOU WANT AN APP TO HAVE A CUSTOM ICON - PUT THEM IN YOUR DATA FOLDER AND CHANGE ICON_FILE_PATH to:
14 | //ICON_FILE_PATH = bin/data/
15 |
16 | OTHER_CFLAGS = $(OF_CORE_CFLAGS)
17 | OTHER_LDFLAGS = $(OF_CORE_LIBS) $(OF_CORE_FRAMEWORKS)
18 | HEADER_SEARCH_PATHS = $(OF_CORE_HEADERS)
19 |
--------------------------------------------------------------------------------
/example_pitchShift/addons.make:
--------------------------------------------------------------------------------
1 | ofxStk
2 |
--------------------------------------------------------------------------------
/example_pitchShift/bin/data/.gitkeep:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Ahbee/ofxStk/f20e70e568045ad20c20cdc320855128c8a3812e/example_pitchShift/bin/data/.gitkeep
--------------------------------------------------------------------------------
/example_pitchShift/bin/data/piano.wav:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Ahbee/ofxStk/f20e70e568045ad20c20cdc320855128c8a3812e/example_pitchShift/bin/data/piano.wav
--------------------------------------------------------------------------------
/example_pitchShift/bin/data/verdana.ttf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Ahbee/ofxStk/f20e70e568045ad20c20cdc320855128c8a3812e/example_pitchShift/bin/data/verdana.ttf
--------------------------------------------------------------------------------
/example_pitchShift/example_pitchShift.xcodeproj/project.xcworkspace/contents.xcworkspacedata:
--------------------------------------------------------------------------------
1 |
2 |
4 |
6 |
7 |
8 |
--------------------------------------------------------------------------------
/example_pitchShift/example_pitchShift.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | IDEDidComputeMac32BitWarning
6 |
7 |
8 |
9 |
--------------------------------------------------------------------------------
/example_pitchShift/example_pitchShift.xcodeproj/xcuserdata/abhi.xcuserdatad/xcschemes/xcschememanagement.plist:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | SchemeUserState
6 |
7 | example_pitchShift Debug.xcscheme_^#shared#^_
8 |
9 | orderHint
10 | 0
11 |
12 | example_pitchShift Release.xcscheme_^#shared#^_
13 |
14 | orderHint
15 | 1
16 |
17 |
18 |
19 |
20 |
--------------------------------------------------------------------------------
/example_pitchShift/openFrameworks-Info.plist:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | CFBundleDevelopmentRegion
6 | English
7 | CFBundleExecutable
8 | ${EXECUTABLE_NAME}
9 | CFBundleIdentifier
10 | cc.openFrameworks.ofapp
11 | CFBundleInfoDictionaryVersion
12 | 6.0
13 | CFBundlePackageType
14 | APPL
15 | CFBundleSignature
16 | ????
17 | CFBundleVersion
18 | 1.0
19 | CFBundleIconFile
20 | ${ICON}
21 |
22 |
23 |
--------------------------------------------------------------------------------
/example_pitchShift/src/BasicSampler.h:
--------------------------------------------------------------------------------
1 | #pragma once
2 |
3 | #include "ofMain.h"
4 | #include "ofxStk.h"
5 |
6 | class BasicSampler: public stk::Instrmnt{
7 | public:
8 | BasicSampler(){
9 | sample = new stk::FileWvIn(ofToDataPath("piano.wav",true));
10 | baseFrequency = 92.4986056779;
11 | pithShifter = new stk::PitShift();
12 | pithShifter->setEffectMix(1.0);
13 | adsr.setAttackTime(10.0/1000.0);
14 | adsr.setDecayTime(200/1000.0);
15 | adsr.setSustainLevel(1.0);
16 | adsr.setReleaseTime(500.0/1000.0);
17 | }
18 |
19 | ~BasicSampler(){
20 | delete pithShifter;
21 | delete sample;
22 | }
23 |
24 | void setFrequency(stk::StkFloat frequency ){
25 | float shiftRatio = frequency/baseFrequency;
26 | pithShifter->setShift(shiftRatio);
27 | }
28 |
29 |
30 | void noteOn(stk::StkFloat frequency,stk::StkFloat amplitude ){
31 | this->setFrequency( frequency );
32 | this->amplitude = amplitude;
33 | adsr.keyOn();
34 | sample->reset();
35 | }
36 |
37 | void noteOff(stk::StkFloat amplitude ){
38 | adsr.keyOff();
39 | }
40 |
41 | // inside tick you are responsible for setting lastFrame_
42 | stk::StkFloat tick(unsigned int channel = 0){
43 | // we are using just the right channel of the sample
44 | // we do this by passing 1 to 'sample->tick'
45 |
46 | lastFrame_[0] = sample->tick(1);
47 | float input = lastFrame_[0];
48 | lastFrame_[0] = pithShifter->tick(lastFrame_[0]);
49 | float output = lastFrame_[0];
50 |
51 | lastFrame_[0] *= adsr.tick();
52 | lastFrame_[0] *= amplitude;
53 | return lastFrame_[channel];
54 | }
55 |
56 | // fills the specified 'channel' of 'frames'
57 | stk::StkFrames& tick(stk::StkFrames &frames,unsigned int channel = 0){
58 | stk::StkFloat *samples = &frames[channel];
59 | unsigned int hop = frames.channels();
60 | for ( unsigned int i=0; i