Welcome
Username or Email:

Password:


Missing Code




[ ]
[ ]
Online
  • Guests: 20
  • Members: 0
  • Newest Member: omjtest
  • Most ever online: 396
    Guests: 396, Members: 0 on 12 Jan : 12:51
Members Birthdays:
One birthday today, congrats!
Vaxian (17)


Next birthdays
05/21 Dalus (34)
05/21 Kizmo (37)
05/22 Skynet (32)
Contact
If you need assistance, please send an email to forum at 4hv dot org. To ensure your email is not marked as spam, please include the phrase "4hv help" in the subject line. You can also find assistance via IRC, at irc.shadowworld.net, room #hvcomm.
Support 4hv.org!
Donate:
4hv.org is hosted on a dedicated server. Unfortunately, this server costs and we rely on the help of site members to keep 4hv.org running. Please consider donating. We will place your name on the thanks list and you'll be helping to keep 4hv.org alive and free for everyone. Members whose names appear in red bold have donated recently. Green bold denotes those who have recently donated to keep the server carbon neutral.


Special Thanks To:
  • Aaron Holmes
  • Aaron Wheeler
  • Adam Horden
  • Alan Scrimgeour
  • Andre
  • Andrew Haynes
  • Anonymous000
  • asabase
  • Austin Weil
  • barney
  • Barry
  • Bert Hickman
  • Bill Kukowski
  • Blitzorn
  • Brandon Paradelas
  • Bruce Bowling
  • BubeeMike
  • Byong Park
  • Cesiumsponge
  • Chris F.
  • Chris Hooper
  • Corey Worthington
  • Derek Woodroffe
  • Dalus
  • Dan Strother
  • Daniel Davis
  • Daniel Uhrenholt
  • datasheetarchive
  • Dave Billington
  • Dave Marshall
  • David F.
  • Dennis Rogers
  • drelectrix
  • Dr. John Gudenas
  • Dr. Spark
  • E.TexasTesla
  • eastvoltresearch
  • Eirik Taylor
  • Erik Dyakov
  • Erlend^SE
  • Finn Hammer
  • Firebug24k
  • GalliumMan
  • Gary Peterson
  • George Slade
  • GhostNull
  • Gordon Mcknight
  • Graham Armitage
  • Grant
  • GreySoul
  • Henry H
  • IamSmooth
  • In memory of Leo Powning
  • Jacob Cash
  • James Howells
  • James Pawson
  • Jeff Greenfield
  • Jeff Thomas
  • Jesse Frost
  • Jim Mitchell
  • jlr134
  • Joe Mastroianni
  • John Forcina
  • John Oberg
  • John Willcutt
  • Jon Newcomb
  • klugesmith
  • Leslie Wright
  • Lutz Hoffman
  • Mads Barnkob
  • Martin King
  • Mats Karlsson
  • Matt Gibson
  • Matthew Guidry
  • mbd
  • Michael D'Angelo
  • Mikkel
  • mileswaldron
  • mister_rf
  • Neil Foster
  • Nick de Smith
  • Nick Soroka
  • nicklenorp
  • Nik
  • Norman Stanley
  • Patrick Coleman
  • Paul Brodie
  • Paul Jordan
  • Paul Montgomery
  • Ped
  • Peter Krogen
  • Peter Terren
  • PhilGood
  • Richard Feldman
  • Robert Bush
  • Royce Bailey
  • Scott Fusare
  • Scott Newman
  • smiffy
  • Stella
  • Steven Busic
  • Steve Conner
  • Steve Jones
  • Steve Ward
  • Sulaiman
  • Thomas Coyle
  • Thomas A. Wallace
  • Thomas W
  • Timo
  • Torch
  • Ulf Jonsson
  • vasil
  • Vaxian
  • vladi mazzilli
  • wastehl
  • Weston
  • William Kim
  • William N.
  • William Stehl
  • Wesley Venis
