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:

Rockbox Ports are now being developed for various digital audio players!

+  Rockbox Technical Forums
|-+  Support and General Use
| |-+  Recording
| | |-+  Recording Enhancements Pack
« previous next »
  • Print
Pages: 1 ... 29 30 [31] 32 33 ... 63

Author Topic: Recording Enhancements Pack  (Read 364455 times)

Offline Mmmm

  • Developer
  • Member
  • *
  • Posts: 922
Re: Recording Enhancements Pack
« Reply #450 on: August 06, 2006, 08:27:32 AM »
Quote from: Techy_Bloke on August 05, 2006, 07:04:06 PM
is there anyway of making just the recording screen text heaps massive instead of having it really small so its all easier to read

and also a bigger and labeled DB meter

and prehaps scrolling input waveform ??

ummm..yeah..use the REP.... ???
Logged
My H120 build with Recording Enhancements Pack
Some examples of recordings done on H140 with Rockbox

Offline Mmmm

  • Developer
  • Member
  • *
  • Posts: 922
Re: Recording Enhancements Pack
« Reply #451 on: August 06, 2006, 09:07:45 AM »
Oh, Petur, one thing I forgot..The pointer cursor.

at about line 1540 replace this:
Code: [Select]
#ifdef HAVE_AGC
                    case 4:
                    case 5:
                        screen_put_cursorxy(&screens[0], 0, line, true);
#ifdef HAVE_REMOTE_LCD
                        screen_put_cursorxy(&screens[1], 0, line, true);
#endif
                        break;
#endif /* HAVE_AGC */
(which seems to me to be a bit of a weird thing to have anyway)

With this:
Code: [Select]
#ifdef HAVE_AGC
                    case 4:
                    case 5:
                        for(i = 0; i < screen_update; i++)
                            screen_put_cursorxy(&screens[i], 0, filename_offset[i] +
                                                    PM_HEIGHT + line, true);
                        break;
#endif /* HAVE_AGC */

Of course, all of this is in recording.c! :)
Logged
My H120 build with Recording Enhancements Pack
Some examples of recordings done on H140 with Rockbox

Offline k1spanish

  • Member
  • *
  • Posts: 10
Re: Recording Enhancements Pack
« Reply #452 on: August 07, 2006, 03:58:42 AM »
No technical matter here, just to say

                                  THANK YOU !!

for the fantastic REP! I taped 4 Rock-Shows last weeks with AGC (live). The Pack run absolutely stable, no problems and brilliant results. I used two 2$-mic-capsules with selfmade casing, works better than all prof mic's I tested.
« Last Edit: August 07, 2006, 04:00:19 AM by k1spanish »
Logged

Offline Mmmm

  • Developer
  • Member
  • *
  • Posts: 922
Re: Recording Enhancements Pack
« Reply #453 on: August 07, 2006, 07:27:54 AM »
Glad it's working for you K1spanish

I've updated the build and i've added some minor AGC improvements:

When using digital in, the AGC option won't display (as it does nothing anyway) this means you can have even larger fonts when using dig in...Hoorah!

I've fixed the remote display when you are using line in. Previously you couldnt see the AGC settings, now you can scroll down to them on the remote (and any other small screened devices).

All in post#1
Logged
My H120 build with Recording Enhancements Pack
Some examples of recordings done on H140 with Rockbox

Offline Davide-NYC

  • Member
  • *
  • Posts: 429
Re: Recording Enhancements Pack
« Reply #454 on: August 07, 2006, 11:06:28 PM »
Hey Mmmm,

I think your latest REP patch is busted.
I DLed a fresh CVS and your latest patch and got this:
Code: [Select]
$ patch --binary -p0 < recordingenhancementspack.20060807.patch
patching file apps/rec_button.c
patching file apps/rec_button.h
patching file apps/SOURCES
patching file apps/settings.c
patching file apps/settings.h
Hunk #1 succeeded at 289 (offset 10 lines).
Hunk #2 succeeded at 380 (offset 10 lines).
patching file apps/settings_menu.c
patching file apps/sound_menu.c
patching file apps/tree.c
Hunk #1 succeeded at 81 (offset 1 line).
Hunk #2 succeeded at 754 (offset 1 line).
patching file apps/tree.h
patching file apps/gui/gwps.c
patching file apps/gui/gwps.h
patching file apps/lang/deutsch.lang
Hunk #1 succeeded at 9044 with fuzz 1 (offset 658 lines).
patching file apps/lang/english.lang
Hunk #3 FAILED at 9147.
1 out of 3 hunks FAILED -- saving rejects to file apps/lang/english.lang.rej
patching file apps/recorder/peakmeter.c
patching file apps/recorder/peakmeter.h
patching file apps/recorder/recording.c
Hunk #27 FAILED at 1832.
Hunk #28 succeeded at 2183 (offset 1 line).
1 out of 28 hunks FAILED -- saving rejects to file apps/recorder/recording.c.rej

