electro-music.com   Dedicated to experimental electro-acoustic
and electronic music
 
    Front Page  |  Radio
 |  Media  |  Forum  |  Wiki  |  Links
Forum with support of Syndicator RSS
 FAQFAQ   CalendarCalendar   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   LinksLinks
 RegisterRegister   ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in  Chat RoomChat Room 
 Forum index » DIY Hardware and Software » ChucK programming language
Experimental Video ChucK patch
Post new topic   Reply to topic Moderators: Kassen
Page 1 of 1 [8 Posts]
View unread posts
View new posts in the last week
Mark the topic unread :: View previous topic :: View next topic
Author Message
deltamodulator



Joined: May 18, 2016
Posts: 91
Location: Texas, USA
Audio files: 2

PostPosted: Thu May 26, 2016 5:04 pm    Post subject: Experimental Video ChucK patch Reply with quote  Mark this post and the followings unread

Check out this short video:

https://youtu.be/cqsiE9W1OGU

for a quick impression of what I've done recently with ChucK.

Les
Les make a ChucK patch!
Back to top
View user's profile Send private message
AlanP



Joined: Mar 11, 2014
Posts: 746
Location: New Zealand
Audio files: 41

PostPosted: Fri May 27, 2016 3:02 am    Post subject: Reply with quote  Mark this post and the followings unread

I really like the gestural controls Smile
Back to top
View user's profile Send private message
deltamodulator



Joined: May 18, 2016
Posts: 91
Location: Texas, USA
Audio files: 2

PostPosted: Fri May 27, 2016 3:06 am    Post subject: Reply with quote  Mark this post and the followings unread

ty alan, I am trying to make them more responsive.

Les
Les make a video!
Back to top
View user's profile Send private message
PHOBoS



Joined: Jan 14, 2010
Posts: 5591
Location: Moon Base
Audio files: 705

PostPosted: Fri May 27, 2016 4:08 pm    Post subject: Reply with quote  Mark this post and the followings unread

That looks awesome Shocked
Nice sounds too. Too bad I don't have a cam.

_________________
"My perf, it's full of holes!"
http://phobos.000space.com/
SoundCloud BandCamp MixCloud Stickney Synthyards Captain Collider Twitch YouTube
Back to top
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger MSN Messenger
deltamodulator



Joined: May 18, 2016
Posts: 91
Location: Texas, USA
Audio files: 2

PostPosted: Fri May 27, 2016 7:47 pm    Post subject: Reply with quote  Mark this post and the followings unread

you must not want a cam? personal choice i guess. thanks for looking and supporting my efforts, means a lot.

Les
Les make some music!
Back to top
View user's profile Send private message
PHOBoS



Joined: Jan 14, 2010
Posts: 5591
Location: Moon Base
Audio files: 705

PostPosted: Sat May 28, 2016 4:28 am    Post subject: Reply with quote  Mark this post and the followings unread

It's not that I don't want one, but I don't have a lot of money and other priorities. Besides that I don't have a computer that can handle
video very well. But I wanted to do video mixing/processing way before I ever got involved with music.

btw did you get the video code from somewhere else and just adapted it to also involve the brick ? I Couldnt really find any code online,
but I don't know anything about ChucK so I have no idea where to look. I did find some info about Golan Levin though.

_________________
"My perf, it's full of holes!"
http://phobos.000space.com/
SoundCloud BandCamp MixCloud Stickney Synthyards Captain Collider Twitch YouTube
Back to top
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger MSN Messenger
deltamodulator



Joined: May 18, 2016
Posts: 91
Location: Texas, USA
Audio files: 2

PostPosted: Sat May 28, 2016 9:22 am    Post subject: Reply with quote  Mark this post and the followings unread

Phobos,

Please note that the attached code is licensed under the Creative Commons non-Commercial license. I am open to commercial use, just please contact me first - actually please contact me in any case of use so I can enjoy the fact that someone is using the code!

I see so it is a matter of budget and priority - I'm no stranger to such things! In fact if it was not for my loving family I would have no cam as well.

FWIW here is the source code. The Processing software would not upload with the *.pde filetype so I changed it to *.txt - it needs to be changed back after downloading it. The ChucK source code should work as-is.

Also the Processing software works at 1280x1024 video on both the screen and the camera. Systems with lower resolution or systems with processors not fast enought to handle that should lower it to something of a standard but lower value(try 640x480).

To answer your question about did I use other software or did I "roll my own", it's actually custom software based on examples as starting points. To get the whole thing working I had to piece together four or five programs and add a few snippets of my own. I find this method of programming to be phenomenally faster than full custom work. There is art in the putting together of the examples, somewhat like making circuits using building blocks or subcircuits of others' work.

Basically the Processing software reads the cam each frame, then it does a frame differencing by subtracting the two frames. It then adds up the brightness of all the pixels that vary, weighted by where the pixels are. This produces large integers (in the multimillion integer value range), and it remembers the last 32 video frames, displaying them all at once to get the trailing effect that value of 32 can be adjusted in the global variables.

The three calculated numbers are sent via OSC (Open Sound Control) to the ChucK software which receives them and varies some of the parameters of a pair o fsoftware "The Brick" circuits, one for the left and one for the right.

This produces the video and the audio. I imagine playing this at an em fextival then turning the camera around to the audience so they can control the music, then inviting volunteers to stand up and dance! Would be great frun and if anyone wants to do that, I can help them work to that end by supporting their use of my software.

Les
Les write some code!


The Brick 8.ck
 Description:
The Chuck component of the source code

Download
 Filename:  The Brick 8.ck
 Filesize:  1.42 KB
 Downloaded:  278 Time(s)


Exercise_FD10.txt
 Description:
The Processing component of the source code.

Download
 Filename:  Exercise_FD10.txt
 Filesize:  5.59 KB
 Downloaded:  250 Time(s)

Back to top
View user's profile Send private message
deltamodulator



Joined: May 18, 2016
Posts: 91
Location: Texas, USA
Audio files: 2

PostPosted: Sat May 28, 2016 10:04 am    Post subject: Reply with quote  Mark this post and the followings unread

Here is the Processing sketch, now with proper filename extension thanks to Jan for adding it.

Les
Les upload a file!


Exercise_FD10.pde
 Description:
the Processing sketch with proper filename extension (thanks Jan!)

Download
 Filename:  Exercise_FD10.pde
 Filesize:  5.59 KB
 Downloaded:  267 Time(s)

Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic Moderators: Kassen
Page 1 of 1 [8 Posts]
View unread posts
View new posts in the last week
Mark the topic unread :: View previous topic :: View next topic
 Forum index » DIY Hardware and Software » ChucK programming language
Jump to:  

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Forum with support of Syndicator RSS
Powered by phpBB © 2001, 2005 phpBB Group
Copyright © 2003 through 2009 by electro-music.com - Conditions Of Use