Nils Wallménius | 0e49605 | 2007-09-24 15:57:32 +0000 | [diff] [blame] | 1 | /*************************************************************************** |
| 2 | * __________ __ ___. |
| 3 | * Open \______ \ ____ ____ | | _\_ |__ _______ ___ |
| 4 | * Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ / |
| 5 | * Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < < |
| 6 | * Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \ |
| 7 | * \/ \/ \/ \/ \/ |
| 8 | * $Id$ |
| 9 | * |
| 10 | * Copyright (C) 2005 Stepan Moskovchenko |
| 11 | * |
Daniel Stenberg | 2acc0ac | 2008-06-28 18:10:04 +0000 | [diff] [blame^] | 12 | * 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énius | 0e49605 | 2007-09-24 15:57:32 +0000 | [diff] [blame] | 16 | * |
| 17 | * This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY |
| 18 | * KIND, either express or implied. |
| 19 | * |
| 20 | ****************************************************************************/ |
Nils Wallménius | 0e49605 | 2007-09-24 15:57:32 +0000 | [diff] [blame] | 21 | int initSynth(struct MIDIfile * mf, char * filename, char * drumConfig); |
Nils Wallménius | 6386dbe | 2007-09-30 11:21:25 +0000 | [diff] [blame] | 22 | void setPoint(struct SynthObject * so, int pt); |
Nils Wallménius | f619f81 | 2007-10-08 19:28:41 +0000 | [diff] [blame] | 23 | void synthSamples(int32_t *buf_ptr, unsigned int num_samples); |
Nils Wallménius | 0e49605 | 2007-09-24 15:57:32 +0000 | [diff] [blame] | 24 | |
Stéphane Doyon | 775279b | 2007-11-03 04:59:24 +0000 | [diff] [blame] | 25 | void resetControllers(void); |
Stepan Moskovchenko | cd963d8 | 2007-11-03 04:09:38 +0000 | [diff] [blame] | 26 | |
Nils Wallménius | 6888db3 | 2007-09-27 20:17:38 +0000 | [diff] [blame] | 27 | static inline struct Event * getEvent(struct Track * tr, int evNum) |
| 28 | { |
| 29 | return tr->dataBlock + (evNum*sizeof(struct Event)); |
| 30 | } |
| 31 | |