patching file apps/recorder/recording.h

I think your source might be out of date? I dunno much I just thought I'd report it.
« Last Edit: August 07, 2006, 11:18:34 PM by Davide-NYC »
Logged
Currently: iRiver H132-RTC-CFMod

Offline Chill

  • Member
  • *
  • Posts: 36
Re: Recording Enhancements Pack
« Reply #455 on: August 08, 2006, 03:34:21 AM »
I remember a while back that someone suggested AGC should keep a log of the gain adjustments that it makes in real time, so that after the event a uniform gain level could be applied to an entire recording.  That way, the user need not worry about setting the initial gain too high - the final gain setting would ensure that even the loudest passages would not clip.

Did anything ever come of this suggestion?  Is there a suitable tool that could take a WAV file and apply different gain settings to different sections of it?
Logged

Offline lenny

  • Member
  • *
  • Posts: 190
Re: Recording Enhancements Pack
« Reply #456 on: August 08, 2006, 04:27:51 AM »
that's a great idea chill. and since there's probably not a program like that, someone could concievably write it as a plugin for post-recording processing. sounds like a good idea to me anyway.
Logged

Offline petur

  • Developer
  • Member
  • *
  • Posts: 769
  • wtb: time
Re: Recording Enhancements Pack
« Reply #457 on: August 08, 2006, 04:54:39 AM »
Quote from: Davide-NYC on August 07, 2006, 11:06:28 PM
Hey Mmmm,

I think your latest REP patch is busted.
Most probably caused by the recent commit by Lamed.
Nothing hard to fix...
Logged

Offline paulheu

  • Member
  • *
  • Posts: 213
Re: Recording Enhancements Pack
« Reply #458 on: August 08, 2006, 09:13:12 AM »
it's two simple fixes really..
Logged

Offline petur

  • Developer
  • Member
  • *
  • Posts: 769
  • wtb: time
Re: Recording Enhancements Pack
« Reply #459 on: August 08, 2006, 07:22:44 PM »
Mmmm: new AGC patch on the tracker.

Let me know if I missed something.
I think it's getting close to ready for commit.

Took over your screen handling changes,
I'm still looking for a better solution.
Logged

Offline BayTaper

  • Member
  • *
  • Posts: 16
    • BayTaper.com
Re: Recording Enhancements Pack
« Reply #460 on: August 08, 2006, 10:59:43 PM »
Should I put this in the AGC thread? Anyway...

First of all, thanks guys for all of your hard work. I'm a taper who uses a couple of different recorders, but I'm in the process right now of transitioning one of my recorders from a JB3 to an H120. I'll be just going analog line in for most of my use (not digital, use something else for that). Anyway, I've got Rockbox plus REP installed and working fine it seems no problem, and while I am not a fan of AGC in general for the kinds of things I tape (music), I think the "Safety" AGC mode is a stealther's dream, and it's so easy to turn it off if you don't even want that. So, a big thanks goes out to all of the developers that have turned the H120 into a much greater thing than it was out of the box.

Now to my main question... I'm trying to understand how the gain works on the H120 with RB. From what I've read, I think it just uses the analog gain to take a big step up and then the decimator to shave some off db digitally so it increments in steps of .5 db and in a way that uses as much analog gain as it can while only using digital gain to lower the level back for .5 steps. So, from what I've seen when the gain goes negative it is simply a digital scaling down of the signal. Do I have that right?

