sox-devel@lists.sourceforge.net unofficial mirror
 help / color / mirror / code / Atom feed
From: Eric Wong <normalperson@yhbt.net>
To: sox-devel@lists.sourceforge.net
Subject: Re: Modification to spectrogram.c for log frequency axis and setting lower/upper chart frequency
Date: Mon, 17 Feb 2014 06:14:47 +0000	[thread overview]
Message-ID: <20140217061447.GA7537@dcvr.yhbt.net> (raw)
In-Reply-To: <CAHBCcebMa+-FQxi0ktf7rGynRqAcbm2CUpJnRwU41xjxnm6-Xg@mail.gmail.com>

Joe Desbonnet <jdesbonnet@gmail.com> wrote:
> If this code is worth contributing please advise what are the next steps
> (if any). Consider this code contributed under whatever terms that are
> required to have it added to the project.

You mentioned there was already an open feature request?  uploading the
patch to the bugtracker should be a start.  AFAIK, most of the sox
developers are busy at the moment with real-life stuff.

I just cloned your blog and looked at it (a diff/cloned sox.git repo
would've been better), and it looks mostly OK...
Did you make sure log10_high_freq != log10_low_freq anywhere?  Otherwise
you might divide by zero:

   float log_scale = (float)p->rows/(log10_high_freq - log10_low_freq);

I'm only a simple C programmer and don't know the math behind
spectrograms, though.

(*) not sure how pick sox devs are about trailing whitespace,
    but other projects I work tend to be very picky :)

------------------------------------------------------------------------------
Android apps run on BlackBerry 10
Introducing the new BlackBerry 10.2.1 Runtime for Android apps.
Now with support for Jelly Bean, Bluetooth, Mapview and more.
Get your Android app in front of a whole new audience.  Start now.
http://pubads.g.doubleclick.net/gampad/clk?id=124407151&iu=/4140/ostg.clktrk

  reply	other threads:[~2014-02-17  6:15 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-02-17  0:21 Modification to spectrogram.c for log frequency axis and setting lower/upper chart frequency Joe Desbonnet
2014-02-17  6:14 ` Eric Wong [this message]
2014-02-17 11:36   ` Joe Desbonnet

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-list from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://lists.sourceforge.net/lists/listinfo/sox-devel

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20140217061447.GA7537@dcvr.yhbt.net \
    --to=sox-devel@lists.sourceforge.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://80x24.org/mirrors/sox.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).