0 Members and 3 Guests are viewing this topic.
supporting "real" multiple notes is what I really want in Axe.
Does Wabbit record sound, too?
This is great! I was thinking about making a guitar program at some point. I'll have to find a way to defy reality and play 6 notes at once though xDQuote from: zero44 on April 28, 2011, 04:19:45 pm?!.How can you make two sounds with axe ?If two notes are pressed, only the higher is played.One way is to alternate back and forth between the two frequencies very quickly.
?!.How can you make two sounds with axe ?If two notes are pressed, only the higher is played.
Quote from: yeongJIN_COOL on April 28, 2011, 04:24:24 pmsupporting "real" multiple notes is what I really want in Axe.Conceptually that's pretty simple. Say you have the equation for three notes, f(t) g(t) h(t). The amplitude at any given t would just be f(t)+g(t)+h(t). Sum them all up. But it's not quite as easy when it comes to actually writing that out so it runs fast enough to produce the correct sound output with a chip like the z80
how to use interrupts in axe ?I could make a better sound ...
Yep, that is all it takes to play multiple notes at once. Just add up all the sine waves and output the new weird looking wave.However, the calculator can only output a 1 or a 0, so how do you pull off all the intermediate steps of the new wave? That is where the real trouble comes in to play. For this, you would have to make your own version of freq() whereby using Pulse Width Modulation, (turning the link port on and off really fast), you simulate say, 32 different voltage steps. (That might be the most grammatically strange sentence I've written on Omni)
00000000000000000000000000000000 (Lowest possible step);1000000000000000000000000000000011000000000000000000000000000000...111111111111111100000000000000001111111111111111100000000000000011111111111111111100000000000000...all the way up to...111111111111111111111111111111001111111111111111111111111111111011111111111111111111111111111111 (Highest possible step)
Actually, aeTIos made a music composer & player in Axe, looking very good.