If so, then when you're clipping, and you reduce the gain into "negative"  territory in the UI, you'll still have distorted audio with flat waveforms at a reduced db level. I totally understand that there's nothing the H120 can do about this situation because it doesn't have true analog "pads" or anything like that. But, from the AGC's "Safety" mode, I'm thinking a slightly better algorithm might be to "safety it down to 0 gain and then stop". Now maybe I've got this wrong, but my thinking from a recordist's perspective is once I'm clipping, I'm pretty screwed, and all lowering the gain down past zero into the negative gain territory is just bringing my noise floor up at that point. My thinking goes that, hey you're clipping, that data is lost forever, so it doesn't really matter to lower the gain digitally, it's not doing me any good past zero is it? Now I can see where as long as you aren't clipping, you could use negative gain to simply lower the signal in the recorded file, but why would you want to do that if you weren't already clipping cause aren't all you're doing is raising the noise floor? One idea I had was to make this an option, where you can put a floor on the gain as an option. I'd set mine to floor = zero (zero gain that is, not db).

Well, let me say that I'm not asking anyone to develop anything here, and I am grateful for what's already been developed, and I love RB and the REP as is for sure. I was just thinking about all of this negative gain thing while foolin' around with my H120, and I wanted to try to better understand how the gain staging was working because as a taper, I just want to know those kinds of things.  :P

Anyway, thanks again for your code guys!



Logged
Website/Podcast/RSS: BayTaper.com
An A/V Podcast Featuring Live Music Recordings from the SF Bay Area

Offline petur

  • Developer
  • Member
  • *
  • Posts: 769
  • wtb: time
Re: Recording Enhancements Pack
« Reply #461 on: August 09, 2006, 03:50:40 AM »
Quote from: BayTaper on August 08, 2006, 10:59:43 PM
Now to my main question... I'm trying to understand how the gain works on the H120 with RB. From what I've read, I think it just uses the analog gain to take a big step up and then the decimator to shave some off db digitally so it increments in steps of .5 db and in a way that uses as much analog gain as it can while only using digital gain to lower the level back for .5 steps. So, from what I've seen when the gain goes negative it is simply a digital scaling down of the signal. Do I have that right?

correct up to the point of the digital scaling down. We don't know for sure what the decimator does and works on.

Quote from: BayTaper on August 08, 2006, 10:59:43 PM
If so, then when you're clipping, and you reduce the gain into "negative"  territory in the UI, you'll still have distorted audio with flat waveforms at a reduced db level. I totally understand that there's nothing the H120 can do about this situation because it doesn't have true analog "pads" or anything like that. But, from the AGC's "Safety" mode, I'm thinking a slightly better algorithm might be to "safety it down to 0 gain and then stop". Now maybe I've got this wrong, but my thinking from a recordist's perspective is once I'm clipping, I'm pretty screwed, and all lowering the gain down past zero into the negative gain territory is just bringing my noise floor up at that point. My thinking goes that, hey you're clipping, that data is lost forever, so it doesn't really matter to lower the gain digitally, it's not doing me any good past zero is it? Now I can see where as long as you aren't clipping, you could use negative gain to simply lower the signal in the recorded file, but why would you want to do that if you weren't already clipping cause aren't all you're doing is raising the noise floor? One idea I had was to make this an option, where you can put a floor on the gain as an option. I'd set mine to floor = zero (zero gain that is, not db).

Good question.... I still need to do some tests on this. I once had a recording where the AGC turned the gain down negative (not much) and I didn't see clipping I think. So what the decimator does exactly is still a bit of a mistery. It does come right after the ADC and operates on the full ADC output (which has more accuracy than the data the chip sends to the cpu)
Logged

Offline Mmmm

  • Developer
  • Member
  • *
  • Posts: 922
Re: Recording Enhancements Pack
« Reply #462 on: August 09, 2006, 07:26:29 AM »
Quote from: petur on August 08, 2006, 07:22:44 PM
Mmmm: new AGC patch on the tracker.

Let me know if I missed something.
I think it's getting close to ready for commit.

Took over your screen handling changes,
I'm still looking for a better solution.

Great...
What is it you're not happy with?...I'm away from my dev environment for a while so I won't be able to do any testing/improving for a week or so... but I'll be near a computer until tomorrow at least, so I could offer some suggestions (or excuses for how i did it :P).
Logged
My H120 build with Recording Enhancements Pack
Some examples of recordings done on H140 with Rockbox

