Categories

Elsewhere

This is deviator/wiki, a personal notebook, log, repository of ideas, and more...

2012 focus

  • Kiberpipa
    • 2012-2017 strategy / poslanstvo/mission
    • 2012 projects: SuperCollider /dev/art/residence | Eclectic Tech Carnival 2012 | HAIP 2012 | Naked on pluto | Propaganda kritike | ...
  • Frozen Images album | Resistance/DFMC | Transmittance
  • EmanatWWW | WndvWWW | DeviatorUpdates

2011 focus


current work

documentation

notes/inspiration




DevLog.120117_Userstyle for stylish for launchpad - improved dark-grey version

@namespace url(http://www.w3.org/1999/xhtml);
@-moz-document domain("launchpad.net") {


html, body, h1, h2, h3, h4, h5, .side .portlet, .results, li, table.listing thead th, table.listing tr.thead th, table.listing td, .boardCommentDetails, .boardBugActivityBody, .message, #duplicate-actions, .upper-batch-nav, .lower-batch-nav {
    background: #383838 !important;
    color: silver !important;
}


.watermark-apps-portlet li a:link, .watermark-apps-portlet li a:visited, .footer .lp-arcana {
    background: #333 !important;
    color: #ee6 !important;
}

a {
    color:#aae !important;
}


table {
    border:black !important;
}


.version, .released {
    background: #777 !important;
}

.latest-announcement {
    background: #555 !important;
}

}

simple install into stylish and updates be at http://userstyles.org/styles/59554/launchpad-dark-grey





DevLog.110922 SenseStage in SuperCollider - newbie stumbling

// so the problem at the moment is that i don't know how to get
// running data from a bus into the synthDef - more specifically
// data on the bus which is a list of three value (array?) [1,2,3]

y = SWDataNetworkClient( "localhost", "NovaSC"); // create client
y.subscribeNode(1); // subscribe to a DN node which is a miniBee with accel. sensors
m = y.nodes[1]; // assign node 1 to a variable m
m.createBus; // put data coming from node 1 into a bus
m.value; // returns three values.

// how to use them in here:
(
        SynthDef(\ThreeWF, { |freq1=0.5, freq2=1, freq3=2, amp=0.05|
                Out.ar([0,1],
                        SinOsc.ar(freq1 * 1000 - 300, 0, [amp,0]) +
                        SinOsc.ar(freq2 * 1000 - 300, 0, [0,amp]) +
                        SinOsc.ar(freq3 * 1000 - 300, 0, [amp,amp])
                );
        }).send(s)
)

i = Synth(\ThreeWF);

i.map(\freq1, m.bus); // this maps three values automatically to
                      // all three parameters \freq1 \freq2 \freq3, why?
                      // are they automatically mapped to further arguments of \ThreeWF?
                      // how can i map a single index to a single argument??

// these are traditional
i.set(\freq1, 0.6);
i.set(\freq2, 1);
i.set(\freq3, 2);
i.set(\amp,0.05);

// and:
i.free; // this works.
y.free; // this has no visible effect?
m.free; // this as well.
 





DevLog.110907 bash script to download clips from the camera, recode, and upload

I wrote this little bash script so that it automatically (in one go) sends clips from camera to an online location.


#!/bin/bash
# a script to download clips from camera, convert them and uploads them to server

# cleanup
mv -v *.mts mts/



# copy all MTS clips to harddrive

cd /media/CAM_MEM/AVCHD/BDMV/STREAM/
echo; echo "now working in" `pwd` "..."; echo; echo "copying ..."

for i in *.MTS
do
        cp -v $i /media/2T-1/111104_sramota_cont_docu/shame_rehearsal_`stat -c %y $i | sed 's/.000000000 +0200//g' | sed 's/:/_/g' | sed 's/ /__/'`.mts;
done


# go to working dir.
cd /media/2T-1/111104_sramota_cont_docu/

echo
echo "now working in" `pwd` "..."
echo



# convert upload and move away


for i in *.mts
do
        # convert to theora
        /home/random/bin/ffmpeg2theora.linux -v 10 -x 512 -y 288 $i

        ( # upload in the background
        scp `echo $i | sed 's/.mts/.ogv/'` luka@skylined.org:/home/www/emanat.si/var/shame/.
        # cleanup
        mv -v `echo $i | sed 's/.mts/.ogv/'` ogv/
        ) &

        # convert to flv
        ffmpeg -i $i -s 512x288 -g 160 -cmp dct -subcmp dct -mbd 2 -flags +aic+cbp+mv0+mv4 -trellis 1 -ar 44100 -ac 2 -b 1200kb `echo $i | sed 's/.mts/.flv/'`

        ( # upload
        scp `echo $i | sed 's/.mts/.flv/'` luka@skylined.org:/home/www/emanat.si/var/shame/.
        # cleanup
        mv -v `echo $i | sed 's/.mts/.flv/'` flv/
        ) &

        mv $i mts/

done


echo
echo
echo "seems like done!"
echo
echo


 

filed under DevelopmentLog Bash Tricks Video





more development logs...

Edit - History - Print - Recent Changes - Search
Page last modified on February 24, 2012, at 10:44 AM -