Video of my ambient lighting setup

jimmy1974 Offline
Junior Member
Posts: 2
Joined: Jun 2015
Reputation: 0
Post: #166
Awesome! thanks!
I was just trying DIY with Arduino control Signal of led.
the solution as follow:
low cost led strip of individually addressable led strip(http://www.ledlightmake.com/color-single...t-c-80_81/) + Arduino
or WS2812 + Arduino with program code(However,I get a great kick out of a sequence manually like this...

#asm
MOV P1, #1
nop

nop
nop
nop
nop
nop
nop
nop
nop
nop
nop

nop
nop
nop
nop
nop
nop
nop
nop
nop
nop

nop
nop
nop
nop
nop
nop
nop
nop
nop
nop

nop
nop
nop
nop
nop
nop
nop
nop

MOV P1, #0

nop
nop
nop
nop
nop
nop
nop
nop
nop
nop

nop
nop
nop
nop
nop
nop
nop
nop
nop
nop

nop
nop
nop
nop
nop
nop
nop
nop
nop

ENDASM
it's run on main_loop.any thing is ok!)
find quote
velkrosmaak Offline
Junior Member
Posts: 5
Joined: Jan 2014
Reputation: 0
Post: #167
Can you elaborate on how you get Winamp to launch as a separate player in order to get Milkdrop to work please? This is the main reason I built my boblight setup!
(This post was last modified: 2015-09-23 20:42 by velkrosmaak.)
find quote
KenV99 Offline
Fan
Posts: 396
Joined: Nov 2013
Reputation: 20
Post: #168
(2015-09-23 20:42)velkrosmaak Wrote:  Can you elaborate on how you get Winamp to launch as a separate player in order to get Milkdrop to work please? This is the main reason I built my boblight setup!

In short, this isn't easy and it's quirky and not a smooth experience. Nonetheless, here we go.

Assuming you have winamp installed:

Run Winamp directly from windows.
Under options set:
Visualization - Select plugin to Milkdrop 2...
Visualization (lower in menu) to Open in Big Component View
Maximize Winamp
Close Winamp

If you don't already have it, install Autohotkey.

Create a blank ahk script called KodiWinamp.ahk and paste the following into it:
Code:
#NoEnv  ; Recommended for performance and compatibility with future AutoHotkey releases.
#Warn  ; Enable warnings to assist with detecting common errors.
SendMode Event  
SetWorkingDir %A_ScriptDir%  ; Ensures a consistent starting directory.
SetTitleMatchMode, 2
DetectHiddenWindows, On
DetectHiddenText, On
FN = %1%
Run "C:\Program Files (x86)\Winamp\winamp.exe" "%FN%",,Max, PID
WinActivate ahk_pid %PID%
WinWaitActive ahk_pid %PID%
Sleep 500
Send, ^+k
Sleep 500
MouseClick, Left, 500, 500
Send, !{Enter}
Sleep 500
Loop
{
    IfWinExist  - Winamp [Stopped]
    {
        break        
    }
    Sleep 250    
}
Sleep 1000
WinActivate - Winamp [Stopped]
WinWaitActive - Winamp [Stopped]
Sleep 500
Send, !{F4}

Now compile that into an exe by right clicking the file and clicking compile.
Move the exe file into the Winamp directory in Program Files (x86) or Program Files (depending whether you are using 64 bit or 32 bit windows).

Next create an external player by creating playercorefactory.xml under your userdata directory.
Code:
<playercorefactory>
  <players>
    <player name="WinAmp" type="ExternalPlayer" audio="true" video="false">
      <filename>C:\Program Files (x86)\Winamp\KodiWinamp.exe</filename>
      <args>"{1}"</args>
      <hidexbmc>false</hidexbmc>
      <hideconsole>false</hideconsole>
      <warpcursor>none</warpcursor>
    </player>
  </players>
  <rules action="prepend">
    <rule filetypes="mp3" player="WinAmp" />
  </rules>
</playercorefactory>

Make sure the directories in both the above match the directories in your system.

By default now Kodi will run mp3s using the script which launches Winamp.

Warning: look at all those sleep commands in the ahk script. The amount of time will you need to sleep WILL vary from system to system. You'll have to play around with it.
Is short, the script:

1) Launches Winamp with one and only one song.
2) Opens the Visualization window
3) Maximizes it
4) Waits until the song is done
5) Closes Winamp

If you don't do 4 and 5, Winamp stays open on top of Kodi.
(This post was last modified: 2015-09-24 17:51 by KenV99.)
find quote
KenV99 Offline
Fan
Posts: 396
Joined: Nov 2013
Reputation: 20
Post: #169
Or alternatively if you are on Helix download milkdrop2 here:
https://github.com/oO-MrC-Oo/Milkdrop2-XBMC

On Jarvis:
https://github.com/afedchin/visualizatio...2/releases

The main drawback for these is that you cannot change the settings for milkdrop or use any of the milkdrop hotkeys.
find quote
Post Reply