LMMS
Loading...
Searching...
No Matches
globals.cpp
Go to the documentation of this file.
1/*
2 ZynAddSubFX - a software synthesizer
3
4 globals.h - it contains program settings and the program capabilities
5 like number of parts, of effects
6 Copyright (C) 2002-2005 Nasca Octavian Paul
7 Author: Nasca Octavian Paul
8
9 This program is free software; you can redistribute it and/or
10 modify it under the terms of the GNU General Public License
11 as published by the Free Software Foundation; either version 2
12 of the License, or (at your option) any later version.
13*/
14
15#include "Misc/Util.h"
16#include "globals.h"
17
18namespace zyncarla {
19
20void SYNTH_T::alias(bool randomize)
21{
24 bufferbytes = buffersize * sizeof(float);
26
27 //produce denormal buf
28 // note: once there will be more buffers, use a cleanup function
29 // for deleting the buffers and also call it in the dtor
31 for(int i = 0; i < buffersize; ++i)
32 if(randomize)
33 denormalkillbuf[i] = (RND - 0.5f) * 1e-16;
34 else
35 denormalkillbuf[i] = 0;
36}
37
38}
#define RND
Definition Util.h:134
* e
Definition inflate.c:1404
register unsigned i
Definition inflate.c:1575
Definition zynaddsubfx-src.cpp:569
void alias(void)
Definition globals.h:238
int bufferbytes
Definition globals.h:332
float samplerate_f
Definition globals.h:329
float halfsamplerate_f
Definition globals.h:330
unsigned int samplerate
Definition globals.h:309
m_unique_ptr< float > denormalkillbuf
Definition globals.h:306
float oscilsize_f
Definition globals.h:333
int oscilsize
Definition globals.h:326
int buffersize
Definition globals.h:319
float buffersize_f
Definition globals.h:331