Author Topic: An Axe piano with 5 octaves  (Read 10357 times)

0 Members and 1 Guest are viewing this topic.

Offline zero44

  • LV4 Regular (Next: 200)
  • ****
  • Posts: 128
  • Rating: +21/-0
  • <!--//www.ustr.net/infrared/infrared1.shtml-->
    • View Profile
    • zero44
An Axe piano with 5 octaves
« on: April 28, 2011, 04:12:13 pm »
Hello,

I less than 1 hour, I made a piano in Axe, which can play sound on five octaves.
(Axe sound in Hertz : Freq(32768/Hz, TIME) )
I add a picture, a mix of 8 white keys, 5 blacks, and a hole at the end of each key :
When we press a key, I make sound, and a X ( for blacks ) or a little donut ( whites ) go out of the key  :hyper:

You need to take your calc with the screen on your left, and the port on your right.
To play a note, press the key as it were a real piano : the [2nd] to [->] keys are the 8 whites, and to play black keys, its the key just over the white :
C note is [2nd], C# is [mode], D is [alpha], D# is [xtOn], etc.
with [▲] or [apps] you can go down of an octave, and go up with [▼] or [1].

I'll put codes soon, and a gif in 2 weeks ( no wabbitemu here, in vacations ...  :'()

Offline Yeong

  • Not a bridge
  • LV12 Extreme Poster (Next: 5000)
  • ************
  • Posts: 3739
  • Rating: +278/-12
  • Survivor of Apocalypse
    • View Profile
Re: An Axe piano with 5 octaves
« Reply #1 on: April 28, 2011, 04:15:52 pm »
oooh nice.
Does it support multiple notes?
I tried to do it one time, and I managed to make it produce 2 notes at a same time, but it barely works so XP
Sig wipe!

Offline Xeda112358

  • they/them
  • Moderator
  • LV12 Extreme Poster (Next: 5000)
  • ************
  • Posts: 4704
  • Rating: +719/-6
  • Calc-u-lator, do doo doo do do do.
    • View Profile
Re: An Axe piano with 5 octaves
« Reply #2 on: April 28, 2011, 04:19:30 pm »
Very cool, nice! I don't know much about music, but I want to make a sound player on my calc now XD

Offline zero44

  • LV4 Regular (Next: 200)
  • ****
  • Posts: 128
  • Rating: +21/-0
  • <!--//www.ustr.net/infrared/infrared1.shtml-->
    • View Profile
    • zero44
Re: An Axe piano with 5 octaves
« Reply #3 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.

Just a bug : the sound quality is ...  :banghead: (like this ^^)
I tried interrupts, but can you explain me how it works ? After many seconds I've no more sound...  :(
« Last Edit: April 28, 2011, 04:21:16 pm by zero44 »
____________

Offline ZippyDee

  • LV8 Addict (Next: 1000)
  • ********
  • Posts: 729
  • Rating: +83/-8
  • Why not zoidberg?
    • View Profile
Re: An Axe piano with 5 octaves
« Reply #4 on: April 28, 2011, 04:20:45 pm »
This is great! I was thinking about making a guitar program at some point. :P I'll have to find a way to defy reality and play 6 notes at once though xD


?!.
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.
« Last Edit: April 28, 2011, 04:21:29 pm by ZippyDee »
There's something about Tuesday...


Pushpins 'n' stuff...


Offline Xeda112358

  • they/them
  • Moderator
  • LV12 Extreme Poster (Next: 5000)
  • ************
  • Posts: 4704
  • Rating: +719/-6
  • Calc-u-lator, do doo doo do do do.
    • View Profile
Re: An Axe piano with 5 octaves
« Reply #5 on: April 28, 2011, 04:21:19 pm »
Maybe you have to detect both keys and then play one after the other real fast? Is there a way to really "mix" sounds?

Offline Yeong

  • Not a bridge
  • LV12 Extreme Poster (Next: 5000)
  • ************
  • Posts: 3739
  • Rating: +278/-12
  • Survivor of Apocalypse
    • View Profile
