/* SpiralSynth * Copyright (C) 2000 David Griffiths * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ #include #include #include #include "SynthInfo.h" float RandFloat(float s=0.0f, float e=1.0f) { return s+((rand()%10000/10000.0)*(e-s)); } void CopyBuffer(short *from, short *to) { for (int n=0; n>temp>>temp>>temp; i>>temp>>temp>>BUFSIZE; i>>temp>>temp>>SAMPLERATE; i>>temp>>temp>>WANTMIDI; i>>temp>>temp>>FILTERGRAN; i>>temp>>temp>>OUTPUTFILE; i>>temp>>temp>>MIDIFILE; i>>temp>>temp>>REALTIMEOUT; i>>temp>>temp>>KEYMAP; i>>temp>>temp>>POLY; } void SynthInfo::SavePrefs() { string rcfn(m_HomeDir+"/.Spiralrc"); ofstream o(rcfn.c_str()); o<<"SpiralSynth resource file"<