Author Topic: AudaciTI - 4 channel music player and editor (in the works)  (Read 19514 times)

0 Members and 1 Guest are viewing this topic.

Offline Hayleia

  • Programming Absol
  • Coder Of Tomorrow
  • LV12 Extreme Poster (Next: 5000)
  • ************
  • Posts: 3367
  • Rating: +393/-7
    • View Profile
Re: AudaciTI - 4 channel music player and editor (in the works)
« Reply #15 on: January 03, 2014, 02:55:07 am »
@ Hayleia, I think it's a cool idea. I'll give it a listen later. I also love the name. It works well in English too. :D
I like how it sounds so far, especially considering you have multiple channels. It would be nice to hear a longer sound sample, though, such as a SMB1 sample.
Thanks :D
And for the longer sample, you'll have to wait until the editor comes because I really don't feel like writing that by hand for now :P

I think the pitch is off too.
Ah, I only tried on Wabbitemu so I don't know -.-
I don't have the adapter in fact :P

I'd be interested in knowing how you are combining multiple channels on a single output pin. The method I'm using for BA, where I alternate between ANDing and ORing the two channels, sounds fine in Wabbitemu.
I only use OR so I guess this is why there are some problems. I store all 4 states (take two bits each) in one byte then OR all those and send them to the port.

         ld a,(states)
         ld c,a
         srl c
         srl c
         or c
         srl c
         srl c
         or c
         srl c
         srl c
         or c
         and %00000011      ;this is probably useless
         out (00h),a

You said it would be better with some ANDs ? Would that still be better considering that channels can change their positions (I mean, channel one can be on the right ear or the left one, or both, I just have to change two bits) or would it be better if they had given positions and never change ?
« Last Edit: January 03, 2014, 02:57:51 am by Hayleia »
I own: 83+ ; 84+SE ; 76.fr ; CX CAS ; Prizm ; 84+CSE
Sorry if I answer with something that seems unrelated, English is not my primary language and I might not have understood well. Sorry if I make English mistakes too.

click here to know where you got your last +1s

Offline TIfanx1999

  • ಠ_ಠ ( ͡° ͜ʖ ͡°)
  • CoT Emeritus
  • LV13 Extreme Addict (Next: 9001)
  • *
  • Posts: 6173
  • Rating: +191/-9
    • View Profile
Re: AudaciTI - 4 channel music player and editor (in the works)
« Reply #16 on: January 03, 2014, 03:44:42 am »
I meant that the sound was wrong in wabbit (most likely). I Haven't had a chance to listen to it on hardware yet.

Offline Keoni29

  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2466
  • Rating: +291/-16
    • View Profile
    • My electronics projects at 8times8
Re: AudaciTI - 4 channel music player and editor (in the works)
« Reply #17 on: January 03, 2014, 03:46:43 am »
Ah so that causes the weird modulation effect. You should use PWM instead.
If you like my work: why not give me an internet?








Offline Hayleia

  • Programming Absol
  • Coder Of Tomorrow
  • LV12 Extreme Poster (Next: 5000)
  • ************
  • Posts: 3367
  • Rating: +393/-7
    • View Profile
Re: AudaciTI - 4 channel music player and editor (in the works)
« Reply #18 on: January 03, 2014, 04:10:44 am »
I meant that the sound was wrong in wabbit (most likely). I Haven't had a chance to listen to it on hardware yet.
Same for me, I really should get an adapter -.-

Ah so that causes the weird modulation effect. You should use PWM instead.
But isn't PWM for "complicated" waves ? My player only supports squares, not sines.

Also, I edited the first post. You now have some quick documentation and an executable to test each note independantly.
« Last Edit: January 03, 2014, 04:11:20 am by Hayleia »
I own: 83+ ; 84+SE ; 76.fr ; CX CAS ; Prizm ; 84+CSE
Sorry if I answer with something that seems unrelated, English is not my primary language and I might not have understood well. Sorry if I make English mistakes too.

click here to know where you got your last +1s

