Tuesday, July 12, 2016

Does Your Windows Audio Interface Sometimes Quit Working (Maybe Along With A DAW Crash)?

Mine does all too often! Exasperating!

At first I would just reboot. Time wasted.

Then it hit me that maybe I could disable and then enable the audio interface in the Device Manager (under Sound, video and game controllers). That worked and took a lot less time, but it was still a pain.

Finally I decided that there had to be a way to create a batch file to do this for me.

If you're a power user, you can skip down to the numbered steps. Even then, please don't take offense if some of those steps insult your intelligence.

A batch file is a text file with a .bat extension. It can include commands to run a program and/or computer commands. The .bat  file you create automatically runs in a command prompt window. That's the window you get if you click Start, type "cmd" and Windows suggests cmd.exe. Then press Enter.

The window that opens hearkens back to the early days of the PC. It's what you saw back then when you booted your computer. You had to know the name of any program you wanted to run, or you typed "dir" to get a directory that would remind you of program names. Very barbaric! BUT, it was and is a very powerful, too.

I had no idea how to run the Windows Device Manager from a command prompt. Research told me it was not a simple matter of typing the name of the device manager file. There was more to it which I won't go into here.

Further research revealed a program that works like the Windows Device Manager but is also easy to include in a batch file.

So, here are the steps I took after this discovery. Note that you probably have to have administrator privileges to run the batch file you're going to create:

  1. Go to http://www.nirsoft.net/utils/device_manager_view.html. Scroll to the bottom of the page and download the appropriate version of DevManView. It and the help file and a text file are in the Zip file you download.
  2. For tools like DevManView, I have created a directory C:\Tools. It makes it easy when you go to reference the program in a batch file. But, you can unzip the downloaded file to any directory you wish. So unZip away!
  3. Open Notepad.
  4. Highlight the text in #5 just below. Copy it (Ctrl-c).
  5. @rem batch file to disable and then enable the AUDIO INTERFACE

    @rem DISABLE

    @echo.

    @echo.

    @echo Disabling AUDIO INTERFACE . . .

    @echo.

    @echo.

    @C:\Tools\DevManView\devmanview.exe /disable "AUDIO INTERFACE"

    @rem ENABLE

    @echo Enabling  AUDIO INTERFACE . . .

    @C:\Tools\DevManView\devmanview.exe /enable "AUDIO INTERFACE"
  6. Paste the text into Notepad (Ctrl-v).
  7. Find the name of your Audio Interface as it is listed in Windows Device Manager Start>Control Panel>Device Manager. It will be listed under Sound, video and game controllers. Make sure you write it down exactly as it is listed. Keep the Device Manager window open.
  8. In Notepad, replace each AUDIO INTERFACE in the text above with the exact name of your audio interface.
  9. Replace the path C:\Tools\DevManView\ with the path to where you unzipped devmanview.exe.
  10. Save the file to your desktop. Give it a name that will remind you what it does (Restart Audio Interface.bat, etc.).
  11. Find the batch file on your desktop and right click it. Select Rename.
  12. Change the extension txt to bat, This "tells" Windows that it is a file to be processed by the command prompt.
  13. Click on the new batch file to run it.

     It will open a command prompt window and Disabling AUDIO INTERFACE . . . should appear (with the name of your audio interface instead of the words AUDIO INTERFACE).

    After that command is completed, Enabling  AUDIO INTERFACE . . . should appear.

    After that command is completed, the command prompt window should close.
  14. I am NOT superstitious!
To watch the batch file in action, place the Windows Device Manager window next to where the command prompt window appears when you run this batch file. Make sure to have your device showing in that window. As the batch file runs DevManView you'll see your audio device first marked as disabled and then marked as enabled.

What exactly does the batch file do?

The rem lines are remarks and are there to explain what's happening. Because the output of a batch file includes the path of the batch file before each line of output, the screen output is full of gibberish.

The @ before each line suppresses the gibberish (except lines with echo still show on the screen, but without gibberish).

If you want to see everything that's going on while the batch file runs, you can safely remove all of the @'s.

Kudos to Nir Sofer, the author of DevManView and some other helpful tools that save users a lot of time.

I hope this helps someone!

Sunday, March 6, 2016

A Notice from Google to Me

"European Union laws require you to give European Union visitors information about cookies used on your blog. In many cases, these laws also require you to obtain consent. 

As a courtesy, we have added a notice on your blog to explain Google's use of certain Blogger and Google cookies, including use of Google Analytics and AdSense cookies. 

You are responsible for confirming this notice actually works for your blog, and that it displays. If you employ other cookies, for example by adding third party features, this notice may not work for you."

OK, I'm hereby giving any European Union friends who visit this blog notice that I have no control over any cookies that are set on this blog. The notice mentioned above was not apparent on this blog when I looked a few minutes ago. And I do not "employ other cookies, for example by adding third party features."

So I will say that if the EU friends who visit this site don't want to consent to whatever cookies Google uses, they should either not visit this site OR get Ghostery, which blocks Google Analytics, AdSense and most other "trackers." You should note that some trackers have to be enabled for you to use certain aspects on websites (like playing media files). You can whitelist sites or pages so Ghostery will not block their trackers, so it's not an "all or nothing" kind of thing.

