cnCalc计算器论坛

 找回密码
 注册
搜索
查看: 4393|回复: 5

[83/84] Music with the Orion TI-84 Plus !

[复制链接]
发表于 2013-9-9 20:36:38 | 显示全部楼层 |阅读模式
Hi everyone,

You may have read our recent news about the hand-on review of the Orion TI-84 Plus, and… maybe you thought if you're a programmer especially, about the not-so-normal possible uses of the Orion module, for example user-controlled sound output ? ;-)

Of course, for now, one can think about making it read numbers and words, which is not very difficult and it was shown in the video on the news linked above.

But .... already on the traditional TI-83+ and 84+, some programmers have released solutions from relatively simple to a bit more complex but realistic in order to get music from the calculator via the 2.5mm Jack I/O port.

Anyway, there has always been some joy for the programmers to tinker with that, maybe especially for the ones more hackers than others, for offering a new dimension to their creations, and in general for those who want to impress their friends with music coming out of their calculator ;-)


Here is a music whose name I won't probably need to state, which I was able to "compose" when thinking about the fact that the calculator has the ability to "read graphs" :

https://www.youtube.com/watch?v=42dquq3eOB8

(sorry for the block :( )

You'll have to excuse me for a few false notes, I certainly heard them too, but ... I can't actually do better, or at least with this method. Indeed, the height of the sound depends directly on the y-coordinate of the pixel, but the change is not by semitone as in our traditional tempered scales ; in fact, the increase in pitch of the sounds are done by a few  commas and therefore we don't always get on a well-defined note ... I put the closest ones, which may bother some who have a good ear like me, but it won't prevent anyone from recognizing the Mario theme ;-)

For technical details on the calculator side :
- The calculator reads the current pixel with a sound corresponding to its height (y-coordinate). I had to find a way to jump from one height to another (not going through the pixels in between)
- To do that, we can draw a graph in Plot mode with a list of points :-) In Trace mode with a plot drawn, moving with the left / right arrow jumps from point to another and thus switches from a height to another directly !
- So : just define a list (here, L2) of y-coordinate representing the notes (pitch), and L1 the simple list of X values ​​ (a trivial seq(A,A,1,dim(L2->L1 will suffice)

Mario's notes (y-coordinates) are :
  1. 39,39,39,33,39,44,25,33,25,21,29,32,29,27,26,39,44,47,41,44,40,34,37,32,14,44,42,41,38,40,27,29,34,29,34,37,14,44,43,41,38,39,52,52,52,14,44,42,41,38,40,27,29,34,29,34,37,38,37,34,34,34,34,34,37,39,34,28,25,39,39,39,33,39,44
复制代码
Some technical obstacles :
- You are limited to 95 points, so 95 notes, for each Plot. We can thus have 285 notes in total by combining 3 Plots with 3 ordered lists (to go from one to the other, use the up / down arrows)
- It is not with this method that we can have rhythm (on the video, you see that I'm doing it manually). Perhaps with the program Xeda made (IIRC), it can perform a sequence of keystrokes to automate the process ? Or maybe with another way I have not yet found via basic programs to display a point to be read ... (granted, I have not yet tried much).
- It is not like this that we get several notes at once. But hey, just buy several Orion ....  ;D



See you soon for some more … peculiar experiments ? ;)


Source : http://tiplanet.org/forum/viewto ... t=12949&lang=en
发表于 2013-9-9 21:06:33 | 显示全部楼层
Sounds  a bit slow, but wonderful~
I've already ported it to Youku.com.
http://v.youku.com/v_show/id_XNjA3MTE0MzQw.html

发表于 2013-9-9 22:34:19 | 显示全部楼层
Thank you very much!

Adriweb -> can you edit the 1st post and add the youku bbcode?
Thanks.
发表于 2013-9-20 04:58:33 | 显示全部楼层
In an above post, Adriweb did invent an easy way to play music on TI-84 Plus, using the Orion voice module.


Indeed, system 2.55/ORk plays a sound based on the vertical position whenever the cursor on the graph screen is moved.
A first approach was therefore to use the function 'Trace' mode to obtain a sequence of sounds. In this mode, the cursor follows the plot of the function and shows you the coordinates of a point for each column of the screen. As Adriweb noted, in this context we were limited by the hardware: the width of the screen (96x64 pixels). We couldn't play without interruption a music of more than 96 notes in theory (95 in practice, the first note tending to ne skipped upon 'Trace' mode activation).


Beyond 95 notes, you need a several seconds pause to switch the plot or chande the window before going on.  :(


I am pleased to announce today that I have literally exploded this hardware limitation!
Instead of the function 'Trace' mode, let's use the statistics 'Trace' mode which works completely differently.
Instead of giving the coordinates of points for each column of the screen, it gives them to each value of the X-axis list. With more than 95 elements, points are going to appear in the same screen column. But this time they can all be selected and therefore they are all playable!


We are now limited by the software, as the maximum number of items for lists on TI-83+/84 is 999 - but it's enough to play musics more than 10 times longer than last time and to organize concerts! ;)

Here is for exemple a 125 notes music, proving that the 95 notes limit was crossed successfuly! ;)
http://www.youtube.com/watch?v=lRq4f9NrMTg (sorry... Youtube)


Tinkerers philosophy:
The real question is not "what does it do" but "what can I make it do!" ;)


Source:
http://tiplanet.org/forum/viewtopic.php?p=148335&lang=en
发表于 2013-9-20 19:59:09 | 显示全部楼层
critor 发表于 2013-9-20 04:58
In an above post, Adriweb did invent an easy way to play music on TI-84 Plus, using the Orion voice  ...

http://v.youku.com/v_show/id_XNjExMzk1ODgw.html
Another port.


匿名人士  发表于 2013-9-27 19:28:33
Brilliant.
您需要登录后才可以回帖 登录 | 注册

本版积分规则

Archiver|手机版|cnCalc计算器论坛

GMT+8, 2024-12-23 03:41 , Processed in 0.127074 second(s), 18 queries .

Powered by Discuz! X3.4

© 2001-2023 Discuz! Team.

快速回复 返回顶部 返回列表