Page 1 of 2 1 2 LastLast
Results 1 to 10 of 11

Thread: Programming question...

  1. #1

    Default Programming question...

    To all the programming savvy saber geeks out there, I have a question regarding a new soundboard design.

    How difficult/practical would it be to develop a non-driver soundboard, that starts with the basic idle hum sound effect, then uses an accelerometer that increases the volume/pitch/tone/bass of the idle hum in a linear manner when you swing it?

    EDIT::
    I suppose I should also include that there is no *specific* sound effect for swings, just the variation of the basic idle hum. So the only sound effects on a given font would be: Ignition, idle/swing, clash, power down.
    Last edited by Eco; 08-15-2009 at 11:38 AM.
    "You don't stop playing because you grow old, you grow old because you stop playing."
    -Benjamin Franklin

  2. #2

    Default

    Hmm, interesting idea... Unfortunately I'm not electronic savvy enough to answer this one for you! Hopefully someone will though, I'll keep an eye on this.

  3. #3

    Default

    I've been thinking of making one myself but havent done all the research.

    I dont think it would be that difficult really. In fact, there are some semi-premade ones out there that could play the sound (even several sounds) and you'd just have to program the accelerometer part and tell it what sound to play.

    Unfortunately the pre-made ones I've found do not fit in a saber hilt so they couldnt be used for anything more than a basic template.

  4. #4
    Council Member Novastar's Avatar
    Join Date
    Mar 2007
    Location
    San Jose / San Francisco, CA
    Posts
    4,082

    Default

    Quote Originally Posted by Eco View Post
    How difficult/practical would it be to develop a non-driver soundboard, that starts with the basic idle hum sound effect, then uses an accelerometer that increases the volume/pitch/tone/bass of the idle hum in a linear manner when you swing it?
    Unfortunately, it's not a very "linear" thing regarding:

    * the way an accelerometer captures data
    * the way you interpret that data and expect it to "translate" into what pitch shifts to apply to the base sound
    * playing the sound BEFORE / AS / WITH the swing itself.

    On that last point--what I'm saying is... you need a VERY FAST processor to playback sound "real time"... as in what would match the current motion you're making. Especially if you're planning on having a high "granularity" of how quickly the pitch can be changed... based on a minor, minor change or (obviously) a major change.

    But fine, fine: ok, skip all that and say you detect motion... great. Now you need to interpret that data... select the sound to play... pitch shift the sound based on the data captured...

    All the while, new motions are being detected and/or the motion is changing speed... direction... orientation.

    SO... you have to (generally) COMPLETE a sense of motion BEFORE you play a sound with it. Think about this carefully. It's quite a catch-22. Well... without a pretty powerful chip in there. Which means expense goes up... and chip size might generally go up. Heat goes up too (in general). Complexity gets worse as well.

    So if that all = "simple"... I say, great.
    ~~ GREYTALE NOVASTAR (Writer, Director, Choreographer, Sound Designer, Actor, Saber Designer, Vocal Artist)
    ~~ Balance of Power, EP I: "Into The Lion's Den"
    ~~ Balance of Power, EP II: "Ashes of The Phoenix"
    ~~ The Crystal Focus Sound CD Compendiums... are HERE! ~~
    ~~ Nova & Caine's Staged Combat System... comin' SOON!
    ~~ Crystal Focus Wiring Guide

  5. #5

    Default

    Hm... Sounds easy to me!

    But seriously, what about using multiple accelerometers all set with a delay on collecting new data. You'd have to set a range of velocities that would still be counted as your baseline. Yes? No?
    "You don't stop playing because you grow old, you grow old because you stop playing."
    -Benjamin Franklin

  6. #6

    Default

    You wouldnt want to use multiple.. just 1 accelerometer with 2 or 3 axis would be plenty. You would, of course, have to have some delay before sensing changes.

    I suspect one could make a 'board' that works similar to the way the iphone lightsaber does. (that also uses an accelerometer) That one plays at least 3 different movement sounds (not counting clashes) based on how fast you move the phone. It detects a change in direction to start a new sound.

  7. #7
    Council Member Novastar's Avatar
    Join Date
    Mar 2007
    Location
    San Jose / San Francisco, CA
    Posts
    4,082

    Default

    Quote Originally Posted by jtzako View Post
    You wouldnt want to use multiple.. just 1 accelerometer with 2 or 3 axis would be plenty. You would, of course, have to have some delay before sensing changes.
    No. Not if you wanted to capture more data faster. I think Eco was suggesting multiple ACCs to get the same data from multiple sources. Still... this would be a bad idea:

    * Faster processor would be a better answer
    * More ACC = greater cost... and a lot more room used
    * Granted... even a faster processor would be more $$$

    So... this is just grasping for straws. Sorry.

    Quote Originally Posted by jtzako View Post
    I suspect one could make a 'board' that works similar to the way the iphone lightsaber does. (that also uses an accelerometer) That one plays at least 3 different movement sounds (not counting clashes) based on how fast you move the phone. It detects a change in direction to start a new sound.
    The iPhone is pretty expensive, runs on an operating system, and also has a microprocessor that is at least (just guessing) 250x more powerful than the processor in CF. But I imagine it certainly could be done by someone. Always someone.
    ~~ GREYTALE NOVASTAR (Writer, Director, Choreographer, Sound Designer, Actor, Saber Designer, Vocal Artist)
    ~~ Balance of Power, EP I: "Into The Lion's Den"
    ~~ Balance of Power, EP II: "Ashes of The Phoenix"
    ~~ The Crystal Focus Sound CD Compendiums... are HERE! ~~
    ~~ Nova & Caine's Staged Combat System... comin' SOON!
    ~~ Crystal Focus Wiring Guide

  8. #8

    Default

    Yeah, Iphone is expensive and has a faster processor, but the lightsaber app (the motion/sound portion) doesnt need much cpu. Based on some pre-made things I found I dont think this deal would be terribly hard to do with something like a Arduino. (assuming you know what parts you need and how to program it)

  9. #9

    Default

    I'm just throwing ideas out there. The swing sensors on anything I've ever had my hands on have always bothered me. Hasbros, MRs, etc. They're all too laggy and inaccurate. Whenever I bought an electronic lightsaber, one of the first things I would do is take the batteries out, because it was more fun for me to make my own sound effects that actually coordinate with my movements.


    NEW BRAINSTORM.
    If you're familiar with levitation toys, they work by suspending a magnet above the opposite pole of another magnet to levitate. Is there any sort of device that works like a switch, with the walls and levitating magnet being conductive and capable of carrying a current consistently enough to be used as a motion sensor?
    (High tech mercury switch)
    "You don't stop playing because you grow old, you grow old because you stop playing."
    -Benjamin Franklin

  10. #10
    Council Member Novastar's Avatar
    Join Date
    Mar 2007
    Location
    San Jose / San Francisco, CA
    Posts
    4,082

    Default

    Quote Originally Posted by Eco View Post
    I'm just throwing ideas out there. The swing sensors on anything I've ever had my hands on have always bothered me. Hasbros, MRs, etc. They're all too laggy and inaccurate.
    Right, the basic toys have a "digital" sensor (1 or 0, on or off), whereas the idea of using a decent accelerometer correctly would yield more of an "analog" response (0-255 for example).

    However... an on or off state is (obviously) *MUCH* easier to work with vs. interpreting an analog signal. And simply saying 0-127 = swing and 128-255 = clash... would be a VERY ineffective way of handling the analog signal (as a *crude* example).

    Quote Originally Posted by Eco View Post
    NEW BRAINSTORM.
    If you're familiar with levitation toys, they work by suspending a magnet above the opposite pole of another magnet to levitate. Is there any sort of device that works like a switch, with the walls and levitating magnet being conductive and capable of carrying a current consistently enough to be used as a motion sensor?
    (High tech mercury switch)
    You got me there... no clue. Well... other than RFID-style or something. I also think you'd need to be a lot more specific about what you mean--quite exactly. As in how this magnet was meant to yield motion. Since you may end up with an "expensive" version of what the Yusan vibration sensors already do in MRs/Hasbros.

    FYI for those that don't know: it's just a spring that "waves" back and forth within a tiny cylinder. If the spring touches, you either close (or open--I forget) a circuit. Theeeeeerrrrrrre's your sign: a 1 or a 0.

    Same with the motion sensors, only I think it's a ball bearing. Roll to this side? Trigger motion. Nothing else until it rolls to the other. Rinse, lather, repeat.
    ~~ GREYTALE NOVASTAR (Writer, Director, Choreographer, Sound Designer, Actor, Saber Designer, Vocal Artist)
    ~~ Balance of Power, EP I: "Into The Lion's Den"
    ~~ Balance of Power, EP II: "Ashes of The Phoenix"
    ~~ The Crystal Focus Sound CD Compendiums... are HERE! ~~
    ~~ Nova & Caine's Staged Combat System... comin' SOON!
    ~~ Crystal Focus Wiring Guide

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •