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

0 Members and 4 Guests 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 #45 on: January 15, 2014, 09:24:32 am »
Sorry for not posting with an update, but I just wanted you to know that I got an adapter :D
And indeed, this has good volume O.O

However, the calculator is a lot faster than Wabbitemu and the calibration screen seems not to include any A o.O
Seems that I have to change that.
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 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: AudaciTI - 4 channel music player and editor (in the works)
« Reply #46 on: January 15, 2014, 02:45:23 pm »
And thanks, the first one (the one which finishes with 63) works :D
The second one doesn't however, but I didn't find any precision problem for now in the test music I have with that :)
Thanks :D
Remember that the second one is fixed-point, not an integer. I actually tested that code this time and it worked :) For example, 77→18606 = 72.6796875 instead of 73. The actual value is about 72.67832208.

And yup, the calculators are loud on actual hardware :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 #47 on: January 15, 2014, 02:58:03 pm »
And thanks, the first one (the one which finishes with 63) works :D
The second one doesn't however, but I didn't find any precision problem for now in the test music I have with that :)
Thanks :D
Remember that the second one is fixed-point, not an integer. I actually tested that code this time and it worked :) For example, 77→18606 = 72.6796875 instead of 73. The actual value is about 72.67832208.
But I never worked with fixed point variables before o.o
How do I convert the hl it returns into a "regular" integer ?

And yup, the calculators are loud on actual hardware :P
In fact I was surprised because when I tried TruSound (with the someone else's adapter), the volume was really low.
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 Matrefeytontias

  • Axe roxxor (kinda)
  • LV10 31337 u53r (Next: 2000)
  • **********
  • Posts: 1982
  • Rating: +310/-12
  • Axe roxxor
    • View Profile
    • RMV Pixel Engineers
Re: AudaciTI - 4 channel music player and editor (in the works)
« Reply #48 on: January 15, 2014, 03:04:07 pm »
You convert a 8.8 number to an integer by dividing it by 256. The way it works is a 8.8 number uses 8 bits as the integer part, and 8 bits as a decimal part, where the decimal unit is 1/256.

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: AudaciTI - 4 channel music player and editor (in the works)
« Reply #49 on: January 15, 2014, 03:04:07 pm »
You just divide by 256. In this case, if you do that, it would round down, though.

In Axe, if you do 3.5→A, it actually stores 896 to A (896/256=3.5). Then if you do A**A, you get 3136. 3136/256=12.25.

If you are doing 12root(X) times or divided by anything, then using Axe's fixed point will give you better accuracy in the end result. If you are only doing addition and subtraction, you won't gain accuracy.

Offline Matrefeytontias

  • Axe roxxor (kinda)
  • LV10 31337 u53r (Next: 2000)
  • **********
  • Posts: 1982
  • Rating: +310/-12
  • Axe roxxor
    • View Profile
    • RMV Pixel Engineers
Re: AudaciTI - 4 channel music player and editor (in the works)
« Reply #50 on: January 15, 2014, 03:05:22 pm »
:ninja:

Also yeah, prefer 8.8 arithmetic in this case.

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 #51 on: January 15, 2014, 03:06:28 pm »
Ok, thanks :)
But that also means that I have to multiply my first integer by 256, right ?
I'll try that when my exams are over -.-
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 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: AudaciTI - 4 channel music player and editor (in the works)
« Reply #52 on: January 15, 2014, 09:37:34 pm »
But that also means that I have to multiply my first integer by 256, right ?
It depends on what you mean. The routine I gave takes an 8-bit integer and returns an 8.8 fixed point number. To multiply that by something else, you would need to multiply the other number by 256 (which is 3 bytes, 11 cycles in Axe).
So what I mean is, if you want to multiply A/21/12*B, where A and B are integers, you would do:
Code: [Select]
AAsm(<code>)**(B*256)
In asm, this could be optimised a bit, maybe even in Axe (not sure). However, this part of your code probably doesn't need to be really fast.

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 #53 on: January 16, 2014, 01:56:44 am »
Ah ok, I thought it took a 8.8 fixed point number as input. Ok, I get it, thanks :)
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 #54 on: February 01, 2014, 11:31:19 am »
UPDATE

Beginnings of an editor
  • You can edit any appvar with the right header
  • You can adds chords
  • You can remove chords
  • You can change the "height" of a note in a chord (edit keep [2nd] pressed if you think the cursor is moving too fast)
  • You can't create a new appvar yet (you still can create one yourself using a simple program after reading the documentation spoiler in the first post and you also have four "TestATI#" appvars to play with)


To do next: make the calibration calibrate low enough for the player to play right notes -.-
For now, only Wabbitemu plays right notes, calculators are too fast and play higher notes.
Also, add drums once and for all, in all channels instead of having them hidden in the first one.
« Last Edit: February 01, 2014, 11:46:26 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 #55 on: February 02, 2014, 05:42:08 am »
Hotdammit Hayleia, that piano roll editor looks pretty awesome, congrats.
Just one question, how do I delete an individual note?

Offline Eiyeron

  • Urist McEiyolobster
  • LV10 31337 u53r (Next: 2000)
  • **********
  • Posts: 1430
  • Rating: +130/-10
  • (-_(//));
    • View Profile
    • Rétro-Actif : Rétro/Prog/Blog
Re: AudaciTI - 4 channel music player and editor (in the works)
« Reply #56 on: February 02, 2014, 05:55:34 am »
QUestion can you edit the cannel seetings? Like Attack/Sustain/Release/Decay?

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 #57 on: February 02, 2014, 06:02:16 am »
Wow, that editor is looking awesome indeed O.O

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 #58 on: February 02, 2014, 06:21:26 am »
Looks cool. I will definitely check it out once I fix my pc.
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 #59 on: February 02, 2014, 06:37:54 am »
Hotdammit Hayleia, that piano roll editor looks pretty awesome, congrats.
Wow, that editor is looking awesome indeed O.O
Looks cool. I will definitely check it out once I fix my pc.
Thanks :D

Just one question, how do I delete an individual note?
You can't. My player supports 4 channels, which obviously means "no more" but also "no less" :-\
Maybe that will change in the future but for now it is like that.
However, if you want to play less notes, you can simply put two notes on the same level and your chord now only has 3 notes in it ;)

QUestion can you edit the cannel seetings? Like Attack/Sustain/Release/Decay?
I didn't understand any of the 4 interesting words o.o°
To me, Sustain means "longer note", Release means "shorter note", and the other ones mean nothing :P
Longer and shorter notes are on my to do list, if that answers part of your question.
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