summaryrefslogtreecommitdiff
path: root/apps/plugins/midi (follow)
Commit message (Collapse)AuthorAge
...
* MIDI: At long last, though quick and dirty, pitch bend depth! Or, I think it ↵Stepan Moskovchenko2007-10-15
| | | | | | | | | | works. Tested on two files. Let me know if anyone discovers any problems with this. This commit also includes Nils's synth loop optimization patch. I hope committing it does not cause problems. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@15112 a1c6a512-1295-4272-9138-f99709370657
* Change loop structure for sample synthesizing. Gives a nice speedup on both ↵Nils Wallménius2007-10-08
| | | | | | coldfire and arm targets. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@15036 a1c6a512-1295-4272-9138-f99709370657
* Get rid of unnecessary memory acesses in a loop, gives slight speedupNils Wallménius2007-10-05
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@14996 a1c6a512-1295-4272-9138-f99709370657
* A loop with one iteration is a little strange, also put it inside an #if ↵Nils Wallménius2007-10-05
| | | | | | block to not rely on gcc otimizing it away git-svn-id: svn://svn.rockbox.org/rockbox/trunk@14990 a1c6a512-1295-4272-9138-f99709370657
* Make synthVoice return int instead of short, gives a nice speed up also add ↵Nils Wallménius2007-10-05
| | | | | | a comment git-svn-id: svn://svn.rockbox.org/rockbox/trunk@14988 a1c6a512-1295-4272-9138-f99709370657
* Increase output buffer size to 32kB, results in less buffer missing in ↵Nils Wallménius2007-10-04
| | | | | | general and avoids buffer misses when lcd remote is plugged in while playing and ticking reduction is enabled. Increase max voices used on coldfire targets to 24 and reduce voices used on pp targets to 16. Put one more struct in iram for a slight speedup on coldfire. Fix comments in midiutil.h git-svn-id: svn://svn.rockbox.org/rockbox/trunk@14984 a1c6a512-1295-4272-9138-f99709370657
* Optimisation of the midi player, reducing the number of multiplications and ↵Nils Wallménius2007-10-04
| | | | | | memory accesses inside a very frequently executed loop, also does shifting of the whole sample when synthing is done which improves accurracy slightly, ~10% fewer buffer misses git-svn-id: svn://svn.rockbox.org/rockbox/trunk@14983 a1c6a512-1295-4272-9138-f99709370657
* Oops, forgot one fileNils Wallménius2007-10-04
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@14979 a1c6a512-1295-4272-9138-f99709370657
* Remove wrapper for pressNote and make the function externally visibleNils Wallménius2007-10-04
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@14978 a1c6a512-1295-4272-9138-f99709370657
* Put a struct in iram for a small speedup on coldfireNils Wallménius2007-10-03
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@14973 a1c6a512-1295-4272-9138-f99709370657
* Add drum names, make cowbell a default instrument (no way to remap them from ↵Stepan Moskovchenko2007-10-03
| | | | | | | | | UI yet). Add non-static wrapper for pressnote (is there a better way?). Beatbox only tested on H300; compile at own risk. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@14972 a1c6a512-1295-4272-9138-f99709370657
* Unroll a frequently executed loop a little for a small speedupNils Wallménius2007-09-30
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@14924 a1c6a512-1295-4272-9138-f99709370657
* static/inline/iram raid gives nice speedupNils Wallménius2007-09-30
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@14915 a1c6a512-1295-4272-9138-f99709370657
* Maybe 25 was too much with the new decay rates.Stepan Moskovchenko2007-09-30
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@14911 a1c6a512-1295-4272-9138-f99709370657
* MIDI: Kick up number of voices and decrease the decay rate, taking Stepan Moskovchenko2007-09-30
| | | | | | | | advantage of the recent speedups. Some instruments sound a lot more natural now. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@14910 a1c6a512-1295-4272-9138-f99709370657
* Fix bug that caused only half the output buffer to be used, gives a quite ↵Nils Wallménius2007-09-29
| | | | | | nice speedup on coldifre, clean up some commented out #ifdefs git-svn-id: svn://svn.rockbox.org/rockbox/trunk@14904 a1c6a512-1295-4272-9138-f99709370657
* MIDI: Fix off by one error with the guitar. Wow, I can't believe the ↵Stepan Moskovchenko2007-09-29
| | | | | | off-keyness is finally fixed. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@14897 a1c6a512-1295-4272-9138-f99709370657
* MIDI: Fix two year old loop bug that caused distortion on some instruments. ↵Stepan Moskovchenko2007-09-29
| | | | | | | | | I been looking for this one for at least 6 months. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@14896 a1c6a512-1295-4272-9138-f99709370657
* Do not duplicate const table, make getEvent function static inline, gives ↵Nils Wallménius2007-09-27
| | | | | | about a ~1.5% speedup, put tick function in iram, ~3.5% speedup git-svn-id: svn://svn.rockbox.org/rockbox/trunk@14873 a1c6a512-1295-4272-9138-f99709370657
* Simplify the sendEvent function, makes it _slightly_ faster and quite a bit ↵Nils Wallménius2007-09-27
| | | | | | smaller, build midiplay with -O2 for coldfire, gives about a 23% speedup git-svn-id: svn://svn.rockbox.org/rockbox/trunk@14872 a1c6a512-1295-4272-9138-f99709370657
* Some MIDI changes, and add a new musical plugin I'm working on... Not fully ↵Stepan Moskovchenko2007-09-27
| | | | | | | | | | done yet, so commented out of SUBDIRS. (If people are against having half-baked plugins in SVN, please let me know and I will remove it). git-svn-id: svn://svn.rockbox.org/rockbox/trunk@14863 a1c6a512-1295-4272-9138-f99709370657
* Use uint32_t type for the pitch tableNils Wallménius2007-09-24
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@14844 a1c6a512-1295-4272-9138-f99709370657
* Fix midi playback on 64 bit sims and const a tableNils Wallménius2007-09-24
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@14842 a1c6a512-1295-4272-9138-f99709370657
* Move all of midiplay into its subdir and add a Makefile for it, add header ↵Nils Wallménius2007-09-24
| | | | | | files as necessary. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@14841 a1c6a512-1295-4272-9138-f99709370657
* vel/MROBE500Karl Kurbjun2007-09-22
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@14813 a1c6a512-1295-4272-9138-f99709370657
* Clean up hard-coded pathsNils Wallménius2007-09-10
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@14662 a1c6a512-1295-4272-9138-f99709370657
* Missed a couple. Hopefully fix all warnings.Michael Sevakis2007-04-21
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@13234 a1c6a512-1295-4272-9138-f99709370657
* General housekeeping: Make plugin buffer functions take size_t * instead of ↵Michael Sevakis2007-04-21
| | | | | | int * to match the parameter type of the buffer functions called in the core. Get rid of unsafe int * <==> size_t * casting. Use ssize_t where int was used and size_t where unsigned int was used in the buffer calls to not alter signedness in the plugins. No API version change since it should only be an issue for 64-bit sim builds. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@13233 a1c6a512-1295-4272-9138-f99709370657
* Fix the undefined char symbols appearing in many output lines. This printf ↵Jens Arnold2007-04-21
| | | | | | does neither support nor need \n. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@13229 a1c6a512-1295-4272-9138-f99709370657
* Some quick and dirty MIDI player optimizations, now it works on the X5 and ↵Linus Nielsen Feltzing2007-04-11
| | | | | | M5 too git-svn-id: svn://svn.rockbox.org/rockbox/trunk@13108 a1c6a512-1295-4272-9138-f99709370657
* Let GCC check arguments of some more printf-style functions, also for ↵Jens Arnold2007-03-17
| | | | | | plugins and codecs. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@12815 a1c6a512-1295-4272-9138-f99709370657
* Get rid of the 'center' parameter for splashes. There were only 2 of almost ↵Jens Arnold2007-03-16
| | | | | | 500 splashes which were not centered. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@12807 a1c6a512-1295-4272-9138-f99709370657
* Fix a nasty little bug that would under the right conditions cause Stepan Moskovchenko2007-01-10
| | | | | | | memory corruption and other weirdness. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@11978 a1c6a512-1295-4272-9138-f99709370657
* More ADSR related voodoo. Hopefully will get to patch prescaler soon.Stepan Moskovchenko2006-10-03
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@11118 a1c6a512-1295-4272-9138-f99709370657
* More adsr related nonsense, argh! Fix adsr related problem on some notes ↵Stepan Moskovchenko2006-10-03
| | | | | | | | | being stopped instead of looped. Ramping code still not quite right, but dont want to lose this. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@11117 a1c6a512-1295-4272-9138-f99709370657
* Get rid of old junk and fix warning.Stepan Moskovchenko2006-10-02
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@11106 a1c6a512-1295-4272-9138-f99709370657
* I have an iRiver again, yay! Make notes ramp down in a better way. FixStepan Moskovchenko2006-10-02
| | | | | | | note-off pop/click due to waveform index out of bounds access. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@11105 a1c6a512-1295-4272-9138-f99709370657
* == -> =. this should fix a build warningAntoine Cellerier2006-08-10
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@10518 a1c6a512-1295-4272-9138-f99709370657
* Fix typoAntoine Cellerier2006-07-20
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@10269 a1c6a512-1295-4272-9138-f99709370657
* Fixed freezing after loader error messages.Stepan Moskovchenko2006-05-08
| | | | | | | | Added RMID (Windows MIDI) header support. Added .RMI extension to viewers. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@9888 a1c6a512-1295-4272-9138-f99709370657
* Added ability to adjust the volume during playback.Stepan Moskovchenko2006-05-07
| | | | | | | | | | Gracefully fail if no soundset installed. Yet more messing with the ramping code. I swear, that will be the end of me. Basic skipping support- skip foreward a bit if Right is pressed. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@9883 a1c6a512-1295-4272-9138-f99709370657
* Optimize synth code by pre-computing the volume scaling for each note.Stepan Moskovchenko2006-05-03
| | | | | | | | | Scaling is now calculated once per MIDI event at the most, instead of once per sample. Increase voice ramping speed, increase number of active voices a little. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@9870 a1c6a512-1295-4272-9138-f99709370657
* Fix file descriptor leak that would cause a hard lockup every 7 filesStepan Moskovchenko2006-05-03
| | | | | | | played. A few other cosmetic changes. please, please no red build =) git-svn-id: svn://svn.rockbox.org/rockbox/trunk@9865 a1c6a512-1295-4272-9138-f99709370657
* ----------------------------------------------------------------------Stepan Moskovchenko2006-05-01
| | | | | | | | | | | | Added Karl Kurbjun's sound output patch, cleaned up some output. Main file is now midiplay.c, midi2wav is still in there for anyone who wants it. Set sampling rate to 22k, and increased note decay time. Reduced number of concurrent active voices and made new notes replace used voices if none are available. This makes lag less apparent. I really hope this wont go red. (turns around and runs) git-svn-id: svn://svn.rockbox.org/rockbox/trunk@9858 a1c6a512-1295-4272-9138-f99709370657
* Replace SWAB16 and SWAB32 with a comprehensive set of byte-swap macros - ↵Dave Chapman2005-10-06
| | | | | | letoh16, letoh32, htole16, htole32, betoh16, betoh32, htobe16 and htobe32 git-svn-id: svn://svn.rockbox.org/rockbox/trunk@7584 a1c6a512-1295-4272-9138-f99709370657
* Uncomment one line, which makes bad 80s music sound a bit better.Stepan Moskovchenko2005-08-07
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@7291 a1c6a512-1295-4272-9138-f99709370657
* Fix error/warning, change pitch bend to 9 bitsStepan Moskovchenko2005-08-07
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@7288 a1c6a512-1295-4272-9138-f99709370657
* The synthVoice() function declaration was wrong (caused a warning). And ↵Tomas Salfischberger2005-06-14
| | | | | | | | | | | because of that GCC didn't notice the error on line 390: synthVoice(currentVoice). In revision 1.4 Steven made currentVoice global, so the function declaration should be: synthVoice(void), wich fixes a warning. And the call should be just synthVoice() wich fixes a hidden error. Hope I saw this right... please correct me if this isn't the way you ment is Seven. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@6708 a1c6a512-1295-4272-9138-f99709370657
* Fixed warnings, adapted to Rockbox coding style, optimized to 78% realtime.Stepan Moskovchenko2005-04-20
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@6329 a1c6a512-1295-4272-9138-f99709370657
* Some shifting optimizations. Working code. 50% realtime.Stepan Moskovchenko2005-04-19
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@6323 a1c6a512-1295-4272-9138-f99709370657