Author Topic: MusGraph  (Read 3391 times)

0 Members and 1 Guest are viewing this topic.

Offline MGOS

  • LV6 Super Member (Next: 500)
  • ******
  • Posts: 336
  • Rating: +95/-0
    • View Profile
MusGraph
« on: January 14, 2012, 06:12:02 am »
This is my first implementation of an idea a friend of mine had after I showed him my axe TIstudio.

It graphs any function with any window settings (like the OS), but it plays a note to each corresponding Y-value it draws.

How to use it:

  • Put "MUSGRAPH.8xp" (TI-Basic) and "MUSGPLAY.8xp" (ASM) on your calculator and plug 2.5 mm headphones or amplifier in.
  • Press [  Y=  ] and enter any function want to hear/graph
  • Press [WINDOW] and enter the maximums and minimums
  • Press [ PRGM ] , chose "MUSGRAPH" and press [ENTER] two times
  • A text which says "Generate... " and a progress bar will appear, then it draws and plays the graph

Issues known:
Functions with nonreal Y-value in the given range (e. g. sqrt(X)) will throw an error.
Also, only the standard Y= functions will work, no parametric or polar.

Attached files:

TI-Basic executable: MUSGRAPH.8xp (main program, execute this)
Asm sound routine: MUSGPLAY.8xp (needs to be on the calculator, but do not execute!)
Axe source code: AMUSG.8xp (not needed, only for people who want to know how it works, compilable with AXE 1.0 or higher)
« Last Edit: January 14, 2012, 08:02:34 am by MGOS »

Offline Blue Raven

  • LV3 Member (Next: 100)
  • ***
  • Posts: 73
  • Rating: +3/-0
  • Trust me. I'm the Doctor.
    • View Profile
Re: MusGraph
« Reply #1 on: January 14, 2012, 07:25:20 am »
Well... nice concept but it may not produce very exiting melodies. I'll try it anyway. Does it work with parametric functions ?
Apprenez l'Axe ! | DropBox


Offline MGOS

  • LV6 Super Member (Next: 500)
  • ******
  • Posts: 336
  • Rating: +95/-0
    • View Profile
Re: MusGraph
« Reply #2 on: January 14, 2012, 08:00:28 am »
Does it work with parametric functions ?
Not yet.

It is just a fun project, nothing serious so don't expect anything outstanding.

Offline Blue Raven

  • LV3 Member (Next: 100)
  • ***
  • Posts: 73
  • Rating: +3/-0
  • Trust me. I'm the Doctor.
    • View Profile
Re: MusGraph
« Reply #3 on: January 14, 2012, 10:16:38 am »
Does it work with parametric functions ?
Not yet.

It is just a fun project, nothing serious so don't expect anything outstanding.
I tested it and it's quite fun. You can get some nice results with decreasing cosinus or sinus. ^^
Apprenez l'Axe ! | DropBox


Offline MGOS

  • LV6 Super Member (Next: 500)
  • ******
  • Posts: 336
  • Rating: +95/-0
    • View Profile
Re: MusGraph
« Reply #4 on: January 14, 2012, 10:32:34 am »
X*sin(X+cos(X)) and 10*abs(sin(X+.5*cos(X)))-abs(X) are quite interesting too (Window: Zstandard)
« Last Edit: January 14, 2012, 10:40:40 am by MGOS »

Offline Deep Toaster

  • So much to do, so much time, so little motivation
  • Administrator
  • LV13 Extreme Addict (Next: 9001)
  • *************
  • Posts: 8217
  • Rating: +758/-15
    • View Profile
    • ClrHome
Re: MusGraph
« Reply #5 on: January 14, 2012, 10:46:05 am »
Yay, now we can have a quadratic solver that plays music while finding your roots! :D

Nice job. Now let's go and find the most interesting graph to play.




Offline Hayleia

  • Programming Absol
  • Coder Of Tomorrow
  • LV12 Extreme Poster (Next: 5000)
  • ************
  • Posts: 3367
  • Rating: +393/-7
    • View Profile
Re: MusGraph
« Reply #6 on: January 18, 2012, 12:21:15 pm »
Lol, I am going to try this on Wabbit, sounds fun :P
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