blob: 4cc6a545f00dee13ceb8a68f204f3ab8edf2ede4 [file] [log] [blame]
Nils Wallménius0e496052007-09-24 15:57:32 +00001/***************************************************************************
2 * __________ __ ___.
3 * Open \______ \ ____ ____ | | _\_ |__ _______ ___
4 * Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ /
5 * Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < <
6 * Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \
7 * \/ \/ \/ \/ \/
8 * $Id$
9 *
10 * Copyright (C) 2005 Stepan Moskovchenko
11 *
Daniel Stenberg2acc0ac2008-06-28 18:10:04 +000012 * This program is free software; you can redistribute it and/or
13 * modify it under the terms of the GNU General Public License
14 * as published by the Free Software Foundation; either version 2
15 * of the License, or (at your option) any later version.
Nils Wallménius0e496052007-09-24 15:57:32 +000016 *
17 * This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY
18 * KIND, either express or implied.
19 *
20 ****************************************************************************/
Nils Wallménius0e496052007-09-24 15:57:32 +000021int initSynth(struct MIDIfile * mf, char * filename, char * drumConfig);
Nils Wallménius6386dbe2007-09-30 11:21:25 +000022void setPoint(struct SynthObject * so, int pt);
Nils Wallméniusf619f812007-10-08 19:28:41 +000023void synthSamples(int32_t *buf_ptr, unsigned int num_samples);
Nils Wallménius0e496052007-09-24 15:57:32 +000024
Stéphane Doyon775279b2007-11-03 04:59:24 +000025void resetControllers(void);
Stepan Moskovchenkocd963d82007-11-03 04:09:38 +000026
Nils Wallménius6888db32007-09-27 20:17:38 +000027static inline struct Event * getEvent(struct Track * tr, int evNum)
28{
29 return tr->dataBlock + (evNum*sizeof(struct Event));
30}
31