The aforementioned have contributed financially to the continuing triumph of 4hv.org. They are deserving of my most heartfelt thanks.
Forums
4hv.org :: Forums :: Projects
« Previous topic | Next topic »   

Music driver for DRSSTC based on labview and STM32F4

Move Thread LAN_403
Linas
Sat Aug 09 2014, 09:34PM Print
Linas Registered Member #1143 Joined: Sun Nov 25 2007, 04:55PM
Location: Vilnius, Lithuania
Posts: 721
Hello, since i need ability to play any song on my DRSSTC, i decided to make universal MIDI controller.
Idea:
open song with Labview, convert it to spectrum , and use maximum energy frequency for PWM frequency. So PWM frequency will be calculated based on frequency, and compare register value (or duty cycle) will be based on power of that frequency.

I already developed FT2232D to SPI interface, that can send small packets at 5-7KHz repetition rate, so no wories here smile

Sounds good ? Well, no, this approach works on well defined single tone song parts, but is complete mess for normal songs.
Any one have ideas, or maybe want to help develop it ? if some one helps, i will make 3 copies of this interrupter, and i can fully assemble it prior shipping to you.

Tomorrow i will make video to show how it works, and maybe you can help to make it better. Also it will be easy to mix two or more PWM signals to generate polytone interrupter signal, for even better result !
Back to top
Steve Conner
Sun Aug 10 2014, 10:22AM
Steve Conner Registered Member #30 Joined: Fri Feb 03 2006, 10:52AM
Location: Glasgow, Scotland
Posts: 6706
The flaw in this idea is that if you send, say, 400Hz to the coil, it produces 400Hz plus all of its harmonics. The harmonics are very loud and can't be got rid of, so if the original music signal didn't contain them, you are screwed.

Some sort of cepstrum approach might help to identify harmonic series in the original music signal and choose a few fundamental break rates that would reconstruct them. This might reduce the distortion somewhat but it's never going to make a DRSSTC sound like a flute.

An alternative approach is to treat each DRSSTC bang as a delta function, then the sampling theorem says you can reconstruct an arbitrary signal from a train of them. But this requires an extremely high break rate, as the break rate is the sampling rate. Good luck making a DRSSTC that can run at 44100 bps.

My personal solution is to plug an electric guitar into it. The distortion introduced by the DRSSTC is quite similar to a fuzz box so it looks like I did it on purpose. smile I had plans to process each string separately, but I'm told that this makes the guitar sound like an accordion. The heavy intermodulation between the strings is actually a vital part of the rock and metal guitar sound.
Back to top
Linas
Sun Aug 10 2014, 11:11AM
Linas Registered Member #1143 Joined: Sun Nov 25 2007, 04:55PM
Location: Vilnius, Lithuania
Posts: 721
I am facing few problems. If song only has one nice sharp tone, interrupter does reproduce that right. Problem arise as you stated from harmonics, since low frequency for humans will create less impression, and harmonics will have distortion that will degrade sound dramatically, but also one of main problems is that main beat or sound that will be asociated with that song does not always sit in highest power frequency frown

In other words, we care more in shades than in colors.

Second problem is even if i can send data from labview at 5-10kHz with all information for PWM circuit, song is played by chunks, and i get speed reduction down to 500Hz repetition rate...

This interrupter is only good if song is played in background, at this point humans will associate song sound with Tesla coil



But hey, is only few hours of real work ( well, more, but that only because i am still new with labview, and extracting data from clusters, arrays take some time)
Back to top

Moderator(s): Chris Russell, Noelle, Alex, Tesladownunder, Dave Marshall, Dave Billington, Bjørn, Steve Conner, Wolfram, Kizmo, Mads Barnkob

Go to:

Powered by e107 Forum System
 
Legal Information
This site is powered by e107, which is released under the GNU GPL License. All work on this site, except where otherwise noted, is licensed under a Creative Commons Attribution-ShareAlike 2.5 License. By submitting any information to this site, you agree that anything submitted will be so licensed. Please read our Disclaimer and Policies page for information on your rights and responsibilities regarding this site.