103 reputation
6
bio website
location
age
visits member for 2 years, 8 months
seen Mar 21 '12 at 11:29

Dec
15
awarded  Nice Question
Mar
17
awarded  Self-Learner
Feb
20
comment Creating a realtime MIDI Out
I was not aware of "processing.org" I'll look into it. Thank You!
Feb
20
awarded  Commentator
Feb
20
comment Creating a realtime MIDI Out
OK, update: So after revisiting the cycling74 website to review max/msp costs, I noticed that they have a free program called "Soundflower" And it turns out that this is the audio equivalent to what I was trying to do with midi, while this doesn't solve all my programming problems, it solves enough where I should (hopefully) now be able to build and test a prototype!
Feb
20
comment Creating a realtime MIDI Out
Well, I'm trying to process live video into sound and mathematica easily handles the video part, I know there is jitter/max-msp, but I don't own those programs and they are quite expensive (even compared to Mathematica since I'm on the student version). It might be possible to do the processing with puredata, but mathematica is really quite an easy language and I'm not the most experienced programmer. But you are right, latency might be an issue...
Feb
20
awarded  Teacher
Feb
20
answered Creating a realtime MIDI Out
Feb
20
comment Creating a realtime MIDI Out
Yes, I suspect this might be true with a Mac as well, then. I'm not sure what to do...
Feb
20
comment Creating a realtime MIDI Out
Thanks, I've been able to do everything EXCEPT configure the system default midi so that mathematica defaults out to the virtual device. It seems in all the documentation that I've been reading that there is no universal default midi device and that the midi input-output is program specific. On Logic it was very easy for me to make the change, but there does not seem to be anyway for mathematica to change. I'm wondering if Mathematica is synthesizing the tones 100% within itself and that there is no "midi" until it is converted and exported, in which case, what to do?
Feb
20
awarded  Student
Feb
20
asked Creating a realtime MIDI Out
Feb
15
comment Take[] and other Mathematica functions with live streams
imgcon = Dynamic@Floor[Mean[rawimg[[1]]]] is almost working. just need to divide it by two, but I'm an idiot and its only giving me the raw digit with a two underneath. #newbie
Feb
15
awarded  Editor
Feb
15
revised Take[] and other Mathematica functions with live streams
Providing more specific input-output parameters
Feb
15
suggested suggested edit on Take[] and other Mathematica functions with live streams
Feb
15
comment Take[] and other Mathematica functions with live streams
Ok, I'm very close to a solution with this help. The final step on this problem is to be able to operate on these numbers. Let's say I wanted the Mean of this Part and then divide it by 2 so that I'm within the data parameters. When I try to do this, I get the following: in[2]: img = Dynamic[ColorConvert[CurrentImage[], "Grayscale"]]; rawimg = Dynamic[Flatten[ImageData[img[[1]], "Byte"][[1 ;; 18, 1 ;; 12]]]] in[3]: Dynamic[Mean[rawimg]] out[3]: Mean[{242, 243, 242... }] I also tried: Dynamic[Total[rawimg]] and got the following: {242 + (ImageSizeCache -> {531.701, 198., 9.}}, {243 + (ImageSize
Feb
15
comment Take[] and other Mathematica functions with live streams
Ok, I'm very close to a solution with this help. The final step on this problem is to be able to operate on these numbers. Let's say I wanted the Mean of this Part and then divide it by 2 so that I'm within the data parameters. When I try to do this, I get the following: img = Dynamic[ColorConvert[CurrentImage[], "Grayscale"]]; rawimg = Dynamic[Flatten[ImageData[img[[1]], "Byte"][[1 ;; 18, 1 ;; 12]]]] in[3]: Dynamic[Mean[rawimage]] out[3]: Mean[{122, 124, 144... }]
Feb
15
comment Take[] and other Mathematica functions with live streams
Thank You Andy, Your post is helpful as it introduced me to "ImagePartition" and it did not occur to me to partition the image before trying to get half-bytes. The problem is still not solved, however, since I'm still getting errors when trying to convert to "Byte" img = Dynamic@ColorConvert[CurrentImage[], "Grayscale"]; Dynamic[ImageData[img[[1]]][[1 ;; 18, 1 ;; 12]], "Byte"] Does not produce Bytes. And remember, I actually need half Bytes. Dynamic[ImagePartition[ImageData[img[[1]], Scaled[{1/20, 1/20}]], "Byte"]] Also does not produce Bytes. Dynamic[ImageData[ImagePartition[img[[1]], Scaled[