happy birthday code
Archiver
Posts: 46,084
Hi,
Does anybody know where to find the code to play the happy birthday theme using
freqout?
Nicolas
Does anybody know where to find the code to play the happy birthday theme using
freqout?
Nicolas
Comments
This is not exactly what you were asking for, but it might get
you started in the right direction. Simply use the DTMFOUT
command instead of FREQOUT.
Steve
In a message dated 4/17/01 3:41:34 PM Eastern Daylight Time,
Nicolas.Fournel@factor5.com writes:
using freqout?
[/font]
Did anyone help you yet? I tried looking up the chart of musical notes for the
stamp, but couldn't find it. I know I saw it in there somewhere. All I found
yesterday was the Morris Code chart.
Dave
--- Nicolas Fournel <Nicolas.Fournel@f...> wrote:
> Hi,
>
> Does anybody know where to find the code to play the happy birthday theme
> using freqout?
>
> Nicolas
>
>
>
>
>
> Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/
>
>
__________________________________________________
Do You Yahoo!?
Yahoo! Auctions - buy the things you want at great prices
http://auctions.yahoo.com/
half step, since frequency is a log scale. So
A = Frequency 440.00
A# = Frequency 466.16
B = Frequency 493.88
C = Frequency 523.25
C# = Frequency 554.37
D = Frequency 587.33
D# = Frequency 622.25
E = Frequency 659.26
F = Frequency 698.46
F# = Frequency 739.99
G = Frequency 783.99
G# = Frequency 830.61
A = Frequency 880.00
A# = Frequency 932.33
B = Frequency 987.77
C = Frequency 1046.50
C# = Frequency 1108.73
D = Frequency 1174.66
D# = Frequency 1244.51
E = Frequency 1318.51
F = Frequency 1396.91
F# = Frequency 1479.98
G = Frequency 1567.98
G# = Frequency 1661.22
A = Frequency 1760.00
FYI, the factor 1.059 is based on a logarithmic scale which doubles every
octave. Thus it's the twelfth root (over twelve logarithmic steps) of
doubling, or root 12 of two.
In answer to the original question, happy birthday to you
G G A G C B
G G A G D C
G G G E C B A
F F E C D C
You'll have to work out which octaves I'm talking about.
As a final note, here's some C code that generates this table.
--
#include<math.h>
main()
{
int i;double freq,factor;
freq = 440.0;
for (i=0;i<25;++i){
factor = pow(2.0,(1.0/12.0));
freq = freq * factor;
printf("Frequency %0.2lf\n",freq);
}
}
--
On Wed, 18 Apr 2001, david cousins wrote:
> Nicolas,
> Did anyone help you yet? I tried looking up the chart of musical notes for
the
> stamp, but couldn't find it. I know I saw it in there somewhere. All I found
> yesterday was the Morris Code chart.
> Dave
>
>
> --- Nicolas Fournel <Nicolas.Fournel@f...> wrote:
> > Hi,
> >
> > Does anybody know where to find the code to play the happy birthday theme
> > using freqout?
> >
> > Nicolas
> >
> >
> >
> >
> >
> > Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/
> >
> >
>
>
> __________________________________________________
> Do You Yahoo!?
> Yahoo! Auctions - buy the things you want at great prices
> http://auctions.yahoo.com/
>
>
>
> Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/
>
>
>
Sean T. Lamont, CTO / Chief NetNerd, Abstract Software, Inc. (ServNet)
Seattle - Bellingham - Vancouver - Portland - Everett - Tacoma - Bremerton
email: lamont@a... WWW: http://www.serv.net
"...There's no moral, it's just a lot of stuff that happens". - H. Simpson
Nicolas
>>> "Sean T. Lamont .lost." <lamont@a...> 04/18/01 04:43PM >>>
It's very easy to generate. Each half step is 1.05946 times the previous
half step, since frequency is a log scale. So
A = Frequency 440.00
A# = Frequency 466.16
B = Frequency 493.88
C = Frequency 523.25
C# = Frequency 554.37
D = Frequency 587.33
D# = Frequency 622.25
E = Frequency 659.26
F = Frequency 698.46
F# = Frequency 739.99
G = Frequency 783.99
G# = Frequency 830.61
A = Frequency 880.00
A# = Frequency 932.33
B = Frequency 987.77
C = Frequency 1046.50
C# = Frequency 1108.73
D = Frequency 1174.66
D# = Frequency 1244.51
E = Frequency 1318.51
F = Frequency 1396.91
F# = Frequency 1479.98
G = Frequency 1567.98
G# = Frequency 1661.22
A = Frequency 1760.00
FYI, the factor 1.059 is based on a logarithmic scale which doubles every
octave. Thus it's the twelfth root (over twelve logarithmic steps) of
doubling, or root 12 of two.
In answer to the original question, happy birthday to you
G G A G C B
G G A G D C
G G G E C B A
F F E C D C
You'll have to work out which octaves I'm talking about.
As a final note, here's some C code that generates this table.
--
#include<math.h>
main()
{
int i;double freq,factor;
freq = 440.0;
for (i=0;i<25;++i){
factor = pow(2.0,(1.0/12.0));
freq = freq * factor;
printf("Frequency %0.2lf\n",freq);
}
}
--
On Wed, 18 Apr 2001, david cousins wrote:
> Nicolas,
> Did anyone help you yet? I tried looking up the chart of musical notes for
the
> stamp, but couldn't find it. I know I saw it in there somewhere. All I found
> yesterday was the Morris Code chart.
> Dave
>
>
> --- Nicolas Fournel <Nicolas.Fournel@f...> wrote:
> > Hi,
> >
> > Does anybody know where to find the code to play the happy birthday theme
> > using freqout?
> >
> > Nicolas
> >
> >
> >
> >
> >
> > Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/
> >
> >
>
>
> __________________________________________________
> Do You Yahoo!?
> Yahoo! Auctions - buy the things you want at great prices
> http://auctions.yahoo.com/
>
>
>
> Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/
>
>
>
Sean T. Lamont, CTO / Chief NetNerd, Abstract Software, Inc. (ServNet)
Seattle - Bellingham - Vancouver - Portland - Everett - Tacoma - Bremerton
email: lamont@a... WWW: http://www.serv.net
"...There's no moral, it's just a lot of stuff that happens". - H. Simpson
Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/