Offline Sorunome

  • Fox Fox Fox Fox Fox Fox Fox!
  • Support Staff
  • LV13 Extreme Addict (Next: 9001)
  • *************
  • Posts: 7920
  • Rating: +374/-13
  • Derpy Hooves
    • View Profile
    • My website! (You might lose the game)
Re: AudaciTI - 4 channel music player and editor (in the works)
« Reply #19 on: January 04, 2014, 06:02:00 am »
Sounds interesting, now let's make it possible having bg-music for games :P

THE GAME
Also, check out my website
If OmnomIRC is screwed up, blame me!
Click here to give me an internet!

Offline Keoni29

  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2466
  • Rating: +291/-16
    • View Profile
    • My electronics projects at 8times8
Re: AudaciTI - 4 channel music player and editor (in the works)
« Reply #20 on: January 04, 2014, 07:00:49 am »
On it
If you like my work: why not give me an internet?








Offline TIfanx1999

  • ಠ_ಠ ( ͡° ͜ʖ ͡°)
  • CoT Emeritus
  • LV13 Extreme Addict (Next: 9001)
  • *
  • Posts: 6173
  • Rating: +191/-9
    • View Profile
Re: AudaciTI - 4 channel music player and editor (in the works)
« Reply #21 on: January 04, 2014, 07:50:26 am »
Ok, so I can't find my adapter at the moment. I'm sure it's hidden somewhere in the bowels of my room. I'll look again after I clean up today.
Quoting myself from another thread, cause it's relevant here too. :P

Offline Juju

  • Incredibly sexy mare
  • Coder Of Tomorrow
  • LV13 Extreme Addict (Next: 9001)
  • *************
  • Posts: 5730
  • Rating: +500/-19
  • Weird programmer
    • View Profile
    • juju2143's shed
Re: AudaciTI - 4 channel music player and editor (in the works)
« Reply #22 on: January 04, 2014, 11:26:04 pm »
So I tried your test program and I noticed note 0 is actually a G5 (784Hz)? Someone can confirm?

And just to clarify, are all 4 channels square waves? Or you're gonna add a noise channel?
« Last Edit: January 04, 2014, 11:48:20 pm by Juju »

Remember the day the walrus started to fly...

I finally cleared my sig after 4 years you're happy now?
THEGAME
This signature is ridiculously large you've been warned.

The cute mare that used to be in my avatar is Yuki Kagayaki, you can follow her on Facebook and Tumblr.

Offline fb39ca4

  • LV10 31337 u53r (Next: 2000)
  • **********
  • Posts: 1749
  • Rating: +60/-3
    • View Profile
Re: AudaciTI - 4 channel music player and editor (in the works)
« Reply #23 on: January 05, 2014, 12:53:30 am »
Ok, so I can't find my adapter at the moment. I'm sure it's hidden somewhere in the bowels of my room. I'll look again after I clean up today.
Quoting myself from another thread, cause it's relevant here too. :P
We have the opposite problem, then. I have an adapter, but I don't have a calculator. :P

Offline Hayleia

  • Programming Absol
  • Coder Of Tomorrow
  • LV12 Extreme Poster (Next: 5000)
  • ************
  • Posts: 3367
  • Rating: +393/-7
    • View Profile
Re: AudaciTI - 4 channel music player and editor (in the works)
« Reply #24 on: January 05, 2014, 02:41:24 am »
And just to clarify, are all 4 channels square waves? Or you're gonna add a noise channel?
They are all square waves, except the first channel which supports (in the next update) square waves+drums. For some reason though, the drums are very low-pitched.

So I tried your test program and I noticed note 0 is actually a G5 (784Hz)? Someone can confirm?
I think I'll add a calibration option -.-
« Last Edit: January 05, 2014, 02:44:36 am by Hayleia »
I own: 83+ ; 84+SE ; 76.fr ; CX CAS ; Prizm ; 84+CSE
Sorry if I answer with something that seems unrelated, English is not my primary language and I might not have understood well. Sorry if I make English mistakes too.

click here to know where you got your last +1s

Offline utz

  • LV4 Regular (Next: 200)
  • ****
  • Posts: 161
  • Rating: +28/-0
    • View Profile
    • official hp - music, demos, and more
Re: AudaciTI - 4 channel music player and editor (in the works)
« Reply #25 on: January 05, 2014, 08:45:21 am »
Very nice. Always good to see someone working on TI sound ;)
I might try to implement the sound routine in HoustonTracker, considering it seems to consume fairly little memory.

Offline Hayleia

  • Programming Absol
  • Coder Of Tomorrow
  • LV12 Extreme Poster (Next: 5000)
  • ************
  • Posts: 3367
  • Rating: +393/-7
    • View Profile
Re: AudaciTI - 4 channel music player and editor (in the works)
« Reply #26 on: January 05, 2014, 01:56:53 pm »
Very nice. Always good to see someone working on TI sound ;)
I might try to implement the sound routine in HoustonTracker, considering it seems to consume fairly little memory.
It consumes little memory indeed, but it doesn't support more than 46 notes and that was only with the tests I made. With a calibration option, I think that number will be even more reduced. But thanks :)
« Last Edit: January 05, 2014, 01:57:03 pm by Hayleia »
I own: 83+ ; 84+SE ; 76.fr ; CX CAS ; Prizm ; 84+CSE
Sorry if I answer with something that seems unrelated, English is not my primary language and I might not have understood well. Sorry if I make English mistakes too.

click here to know where you got your last +1s

Offline Hayleia

  • Programming Absol
  • Coder Of Tomorrow
  • LV12 Extreme Poster (Next: 5000)
  • ************
  • Posts: 3367
  • Rating: +393/-7
    • View Profile
Re: AudaciTI - 4 channel music player and editor (in the works)
« Reply #27 on: January 08, 2014, 02:54:53 am »
UPDATE
  • Now has very ugly menus (don't worry, I'll change that later, I just coded quickly so people can test, hence why it is also unoptimized)
  • Allows you to fast calibrate (and asks you to do so at first run): you calibrate the lowest A (la) and it guesses the other notes' waves
  • Now reads notes in appvars (so if you want to play notes, get an appvar from the ones in the zip, anyone will do since they all have the same content)
  • Appvar selection menu (hence why I made a lot of identical appvars)
  • Program is huge for some reason O.O


Please tell me if it still plays wrong notes :)

Not done yet:
  • Drums (well the player supports them but the calibration menu doesn't set the correct byte)
  • Clear sound with alternation between AND and OR


Warning:
If you had read the documentation on the first post, read it again (after I edit it) because some things changed (like the order of the notes).
I own: 83+ ; 84+SE ; 76.fr ; CX CAS ; Prizm ; 84+CSE
Sorry if I answer with something that seems unrelated, English is not my primary language and I might not have understood well. Sorry if I make English mistakes too.

click here to know where you got your last +1s

Offline Hayleia

  • Programming Absol
  • Coder Of Tomorrow
  • LV12 Extreme Poster (Next: 5000)
  • ************
  • Posts: 3367
  • Rating: +393/-7
    • View Profile
Re: AudaciTI - 4 channel music player and editor (in the works)
« Reply #28 on: January 08, 2014, 12:38:03 pm »
Sorry for double posting, but I had to post this as soon as possible.

UPDATE
  • Wonderful titlescreen


Here is the first screenshot ever for that program, since for once, there is something that you can see (and you can't hear).
I own: 83+ ; 84+SE ; 76.fr ; CX CAS ; Prizm ; 84+CSE
Sorry if I answer with something that seems unrelated, English is not my primary language and I might not have understood well. Sorry if I make English mistakes too.

click here to know where you got your last +1s

Offline TheMachine02

  • LV6 Super Member (Next: 500)
  • ******
  • Posts: 452
  • Rating: +105/-0
  • me = EF99+F41A
    • View Profile
Re: AudaciTI - 4 channel music player and editor (in the works)
« Reply #29 on: January 08, 2014, 12:41:57 pm »
who  :o  it's a super great menu !
AXE/asm programmer - unleash the power of z80 //C++//C

epic 3D things http://www.ntu.edu.sg/home/ehchua/programming/opengl/CG_BasicsTheory.html