<< >>
justin = { main feed , music , code , askjf , pubkey };recent comments
search
[ present ... 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 ... past ]
February 20, 2009
I intend to post more, for my own good.

OK in an attempt to post more often I updated my (crappy) web software so that I may update more easily! So hopefully my laziness will succumb to the ease of typing in a web browser.

With that note, here's a song:

On The Molten Airships.

Blammo!

Recordings:

chr - 1 -- [29:20]
chr - 2 -- [21:28]

1 Comment


February 19, 2009
Music
freeform jam with chrtest


February 18, 2009
Music
freeform jam with brenchr and Bcasted


February 17, 2009
Music
chr_with_projector - 1 -- [13:49]
chr_with_projector - 2 -- [8:55]


February 16, 2009
Music
freeform jam with brenchr


February 15, 2009
Music
freeform jam with christophe


February 11, 2009
Music
newtbren - 1 -- [73:29]
newtbren - 2 -- [44:07]


February 10, 2009
A view from today

I should get an office here...

5 Comments


February 8, 2009
Music
brennewtsteve - 1 -- [23:30]
brennewtsteve - 2 -- [17:03]
brennewtsteve - 3 -- [10:51]


February 7, 2009
Music
bren - 1 -- [3:18]
bren - 2 -- [45:07]


February 6, 2009
Music
crying babies


February 5, 2009
Music
freeform jam with bren


January 29, 2009
Music
wienerstackryan - 1 -- [5:48]
wienerstackryan - 2 -- [14:57]
wienerstackryan - 3 -- [6:09]
wienerstackryan - 4 -- [10:47]
wienerstackryan - 5 -- [7:38]
wienerstackryan - 6 -- [6:25]
wienerstackryan - 7 -- [20:58]


January 17, 2009
Music
freeform jam with brennewt


January 10, 2009
Dungen in Hoboken

This show was so awesome.. Back in November I think.. Mmmm.

1 Comment


January 10, 2009
Autosong.ninjam.com

...now new and improved!

3 Comments


January 2, 2009
Music
freeform jam with biderman


December 30, 2008
Puff the magic?



Comment...


December 29, 2008
Fixed

Tada! Might have to paint the rest of the door black...

3 Comments


December 29, 2008
Lame, so lame

But I fixed it...

Comment...


December 21, 2008
Music
biderman - 1 -- [29:49]
biderman - 2 -- [17:54]


December 20, 2008
Music
brencrypto - 1 -- [124:17]
brencrypto - 2 -- [2:39]


December 3, 2008
Zoom H2 modding complete

Now with 4 XLR inputs on a breakout cable, and the stock mics wired to their own XLR plug:



Note that the stock mics should not work on anything other than a Zoom H2, since they need approx 1.9v apparently. 48v phantom power might work, but I'm not going to risk frying them...



2 Comments


December 2, 2008
Zoom H2 modding

I opened my Zoom H2 up, removed the 4 mics, connected the wires to a 9 pin serial connector, and put it back together...

Here it is in a picture with the original mics connected to a DB9 plug via speaker wire (it's proof of concept, hey, I know this is crappy).



I'm going to make a DB9 plug to 4x XLR breakout cable today. There is no phantom power (just a piddly 1.9v or so), so it'll have to be used with dynamic mics, but the preamps seem to work fine with the SM57 I have here. Also need to figure out where to connect the XLR's pin 1 (well, it'll go to the DB9 casing, but then on the inside the H2 will need to find a good place to ground that).

If only the (otherwise awesome) ASIO driver supported 4ch input!

1 Comment


November 24, 2008
Music
freeform jam with dancraig


November 15, 2008
Music
prehoof_brennewtcrypto - 1 -- [13:17]
prehoof_brennewtcrypto - 2 -- [22:11]
prehoof_brennewtcrypto - 3 -- [6:57]


November 13, 2008
Music
brennan - 1 -- [30:02]
brennan - 2 -- [11:43]


November 9, 2008
Music
brennewt - 1 -- [28:41]
brennewt - 2 -- [61:21]
brennewt - 3 -- [56:07]


November 1, 2008
Music
newtbiderman - 1 -- [54:32]
newtbiderman - 2 -- [9:31]
newtbiderman - 3 -- [33:28]


October 30, 2008
Music
bren - 1 -- [31:47]
bren - 2 -- [39:23]


October 25, 2008
ah, 1997. or: nostalgia

So in 1996 and 1997 I wrote a 3D library called Plush. Here is a screenshot from then:

It was written in C, it tried to be very portable (reading through it now, I'd say almost to a fault -- kinda annoying ;). There were some nifty things about it:

  • 256 color output with adaptive palette creation and management
  • multiple light sources
  • piecewise linear perspective corrected texture mapping
  • Gouraud shading with color ramps that let you do fakePhong
  • optional Z-buffering
  • environment mapping
  • object hierarchies
  • frustum clipping
  • cameras
  • splines
  • matrix functions
  • primitive generation
  • very basic translucency
Totally useless today. But it would run SO fast with 20x the power available...

The code itself wasn't too bad, some stuff that I had spent ages tweaking and getting to run smoothly would surely be reusable.

So in about 8 hours of work I transformed it into Plush2, which is similar to the above, except simplified in C++, renders to 32 bit per pixel output, integrates with our LICE compositing engine, and supports the following new features:

  • 24 bit color output
  • multiple COLORED light sources
  • Texture mapping (piecewise linear perspective corrected) with optional BILINEAR filtering and support for any sized texture, support for texture transparency.
  • Colored Gouraud shading
  • Z-buffering
  • True surface transparency support
  • Multitexture support (one or both textures can be used as environment maps)
  • Full control over how pixels are combined at render -- add, mulitply are supported replace, all with alpha control.
  • No limits on number of light sources, triangles, etc.
A screenshot:

Yes yes I know 3D stuff has all been done a ton, just thought it was interesting bringing things back from the dead to see what would be reusable. Now I'm going to go hug my 2.4ghz multicore processor.

This will be a part of the next WDL release, in case anybody cares, ha ha. It does compile down to pretty small (though not small enough to go making a 4k demo with it)



9 Comments


October 18, 2008
Music
freeform jam with josh


October 15, 2008
Music
post grump


October 11, 2008
Music
freeform jam with brennewtbider


October 3, 2008
Music
freeform jam with schwa


October 1, 2008
stumbling in code

So while playing with some code to model a resonating spring (F=-k*pos), I discovered that the model I was using produced a very good sine wave approximation. This isn't normally something terribly interesting, as you can approximate sine/cosines very easily, but it was actually quite low complexity -- an iterative approximation with only 2 multiplies and 3 adds per sample. It can also generate the cos() (well, a 90 degree shifted signal) for each point for just one additional multiply.

The error is pretty low for the first few cycles, though after a bit it does drift in relation to the correct wave. I'm not going to spend too much more time on this, but if anybody wants to see if there's some way to correct it, go for it (it may just be rounding error, though, of course).

Here is the code:

    // setup:
    double cos_sc = PI/period_samples; // PI/n for a period of n
    double pos=0; // actually sin(initial_state), 1 for cos(), 0 for sin()
    double vel=1/cos_sc; // actually cos(initial_state)/cos_sc, 0 for cos(),1/cos_sc for sin()
    double tmp = cos_sc*cos_sc;
    double tmp2 = 1.0/(1.0+tmp);
    double mul1 = (1.0-tmp)*tmp2;
    double mul2 = tmp*2.0*tmp2;

    // per-sample calculation
    double output_value=pos;
    // double cosine_output = vel*cos_sc;

    // iterate to next sample
    double newpos = pos*mul1 + vel*mul2;
    vel -= (pos+newpos);
    pos = newpos;

Ta-da! If anybody wants to go and do some fancy pants math to show why this works, too, I'd love to hear it... :)



3 Comments


September 28, 2008
Music
freeform jam with brennewtjoshdan


September 27, 2008
Music
brenjoshdan - 1 -- [6:52]
brenjoshdan - 2 -- [54:06]
brenjoshdan - 3 -- [26:31]


September 16, 2008
Music
freeform jam with brennewt and solo


September 8, 2008
Music
kerosene new rough


September 6, 2008
mobile update

Another tag, yay

Recordings:

kerosene

7 Comments


September 3, 2008
Come on, sf dpw

Time to request a hearing, as I do not have any "graffiti" but they seem to think I do....

7 Comments


August 23, 2008
Music
brennewt - 1 -- [45:23]
brennewt - 2 -- [42:25]


August 21, 2008
After 18 hours

The smiley face was me...

Recordings:

bren - 1 -- [23:55]
bren - 2 -- [25:42]
bren - 3 -- [32:27]

5 Comments


August 20, 2008
Front door

We'll see if this works-- both with the kids and with the city...

7 Comments


[ present ... 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 ... past ]
search : rss : recent comments : Copyright © 2024 Justin Frankel