Notifications
Clear all

NEWB Needs Help

33 Posts
12 Users
0 Reactions
15.3 K Views
Posts: 477
Topic starter
(@lboucher)
Honorable Member
Joined: 18 years ago
[#6135]

Hi All

I am new to this hobby and just getting rolling with vixen.

I think I am going to build my own hardware based on the parrallax SX microcontroller using a Renard Protocol Version 1 or 2.

Anyways I have an idea, which I kinda want to keep secret for the first year.
The basics of it, is that i have an input device i would like to interface with vixen.
This device could be used in two ways.
Directly drive the lights.
Used to generate a sequence.

I am pretty sure i could get it to directly drive the lights, but looking at the 1.0 vixen plug in interface I don't see how a person goes about setting channel states via externally generated events.
I envision it working such that when you hit play, it plays the music, then for every cycle sets the channels to whatever state.
You could envsion a tapper like in LOR software. Every time you hit a key that channel goes 255.

Thanks for any help anyone can give. Looking around it seems like vixen 2.0 plugin documention and source code is kinda light, if anyone can direct me to a good place to find documentation and examples that would be great.

For reference
My background is ME in Robotics, with only 1 formal class of program experience, but i pain my way thru learning stuff in my spare time.

Thanks
Lucas


32 Replies
Posts: 2210
(@ctmal)
Famed Member
Joined: 19 years ago

I'm not sure that this is what you are looking for but in Vixen if you play the sequence you can tap the spacebar to set the current block on.


Reply
Posts: 477
Topic starter
(@lboucher)
Honorable Member
Joined: 18 years ago

Thats a start, didn't realize the space bar worked while in play.
This at least shows the functionality is there.
Now i just have to understand how to access this from the plugin interface.


Reply
Posts: 477
Topic starter
(@lboucher)
Honorable Member
Joined: 18 years ago

Update.

So i have my device talking with Vixen and can Drive lights directly with it.
Although not exactly how i want to.
It would be nice have my input device work in conjunction with any other output plugin.

Did look into the space bar and found one thing of interest.
It is useful for helping to lay out sequences but you cannot drive the lights directly.
Meaning if you hit play, then start tapping the space bar, your lights are not going to light, but the sequence will fill in, so then when you hit play again it plays.

So I think i need the ability to set channel values 1 event in the future.
I would see it working like this.
1. Hook up device to vixen.
2. Have an empty sequence ready and hit play.
3. Vixen reaches fifth event cycle in sequence.
4. Input device is triggered.
5. Channel[1].Event[6].Level = 255
6. Vixen reaches sixth event cycle, picks up Channel[1].Event[6].Level and sends this out via Renard Plugin.

Make sense?
How does one do this?


Reply
kychristmas
Posts: 3947
(@kychristmas)
Famed Member
Joined: 18 years ago

So, if I'm reading this correctly, you are trying to bypass the sequence playing portion of Vixen and interface directly with the Renard through the Vixen interface to the Rendard Device. In that case, why use Vixen at all?

Why not just send the necessary data to the Com port. At its most basic level, that's what Vixen is doing. What interface does your input device use? (Keyboard, Mouse, USB, etc)

Kelly


Reply
Posts: 477
Topic starter
(@lboucher)
Honorable Member
Joined: 18 years ago

So i have figured out I cannot do what i want with the current plugin interface. So I will spill the beans on what I am trying to do, hopefully KC will find the idea cool enough to open up the plugin interface a bit more.

By the way KC, awesome job on Vixen. This is a really cool program.

So in responce to the last post, yes i could completely bypass vixen and write my own executable. I have already done a proof of concept of that. And did the same thing via a plugin that essentially completely bypassed vixen.

So here is what I am really trying to do.

I want to interface a WII Guitar with vixen.
It is actually very very easy. Was just hoping to beat everyone else to the punch with a youtube video of my house lights being controlled by a WII Guitar. But I am too interested with moving on and making a nice interface for everyone, to wait till christmas when I get all my hardware in place.

So the real thought is that the WII Guitar could be a nice way to create sequences, better than just hitting the space bar. You can imaging the plugin setup allowing you to define what channels go to what buttons and button combination. (So in theory you could define 32 different "notes" (64 if you differentiate between up/down strum), each note mapped to one or more channels, and using the wammy bar you can control dimming.

In addition to being a tool used to help create a sequence, it would really be cool to get the neigbors kids to come over and hand them the guitar in the front yard and tell them to start playing.

So I hope that KC will open up the interface a bit so that the WII Guitar can be used to both create a sequence and at the same time make sure that seqence can be editted in such a way that the when the event call is made the guitar input is already registered so that it gets out to control the lights.
So you can controll the lights real time.

This way anyone could dowload the WII Guitar interface and have it interface with all the hardware already supported by the various plugins.

Openning up the interface would also allow others to implement other instruments.
Keyboards, Rock Band Drums, Voice etc.....

Can you image a whole rock band in front of a house full of lights.

KC what do you think.


Reply
kychristmas
Posts: 3947
(@kychristmas)
Famed Member
Joined: 18 years ago

Interesting concept. I have done a bit of playing with the WiiMote interfaced to a computer to create a DIY Electronic Multitouch Screen and Whitboard. Does the Guitar use Bluetooth as well?

I guess my Mental block is that I think of Vixen plugins as being Output rather than input. I'm new to all this so I'm not sure about the other way.

So have you been able to get the information out of the WiiGuitar and captured on the PC? I assume it's not much different than capturing what's coming from the WiiMote.

Kelly


Reply
Posts: 188
(@awhaley)
Estimable Member
Joined: 18 years ago

One thing that might help... on the 'assign audio/event patterns' dialog you can use the number keys 1-0 to live input events for up to 10 channels.

Perhaps you can write an external program that catches the guitar input, creates windows keyboard events for vixen to capture, and maybe even controls the lights directly (bypassing vixen for immediate light output?)

The other quick answer could be to write your own app that live controls the lights and uses vixen plugins for output (you've got the plugin definition. 🙂 It could even create vixen sequences from the input, which could then be imported to vixen for editing.

Art


Reply
Posts: 477
Topic starter
(@lboucher)
Honorable Member
Joined: 18 years ago

The Wii Guitar is just an extension of the WII Mote.
Still uses the WII Mote, so yes it is bluetooth.

Access the WII, or WII Guitar, or WII Fit is really easy.
Their is already a managed C# library.
So it doesn't take much at all.
http://blogs.msdn.com/coding4fun/archive/2007/03/14/1879033.aspx

I have already created my own Application based around Renard Protocol 1.
Will have to look at making an Application that generates sequence files.

Just thougth it would be really nice to make a nice addin/plugin so that everyone can use it with any hardware, right from vixen.

Will have to look into the numbers, I didn't know they could be used for live inputs.

Hopefully KC likes the idea.

Lucas


Reply
Posts: 211
(@cmitcham)
Reputable Member
Joined: 18 years ago

kc, please like the idea. if someone gets a wii guitar blinking lights in my yard, my wife will become the biggest supporter imaginable, and that means $$$ for the hobby.


Reply
Page 1 / 4
Share: