Perl 6 - the future is here, just unevenly distributed

IRC log for #openframeworks, 2015-03-29

| Channels | #openframeworks index | Today | | Search | Google Search | Plain-Text | summary

All times shown according to UTC.

Time Nick Message
00:02 i_n_g_o_ joined #openframeworks
00:52 MyMind joined #openframeworks
00:56 MyMind joined #openframeworks
01:02 MyMind joined #openframeworks
01:02 i_n_g_o_ joined #openframeworks
01:12 MyMind joined #openframeworks
01:49 sirBenjamin joined #openframeworks
02:02 i_n_g_o_ joined #openframeworks
02:06 sirBenjamin Hello, I am having trouble with GStreamer and linux, is there anyone available to help me?
02:15 MyMind joined #openframeworks
02:15 sirBenjamin Okay, is there a bug with installing gstreamer in ubuntu for install_dependencies.sh?
02:16 admsyn joined #openframeworks
02:22 sirBenjamin Hey @admsyn, question. I am getting a "fatal error: gst/gst.h: No such files or directory error in linux
02:22 sirBenjamin Yes I have executed install_dependencies.sh
02:23 admsyn the issue is probably either that your header search paths doesn't include the gstreamer directory, or that gstreamer isn't installed
02:24 sirBenjamin k, where do I dig for the header file?
02:25 admsyn is gstreamer an addon on linux? I forget
02:25 sirBenjamin are we talking about config.project.m?
02:25 admsyn as in, are you trying to use a gstreamer addon or just a plain OF app?
02:25 sirBenjamin No, gstreamer is supposed to be installed with the dependences
02:25 sirBenjamin Well, I am using the gstreamer addon...
02:26 sirBenjamin Oh CRAP
02:26 sirBenjamin Okay, I just realized I didn't do everything required by the addon.
02:26 admsyn ah ok
02:26 admsyn at least the explanation is simple :)
02:26 sirBenjamin Sorry, I'll be back if I am having trouble again.
02:32 MyMind joined #openframeworks
02:32 sirBenjamin Okay @admsyn
02:32 sirBenjamin So, it's not the addon, it's the Openframeworks
02:33 admsyn alright, so you get the same error when trying to build a plain of app?
02:33 sirBenjamin The compiler is complaining about ./libs/openFrameowrks/video/ofGstUtils.h
02:33 admsyn oh interesting, it's saying ofGstUtils.h isn't found?
02:33 sirBenjamin Lemme check, 2 seconds
02:33 sirBenjamin no
02:34 sirBenjamin ofGstUtils.h is found, but the include <gst.gst.h> is not found
02:35 sirBenjamin K, so a plain OpenFrameworks project runs just fine.
02:36 admsyn one way to figure it out may be to see what's different between the makefile in the plain project and the one in your project
02:39 admsyn is this you, btw sirBenjamin? http://forum.openframeworks.cc/t/install-dependencies-sh-not-installing-gstreamer-in-ubuntu/19062
02:39 sirBenjamin Yes
02:39 admsyn ah ok
02:39 sirBenjamin Should I have my IRC and forum name the same?
02:40 admsyn nope, doesn't matter, just if two people had the same issue at roughly the same time it may be that the script is broken :)
02:41 sirBenjamin well, so the make files between the two projects are the same, but when I add one of the addons (ofxGstRTP) to the generic project "addons.make" I get the same error
02:42 sirBenjamin so, assuming that gstreamer is installed properly (99% sure), how to I modify the #include <gst/gst.h> to be happy?
02:42 MyMind joined #openframeworks
02:43 admsyn I'd think the thing to edit would be the makefile or something in the IDE if you're using one
02:44 admsyn I don't know where the install dependencies script puts gstreamer, it may be either in the OF folder under libs, or it could be in /usr/include/
02:44 sirBenjamin I'm using code::Blocks....
02:45 sirBenjamin found it, it's under /usr/include/
02:48 sirBenjamin Okay, so how can I add /user/include/gstreamer1.0 to the make file's working directory?
02:48 sirBenjamin And which file should I added it to?
02:52 admsyn I'm not sure, personally, not using linux or code blocks
02:52 admsyn do you have an actual makefile in your project?
02:53 admsyn i.e. beside the src and bin folders?
03:02 i_n_g_o_ joined #openframeworks
03:02 sirBenjamin robert684
03:02 sirBenjamin sorry, wrong chatbox
03:05 admsyn joined #openframeworks
03:36 oneironaut joined #openframeworks
04:02 i_n_g_o_ joined #openframeworks
04:43 MyMind joined #openframeworks
05:02 i_n_g_o_ joined #openframeworks
05:03 MyMind joined #openframeworks
05:10 MyMind joined #openframeworks
05:39 notjosh joined #openframeworks
05:45 MyMind joined #openframeworks
06:02 i_n_g_o_ joined #openframeworks
07:02 i_n_g_o_ joined #openframeworks
07:07 marcocanc joined #openframeworks
07:29 MyMind joined #openframeworks
08:02 i_n_g_o_ joined #openframeworks
09:02 i_n_g_o_ joined #openframeworks
09:05 Beliq joined #openframeworks
09:27 mhashmi joined #openframeworks
09:38 mhashmi joined #openframeworks
09:40 mhashmi joined #openframeworks
09:54 phoenixperry joined #openframeworks
09:56 Beliq joined #openframeworks
10:11 i_n_g_o_ joined #openframeworks
10:33 phoenixperry I have a question on sound stuff in OF. Does OF need to play sound out of ofApp or can I have multiple sound streams going on in individual classes? I don' think I can from what I am reading / seeing but I might be very wrong.
10:56 marcocanc joined #openframeworks
12:51 HarryHaaren joined #openframeworks
12:58 vade joined #openframeworks
14:03 phoenixperry joined #openframeworks
14:11 vade joined #openframeworks
14:52 vade joined #openframeworks
14:57 Sembei joined #openframeworks
16:17 vade joined #openframeworks
17:30 phoenixperry joined #openframeworks
17:46 Phyks joined #openframeworks
17:46 Phyks hi, can openFrameworks be used to create cross-platform 3D apps for android / iOS / web?
17:47 Phyks I saw the examples source codes in the repo, but it seems that iOS code is written in objective-c and android code in c++
18:03 jorrakay xcode will compile C++. but you will need obj-c wrappers to use ios features.
18:15 bilderbuchi joined #openframeworks
18:15 bilderbuchi left #openframeworks
18:17 marcocanc joined #openframeworks
18:19 admsyn joined #openframeworks
18:29 admsyn phoenixperry: I take it you're working on that sound thing right now?
18:29 admsyn any luck?
18:59 phoenixperry oh hi!
18:59 phoenixperry yes
19:00 phoenixperry I was just fighting git to push
19:00 phoenixperry I think my account is down b/c of the ddos attack
19:02 phoenixperry I got the new build up and running in my project that roymacdonald linked
19:02 phoenixperry and now I am just trying to figure out if I can still use ofxmaxim w/it
19:06 jorrakay I can't clone from or push to github right now either :(
19:06 jorrakay had to download a zip ball
19:06 jorrakay because web requests still work sometimes for some reason
19:08 GuidovanPossum joined #openframeworks
19:09 phoenixperry there's an attack from China going on
19:09 phoenixperry they are targeting all the anti-censorship repos
19:10 phoenixperry https://news.ycombinator.com/item?id=9284226
19:10 phoenixperry http://gizmodo.com/who-on-earth-would-attack-github-for-its-anti-great-fir-1694134233
19:15 jorrakay PRC just made cus we got the space victory
19:15 jorrakay just mad*
19:16 phoenixperry :)
19:16 phoenixperry ok solved my own problems!
19:22 admsyn ok good to hear :) sorry, was away for a bit
19:25 admsyn fwiw you may have an easier time with a constant q transform if you're trying to extract note values instead of a rough estimation of frequency
19:26 admsyn though fft libs are easier to come by
19:33 phoenixperry explain?
19:34 phoenixperry I am getting pretty good luck by mapping frequency to note number. I can play a note and it's a dead match
19:34 phoenixperry i'm pretty happy about it
19:35 phoenixperry https://github.com/phoenixperry/sparkCore_ofExample/blob/master/src/PitchEstimator.cpp
19:35 phoenixperry i'll google this constant q thing
19:36 admsyn fair enough, no reason to overcomplicate it if it's working for you ¯\_(ツ)_/¯
19:36 admsyn I've used this one in OF before with good results https://code.soundsoftware.ac.uk/projects/constant-q-cpp
19:36 jedahan joined #openframeworks
19:36 jedahan joined #openframeworks
19:36 phoenixperry good to know
19:37 admsyn the issue is that you can't get fft bins to match the spacing of musical notes, since fft bins are spaced linearly and musical notes are logarithmic
19:37 phoenixperry I'll save it
19:37 phoenixperry yah
19:37 phoenixperry I noticed this
19:37 phoenixperry i think I am getting lucky by and large
19:37 phoenixperry b/c I just need a general guess
19:37 admsyn yeah, so if it's working as-is then whatevs
19:38 phoenixperry after this deadline though I'll go back b/c if there's a better way then I'd like to explore so thanks
19:38 phoenixperry right now i'm looking at the new code and I just need to figure out how to shut off the filter if the loop stops
19:38 phoenixperry :)
19:38 phoenixperry reading
19:38 admsyn it's nice for this sort of thing, you can map notes directly to bins so you get e.g. bin 32 and that's C#3 or something
19:39 phoenixperry that's so much nicer
19:39 phoenixperry version 2!
19:39 admsyn ya :)
19:40 admsyn anyway let me know if you're having any general issues with roy's branch or otherwise, I don't know how your merge went but the stuff in there isn't really finished
19:40 phoenixperry it's working
19:41 phoenixperry i just now need to figure out how to get the filter to stop
19:41 phoenixperry at the end of the loop
19:41 phoenixperry but the branch is stable with all my addons & insanity
19:41 admsyn cool
19:43 cornus_ammonis joined #openframeworks
19:43 phoenixperry and hey man
19:43 phoenixperry thanks
19:43 vade joined #openframeworks
19:43 phoenixperry ok this might not be normal
19:44 phoenixperry https://www.dropbox.com/s/t8mv1pjx38uvbzq/Screenshot%202015-03-29%2021.43.45.png?dl=0
19:44 phoenixperry this happens at the end of the loop
19:44 phoenixperry it just freezes
19:44 phoenixperry i don't think that's actually just the filter
19:44 phoenixperry b/c I can't change it any longer
19:44 admsyn the app freezes or just the waveform freezes?
19:45 phoenixperry just the wave form
19:45 phoenixperry the sound keeps on trucking and I get a filter on basically a sine wave
19:45 phoenixperry it sounds like the filter has reached Q
19:46 admsyn probably the sound player isn't spitting out new values due to it being the end of the loop, so instead of giving you buffers of silence it just gives nothing
19:46 admsyn would be my guess
19:46 admsyn what player are you using?
19:46 phoenixperry ofBasicSoundPlayer
19:46 phoenixperry b/c that's the one that works w/ Roy's build
19:46 admsyn alright, *pretty* sure that's not finished. I know there was a reason we didn't even consider it for 0.9.0
19:47 admsyn the issue you're hitting though might just be something simple
19:47 phoenixperry I think I just need to clear the buffer
19:47 phoenixperry ?
19:47 admsyn that may be it, it could just be repeating the last buffer over and over
19:47 admsyn which would give you some weird oscillating something-or-other
19:47 phoenixperry that's what it sounds like
19:48 phoenixperry should I check to see if the position is over or at 1
19:48 phoenixperry and if so call some clearing function?
19:49 admsyn can you point me at the branch you're using? I think there's probably a bit of logic that should go from "if end of file do nothing" to "if end of file clear buffer and then do nothing"
19:49 admsyn fwiw I didn't write the ofBasicSoundPlayer so I don't have any inside knowledge on that :)
19:50 phoenixperry https://github.com/roymacdonald/openFrameworks/tree/feature-sound-objects
19:53 phoenixperry let me see if it happens if I comment out ofxMaxim agani
19:54 admsyn yeah tracing through the audioOut it looks like there's a few paths that end up doing nothing in the case where there's nothing to play
19:54 admsyn instead of clearing the buffer
19:54 admsyn https://github.com/roymacdonald/openFrameworks/blob/feature-sound-objects/libs/openFrameworks/sound/ofBasicSoundPlayer.cpp#L229-L263
19:54 admsyn kind of hard to tell, the indentation's all wacky
19:55 phoenixperry yep that's not it
19:55 phoenixperry (not ofxmaxim)
19:56 phoenixperry suggestions? Should I try and clear it?
19:57 admsyn it'd be a little easier to parse it if I could throw a breakpoint in there and see what the execution is like when you get to the end of the file
19:57 admsyn I think the thing to do though is to trace through what happens at that point and do an outputBuffer.clear(); at some point
19:58 admsyn or NOT do a buffer.copyTo(), actually
19:58 admsyn that's probably it
19:59 admsyn and judging from what you're hearing, it sounds like maybe bIsPlaying isn't being set to false when it hits the end of the file
19:59 admsyn because then nothing would be written to outputBuffer and you'd probably be fine
20:00 admsyn yeah, maybe it's just that this condition isn't being hit https://github.com/roymacdonald/openFrameworks/blob/feature-sound-objects/libs/openFrameworks/sound/ofBasicSoundPlayer.cpp#L224-L226
20:01 phoenixperry ack. Ok will give it a go. All this to run a damn audio filter. Oh lol.
20:01 phoenixperry :)
20:02 phoenixperry (I shall never take ableton for granted again)
20:03 GuidovanPossum just curious this is to control leds based on a live analysis of pitch?
20:03 phoenixperry That is happening yes
20:04 phoenixperry among a whole host of other things
20:04 phoenixperry feel free to use my code
20:04 phoenixperry I'm using the spark core
20:04 phoenixperry it'll be done around mid april and in May I'll document it
20:04 admsyn ¯\_(ツ)_/¯ not too add too many cooks to the kitchen but suggesting an unfinished branch of features is pretty optimistic
20:04 admsyn it's pretty easy in ofxAudioUnit if you're doing OSX
20:05 phoenixperry I AM GO ON
20:05 admsyn me?
20:05 phoenixperry I haven't heard about this one!
20:05 GuidovanPossum ok thanks, I was actually just looking into doing some filtering of way to analyze levels at different frequency ranges today
20:05 phoenixperry yes you admsyn
20:05 phoenixperry :)
20:06 admsyn see https://vimeo.com/41115496
20:06 admsyn https://github.com/admsyn/ofxAudioUnit
20:06 phoenixperry <GuidovanPossum> that's already working if you want to check my repo here
20:06 admsyn there's an example for filters with params
20:06 admsyn and other things
20:06 admsyn there's an fft in there too
20:06 admsyn just sayin
20:06 phoenixperry https://github.com/phoenixperry/sparkCore_ofExample/blob/master/src/PitchEstimator.cpp
20:06 phoenixperry If you were here I'd beer you
20:07 admsyn lol
20:07 phoenixperry btw I use your xcode add on
20:07 admsyn sweet
20:07 vade joined #openframeworks
20:07 phoenixperry for addons
20:07 phoenixperry all the time
20:08 phoenixperry oh jesus this is perfect
20:08 phoenixperry THANK YOU
20:08 phoenixperry This is all I need
20:08 admsyn np, let me know how it goes if you use it
20:08 phoenixperry I'll give it a try tomorrow.
20:08 phoenixperry I am going to run victory laps when this is done
20:09 phoenixperry (i have 3 microprocessors coming in with about 20 sensors)
20:09 phoenixperry and thanks again
20:09 GuidovanPossum just watched the video looks great, especially the filter!
20:09 GuidovanPossum will that only work on OSX?
20:09 admsyn yeah it's a good time :) it's using the apple-provided audio unit stuff
20:10 admsyn iOS too but you have to know what you're doing
20:10 GuidovanPossum ok on Linux now
20:10 admsyn you can use arbitrary 3rd party ones too if you need more $$ in your ????
20:10 GuidovanPossum might be possible to look at and use parts of it?
20:10 admsyn yeah I suppose, but it won't be too useful I'm afraid
20:11 admsyn thee FFT stuff is apple-brand too, via Accelerate
20:14 phoenixperry I'm on 10.9.5
20:14 phoenixperry all good?
20:15 phoenixperry joined #openframeworks
20:15 admsyn phoenixperry: yeah I've had the code kicking around since 10.7 or so, it should be fine
20:16 admsyn I think the xcode projects may need an update wrt frameworks if you hit an error when trying to build them
21:05 lukaszw joined #openframeworks
22:19 vade joined #openframeworks
22:29 mhashmi joined #openframeworks
23:05 jedahan joined #openframeworks
23:33 admsyn joined #openframeworks

| Channels | #openframeworks index | Today | | Search | Google Search | Plain-Text | summary