Offline BayTaper

  • Member
  • *
  • Posts: 16
    • BayTaper.com
Re: Recording Enhancements Pack
« Reply #463 on: August 09, 2006, 11:16:07 AM »
Quote from: petur on August 09, 2006, 03:50:40 AM
Quote from: BayTaper on August 08, 2006, 10:59:43 PM
Now to my main question... I'm trying to understand how the gain works on the H120 with RB. From what I've read, I think it just uses the analog gain to take a big step up and then the decimator to shave some off db digitally so it increments in steps of .5 db and in a way that uses as much analog gain as it can while only using digital gain to lower the level back for .5 steps. So, from what I've seen when the gain goes negative it is simply a digital scaling down of the signal. Do I have that right?

correct up to the point of the digital scaling down. We don't know for sure what the decimator does and works on.

Quote from: BayTaper on August 08, 2006, 10:59:43 PM
If so, then when you're clipping, and you reduce the gain into "negative"  territory in the UI, you'll still have distorted audio with flat waveforms at a reduced db level. I totally understand that there's nothing the H120 can do about this situation because it doesn't have true analog "pads" or anything like that. But, from the AGC's "Safety" mode, I'm thinking a slightly better algorithm might be to "safety it down to 0 gain and then stop". Now maybe I've got this wrong, but my thinking from a recordist's perspective is once I'm clipping, I'm pretty screwed, and all lowering the gain down past zero into the negative gain territory is just bringing my noise floor up at that point. My thinking goes that, hey you're clipping, that data is lost forever, so it doesn't really matter to lower the gain digitally, it's not doing me any good past zero is it? Now I can see where as long as you aren't clipping, you could use negative gain to simply lower the signal in the recorded file, but why would you want to do that if you weren't already clipping cause aren't all you're doing is raising the noise floor? One idea I had was to make this an option, where you can put a floor on the gain as an option. I'd set mine to floor = zero (zero gain that is, not db).

Good question.... I still need to do some tests on this. I once had a recording where the AGC turned the gain down negative (not much) and I didn't see clipping I think. So what the decimator does exactly is still a bit of a mistery. It does come right after the ADC and operates on the full ADC output (which has more accuracy than the data the chip sends to the cpu)

Thanks for the response. I guess I forgot to mention that I DID TEST this already. As far as I can tell negative gain just digitally lowers the signal strength. I ran a hot signal into the H120, it was clipping at 0 db with 0 gain. The AGC safety mode then moved the gain into negative territory (or I'm sure I could have just done that manually myself), and I then inspected the waveform in SF. The top of the wave was below 0 db, but it was chopped-off flat just like if it had clipped at 0 db. To me that spells only one thing, that negative gain is a digital scaling down of the signal and nothing more. Thus, I don't think there is really any advantage to using it (negative gain that is, I understand why its kind of nice to use the decimator to achieve smaller .5 increments, that makes sense to me, but whenever possible it's probably better to stick with pure analog gain, which I think I read was in 3 db increments starting at zero, right?). The wavform is just as screwed as it would be up at 0 db, and I think by lowering it from that point the signal to noise ratio suffers, not to mention that any digital scaling at all at 16-bit creates quantization noise from the rounding that must occur to do it. Anyway, just wanted to add more flavor to my post above considering I did actually test this yesterday. THANKS!
« Last Edit: August 09, 2006, 11:18:59 AM by BayTaper »
Logged
Website/Podcast/RSS: BayTaper.com
An A/V Podcast Featuring Live Music Recordings from the SF Bay Area

Offline Wolf

  • Member
  • *
  • Posts: 13
Re: Recording Enhancements Pack
« Reply #464 on: August 09, 2006, 11:21:11 AM »
Very interesting BayTaper. I also bougth my H140 mainly for recording live gigs and this information helps to get hi quality recordings.

Do you by any chance has any screenshots documenting your analysis?
Thx, Wolf.
Logged

  • Print
Pages: 1 ... 29 30 [31] 32 33 ... 63
« previous next »
+  Rockbox Technical Forums
|-+  Support and General Use
| |-+  Recording
| | |-+  Recording Enhancements Pack
 

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

Page created in 0.143 seconds with 22 queries.