diff --git a/colorchord2/DisplayNetwork.c b/colorchord2/DisplayNetwork.c index 54a128b..03ddcef 100644 --- a/colorchord2/DisplayNetwork.c +++ b/colorchord2/DisplayNetwork.c @@ -31,6 +31,7 @@ struct DPODriver int leds; int skipfirst; int fliprg; + int flipgb; int firstval; int port; int is_rgby; @@ -148,6 +149,15 @@ static void DPOUpdate(void * id, struct NoteFinder*nf) lbuff[i++] = OutLEDs[j*3+2]; //BLUE } } + else if( d->flipgb ) + { + for( j = 0; j < d->leds; j++ ) + { + lbuff[i++] = OutLEDs[j*3+0]; //RED + lbuff[i++] = OutLEDs[j*3+1]; //GREEN + lbuff[i++] = OutLEDs[j*3+2]; //BLUE + } + } else { for( j = 0; j < d->leds; j++ ) @@ -210,6 +220,7 @@ static void DPOParams(void * id ) d->firstval = 0; RegisterValue( "firstval", PAINT, &d->firstval, sizeof( d->firstval ) ); RegisterValue( "address", PABUFFER, d->address, sizeof( d->address ) ); d->fliprg = 0; RegisterValue( "fliprg", PAINT, &d->fliprg, sizeof( d->fliprg ) ); + d->flipgb = 0; RegisterValue( "flipgb", PAINT, &d->flipgb, sizeof( d->flipgb ) ); d->is_rgby = 0; RegisterValue( "rgby", PAINT, &d->is_rgby, sizeof( d->is_rgby ) ); d->skittlequantity=0;RegisterValue( "skittlequantity", PAINT, &d->skittlequantity, sizeof( d->skittlequantity ) ); d->socket = -1; diff --git a/colorchord2/DisplayPie.c b/colorchord2/DisplayPie.c index 08d377a..723a986 100644 --- a/colorchord2/DisplayPie.c +++ b/colorchord2/DisplayPie.c @@ -31,6 +31,7 @@ static void DPOUpdate(void * id, struct NoteFinder*nf) int i; float cw = ((float)(screenx)) / 2.0; float ch = ((float)(screeny)) / 2.0; + RDPoint pts[6]; float sizeA = sqrtf( screenx * screenx + screeny * screeny ) * d->pie_min; float sizeB = sqrtf( screenx * screenx + screeny * screeny ) * d->pie_max; @@ -53,7 +54,8 @@ static void DPOUpdate(void * id, struct NoteFinder*nf) pts[5].y = ch + sin(angB) * sizeA; CNFGColor( OutLEDs[i*3+0] | (OutLEDs[i*3+1] <<8)|(OutLEDs[i*3+2] <<16) ); - CNFGTackPoly( pts, 6 ); + CNFGTackPoly( pts, 3 ); + CNFGTackPoly( pts+3, 3 ); } diff --git a/colorchord2/netlight-dmx.conf b/colorchord2/netlight-dmx.conf new file mode 100644 index 0000000..742d1c9 --- /dev/null +++ b/colorchord2/netlight-dmx.conf @@ -0,0 +1,44 @@ +outdrivers = DisplayPie,DisplayNetwork, OutputLinear +#OutputCells +#OutputLinear + +#cells +qtyamp=50 +timebased=1 +snakey = 0 +steady_bright = 0 + + +leds = 168 +light_siding = 1.0 #Turn this to ~1.9 for more uniformity, ~1.0 for less. +satamp = 1.600 +is_loop=0 +led_floor = .1 #Turn to .25 for more uniformity, .1 for less. +#note_attach_amp_iir = .3 #.3000 +#note_attach_amp_iir2 = .15 #.1500 +#note_attach_freq_iir = .3 #0.3000 +steady_bright = 0 +#dft_iir = 0.0 +#dft_q = 20.0000 +#dft_speedup = 1000.0000 + +sourcename = alsa_output.pci-0000_0a_00.1.hdmi-stereo-extra1.monitor +#alsa_output.pci-0000_0a_00.1.hdmi-stereo.monitor +#alsa_output.pci-0000_01_00.1.hdmi-stereo.monitor +# alsa_output.pci-0000_01_00.1.hdmi-stereo-extra1.monitor +#alsa_output.pci-0000_00_1f.3.analog-stereo.monitor + +skipfirst = 3 +firstval = 0 +flipgb = 1 + +port = 7777 +#address = 192.168.4.1 +address = esp8266dmx.local +slope=.10 +amplify=.3 + + +lightx = 20 +lighty = 20 +