0 Members and 1 Guest are viewing this topic.
For(A,0,songlength-1If {A*3+GDB1}Freq({{A*3+GDB1+1}+GDB0}*12+{{A*3+GDB1}+GDB0}r , {A*3+GDB1+2}EndEnd
Freq({{A*3+GDB1+1}*12+{A*3+GDB1}+GDB0}r , {A*3+GDB1+2}
Code: [Select]For(A,0,songlength-1If {A*3+GDB1}Freq({{A*3+GDB1+1}+GDB0}*12+{{A*3+GDB1}+GDB0}r , {A*3+GDB1+2}EndEndGdb0 is the wavelength table.Gdb1 is a list of notes. Data structure for a note: note(1-12 or constant),octave(0-7),time(any time. just use constants)"A" cycles trough all the notes in the songCode: [Select]Freq({{A*3+GDB1+1}*12+{A*3+GDB1}+GDB0}r , {A*3+GDB1+2}Plays the note for a given amount of time. The value (0-7)*12+(1-12) in the GDB adresses to the 16 bit wavelength in the wavelength table.Have fun coding
What I'm doing is convert the data to axe source format so they can compile it and listen it like mp3. I might add the function that copies the song data itself so dev can post it into their code
Make sure that you save 16 bit numbers in the wavelength table (addr)
Its just the music, not the voice. It plays sterio music. Is there a way to do sterio through axe?
Quote from: Keoni29 on October 20, 2011, 03:56:55 pmMake sure that you save 16 bit numbers in the wavelength table (addr)oops. I forgot that.But putting 4 in length won't make any sound, right? I thought it only makes sound only when length is longer than wavelength.Quote from: C0deH4cker on October 20, 2011, 03:57:45 pmIts just the music, not the voice. It plays sterio music. Is there a way to do sterio through axe?I don't think so unless someone comes up with an axiom.