Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
waveforms.h
00001 /* 00002 Copyright 2013 Paul Soulsby www.soulsbysynths.com 00003 This file is part of Atmegatron. 00004 00005 Atmegatron is free software: you can redistribute it and/or modify 00006 it under the terms of the GNU General Public License as published by 00007 the Free Software Foundation, either version 3 of the License, or 00008 (at your option) any later version. 00009 00010 Atmegatron is distributed in the hope that it will be useful, 00011 but WITHOUT ANY WARRANTY; without even the implied warranty of 00012 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00013 GNU General Public License for more details. 00014 00015 You should have received a copy of the GNU General Public License 00016 along with Atmegatron. If not, see <http://www.gnu.org/licenses/>. 00017 */ 00018 00019 #ifndef __WAVEFORMS_H__ 00020 #define __WAVEFORMS_H__ 00021 00022 00023 extern const sample_t wave_store[2][16][WAVE_LEN]; 00024 // CPV - Made extern to speed up processing 00025 extern sample_t wave_process[WAVE_LEN]; //temp wavetable used to process wavetable 00026 extern sample_t wave_process_ch2[WAVE_LEN]; //temp wavetable used for channel two 00027 00028 void Wave_Let_Table(byte newtable); 00029 byte Wave_Get_Table(void); 00030 void Wave_Let_Bank(byte newbank); 00031 byte Wave_Get_Bank(void); 00032 // CPV - inlined to speed up processing 00033 inline void Wave_Let_Process(byte index, sample_t newval); 00034 // CPV - inlined to speed up processing 00035 inline sample_t Wave_Get_Process(byte index); 00036 void Wave_Let_UserMode(boolean newval); 00037 boolean Wave_Get_UserMode(void); 00038 void Wave_Let_UserWave(byte index, sample_t newval); 00039 sample_t Wave_Get_UserWave(byte index); 00040 void Init_Waves(void); 00041 void Wave_Process(void); 00042 void Wave_Clear(void); 00043 00044 00045 #endif // __WAVEFORMS_H__
Generated on Mon Jul 18 2022 18:20:47 by
 1.7.2
 1.7.2