- Joined
- May 27, 2008
- Messages
- 3,628 (0.62/day)
System Name | Ultra 64 |
---|---|
Processor | NEC VR4300 (MIPS R4300i) |
Motherboard | proprietary design |
Cooling | Fanless aircooled |
Memory | 4.5MB 250 MHz RDRAM |
Video Card(s) | 62.5 MHz Reality Coprocessor |
Storage | 32 - 512 Mbit ROM Cartridge |
Display(s) | 720x576 |
Case | Clear Blue Funtastic |
Audio Device(s) | 16-bit CD quality |
Power Supply | proprietary design |
Mouse | N64 mouse for use with N64DD |
Keyboard | N64 keyboard for use with N64DD |
i have a small function that contains a loops which plays a series of midi notes. I have different arrays contaiing the different midi notes for different the tunes. Now what i want to do is find a way have the user input which array to use and then just use the one function and one loop and change the array that used in the loop rather then just having a switch with ceach case containg the function but with different arrays for each tune. Hope this makes sense so far. Ive tried using strings where the user inputs the name of the array then putting that in the loop but doing that i get litteraly hundreds of errors im a bit stumped. There must be a way to do this otherwise my code is stupidly long using the same thing minus one variable being different. hope thatmakes sense