Re: An Axe piano with 5 octaves
« Reply #6 on: April 28, 2011, 04:21:53 pm »
well, as i said, it barely works.
This is what I did:

for(A, 0, 100
freq(314,400
pause 10
freq(284,400
pause 10
End

Doesnt work on most of it(it sounds wierd) but it works.

EDIT: oh btw, i tried when i was porting music
EDIT2: ninja'd, ninja'd. pity me.
« Last Edit: April 28, 2011, 04:23:15 pm by yeongJIN_COOL »
Sig wipe!

Offline zero44

  • LV4 Regular (Next: 200)
  • ****
  • Posts: 128
  • Rating: +21/-0
  • <!--//www.ustr.net/infrared/infrared1.shtml-->
    • View Profile
    • zero44
Re: An Axe piano with 5 octaves
« Reply #7 on: April 28, 2011, 04:22:40 pm »
Yeah, I thought too to a guitar...
I wanted to do guitar hero ^^

But have you an easy-to-do game idea with this ?
____________

Offline ZippyDee

  • LV8 Addict (Next: 1000)
  • ********
  • Posts: 729
  • Rating: +83/-8
  • Why not zoidberg?
    • View Profile
Re: An Axe piano with 5 octaves
« Reply #8 on: April 28, 2011, 04:23:03 pm »
Technically, when you're hearing multiple notes it's really just a combination of the frequencies. But that's just simple physics of adding and subtracting waves.
There's something about Tuesday...


Pushpins 'n' stuff...


Offline Yeong

  • Not a bridge
  • LV12 Extreme Poster (Next: 5000)
  • ************
  • Posts: 3739
  • Rating: +278/-12
  • Survivor of Apocalypse
    • View Profile
Re: An Axe piano with 5 octaves
« Reply #9 on: April 28, 2011, 04:24:24 pm »
supporting "real" multiple notes is what I really want in Axe.
Sig wipe!

Offline Xeda112358

  • they/them
  • Moderator
  • LV12 Extreme Poster (Next: 5000)
  • ************
  • Posts: 4704
  • Rating: +719/-6
  • Calc-u-lator, do doo doo do do do.
    • View Profile
Re: An Axe piano with 5 octaves
« Reply #10 on: April 28, 2011, 04:24:52 pm »
Cool! I made a guitar hero like game that used sound, but not in Axe :/

Offline zero44

  • LV4 Regular (Next: 200)
  • ****
  • Posts: 128
  • Rating: +21/-0
  • <!--//www.ustr.net/infrared/infrared1.shtml-->
    • View Profile
    • zero44
Re: An Axe piano with 5 octaves
« Reply #11 on: April 28, 2011, 04:25:35 pm »
good night .
XD.
____________

Offline Munchor

  • LV13 Extreme Addict (Next: 9001)
  • *************
  • Posts: 6199
  • Rating: +295/-121
  • Code Recycler
    • View Profile
Re: An Axe piano with 5 octaves
« Reply #12 on: April 28, 2011, 04:26:42 pm »
If you release it I could make a video of Wabbit with sound :D This looks cool though

Offline Stefan Bauwens

  • Creator of Myst 89 - סטיבן
  • LV10 31337 u53r (Next: 2000)
  • **********
  • Posts: 1799
  • Rating: +162/-24
  • 68k programmer
    • View Profile
    • Portfolio
Re: An Axe piano with 5 octaves
« Reply #13 on: April 28, 2011, 04:27:28 pm »
Sounds nice.
 I wish you luck with it!


Very proud Ticalc.org POTY winner (2011 68k) with Myst 89!
Very proud TI-Planet.org DBZ winner(2013)

Interview with me

Offline Xeda112358

  • they/them
  • Moderator
  • LV12 Extreme Poster (Next: 5000)
  • ************
  • Posts: 4704
  • Rating: +719/-6
  • Calc-u-lator, do doo doo do do do.
    • View Profile
Re: An Axe piano with 5 octaves
« Reply #14 on: April 28, 2011, 04:27:34 pm »
Does Wabbit record sound, too?