Rockbox.org home
Downloads
Release release
Dev builds dev builds
Extras extras
themes themes
Documentation
Manual manual
Wiki wiki
Device Status device status
Support
Forums forums
Mailing lists mailing lists
IRC IRC
Development
Bugs bugs
Patches patches
Dev Guide dev guide
Search



Donate

Rockbox Technical Forums


Login with username, password and session length
Home Help Search Staff List Login Register
News:

Welcome to the Rockbox Technical Forums!

+  Rockbox Technical Forums
|-+  Rockbox Development
| |-+  Feature Ideas
| | |-+  Adjusting Volume via ambient noise on players with a mic
« previous next »
  • Print
Pages: 1 [2]

Author Topic: Adjusting Volume via ambient noise on players with a mic  (Read 13987 times)

Offline Confuseling

  • Member
  • *
  • Posts: 49
Re: Adjusting Volume via ambient noise on players with a mic
« Reply #15 on: May 17, 2010, 06:21:58 AM »
How about the first idea, but volume only reduces.

So...

1) While you're setting the volume (to your preferred maximum), the playback volume fades up slowly to 100% of set volume. Rockbox measures 'base' ambient volume over a short period.

2) As the ambient volume falls against the measured base level, playback volume falls by a configurable amount. If the ambient volume rises and you wish for more playback volume, you have to set a new maximum yourself.

The worst thing brushing your clothes could do would be to bias the base level, so volume fell off after you stopped and you had to set it again. Screaming into the microphone wouldn't do anything either.

Not really any more likely to cause harm than the present set up.
« Last Edit: May 17, 2010, 06:30:49 AM by Confuseling »
Logged

Offline gevaerts

  • Administrator
  • Member
  • *
  • Posts: 1053
Re: Adjusting Volume via ambient noise on players with a mic
« Reply #16 on: May 17, 2010, 07:27:18 AM »
Quote from: GodEater on May 17, 2010, 04:06:13 AM
I'd be interested to see if anyone can actually manage to make accidental triggering of this by contact noise work first. I'm not optimistic it's going to be that easy or reliable.

For the "pause on noise" feature, I think you want some extras anyway, such as hysteresis. That would (I think) take care of both this issue and sudden gaps in the noise.

Actually, I think you also want to combine this with rewind-a-bit-on-resume
Logged

Offline Llorean

  • Member
  • *
  • Posts: 12931
Re: Adjusting Volume via ambient noise on players with a mic
« Reply #17 on: May 17, 2010, 08:36:32 AM »
Well, I mean as a start you'd want it not to go off unless the noise raises above a certain level for half a second or so (to avoid sudden sharp noises triggering it) and not to stop again until it's been "quiet" for a certain amount of time too.

I imagine it could be made... I don't want to say "reliable", but I think most false positive can be weeded out so that once you've picked a trigger level it won't accidentally pause. I think for it to work nicely it would be okay if sometimes it didn't pause, but it wouldn't be okay if it sometimes did when it shouldn't.
Logged

Offline Confuseling

  • Member
  • *
  • Posts: 49
