summaryrefslogtreecommitdiff
path: root/apps/plugins/midi/sequencer.c
diff options
context:
space:
mode:
authorNils Wallménius <nils@rockbox.org>2007-09-24 15:57:32 +0000
committerNils Wallménius <nils@rockbox.org>2007-09-24 15:57:32 +0000
commit0e49605aaae01722a618dfdc64a328cc0e92bc04 (patch)
treee3241b18fae86271c5f3f9e18f819dc9c2ea29f3 /apps/plugins/midi/sequencer.c
parente24975a35fbf564966b73dbaef766e215f7427d4 (diff)
downloadrockbox-0e49605aaae01722a618dfdc64a328cc0e92bc04.tar.gz
rockbox-0e49605aaae01722a618dfdc64a328cc0e92bc04.zip
Move all of midiplay into its subdir and add a Makefile for it, add header files as necessary.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@14841 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/plugins/midi/sequencer.c')
-rw-r--r--apps/plugins/midi/sequencer.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/apps/plugins/midi/sequencer.c b/apps/plugins/midi/sequencer.c
index 68c29f35ad..473b7e4e2c 100644
--- a/apps/plugins/midi/sequencer.c
+++ b/apps/plugins/midi/sequencer.c
@@ -5,6 +5,7 @@
5 * Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < < 5 * Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < <
6 * Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \ 6 * Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \
7 * \/ \/ \/ \/ \/ 7 * \/ \/ \/ \/ \/
8 * $Id$
8 * 9 *
9 * Copyright (C) 2005 Stepan Moskovchenko 10 * Copyright (C) 2005 Stepan Moskovchenko
10 * 11 *
@@ -15,6 +16,9 @@
15 * KIND, either express or implied. 16 * KIND, either express or implied.
16 * 17 *
17 ****************************************************************************/ 18 ****************************************************************************/
19#include "plugin.h"
20#include "midiutil.h"
21#include "guspat.h"
18 22
19void setVolScale(int a); 23void setVolScale(int a);
20 24
@@ -22,7 +26,6 @@ extern struct plugin_api * rb;
22 26
23long tempo=375000; 27long tempo=375000;
24 28
25
26inline void setVol(int ch, int vol) 29inline void setVol(int ch, int vol)
27{ 30{
28 int a=0; 31 int a=0;
@@ -119,7 +122,6 @@ long pitchTbl[] ICONST_ATTR={
119 73297,73330,73363,73396,73429,73462,73495,73528 122 73297,73330,73363,73396,73429,73462,73495,73528
120}; 123};
121 124
122
123void findDelta(struct SynthObject * so, int ch, int note) 125void findDelta(struct SynthObject * so, int ch, int note)
124{ 126{
125 127
@@ -147,7 +149,6 @@ inline void setPW(int ch, int msb, int lsb)
147 } 149 }
148} 150}
149 151
150
151/* Sets the volume scaling by channel volume and note volume */ 152/* Sets the volume scaling by channel volume and note volume */
152/* This way we can do the multiplication/indexing once per */ 153/* This way we can do the multiplication/indexing once per */
153/* MIDI event at the most, instead of once per sample. */ 154/* MIDI event at the most, instead of once per sample. */
@@ -375,3 +376,4 @@ int tick(void)
375 else 376 else
376 return 0; 377 return 0;
377} 378}
379