Wednesday, December 30, 2015

A CARDBOARD Guitar!

This is not a joke! https://www.youtube.com/watch?v=7Oo2H-W7d6A

Thursday, June 4, 2015

Staying In Tune

The Pano Tuner for iOS and Android is a free chromatic tuner that uses the microphone on your smart phone to let you know what pitch you're playing (both note name and Hz). You'll always have a tuner with you as long as you've got your phone.

There's a paid version ($1.99) but I couldn't find any info on what the "upgrade" adds. My wife uses the app dozens of times a day to keep her ukulele in tune. It works better than the clip on tuner she used before the Pano Tuner app.

The app works on any instrument. If a band has someone playing a non-tuneable instrument (for example, a xylophone or an old piano with old strings) that is not tuned to A-440, You can record the xylophone/piano playing what should be an A-440 and the app will set its A to the same freq as the xylophone/piano. Then the rest of the band can use the tuner to tune their instruments to match the xylophone/piano. 

Pretty cool app!

Friday, January 2, 2015

Here's to Future Sound Effects Designers

You have been around at a time when sound effects cannot get any louder. If you look at a waveform of many modern sound effects, the waveform covers the screen. When working on the sound for the pistol in Wrack, I decided to use a part of numerous gunshot effects I had. But first, this ....

Do you like to travel? Are you interested in creating sound effects? OK. Start travelling for the purpose of collecting raw sounds for your own sound effects library. Check with your tax expert, but you should be able to deduct the cost of these trips off of your Schedule C "Sound Designer" business taxes. The trip has to be for the purpose of collecting your sound effects. As I understand it, if you do anything as a tourist, you cannot write that off.

But, if you open your ears, there are worlds of sound effects waiting to be captured. Say you go to the Eiffel Tower. There are plenty of environmental sounds to be recorded. Has anyone ever recorded the sound of the tower using a contact mike? I'll bet there are some "unworldy" sounds there. Could you capture the same sound from some other tower? I doubt it. It certainly wouldn't have the same frequencies. Plus it wouldn't have the same "bragging rights."

Making something you love to do a business is not a secret, but lots of people don't yet know about it.

Check out the possibilities!

.... Back to the Wrack pistol. What I did was take my own and stock recordings of guns firing (not just pistols). There are twenty-one different pistol sounds layered into the one effect. There's one lightning effect (recorded during a Florida thunderstorm). There's a bit of cannon fire, too. I used no compression and was careful not to add too much of any single sound. The waveform is recognizable if you look at typical single pistol audio waveforms.

Sometimes you have to use compression, but I prefer not to if I can get away with it.

Now, take a trip for the purpose of recording some new raw material for your sound effects.

Saturday, December 27, 2014

Moog EP-3 Universal Pedal

This pedal came today and I like it a lot. The only problem is it has no documentation.

The pedal has smooth output throughout the pedal's travel. I tried an FC-7 (Yamaha) before this pedal and it didn't have linear output throughout the pedal's travel. It was difficult to make smooth volume/expression changes.

The EP-3 has a "scalable output knob." I thought that would be a way to require less pedal travel to go from 0-127. Not so. I'm not sure what good this knob will do.

I ran some tests. FWIW.

Setting the knob all the way counterclockwise, my keyboard reflects that setting is data equal to zero. Moving the pedal results in no data. It's zero no matter where the pedal is set.

The position of the pedal is somewhat important to the results you'll see below. I set the knob with the pedal all the way up (heel all the way down). This is the low value position.

Most of the time, the knob changed the setting by two's, but it would also sometimes jump by one -- sometimes even numbered, sometimes odd. I moved the knob clockwise until there was a change in data.

Knob value  Low High
002              002  004
004              004  010
006              006  012
008              008  019
012              012  027
013              013  028
014              014  030                      
017              017  039                      
018              018  039
019              019  045                      
022              022  054                        
024              024  057                        
026              028  081                       
Here's where things get strange. The low number starts decreasing while the high number increases. And I'm still turning the knob clockwise.
024              024  095
021              021  102
020              020  104
018              018  107
017              017  110
014              014  113
013              013  115
011              011  118
010              010  117
008              008  121
006              006  122
005              005  123
003              003  127
002              002  125
000              000  127

Does anyone know the logic behind this?

As for the pedal, it feels expensive. There is a pneumatic kind of feel to pedal movement. That will probably change over time, but it's nice now. The base is metal. The working parts look like they're metal. The upper case/pedal is plastic, but it seems to be tough. It's heavy enough not to slide when you're trying to use it. It's comfortable when used seated or standing up. The pedal travel is sufficient to enable accuracy in volume/expression changes.

I hope this helps someone out there.

Monday, December 22, 2014

Wrack Official Soundtrack Released

The Wrack Official Soundtrack (26 tracks) has been released on Steam as DLC. It will be on iTunes after Apple's seasonal vacation, which ends December 29. It's will also soon be available on Amazon, Beats, Deezer, Google, Rdio, Spotify and YouTube.

Spotify: https://play.spotify.com/album/2JztVwteK04P5P5hnzvXsp