Re: Adjusting Volume via ambient noise on players with a mic
« Reply #18 on: May 20, 2010, 08:33:48 AM »
Any thoughts on the above suggestion? In case it isn't clear, here's some pseudocode of sorts (bearing in mind I'm no programmer... ;))

Code: [Select]
do
{
  play music at playback volume;

  if (volume key pressed)
  {
    adjust set volume;
    playback volume fades to set volume;         // for ~10 seconds or something
    sample base Average Ambient Volume;      // 'AAV' from here on
  }
  else
  {
    sample current AAV;

    if (current AAV < base AAV)
    {
      playback volume = set volume - ((base AAV - current AAV) * volume adjustment multiplier);
    }
    else
    {
      playback volume = set volume;
    }
  }
}
loop

I read on an IRC log somewhere that some players can't sample and play back at the same time. For the ones that can, this seems like it would work quite well to me if the averages were taken fairly slowly so it didn't jump around all over the place... Am I missing something (probably...)? Would there perhaps be an excess CPU / battery overhead? I could still see myself using it occasionally, on public transport for example. Could it, perhaps, work as a plugin?

Thanks.
« Last Edit: May 20, 2010, 10:14:44 AM by Confuseling »
Logged

Offline Davis_1377

  • Member
  • *
  • Posts: 3
  • Clip Zip RockBox 8gb - www.plugfones.com
Re: Adjusting Volume via ambient noise on players with a mic
« Reply #19 on: November 22, 2013, 09:50:49 PM »
Having it auto adjust the volume to ambient noise is a good idea if its done right, when the noise gets loud and quiet it will adjust the volume just small enough to apear the same. It won't adjust too much like if someone screams into your Mic and it would be alittle time delayed. The other pausing when loud noise is also a good idea. I work in a factory and been using these from www.plugphones.com for over 2 years with the clip zip and this would be very handy features.
Logged

Offline phr

  • Member
  • *
  • Posts: 25
Re: Adjusting Volume via ambient noise on players with a mic
« Reply #20 on: November 23, 2013, 01:10:50 AM »
Rather than adjusting the volume it would be much more interesting (though harder) to have noise cancellation in the software.  Basically the mic picks up the ambient noise and plays it out of phase through the earphones.  There would be some equalization tunable to the earphones, maybe with multiple profiles for different earphones.  I've wanted a feature like this for many years and suggested it on another board about 5 years ago, but got no comments on it.
Logged

Offline saratoga

  • Developer
  • Member
  • *
  • Posts: 8963
Re: Adjusting Volume via ambient noise on players with a mic
« Reply #21 on: November 23, 2013, 01:20:00 AM »
Quote from: phr on November 23, 2013, 01:10:50 AM
Rather than adjusting the volume it would be much more interesting (though harder) to have noise cancellation in the software. 

This has been suggested a few times, but its not possible without a microphone built into each ear phone. 
Logged

Offline phr

  • Member
  • *
  • Posts: 25
Re: Adjusting Volume via ambient noise on players with a mic
« Reply #22 on: November 24, 2013, 03:26:41 AM »
I think it can be done with just the mic in the player, since it only has to take out low frequencies (long wavelengths).  Some commercial noise cancelling headsets work like that, with a single mic.
Logged

Offline saratoga

  • Developer
  • Member
  • *
  • Posts: 8963
Re: Adjusting Volume via ambient noise on players with a mic
« Reply #23 on: November 24, 2013, 10:24:45 AM »
Link to one?
Logged

Offline phr

  • Member
  • *
  • Posts: 25
Re: Adjusting Volume via ambient noise on players with a mic
« Reply #24 on: November 24, 2013, 11:08:07 AM »
Dunno about a link, but I used to have one and it's conceivable that I still have it, buried in a box someplace.  Don't expect me to find it anytime soon, but if it turns up I can send it to you.  Conceptually it's pretty simple: most of the energy is at the low frequencies, so taking out those is enough to make the environment feel calmer (e.g. if you are on a plane or something).  It wasn't great, but the fancier one I have now isn't great either.
Logged

Offline saratoga

  • Developer
  • Member
  • *
  • Posts: 8963
Re: Adjusting Volume via ambient noise on players with a mic
« Reply #25 on: November 24, 2013, 12:37:57 PM »
I mean, are you sure they work the way you think they do?  If the microphone is 0.5 meters away in your pants, at 100 hz you're 0.9 radians away from your ears.  cos(2pi*100*t) - cos(2pi*100*t+.9) = 1.2 dB attenuation.  Even at 30 Hz, you're only at 7 dB.

And thats assuming free space.  In reality if the microphone is clipped to your body, you have shadowing and diffraction on top of phase error. 

Most likely if they provide any benefit at all, they're using a microphone built into the headphones. 
Logged

Offline phr

  • Member
  • *
  • Posts: 25
Re: Adjusting Volume via ambient noise on players with a mic
« Reply #26 on: November 27, 2013, 03:07:46 PM »
It's been some years since I looked at that thing but I remember a little box with a neckstrap, that headphones plugged into.  I opened it up and it was really cheap and crappy inside, PC board with a bunch of analog parts, nothing digital looking at all.  It's in my storage locker if I still have it, so I'll look for it next time I'm there.
Logged

Offline Michael7

  • Member
  • *
  • Posts: 68
Re: Adjusting Volume via ambient noise on players with a mic
« Reply #27 on: December 21, 2014, 07:15:24 PM »
My wife has just changed her car to a Honda Jazz which has this feature built in to the stereo, the faster you go the louder the music gets and it works quite well. I came onto this site with what I thought was a brilliant idea but I see the OP has beat me to it :o and as I see by the replies there are a few problems.
Logged

  • Print
Pages: 1 [2]
« previous next »
+  Rockbox Technical Forums
|-+  Rockbox Development
| |-+  Feature Ideas
| | |-+  Adjusting Volume via ambient noise on players with a mic
 

  • SMF 2.0.17 | SMF © 2019, Simple Machines
  • Rockbox Privacy Policy
  • XHTML
  • RSS
  • WAP2

Page created in 0.181 seconds with 24 queries.