[alsa-devel] is 440 Hz the true harmonic wave

Joël Krähemann joel at weedlight.ch
Mon Mar 31 11:57:41 CEST 2014


On Mon, 2014-03-31 at 11:49 +0200, Joël Krähemann wrote:
> On Mon, 2014-03-31 at 11:30 +0200, Joël Krähemann wrote:
> > On Mon, 2014-03-31 at 10:27 +0200, Felix Homann wrote:
> > > 2014-03-31 10:20 GMT+02:00 Joël Krähemann <joel at weedlight.ch>:
> > >         
> > >         
> > >         I believe that 440 Hz is an approximation rather than true
> > >         harmonic on
> > >         it's pressure. Or am I wrong? Sine is harmonic in default arc.
> > >         
> > > 
> > > 
> > > What are you talking about??? 
> > 
> > About scale. Am I wrong when I believe 440 Hz has physical property to
> > be harmonic?
> > 
> > 
> > 
> > _______________________________________________
> > Alsa-devel mailing list
> > Alsa-devel at alsa-project.org
> > http://mailman.alsa-project.org/mailman/listinfo/alsa-devel
> 
> Note: 1/45 is 90 degree.
> 
> (250000000 * (1 / 45)) calculated with calculator on GNU/Linux equals:
> 5555555.555555556
> 
> This, some handy threading functions and nanosleep makes my application
> run with a thread tree.
> 
> sf.net/p/ags
> 
> As I'm reflecting I recognize that there are 10^3 more zero's as I
> wanted. I give it a try with: 250000
> 
> That would result about 4𝜇s
> 
> That could you have seen if you didn't ban me from
> linux-kernel at vger.kernel.org:
> 
> GNU/Linux is great!
> 
> This changed my life:
> 
>     /* and now async */
>     {
>       static const struct timespec req = {
>         0,
>         (250000000 * 1 / 45),
>       };
> 
>       if(!AGS_IS_DEVOUT_THREAD(thread)){
>         nanosleep(&req, NULL);
>       }
>     }
> 
> _______________________________________________
> Alsa-devel mailing list
> Alsa-devel at alsa-project.org
> http://mailman.alsa-project.org/mailman/listinfo/alsa-devel

It runs into a deadlock! It could practically intefer with any software.
But back to topic: I'm doing softsynth.





More information about the Alsa-devel mailing list