#There are source codes for JamMo gst plugins.
#compile with script#
./compile_plugin.sh pitchdetect
./compile_plugin.sh sampler
./compile_plugin.sh slider

#SLIDER (This is not very funny with command line, but you can hear still something)
gst-launch --gst-plugin-path=`pwd`/libs jammoslider slider-freq=460 slider-state=TRUE ! autoaudiosink
#or another instrumenet
gst-launch --gst-plugin-path=`pwd`/libs jammoslider slider-freq=460 slider-state=TRUE instrument=1 ! autoaudiosink

#PITCHDETECT
#Test pitchdetect with microphone (alsa). Use debug=TRUE so you see what values it gets.
gst-launch --gst-plugin-path=`pwd`/libs alsasrc ! pitchdetect debug=TRUE ! fakesink

#Pitchdetect with audiotestsrc and output
gst-launch --gst-plugin-path=`pwd`/libs audiotestsrc freq=444 ! pitchdetect debug=TRUE ! autoaudiosink

#You can tune what it thinks be silence. With this it gets 0.31, but thinks 0.4 is silence, so it doesn't hear it.
#(Audiotestsrc-volume and pitchdetect-silence are not in sync, but almost)
gst-launch --gst-plugin-path=`pwd`/libs audiotestsrc freq=444 volume=0.31 ! pitchdetect silence=0.4 debug=TRUE ! autoaudiosink


#SAMPLER
gst-launch --gst-plugin-path=`pwd`/libs jammosampler instrument-folder="sampler-plugin/instruments/" init-instrument=sampler-plugin/instruments/flute.txt note-on=d3 note-on=e3 ! autoaudiosink




#You can install plugin (or plugins) by copying it to system library folder#
sudo cp libs/libgstjammo*.so /usr/lib/gstreamer-0.10/

#If you want compile for n810 using scratchbox2, just use:
sb2 -e ./compile_plugin.sh sampler

