Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - Keoni29

Pages: 1 ... 107 108 [109] 110 111 ... 168
1621
The Axe Parser Project / Re: Features Wishlist
« on: January 20, 2013, 10:57:54 am »
How about ++EXP? How many times has this been requested?

1622
Other / Re: TI84+ soundchip - arduino SID emulator
« on: January 20, 2013, 10:39:18 am »
Cool stuff. That's exactely what I had in mind. Can I have the source so I can modify it to work with my soundchip and perhaps have multiple channels?

Edit:
I want to add "hardware" pitch bending with different modes such as LFO, portamento and sweep. The sound processor will also have a lookuptable with musical notes' pitch values. If you write to one of the three dedicated "musical note" registers it will relay it to the freq-hi and lo registers and it will turn on the gate of the channel. This saves a lot of memory and time on the calculator side!

Example:
Calculator sends a NOTE ON normally:
Code: [Select]
00 ff - write ff (0-255) to register 00 (Freq Lo)
01 ff - write ff (0-255) to register 01 (Freq Hi)
04 17 - write TRIANGLE|GATE_ON to register 04 (Conrol reg)
That's 6 bytes!

Calculator sends a NOTE ON with this new feature:
Code: [Select]
1D nn - write nn(0-255) to register 29That's only two bytes!

1623
Other / Re: TI84+ soundchip - arduino SID emulator
« on: January 20, 2013, 09:32:15 am »
I want to make a piano roll style music editor or a tracker to make music with. I also need a file format that works. My old TRAXE tracker format does not cut it. Suggestions?
http://ourl.ca/18194

1624
Other / Re: Hooking up PIC µCs with accelerometer to TI-83+
« on: January 20, 2013, 09:30:10 am »
Yay more peripherals. We should have a hardware and schematics section on omnimaga!

1625
Computer Projects and Ideas / Re: XKCD reader for Windows
« on: January 19, 2013, 07:03:46 am »
I might be wrong, but unix widgets work with Windows as long as it follows the specifications of an X window system.

1626
Axe / Music files in axe -Best way to implement it?
« on: January 19, 2013, 04:50:44 am »
As you might know I am working on a project that might enhance the way music is implemented in calculator games. I'm talking about an external soundchip. I can write registers via the linkport at 420 Bytes per second. Now I want to make a general purpose interrupt driven music player which can be inserted in any AXE source code with ease. I also need to figure out what the best file format looks like. I came up with this concept:
00aaaaaa dd - Write dd to register aa

01tttttt -- - Wait tt before executing the next instruction

10xxxxxx xx - Not implemented yet. (set speed?)

11xxxxxx - End of song marker.


I get transfer rates of 420bytes per second and a register write takes two bytes, so that's 210 register writes per second. This is without additional code for fetching commands. I want to use interrupt speed 4 or 6 (preferably 6 since it's similar to the TI83+ interrupt frequency)

What do you think? Any suggestions?

Edit: Now here is a more complex format for comparisson:
Code: [Select]
[Header] Name, Size, speed, etc.
[Instrument dumps] Timed register writes for each instrument
[Sequence] Order of patterns in the song
[Patterns] Pattern of notes, register writes, delays etc.



1627
News / Re: Lots of new TI-84 Plus C related images!
« on: January 19, 2013, 04:32:41 am »
Is this emulator available for the public yet?

1628
News / Re: TI-84 Plus C Color official press release
« on: January 18, 2013, 04:12:15 pm »
Just like the normal SE. I think those are interchangeable as well.

1629
News / Re: TI-84 Plus C Color official press release
« on: January 18, 2013, 03:16:30 pm »
I will only get it if it has better overal performance than its predecessors.

1630
News / Re: TI-84 Plus C Color official press release
« on: January 18, 2013, 03:09:49 pm »
I don't think this thing has 153kB video ram (320*240*2 for 16 bit color). The images show that only a section of the screen can be used for full color graphics. I'm not sure if this is just a mode.

1631
Other / Re: TI84+ soundchip - arduino SID emulator
« on: January 18, 2013, 01:43:42 pm »
I already use timer interrupts for the sid emulation library. Can I use these in parallel?

Edit: I watched the signal on the scope. The bits take 270 microseconds each to send with the current code on my calculator. When I decrease the delays in the calculator code the arduino cannot keep up with it anymore and I just hear scrambled sounds every now and then.

To send 3kB at this rate it takes about 7 seconds, so that is around 420B/sec.
I think this is as good as it gets. I will just optimize the send protocol for playing music and I write another one optimized for soundeffects. I do not want any visible slowdowns during games, so that's my goal.

1632
Other / Re: TI84+ soundchip - arduino SID emulator
« on: January 18, 2013, 12:47:38 pm »
I tried to optimize the arduino code, but it's not getting an awful lot faster since my first optimization.
Code: [Select]
#include <SID.h>

// MACROs
#define PIN2H (PIND & 0B00000100)
#define PIN3L !(PIND & 0B00001000)
#define CLR(x,y) (x&=(~(1<<y)))
#define SET(x,y) (x|=(1<<y))

SID mySid;

void setup()
{
  pinMode(2,INPUT);
  pinMode(3,INPUT);
  mySid.begin();
}

byte n=0;
int timer=0;
byte count=0;
byte get=B00000000;
int addrval[2] = {0};

void loop()
{
  do{
    do
    {
      if (PIN3L)          // If the clock pin is LOW
      {
        if (PIN2H)        // And the data pin is HIGH
        {
          CLR(get,count); // CLEAR BIT
        }
        else              // otherwise
        {
          SET(get,count); // SET BIT
        }
        count++;          // Increase the bit counter
       
        while(PIN3L)      // Wait until the clock pin goes HIGH again
        {
        timer++;          // Increase the timeout timer
          if (timer==500){// Timeout at 500 loops
            n=count=0;    // Reset counters
            break;        // Break free
          }
        }
        timer=0;          // Reset the timeout timer
      }
    }while(count!=8);     // Loop again when the bit counter has not reached 8 bits yet
    addrval[n]=get;       // Otherwise store the received byte in an array in cell n
    n++;                  // Increase the byte counter
    count=0;              // Reset the bit counter
  }while(n!=2);           // Loop again when the byte counter has not reached two bytes yet
                          // Otherwise write the value to the register.
  mySid.set_register(addrval[0], addrval[1]);
  n=0;                    // Reset the byte counter
}
Can someone tell me what to optimize?

1633
Other / Re: TI84+ soundchip - arduino SID emulator
« on: January 18, 2013, 10:42:08 am »
Wow that doesn't mean that I will not be working on this an awful lot :P I'm just taking my time to do lots of optimization :D When I say I'm not gonna rush a full release it definitely doesn't mean I will put it aside :P

Edit: Like for smilies instead of dots 8)

1634
Other / Re: TI84+ soundchip - arduino SID emulator
« on: January 18, 2013, 10:37:52 am »
I'm not going to rush this.

1635
Other / Re: TI84+ soundchip - arduino SID emulator
« on: January 18, 2013, 10:27:22 am »
Imho, you should also speed up the "pcb + enclosure" business to 'sell' it faster.
More: http://playground.arduino.cc/Main/SID-emulator

What do you mean by that?

Pages: 1 ... 107 108 [109] 110 111 ... 168